configure 711 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69 for dirsrv 1.0.
  4. #
  5. # Report bugs to <http://bugzilla.redhat.com/>.
  6. #
  7. #
  8. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  9. #
  10. #
  11. # This configure script is free software; the Free Software Foundation
  12. # gives unlimited permission to copy, distribute and modify it.
  13. ## -------------------- ##
  14. ## M4sh Initialization. ##
  15. ## -------------------- ##
  16. # Be more Bourne compatible
  17. DUALCASE=1; export DUALCASE # for MKS sh
  18. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  19. emulate sh
  20. NULLCMD=:
  21. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  22. # is contrary to our usage. Disable this feature.
  23. alias -g '${1+"$@"}'='"$@"'
  24. setopt NO_GLOB_SUBST
  25. else
  26. case `(set -o) 2>/dev/null` in #(
  27. *posix*) :
  28. set -o posix ;; #(
  29. *) :
  30. ;;
  31. esac
  32. fi
  33. as_nl='
  34. '
  35. export as_nl
  36. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  37. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  38. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  39. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  40. # Prefer a ksh shell builtin over an external printf program on Solaris,
  41. # but without wasting forks for bash or zsh.
  42. if test -z "$BASH_VERSION$ZSH_VERSION" \
  43. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  44. as_echo='print -r --'
  45. as_echo_n='print -rn --'
  46. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  47. as_echo='printf %s\n'
  48. as_echo_n='printf %s'
  49. else
  50. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  51. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  52. as_echo_n='/usr/ucb/echo -n'
  53. else
  54. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  55. as_echo_n_body='eval
  56. arg=$1;
  57. case $arg in #(
  58. *"$as_nl"*)
  59. expr "X$arg" : "X\\(.*\\)$as_nl";
  60. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  61. esac;
  62. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  63. '
  64. export as_echo_n_body
  65. as_echo_n='sh -c $as_echo_n_body as_echo'
  66. fi
  67. export as_echo_body
  68. as_echo='sh -c $as_echo_body as_echo'
  69. fi
  70. # The user is always right.
  71. if test "${PATH_SEPARATOR+set}" != set; then
  72. PATH_SEPARATOR=:
  73. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  74. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  75. PATH_SEPARATOR=';'
  76. }
  77. fi
  78. # IFS
  79. # We need space, tab and new line, in precisely that order. Quoting is
  80. # there to prevent editors from complaining about space-tab.
  81. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  82. # splitting by setting IFS to empty value.)
  83. IFS=" "" $as_nl"
  84. # Find who we are. Look in the path if we contain no directory separator.
  85. as_myself=
  86. case $0 in #((
  87. *[\\/]* ) as_myself=$0 ;;
  88. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  89. for as_dir in $PATH
  90. do
  91. IFS=$as_save_IFS
  92. test -z "$as_dir" && as_dir=.
  93. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  94. done
  95. IFS=$as_save_IFS
  96. ;;
  97. esac
  98. # We did not find ourselves, most probably we were run as `sh COMMAND'
  99. # in which case we are not to be found in the path.
  100. if test "x$as_myself" = x; then
  101. as_myself=$0
  102. fi
  103. if test ! -f "$as_myself"; then
  104. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  105. exit 1
  106. fi
  107. # Unset variables that we do not need and which cause bugs (e.g. in
  108. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  109. # suppresses any "Segmentation fault" message there. '((' could
  110. # trigger a bug in pdksh 5.2.14.
  111. for as_var in BASH_ENV ENV MAIL MAILPATH
  112. do eval test x\${$as_var+set} = xset \
  113. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  114. done
  115. PS1='$ '
  116. PS2='> '
  117. PS4='+ '
  118. # NLS nuisances.
  119. LC_ALL=C
  120. export LC_ALL
  121. LANGUAGE=C
  122. export LANGUAGE
  123. # CDPATH.
  124. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  125. # Use a proper internal environment variable to ensure we don't fall
  126. # into an infinite loop, continuously re-executing ourselves.
  127. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  128. _as_can_reexec=no; export _as_can_reexec;
  129. # We cannot yet assume a decent shell, so we have to provide a
  130. # neutralization value for shells without unset; and this also
  131. # works around shells that cannot unset nonexistent variables.
  132. # Preserve -v and -x to the replacement shell.
  133. BASH_ENV=/dev/null
  134. ENV=/dev/null
  135. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  136. case $- in # ((((
  137. *v*x* | *x*v* ) as_opts=-vx ;;
  138. *v* ) as_opts=-v ;;
  139. *x* ) as_opts=-x ;;
  140. * ) as_opts= ;;
  141. esac
  142. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  143. # Admittedly, this is quite paranoid, since all the known shells bail
  144. # out after a failed `exec'.
  145. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  146. as_fn_exit 255
  147. fi
  148. # We don't want this to propagate to other subprocesses.
  149. { _as_can_reexec=; unset _as_can_reexec;}
  150. if test "x$CONFIG_SHELL" = x; then
  151. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  152. emulate sh
  153. NULLCMD=:
  154. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  155. # is contrary to our usage. Disable this feature.
  156. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  157. setopt NO_GLOB_SUBST
  158. else
  159. case \`(set -o) 2>/dev/null\` in #(
  160. *posix*) :
  161. set -o posix ;; #(
  162. *) :
  163. ;;
  164. esac
  165. fi
  166. "
  167. as_required="as_fn_return () { (exit \$1); }
  168. as_fn_success () { as_fn_return 0; }
  169. as_fn_failure () { as_fn_return 1; }
  170. as_fn_ret_success () { return 0; }
  171. as_fn_ret_failure () { return 1; }
  172. exitcode=0
  173. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  174. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  175. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  176. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  177. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  178. else
  179. exitcode=1; echo positional parameters were not saved.
  180. fi
  181. test x\$exitcode = x0 || exit 1
  182. test -x / || exit 1"
  183. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  184. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  185. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  186. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  187. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  188. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  189. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  190. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  191. PATH=/empty FPATH=/empty; export PATH FPATH
  192. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  193. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
  194. test \$(( 1 + 1 )) = 2 || exit 1"
  195. if (eval "$as_required") 2>/dev/null; then :
  196. as_have_required=yes
  197. else
  198. as_have_required=no
  199. fi
  200. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  201. else
  202. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  203. as_found=false
  204. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  205. do
  206. IFS=$as_save_IFS
  207. test -z "$as_dir" && as_dir=.
  208. as_found=:
  209. case $as_dir in #(
  210. /*)
  211. for as_base in sh bash ksh sh5; do
  212. # Try only shells that exist, to save several forks.
  213. as_shell=$as_dir/$as_base
  214. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  215. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  216. CONFIG_SHELL=$as_shell as_have_required=yes
  217. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  218. break 2
  219. fi
  220. fi
  221. done;;
  222. esac
  223. as_found=false
  224. done
  225. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  226. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  227. CONFIG_SHELL=$SHELL as_have_required=yes
  228. fi; }
  229. IFS=$as_save_IFS
  230. if test "x$CONFIG_SHELL" != x; then :
  231. export CONFIG_SHELL
  232. # We cannot yet assume a decent shell, so we have to provide a
  233. # neutralization value for shells without unset; and this also
  234. # works around shells that cannot unset nonexistent variables.
  235. # Preserve -v and -x to the replacement shell.
  236. BASH_ENV=/dev/null
  237. ENV=/dev/null
  238. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  239. case $- in # ((((
  240. *v*x* | *x*v* ) as_opts=-vx ;;
  241. *v* ) as_opts=-v ;;
  242. *x* ) as_opts=-x ;;
  243. * ) as_opts= ;;
  244. esac
  245. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  246. # Admittedly, this is quite paranoid, since all the known shells bail
  247. # out after a failed `exec'.
  248. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  249. exit 255
  250. fi
  251. if test x$as_have_required = xno; then :
  252. $as_echo "$0: This script requires a shell more modern than all"
  253. $as_echo "$0: the shells that I found on your system."
  254. if test x${ZSH_VERSION+set} = xset ; then
  255. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  256. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  257. else
  258. $as_echo "$0: Please tell [email protected] and
  259. $0: http://bugzilla.redhat.com/ about your system,
  260. $0: including any error possibly output before this
  261. $0: message. Then install a modern shell, or manually run
  262. $0: the script under such a shell if you do have one."
  263. fi
  264. exit 1
  265. fi
  266. fi
  267. fi
  268. SHELL=${CONFIG_SHELL-/bin/sh}
  269. export SHELL
  270. # Unset more variables known to interfere with behavior of common tools.
  271. CLICOLOR_FORCE= GREP_OPTIONS=
  272. unset CLICOLOR_FORCE GREP_OPTIONS
  273. ## --------------------- ##
  274. ## M4sh Shell Functions. ##
  275. ## --------------------- ##
  276. # as_fn_unset VAR
  277. # ---------------
  278. # Portably unset VAR.
  279. as_fn_unset ()
  280. {
  281. { eval $1=; unset $1;}
  282. }
  283. as_unset=as_fn_unset
  284. # as_fn_set_status STATUS
  285. # -----------------------
  286. # Set $? to STATUS, without forking.
  287. as_fn_set_status ()
  288. {
  289. return $1
  290. } # as_fn_set_status
  291. # as_fn_exit STATUS
  292. # -----------------
  293. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  294. as_fn_exit ()
  295. {
  296. set +e
  297. as_fn_set_status $1
  298. exit $1
  299. } # as_fn_exit
  300. # as_fn_mkdir_p
  301. # -------------
  302. # Create "$as_dir" as a directory, including parents if necessary.
  303. as_fn_mkdir_p ()
  304. {
  305. case $as_dir in #(
  306. -*) as_dir=./$as_dir;;
  307. esac
  308. test -d "$as_dir" || eval $as_mkdir_p || {
  309. as_dirs=
  310. while :; do
  311. case $as_dir in #(
  312. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  313. *) as_qdir=$as_dir;;
  314. esac
  315. as_dirs="'$as_qdir' $as_dirs"
  316. as_dir=`$as_dirname -- "$as_dir" ||
  317. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  318. X"$as_dir" : 'X\(//\)[^/]' \| \
  319. X"$as_dir" : 'X\(//\)$' \| \
  320. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  321. $as_echo X"$as_dir" |
  322. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  323. s//\1/
  324. q
  325. }
  326. /^X\(\/\/\)[^/].*/{
  327. s//\1/
  328. q
  329. }
  330. /^X\(\/\/\)$/{
  331. s//\1/
  332. q
  333. }
  334. /^X\(\/\).*/{
  335. s//\1/
  336. q
  337. }
  338. s/.*/./; q'`
  339. test -d "$as_dir" && break
  340. done
  341. test -z "$as_dirs" || eval "mkdir $as_dirs"
  342. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  343. } # as_fn_mkdir_p
  344. # as_fn_executable_p FILE
  345. # -----------------------
  346. # Test if FILE is an executable regular file.
  347. as_fn_executable_p ()
  348. {
  349. test -f "$1" && test -x "$1"
  350. } # as_fn_executable_p
  351. # as_fn_append VAR VALUE
  352. # ----------------------
  353. # Append the text in VALUE to the end of the definition contained in VAR. Take
  354. # advantage of any shell optimizations that allow amortized linear growth over
  355. # repeated appends, instead of the typical quadratic growth present in naive
  356. # implementations.
  357. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  358. eval 'as_fn_append ()
  359. {
  360. eval $1+=\$2
  361. }'
  362. else
  363. as_fn_append ()
  364. {
  365. eval $1=\$$1\$2
  366. }
  367. fi # as_fn_append
  368. # as_fn_arith ARG...
  369. # ------------------
  370. # Perform arithmetic evaluation on the ARGs, and store the result in the
  371. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  372. # must be portable across $(()) and expr.
  373. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  374. eval 'as_fn_arith ()
  375. {
  376. as_val=$(( $* ))
  377. }'
  378. else
  379. as_fn_arith ()
  380. {
  381. as_val=`expr "$@" || test $? -eq 1`
  382. }
  383. fi # as_fn_arith
  384. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  385. # ----------------------------------------
  386. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  387. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  388. # script with STATUS, using 1 if that was 0.
  389. as_fn_error ()
  390. {
  391. as_status=$1; test $as_status -eq 0 && as_status=1
  392. if test "$4"; then
  393. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  394. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  395. fi
  396. $as_echo "$as_me: error: $2" >&2
  397. as_fn_exit $as_status
  398. } # as_fn_error
  399. if expr a : '\(a\)' >/dev/null 2>&1 &&
  400. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  401. as_expr=expr
  402. else
  403. as_expr=false
  404. fi
  405. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  406. as_basename=basename
  407. else
  408. as_basename=false
  409. fi
  410. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  411. as_dirname=dirname
  412. else
  413. as_dirname=false
  414. fi
  415. as_me=`$as_basename -- "$0" ||
  416. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  417. X"$0" : 'X\(//\)$' \| \
  418. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  419. $as_echo X/"$0" |
  420. sed '/^.*\/\([^/][^/]*\)\/*$/{
  421. s//\1/
  422. q
  423. }
  424. /^X\/\(\/\/\)$/{
  425. s//\1/
  426. q
  427. }
  428. /^X\/\(\/\).*/{
  429. s//\1/
  430. q
  431. }
  432. s/.*/./; q'`
  433. # Avoid depending upon Character Ranges.
  434. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  435. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  436. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  437. as_cr_digits='0123456789'
  438. as_cr_alnum=$as_cr_Letters$as_cr_digits
  439. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  440. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  441. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  442. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  443. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  444. sed -n '
  445. p
  446. /[$]LINENO/=
  447. ' <$as_myself |
  448. sed '
  449. s/[$]LINENO.*/&-/
  450. t lineno
  451. b
  452. :lineno
  453. N
  454. :loop
  455. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  456. t loop
  457. s/-\n.*//
  458. ' >$as_me.lineno &&
  459. chmod +x "$as_me.lineno" ||
  460. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  461. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  462. # already done that, so ensure we don't try to do so again and fall
  463. # in an infinite loop. This has already happened in practice.
  464. _as_can_reexec=no; export _as_can_reexec
  465. # Don't try to exec as it changes $[0], causing all sort of problems
  466. # (the dirname of $[0] is not the place where we might find the
  467. # original and so on. Autoconf is especially sensitive to this).
  468. . "./$as_me.lineno"
  469. # Exit status is that of the last command.
  470. exit
  471. }
  472. ECHO_C= ECHO_N= ECHO_T=
  473. case `echo -n x` in #(((((
  474. -n*)
  475. case `echo 'xy\c'` in
  476. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  477. xy) ECHO_C='\c';;
  478. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  479. ECHO_T=' ';;
  480. esac;;
  481. *)
  482. ECHO_N='-n';;
  483. esac
  484. rm -f conf$$ conf$$.exe conf$$.file
  485. if test -d conf$$.dir; then
  486. rm -f conf$$.dir/conf$$.file
  487. else
  488. rm -f conf$$.dir
  489. mkdir conf$$.dir 2>/dev/null
  490. fi
  491. if (echo >conf$$.file) 2>/dev/null; then
  492. if ln -s conf$$.file conf$$ 2>/dev/null; then
  493. as_ln_s='ln -s'
  494. # ... but there are two gotchas:
  495. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  496. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  497. # In both cases, we have to default to `cp -pR'.
  498. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  499. as_ln_s='cp -pR'
  500. elif ln conf$$.file conf$$ 2>/dev/null; then
  501. as_ln_s=ln
  502. else
  503. as_ln_s='cp -pR'
  504. fi
  505. else
  506. as_ln_s='cp -pR'
  507. fi
  508. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  509. rmdir conf$$.dir 2>/dev/null
  510. if mkdir -p . 2>/dev/null; then
  511. as_mkdir_p='mkdir -p "$as_dir"'
  512. else
  513. test -d ./-p && rmdir ./-p
  514. as_mkdir_p=false
  515. fi
  516. as_test_x='test -x'
  517. as_executable_p=as_fn_executable_p
  518. # Sed expression to map a string onto a valid CPP name.
  519. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  520. # Sed expression to map a string onto a valid variable name.
  521. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  522. SHELL=${CONFIG_SHELL-/bin/sh}
  523. test -n "$DJDIR" || exec 7<&0 </dev/null
  524. exec 6>&1
  525. # Name of the host.
  526. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  527. # so uname gets run too.
  528. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  529. #
  530. # Initializations.
  531. #
  532. ac_default_prefix=/usr/local
  533. ac_clean_files=
  534. ac_config_libobj_dir=.
  535. LIBOBJS=
  536. cross_compiling=no
  537. subdirs=
  538. MFLAGS=
  539. MAKEFLAGS=
  540. # Identity of this package.
  541. PACKAGE_NAME='dirsrv'
  542. PACKAGE_TARNAME='dirsrv'
  543. PACKAGE_VERSION='1.0'
  544. PACKAGE_STRING='dirsrv 1.0'
  545. PACKAGE_BUGREPORT='http://bugzilla.redhat.com/'
  546. PACKAGE_URL=''
  547. # Factoring default headers for most tests.
  548. ac_includes_default="\
  549. #include <stdio.h>
  550. #ifdef HAVE_SYS_TYPES_H
  551. # include <sys/types.h>
  552. #endif
  553. #ifdef HAVE_SYS_STAT_H
  554. # include <sys/stat.h>
  555. #endif
  556. #ifdef STDC_HEADERS
  557. # include <stdlib.h>
  558. # include <stddef.h>
  559. #else
  560. # ifdef HAVE_STDLIB_H
  561. # include <stdlib.h>
  562. # endif
  563. #endif
  564. #ifdef HAVE_STRING_H
  565. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  566. # include <memory.h>
  567. # endif
  568. # include <string.h>
  569. #endif
  570. #ifdef HAVE_STRINGS_H
  571. # include <strings.h>
  572. #endif
  573. #ifdef HAVE_INTTYPES_H
  574. # include <inttypes.h>
  575. #endif
  576. #ifdef HAVE_STDINT_H
  577. # include <stdint.h>
  578. #endif
  579. #ifdef HAVE_UNISTD_H
  580. # include <unistd.h>
  581. #endif"
  582. ac_header_list=
  583. ac_default_prefix=/opt/$PACKAGE_NAME
  584. ac_subst_vars='am__EXEEXT_FALSE
  585. am__EXEEXT_TRUE
  586. LTLIBOBJS
  587. vendor
  588. capbrand
  589. brand
  590. localrundir
  591. nunc_stans_libdir
  592. nunc_stans_lib
  593. nunc_stans_inc
  594. pcre_libdir
  595. pcre_lib
  596. pcre_inc
  597. netsnmp_link
  598. netsnmp_libdir
  599. netsnmp_lib
  600. netsnmp_inc
  601. icu_bin
  602. icu_inc
  603. icu_lib
  604. svrcore_lib
  605. svrcore_inc
  606. sasl_path
  607. sasl_libdir
  608. sasl_lib
  609. sasl_inc
  610. db_libver
  611. db_bindir
  612. db_libdir
  613. db_lib
  614. db_incdir
  615. db_inc
  616. ol_libver
  617. plainldif_opts
  618. ldaptool_opts
  619. ldaptool_bindir
  620. openldap_bindir
  621. openldap_libdir
  622. openldap_lib
  623. openldap_inc
  624. ldapsdk_bindir
  625. ldapsdk_libdir
  626. ldapsdk_lib
  627. ldapsdk_inc
  628. nss_libdir
  629. nss_lib
  630. nss_inc
  631. nspr_libdir
  632. nspr_lib
  633. nspr_inc
  634. SPARC_FALSE
  635. SPARC_TRUE
  636. OPENLDAP_FALSE
  637. OPENLDAP_TRUE
  638. SELINUX_FALSE
  639. SELINUX_TRUE
  640. PACKAGE_BASE_VERSION
  641. with_selinux
  642. kerberos_libdir
  643. kerberos_lib
  644. kerberos_inc
  645. KRB5_CONFIG_BIN
  646. NETSNMP_CONFIG
  647. ICU_CONFIG
  648. ldap_lib_ldif
  649. SYSTEMD_FALSE
  650. SYSTEMD_TRUE
  651. SOLARIS_FALSE
  652. SOLARIS_TRUE
  653. HPUX_FALSE
  654. HPUX_TRUE
  655. initconfigdir
  656. sttyexec
  657. perlexec
  658. initdir
  659. LIBCRUN
  660. LIBCSTD
  661. LIBDL
  662. LIBNSL
  663. LIBSOCKET
  664. LIBCRYPT
  665. THREADLIB
  666. WINNT_FALSE
  667. WINNT_TRUE
  668. instconfigdir
  669. defaultgroup
  670. defaultuser
  671. updatedir
  672. mibdir
  673. infdir
  674. pythondir
  675. perldir
  676. scripttemplatedir
  677. serverplugindir
  678. serverincdir
  679. serverdir
  680. schemadir
  681. propertydir
  682. sampledatadir
  683. configdir
  684. with_systemdgroupname
  685. with_systemdsystemconfdir
  686. with_systemdsystemunitdir
  687. PKG_CONFIG_LIBDIR
  688. PKG_CONFIG_PATH
  689. PKG_CONFIG
  690. with_tmpfiles_d
  691. with_fhs_opt
  692. enable_nunc_stans_FALSE
  693. enable_nunc_stans_TRUE
  694. enable_posix_winsync_FALSE
  695. enable_posix_winsync_TRUE
  696. enable_acctpolicy_FALSE
  697. enable_acctpolicy_TRUE
  698. enable_presence_FALSE
  699. enable_presence_TRUE
  700. enable_bitwise_FALSE
  701. enable_bitwise_TRUE
  702. enable_auto_dn_suffix_FALSE
  703. enable_auto_dn_suffix_TRUE
  704. enable_autobind_FALSE
  705. enable_autobind_TRUE
  706. enable_ldapi_FALSE
  707. enable_ldapi_TRUE
  708. enable_dna_FALSE
  709. enable_dna_TRUE
  710. enable_pam_passthru_FALSE
  711. enable_pam_passthru_TRUE
  712. BUNDLE_FALSE
  713. BUNDLE_TRUE
  714. debug_defs
  715. LIBOBJS
  716. CXXCPP
  717. CPP
  718. OTOOL64
  719. OTOOL
  720. LIPO
  721. NMEDIT
  722. DSYMUTIL
  723. MANIFEST_TOOL
  724. RANLIB
  725. ac_ct_AR
  726. AR
  727. DLLTOOL
  728. OBJDUMP
  729. LN_S
  730. NM
  731. ac_ct_DUMPBIN
  732. DUMPBIN
  733. LD
  734. FGREP
  735. EGREP
  736. GREP
  737. SED
  738. LIBTOOL
  739. am__fastdepCCAS_FALSE
  740. am__fastdepCCAS_TRUE
  741. CCASDEPMODE
  742. CCASFLAGS
  743. CCAS
  744. am__fastdepCC_FALSE
  745. am__fastdepCC_TRUE
  746. CCDEPMODE
  747. ac_ct_CC
  748. CFLAGS
  749. CC
  750. am__fastdepCXX_FALSE
  751. am__fastdepCXX_TRUE
  752. CXXDEPMODE
  753. am__nodep
  754. AMDEPBACKSLASH
  755. AMDEP_FALSE
  756. AMDEP_TRUE
  757. am__quote
  758. am__include
  759. DEPDIR
  760. OBJEXT
  761. EXEEXT
  762. ac_ct_CXX
  763. CPPFLAGS
  764. LDFLAGS
  765. CXXFLAGS
  766. CXX
  767. host_os
  768. host_vendor
  769. host_cpu
  770. host
  771. build_os
  772. build_vendor
  773. build_cpu
  774. build
  775. MAINT
  776. MAINTAINER_MODE_FALSE
  777. MAINTAINER_MODE_TRUE
  778. CONSOLE_VERSION
  779. RPM_RELEASE
  780. RPM_VERSION
  781. AM_BACKSLASH
  782. AM_DEFAULT_VERBOSITY
  783. AM_DEFAULT_V
  784. AM_V
  785. am__untar
  786. am__tar
  787. AMTAR
  788. am__leading_dot
  789. SET_MAKE
  790. AWK
  791. mkdir_p
  792. MKDIR_P
  793. INSTALL_STRIP_PROGRAM
  794. STRIP
  795. install_sh
  796. MAKEINFO
  797. AUTOHEADER
  798. AUTOMAKE
  799. AUTOCONF
  800. ACLOCAL
  801. VERSION
  802. PACKAGE
  803. CYGPATH_W
  804. am__isrc
  805. INSTALL_DATA
  806. INSTALL_SCRIPT
  807. INSTALL_PROGRAM
  808. target_alias
  809. host_alias
  810. build_alias
  811. LIBS
  812. ECHO_T
  813. ECHO_N
  814. ECHO_C
  815. DEFS
  816. mandir
  817. localedir
  818. libdir
  819. psdir
  820. pdfdir
  821. dvidir
  822. htmldir
  823. infodir
  824. docdir
  825. oldincludedir
  826. includedir
  827. localstatedir
  828. sharedstatedir
  829. sysconfdir
  830. datadir
  831. datarootdir
  832. libexecdir
  833. sbindir
  834. bindir
  835. program_transform_name
  836. prefix
  837. exec_prefix
  838. PACKAGE_URL
  839. PACKAGE_BUGREPORT
  840. PACKAGE_STRING
  841. PACKAGE_VERSION
  842. PACKAGE_TARNAME
  843. PACKAGE_NAME
  844. PATH_SEPARATOR
  845. SHELL'
  846. ac_subst_files=''
  847. ac_user_opts='
  848. enable_option_checking
  849. enable_silent_rules
  850. enable_maintainer_mode
  851. enable_dependency_tracking
  852. enable_static
  853. enable_shared
  854. with_pic
  855. enable_fast_install
  856. with_gnu_ld
  857. with_sysroot
  858. enable_libtool_lock
  859. enable_debug
  860. enable_bundle
  861. enable_pam_passthru
  862. enable_dna
  863. enable_ldapi
  864. enable_autobind
  865. enable_bitwise
  866. enable_presence
  867. enable_acctpolicy
  868. enable_posix_winsync
  869. enable_nunc_stans
  870. with_fhs
  871. with_fhs_opt
  872. with_tmpfiles_d
  873. with_perldir
  874. with_pythondir
  875. with_systemdsystemunitdir
  876. with_systemdsystemconfdir
  877. with_systemdgroupname
  878. with_instconfigdir
  879. with_initddir
  880. with_nspr
  881. with_nspr_inc
  882. with_nspr_lib
  883. with_nss
  884. with_nss_inc
  885. with_nss_lib
  886. with_openldap
  887. with_openldap_inc
  888. with_openldap_lib
  889. with_openldap_bin
  890. with_ldapsdk
  891. with_ldapsdk_inc
  892. with_ldapsdk_lib
  893. with_ldapsdk_bin
  894. with_db
  895. with_db_inc
  896. with_db_lib
  897. with_sasl
  898. with_sasl_inc
  899. with_sasl_lib
  900. with_svrcore
  901. with_svrcore_inc
  902. with_svrcore_lib
  903. with_icu
  904. with_icu_inc
  905. with_icu_lib
  906. with_icu_bin
  907. with_netsnmp
  908. with_netsnmp_inc
  909. with_netsnmp_lib
  910. with_kerberos
  911. with_kerberos_inc
  912. with_kerberos_lib
  913. with_pcre
  914. with_selinux
  915. with_nunc_stans
  916. with_nunc_stans_inc
  917. with_nunc_stans_lib
  918. '
  919. ac_precious_vars='build_alias
  920. host_alias
  921. target_alias
  922. CXX
  923. CXXFLAGS
  924. LDFLAGS
  925. LIBS
  926. CPPFLAGS
  927. CCC
  928. CC
  929. CFLAGS
  930. CCAS
  931. CCASFLAGS
  932. CPP
  933. CXXCPP
  934. PKG_CONFIG
  935. PKG_CONFIG_PATH
  936. PKG_CONFIG_LIBDIR'
  937. # Initialize some variables set by options.
  938. ac_init_help=
  939. ac_init_version=false
  940. ac_unrecognized_opts=
  941. ac_unrecognized_sep=
  942. # The variables have the same names as the options, with
  943. # dashes changed to underlines.
  944. cache_file=/dev/null
  945. exec_prefix=NONE
  946. no_create=
  947. no_recursion=
  948. prefix=NONE
  949. program_prefix=NONE
  950. program_suffix=NONE
  951. program_transform_name=s,x,x,
  952. silent=
  953. site=
  954. srcdir=
  955. verbose=
  956. x_includes=NONE
  957. x_libraries=NONE
  958. # Installation directory options.
  959. # These are left unexpanded so users can "make install exec_prefix=/foo"
  960. # and all the variables that are supposed to be based on exec_prefix
  961. # by default will actually change.
  962. # Use braces instead of parens because sh, perl, etc. also accept them.
  963. # (The list follows the same order as the GNU Coding Standards.)
  964. bindir='${exec_prefix}/bin'
  965. sbindir='${exec_prefix}/sbin'
  966. libexecdir='${exec_prefix}/libexec'
  967. datarootdir='${prefix}/share'
  968. datadir='${datarootdir}'
  969. sysconfdir='${prefix}/etc'
  970. sharedstatedir='${prefix}/com'
  971. localstatedir='${prefix}/var'
  972. includedir='${prefix}/include'
  973. oldincludedir='/usr/include'
  974. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  975. infodir='${datarootdir}/info'
  976. htmldir='${docdir}'
  977. dvidir='${docdir}'
  978. pdfdir='${docdir}'
  979. psdir='${docdir}'
  980. libdir='${exec_prefix}/lib'
  981. localedir='${datarootdir}/locale'
  982. mandir='${datarootdir}/man'
  983. ac_prev=
  984. ac_dashdash=
  985. for ac_option
  986. do
  987. # If the previous option needs an argument, assign it.
  988. if test -n "$ac_prev"; then
  989. eval $ac_prev=\$ac_option
  990. ac_prev=
  991. continue
  992. fi
  993. case $ac_option in
  994. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  995. *=) ac_optarg= ;;
  996. *) ac_optarg=yes ;;
  997. esac
  998. # Accept the important Cygnus configure options, so we can diagnose typos.
  999. case $ac_dashdash$ac_option in
  1000. --)
  1001. ac_dashdash=yes ;;
  1002. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  1003. ac_prev=bindir ;;
  1004. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  1005. bindir=$ac_optarg ;;
  1006. -build | --build | --buil | --bui | --bu)
  1007. ac_prev=build_alias ;;
  1008. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  1009. build_alias=$ac_optarg ;;
  1010. -cache-file | --cache-file | --cache-fil | --cache-fi \
  1011. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  1012. ac_prev=cache_file ;;
  1013. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  1014. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  1015. cache_file=$ac_optarg ;;
  1016. --config-cache | -C)
  1017. cache_file=config.cache ;;
  1018. -datadir | --datadir | --datadi | --datad)
  1019. ac_prev=datadir ;;
  1020. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  1021. datadir=$ac_optarg ;;
  1022. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  1023. | --dataroo | --dataro | --datar)
  1024. ac_prev=datarootdir ;;
  1025. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  1026. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  1027. datarootdir=$ac_optarg ;;
  1028. -disable-* | --disable-*)
  1029. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  1030. # Reject names that are not valid shell variable names.
  1031. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1032. as_fn_error $? "invalid feature name: $ac_useropt"
  1033. ac_useropt_orig=$ac_useropt
  1034. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1035. case $ac_user_opts in
  1036. *"
  1037. "enable_$ac_useropt"
  1038. "*) ;;
  1039. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  1040. ac_unrecognized_sep=', ';;
  1041. esac
  1042. eval enable_$ac_useropt=no ;;
  1043. -docdir | --docdir | --docdi | --doc | --do)
  1044. ac_prev=docdir ;;
  1045. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  1046. docdir=$ac_optarg ;;
  1047. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  1048. ac_prev=dvidir ;;
  1049. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  1050. dvidir=$ac_optarg ;;
  1051. -enable-* | --enable-*)
  1052. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  1053. # Reject names that are not valid shell variable names.
  1054. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1055. as_fn_error $? "invalid feature name: $ac_useropt"
  1056. ac_useropt_orig=$ac_useropt
  1057. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1058. case $ac_user_opts in
  1059. *"
  1060. "enable_$ac_useropt"
  1061. "*) ;;
  1062. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  1063. ac_unrecognized_sep=', ';;
  1064. esac
  1065. eval enable_$ac_useropt=\$ac_optarg ;;
  1066. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  1067. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  1068. | --exec | --exe | --ex)
  1069. ac_prev=exec_prefix ;;
  1070. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  1071. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  1072. | --exec=* | --exe=* | --ex=*)
  1073. exec_prefix=$ac_optarg ;;
  1074. -gas | --gas | --ga | --g)
  1075. # Obsolete; use --with-gas.
  1076. with_gas=yes ;;
  1077. -help | --help | --hel | --he | -h)
  1078. ac_init_help=long ;;
  1079. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1080. ac_init_help=recursive ;;
  1081. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1082. ac_init_help=short ;;
  1083. -host | --host | --hos | --ho)
  1084. ac_prev=host_alias ;;
  1085. -host=* | --host=* | --hos=* | --ho=*)
  1086. host_alias=$ac_optarg ;;
  1087. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1088. ac_prev=htmldir ;;
  1089. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1090. | --ht=*)
  1091. htmldir=$ac_optarg ;;
  1092. -includedir | --includedir | --includedi | --included | --include \
  1093. | --includ | --inclu | --incl | --inc)
  1094. ac_prev=includedir ;;
  1095. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1096. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1097. includedir=$ac_optarg ;;
  1098. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1099. ac_prev=infodir ;;
  1100. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1101. infodir=$ac_optarg ;;
  1102. -libdir | --libdir | --libdi | --libd)
  1103. ac_prev=libdir ;;
  1104. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1105. libdir=$ac_optarg ;;
  1106. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1107. | --libexe | --libex | --libe)
  1108. ac_prev=libexecdir ;;
  1109. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1110. | --libexe=* | --libex=* | --libe=*)
  1111. libexecdir=$ac_optarg ;;
  1112. -localedir | --localedir | --localedi | --localed | --locale)
  1113. ac_prev=localedir ;;
  1114. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1115. localedir=$ac_optarg ;;
  1116. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1117. | --localstate | --localstat | --localsta | --localst | --locals)
  1118. ac_prev=localstatedir ;;
  1119. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1120. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1121. localstatedir=$ac_optarg ;;
  1122. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1123. ac_prev=mandir ;;
  1124. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1125. mandir=$ac_optarg ;;
  1126. -nfp | --nfp | --nf)
  1127. # Obsolete; use --without-fp.
  1128. with_fp=no ;;
  1129. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1130. | --no-cr | --no-c | -n)
  1131. no_create=yes ;;
  1132. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1133. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1134. no_recursion=yes ;;
  1135. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1136. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1137. | --oldin | --oldi | --old | --ol | --o)
  1138. ac_prev=oldincludedir ;;
  1139. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1140. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1141. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1142. oldincludedir=$ac_optarg ;;
  1143. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1144. ac_prev=prefix ;;
  1145. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1146. prefix=$ac_optarg ;;
  1147. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1148. | --program-pre | --program-pr | --program-p)
  1149. ac_prev=program_prefix ;;
  1150. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1151. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1152. program_prefix=$ac_optarg ;;
  1153. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1154. | --program-suf | --program-su | --program-s)
  1155. ac_prev=program_suffix ;;
  1156. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1157. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1158. program_suffix=$ac_optarg ;;
  1159. -program-transform-name | --program-transform-name \
  1160. | --program-transform-nam | --program-transform-na \
  1161. | --program-transform-n | --program-transform- \
  1162. | --program-transform | --program-transfor \
  1163. | --program-transfo | --program-transf \
  1164. | --program-trans | --program-tran \
  1165. | --progr-tra | --program-tr | --program-t)
  1166. ac_prev=program_transform_name ;;
  1167. -program-transform-name=* | --program-transform-name=* \
  1168. | --program-transform-nam=* | --program-transform-na=* \
  1169. | --program-transform-n=* | --program-transform-=* \
  1170. | --program-transform=* | --program-transfor=* \
  1171. | --program-transfo=* | --program-transf=* \
  1172. | --program-trans=* | --program-tran=* \
  1173. | --progr-tra=* | --program-tr=* | --program-t=*)
  1174. program_transform_name=$ac_optarg ;;
  1175. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1176. ac_prev=pdfdir ;;
  1177. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1178. pdfdir=$ac_optarg ;;
  1179. -psdir | --psdir | --psdi | --psd | --ps)
  1180. ac_prev=psdir ;;
  1181. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1182. psdir=$ac_optarg ;;
  1183. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1184. | -silent | --silent | --silen | --sile | --sil)
  1185. silent=yes ;;
  1186. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1187. ac_prev=sbindir ;;
  1188. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1189. | --sbi=* | --sb=*)
  1190. sbindir=$ac_optarg ;;
  1191. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1192. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1193. | --sharedst | --shareds | --shared | --share | --shar \
  1194. | --sha | --sh)
  1195. ac_prev=sharedstatedir ;;
  1196. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1197. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1198. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1199. | --sha=* | --sh=*)
  1200. sharedstatedir=$ac_optarg ;;
  1201. -site | --site | --sit)
  1202. ac_prev=site ;;
  1203. -site=* | --site=* | --sit=*)
  1204. site=$ac_optarg ;;
  1205. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1206. ac_prev=srcdir ;;
  1207. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1208. srcdir=$ac_optarg ;;
  1209. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1210. | --syscon | --sysco | --sysc | --sys | --sy)
  1211. ac_prev=sysconfdir ;;
  1212. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1213. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1214. sysconfdir=$ac_optarg ;;
  1215. -target | --target | --targe | --targ | --tar | --ta | --t)
  1216. ac_prev=target_alias ;;
  1217. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1218. target_alias=$ac_optarg ;;
  1219. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1220. verbose=yes ;;
  1221. -version | --version | --versio | --versi | --vers | -V)
  1222. ac_init_version=: ;;
  1223. -with-* | --with-*)
  1224. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1225. # Reject names that are not valid shell variable names.
  1226. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1227. as_fn_error $? "invalid package name: $ac_useropt"
  1228. ac_useropt_orig=$ac_useropt
  1229. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1230. case $ac_user_opts in
  1231. *"
  1232. "with_$ac_useropt"
  1233. "*) ;;
  1234. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1235. ac_unrecognized_sep=', ';;
  1236. esac
  1237. eval with_$ac_useropt=\$ac_optarg ;;
  1238. -without-* | --without-*)
  1239. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1240. # Reject names that are not valid shell variable names.
  1241. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1242. as_fn_error $? "invalid package name: $ac_useropt"
  1243. ac_useropt_orig=$ac_useropt
  1244. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1245. case $ac_user_opts in
  1246. *"
  1247. "with_$ac_useropt"
  1248. "*) ;;
  1249. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1250. ac_unrecognized_sep=', ';;
  1251. esac
  1252. eval with_$ac_useropt=no ;;
  1253. --x)
  1254. # Obsolete; use --with-x.
  1255. with_x=yes ;;
  1256. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1257. | --x-incl | --x-inc | --x-in | --x-i)
  1258. ac_prev=x_includes ;;
  1259. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1260. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1261. x_includes=$ac_optarg ;;
  1262. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1263. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1264. ac_prev=x_libraries ;;
  1265. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1266. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1267. x_libraries=$ac_optarg ;;
  1268. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1269. Try \`$0 --help' for more information"
  1270. ;;
  1271. *=*)
  1272. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1273. # Reject names that are not valid shell variable names.
  1274. case $ac_envvar in #(
  1275. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1276. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1277. esac
  1278. eval $ac_envvar=\$ac_optarg
  1279. export $ac_envvar ;;
  1280. *)
  1281. # FIXME: should be removed in autoconf 3.0.
  1282. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1283. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1284. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1285. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1286. ;;
  1287. esac
  1288. done
  1289. if test -n "$ac_prev"; then
  1290. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1291. as_fn_error $? "missing argument to $ac_option"
  1292. fi
  1293. if test -n "$ac_unrecognized_opts"; then
  1294. case $enable_option_checking in
  1295. no) ;;
  1296. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1297. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1298. esac
  1299. fi
  1300. # Check all directory arguments for consistency.
  1301. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1302. datadir sysconfdir sharedstatedir localstatedir includedir \
  1303. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1304. libdir localedir mandir
  1305. do
  1306. eval ac_val=\$$ac_var
  1307. # Remove trailing slashes.
  1308. case $ac_val in
  1309. */ )
  1310. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1311. eval $ac_var=\$ac_val;;
  1312. esac
  1313. # Be sure to have absolute directory names.
  1314. case $ac_val in
  1315. [\\/$]* | ?:[\\/]* ) continue;;
  1316. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1317. esac
  1318. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1319. done
  1320. # There might be people who depend on the old broken behavior: `$host'
  1321. # used to hold the argument of --host etc.
  1322. # FIXME: To remove some day.
  1323. build=$build_alias
  1324. host=$host_alias
  1325. target=$target_alias
  1326. # FIXME: To remove some day.
  1327. if test "x$host_alias" != x; then
  1328. if test "x$build_alias" = x; then
  1329. cross_compiling=maybe
  1330. elif test "x$build_alias" != "x$host_alias"; then
  1331. cross_compiling=yes
  1332. fi
  1333. fi
  1334. ac_tool_prefix=
  1335. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1336. test "$silent" = yes && exec 6>/dev/null
  1337. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1338. ac_ls_di=`ls -di .` &&
  1339. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1340. as_fn_error $? "working directory cannot be determined"
  1341. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1342. as_fn_error $? "pwd does not report name of working directory"
  1343. # Find the source files, if location was not specified.
  1344. if test -z "$srcdir"; then
  1345. ac_srcdir_defaulted=yes
  1346. # Try the directory containing this script, then the parent directory.
  1347. ac_confdir=`$as_dirname -- "$as_myself" ||
  1348. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1349. X"$as_myself" : 'X\(//\)[^/]' \| \
  1350. X"$as_myself" : 'X\(//\)$' \| \
  1351. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1352. $as_echo X"$as_myself" |
  1353. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1354. s//\1/
  1355. q
  1356. }
  1357. /^X\(\/\/\)[^/].*/{
  1358. s//\1/
  1359. q
  1360. }
  1361. /^X\(\/\/\)$/{
  1362. s//\1/
  1363. q
  1364. }
  1365. /^X\(\/\).*/{
  1366. s//\1/
  1367. q
  1368. }
  1369. s/.*/./; q'`
  1370. srcdir=$ac_confdir
  1371. if test ! -r "$srcdir/$ac_unique_file"; then
  1372. srcdir=..
  1373. fi
  1374. else
  1375. ac_srcdir_defaulted=no
  1376. fi
  1377. if test ! -r "$srcdir/$ac_unique_file"; then
  1378. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1379. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1380. fi
  1381. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1382. ac_abs_confdir=`(
  1383. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1384. pwd)`
  1385. # When building in place, set srcdir=.
  1386. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1387. srcdir=.
  1388. fi
  1389. # Remove unnecessary trailing slashes from srcdir.
  1390. # Double slashes in file names in object file debugging info
  1391. # mess up M-x gdb in Emacs.
  1392. case $srcdir in
  1393. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1394. esac
  1395. for ac_var in $ac_precious_vars; do
  1396. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1397. eval ac_env_${ac_var}_value=\$${ac_var}
  1398. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1399. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1400. done
  1401. #
  1402. # Report the --help message.
  1403. #
  1404. if test "$ac_init_help" = "long"; then
  1405. # Omit some internal or obsolete options to make the list less imposing.
  1406. # This message is too long to be a string in the A/UX 3.1 sh.
  1407. cat <<_ACEOF
  1408. \`configure' configures dirsrv 1.0 to adapt to many kinds of systems.
  1409. Usage: $0 [OPTION]... [VAR=VALUE]...
  1410. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1411. VAR=VALUE. See below for descriptions of some of the useful variables.
  1412. Defaults for the options are specified in brackets.
  1413. Configuration:
  1414. -h, --help display this help and exit
  1415. --help=short display options specific to this package
  1416. --help=recursive display the short help of all the included packages
  1417. -V, --version display version information and exit
  1418. -q, --quiet, --silent do not print \`checking ...' messages
  1419. --cache-file=FILE cache test results in FILE [disabled]
  1420. -C, --config-cache alias for \`--cache-file=config.cache'
  1421. -n, --no-create do not create output files
  1422. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1423. Installation directories:
  1424. --prefix=PREFIX install architecture-independent files in PREFIX
  1425. [$ac_default_prefix]
  1426. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1427. [PREFIX]
  1428. By default, \`make install' will install all the files in
  1429. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1430. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1431. for instance \`--prefix=\$HOME'.
  1432. For better control, use the options below.
  1433. Fine tuning of the installation directories:
  1434. --bindir=DIR user executables [EPREFIX/bin]
  1435. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1436. --libexecdir=DIR program executables [EPREFIX/libexec]
  1437. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1438. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1439. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1440. --libdir=DIR object code libraries [EPREFIX/lib]
  1441. --includedir=DIR C header files [PREFIX/include]
  1442. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1443. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1444. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1445. --infodir=DIR info documentation [DATAROOTDIR/info]
  1446. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1447. --mandir=DIR man documentation [DATAROOTDIR/man]
  1448. --docdir=DIR documentation root [DATAROOTDIR/doc/dirsrv]
  1449. --htmldir=DIR html documentation [DOCDIR]
  1450. --dvidir=DIR dvi documentation [DOCDIR]
  1451. --pdfdir=DIR pdf documentation [DOCDIR]
  1452. --psdir=DIR ps documentation [DOCDIR]
  1453. _ACEOF
  1454. cat <<\_ACEOF
  1455. Program names:
  1456. --program-prefix=PREFIX prepend PREFIX to installed program names
  1457. --program-suffix=SUFFIX append SUFFIX to installed program names
  1458. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1459. System types:
  1460. --build=BUILD configure for building on BUILD [guessed]
  1461. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1462. _ACEOF
  1463. fi
  1464. if test -n "$ac_init_help"; then
  1465. case $ac_init_help in
  1466. short | recursive ) echo "Configuration of dirsrv 1.0:";;
  1467. esac
  1468. cat <<\_ACEOF
  1469. Optional Features:
  1470. --disable-option-checking ignore unrecognized --enable/--with options
  1471. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1472. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1473. --enable-silent-rules less verbose build output (undo: "make V=1")
  1474. --disable-silent-rules verbose build output (undo: "make V=0")
  1475. --enable-maintainer-mode
  1476. enable make rules and dependencies not useful (and
  1477. sometimes confusing) to the casual installer
  1478. --enable-dependency-tracking
  1479. do not reject slow dependency extractors
  1480. --disable-dependency-tracking
  1481. speeds up one-time build
  1482. --enable-static[=PKGS] build static libraries [default=no]
  1483. --enable-shared[=PKGS] build shared libraries [default=yes]
  1484. --enable-fast-install[=PKGS]
  1485. optimize for fast installation [default=yes]
  1486. --disable-libtool-lock avoid locking (might break parallel builds)
  1487. --enable-debug Enable debug features (default: no)
  1488. --enable-bundle Enable bundled dependencies (default: no)
  1489. --enable-pam-passthru enable the PAM passthrough auth plugin (default:
  1490. yes)
  1491. --enable-dna enable the Distributed Numeric Assignment (DNA)
  1492. plugin (default: yes)
  1493. --enable-ldapi enable LDAP over unix domain socket (LDAPI) support
  1494. (default: yes)
  1495. --enable-autobind enable auto bind over unix domain socket (LDAPI)
  1496. support (default: no)
  1497. --enable-auto-dn-suffix enable auto bind with auto dn suffix over unix
  1498. domain socket (LDAPI) support (default: no)
  1499. --enable-bitwise enable the bitwise matching rule plugin (default:
  1500. yes)
  1501. --enable-presence enable the presence plugin (default: no)
  1502. --enable-acctpolicy enable the account policy plugin (default: yes)
  1503. --enable-posix-winsync enable support for POSIX user/group attributes in
  1504. winsync (default: yes)
  1505. --enable-nunc-stans enable support for nunc-stans event framework
  1506. (default: no)
  1507. Optional Packages:
  1508. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1509. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1510. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1511. both]
  1512. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1513. --with-sysroot=DIR Search for dependent libraries within DIR
  1514. (or the compiler's sysroot if not specified).
  1515. --with-fhs Use FHS layout
  1516. --with-fhs-opt Use FHS optional layout
  1517. --with-tmpfiles-d=PATH system uses tmpfiles.d to handle temp files/dirs
  1518. (default: $with_tmpfiles_d)
  1519. --with-perldir=PATH Directory for perl)
  1520. --with-pythondir=PATH Directory for python)
  1521. --with-systemdsystemunitdir=PATH
  1522. Directory for systemd service files (default:
  1523. $with_systemdsystemunitdir)
  1524. --with-systemdsystemconfdir=PATH
  1525. Directory for systemd service files (default:
  1526. $with_systemdsystemconfdir)
  1527. --with-systemdgroupname=NAME
  1528. Name of group target for all instances (default:
  1529. $with_systemdgroupname)
  1530. --with-instconfigdir=/path
  1531. Base directory for instance specific writable
  1532. configuration directories (default
  1533. $sysconfdir/$PACKAGE_NAME)
  1534. --with-initddir=/path Absolute path (not relative like some of the other
  1535. options) that should contain the SysV init scripts
  1536. (default '$(sysconfdir)/rc.d')
  1537. --with-nspr[=PATH] Netscape Portable Runtime (NSPR) directory
  1538. --with-nspr-inc=PATH Netscape Portable Runtime (NSPR) include directory
  1539. --with-nspr-lib=PATH Netscape Portable Runtime (NSPR) library directory
  1540. --with-nss[=PATH] Network Security Services (NSS) directory
  1541. --with-nss-inc=PATH Network Security Services (NSS) include directory
  1542. --with-nss-lib=PATH Network Security Services (NSS) library directory
  1543. --with-openldap[=PATH] Use OpenLDAP - optional PATH is path to OpenLDAP SDK
  1544. --with-openldap-inc=PATH
  1545. OpenLDAP SDK include directory
  1546. --with-openldap-lib=PATH
  1547. OpenLDAP SDK library directory
  1548. --with-openldap-bin=PATH
  1549. OpenLDAP SDK binary directory
  1550. --with-ldapsdk[=PATH] Mozilla LDAP SDK directory
  1551. --with-ldapsdk-inc=PATH Mozilla LDAP SDK include directory
  1552. --with-ldapsdk-lib=PATH Mozilla LDAP SDK library directory
  1553. --with-ldapsdk-bin=PATH Mozilla LDAP SDK binary directory
  1554. --with-db[=PATH] Berkeley DB directory
  1555. --with-db-inc=PATH Berkeley DB include file directory
  1556. --with-db-lib=PATH Berkeley DB library directory
  1557. --with-sasl[=PATH] Use SASL from supplied path
  1558. --with-sasl-inc=PATH SASL include file directory
  1559. --with-sasl-lib=PATH SASL library directory
  1560. --with-svrcore[=PATH] Use system installed SVRCORE - optional path for
  1561. SVRCORE
  1562. --with-svrcore-inc=PATH SVRCORE include file directory
  1563. --with-svrcore-lib=PATH SVRCORE library directory
  1564. --with-icu[=PATH] ICU directory
  1565. --with-icu-inc=PATH ICU include directory
  1566. --with-icu-lib=PATH ICU library directory
  1567. --with-icu-bin=PATH ICU binary directory
  1568. --with-netsnmp[=PATH] Net-SNMP directory
  1569. --with-netsnmp-inc=PATH Net-SNMP include directory
  1570. --with-netsnmp-lib=PATH Net-SNMP library directory
  1571. --with-kerberos[=PATH] Use the kerberos API in the server directly - allows
  1572. the server to authenticate directly with a keytab -
  1573. otherwise, SASL/GSSAPI auth depends on underlying
  1574. SASL libraries and external kinit with a keytab - if
  1575. PATH is not specified, look for kerberos in the
  1576. system locations. This will attempt to use
  1577. krb5-config from the PATH to find the libs and
  1578. include dirs - you can specify KRB5_CONFIG_BIN to
  1579. specify a different filename or absolute path. If
  1580. krb5-config does not work, this will attempt to look
  1581. in various system directories
  1582. --with-kerberos-inc=PATH
  1583. Allows you to explicitly set the directory
  1584. containing the kerberos include files - implies use
  1585. of kerberos
  1586. --with-kerberos-lib=PATH
  1587. Allows you to explicitly set the directory
  1588. containing the kerberos libraries - implies use of
  1589. kerberos
  1590. --with-pcre[=PATH] Perl Compatible Regular Expression directory
  1591. --with-selinux Support SELinux policy
  1592. --with-nunc-stans[=PATH]
  1593. nunc-stans directory
  1594. --with-nunc-stans-inc=PATH
  1595. nunc-stans include file directory
  1596. --with-nunc-stans-lib=PATH
  1597. nunc-stans library directory
  1598. Some influential environment variables:
  1599. CXX C++ compiler command
  1600. CXXFLAGS C++ compiler flags
  1601. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1602. nonstandard directory <lib dir>
  1603. LIBS libraries to pass to the linker, e.g. -l<library>
  1604. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1605. you have headers in a nonstandard directory <include dir>
  1606. CC C compiler command
  1607. CFLAGS C compiler flags
  1608. CCAS assembler compiler command (defaults to CC)
  1609. CCASFLAGS assembler compiler flags (defaults to CFLAGS)
  1610. CPP C preprocessor
  1611. CXXCPP C++ preprocessor
  1612. PKG_CONFIG path to pkg-config utility
  1613. PKG_CONFIG_PATH
  1614. directories to add to pkg-config's search path
  1615. PKG_CONFIG_LIBDIR
  1616. path overriding pkg-config's built-in search path
  1617. Use these variables to override the choices made by `configure' or to help
  1618. it to find libraries and programs with nonstandard names/locations.
  1619. Report bugs to <http://bugzilla.redhat.com/>.
  1620. _ACEOF
  1621. ac_status=$?
  1622. fi
  1623. if test "$ac_init_help" = "recursive"; then
  1624. # If there are subdirs, report their specific --help.
  1625. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1626. test -d "$ac_dir" ||
  1627. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1628. continue
  1629. ac_builddir=.
  1630. case "$ac_dir" in
  1631. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1632. *)
  1633. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1634. # A ".." for each directory in $ac_dir_suffix.
  1635. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1636. case $ac_top_builddir_sub in
  1637. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1638. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1639. esac ;;
  1640. esac
  1641. ac_abs_top_builddir=$ac_pwd
  1642. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1643. # for backward compatibility:
  1644. ac_top_builddir=$ac_top_build_prefix
  1645. case $srcdir in
  1646. .) # We are building in place.
  1647. ac_srcdir=.
  1648. ac_top_srcdir=$ac_top_builddir_sub
  1649. ac_abs_top_srcdir=$ac_pwd ;;
  1650. [\\/]* | ?:[\\/]* ) # Absolute name.
  1651. ac_srcdir=$srcdir$ac_dir_suffix;
  1652. ac_top_srcdir=$srcdir
  1653. ac_abs_top_srcdir=$srcdir ;;
  1654. *) # Relative name.
  1655. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1656. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1657. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1658. esac
  1659. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1660. cd "$ac_dir" || { ac_status=$?; continue; }
  1661. # Check for guested configure.
  1662. if test -f "$ac_srcdir/configure.gnu"; then
  1663. echo &&
  1664. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1665. elif test -f "$ac_srcdir/configure"; then
  1666. echo &&
  1667. $SHELL "$ac_srcdir/configure" --help=recursive
  1668. else
  1669. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1670. fi || ac_status=$?
  1671. cd "$ac_pwd" || { ac_status=$?; break; }
  1672. done
  1673. fi
  1674. test -n "$ac_init_help" && exit $ac_status
  1675. if $ac_init_version; then
  1676. cat <<\_ACEOF
  1677. dirsrv configure 1.0
  1678. generated by GNU Autoconf 2.69
  1679. Copyright (C) 2012 Free Software Foundation, Inc.
  1680. This configure script is free software; the Free Software Foundation
  1681. gives unlimited permission to copy, distribute and modify it.
  1682. _ACEOF
  1683. exit
  1684. fi
  1685. ## ------------------------ ##
  1686. ## Autoconf initialization. ##
  1687. ## ------------------------ ##
  1688. # ac_fn_cxx_try_compile LINENO
  1689. # ----------------------------
  1690. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1691. ac_fn_cxx_try_compile ()
  1692. {
  1693. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1694. rm -f conftest.$ac_objext
  1695. if { { ac_try="$ac_compile"
  1696. case "(($ac_try" in
  1697. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1698. *) ac_try_echo=$ac_try;;
  1699. esac
  1700. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1701. $as_echo "$ac_try_echo"; } >&5
  1702. (eval "$ac_compile") 2>conftest.err
  1703. ac_status=$?
  1704. if test -s conftest.err; then
  1705. grep -v '^ *+' conftest.err >conftest.er1
  1706. cat conftest.er1 >&5
  1707. mv -f conftest.er1 conftest.err
  1708. fi
  1709. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1710. test $ac_status = 0; } && {
  1711. test -z "$ac_cxx_werror_flag" ||
  1712. test ! -s conftest.err
  1713. } && test -s conftest.$ac_objext; then :
  1714. ac_retval=0
  1715. else
  1716. $as_echo "$as_me: failed program was:" >&5
  1717. sed 's/^/| /' conftest.$ac_ext >&5
  1718. ac_retval=1
  1719. fi
  1720. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1721. as_fn_set_status $ac_retval
  1722. } # ac_fn_cxx_try_compile
  1723. # ac_fn_c_try_compile LINENO
  1724. # --------------------------
  1725. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1726. ac_fn_c_try_compile ()
  1727. {
  1728. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1729. rm -f conftest.$ac_objext
  1730. if { { ac_try="$ac_compile"
  1731. case "(($ac_try" in
  1732. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1733. *) ac_try_echo=$ac_try;;
  1734. esac
  1735. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1736. $as_echo "$ac_try_echo"; } >&5
  1737. (eval "$ac_compile") 2>conftest.err
  1738. ac_status=$?
  1739. if test -s conftest.err; then
  1740. grep -v '^ *+' conftest.err >conftest.er1
  1741. cat conftest.er1 >&5
  1742. mv -f conftest.er1 conftest.err
  1743. fi
  1744. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1745. test $ac_status = 0; } && {
  1746. test -z "$ac_c_werror_flag" ||
  1747. test ! -s conftest.err
  1748. } && test -s conftest.$ac_objext; then :
  1749. ac_retval=0
  1750. else
  1751. $as_echo "$as_me: failed program was:" >&5
  1752. sed 's/^/| /' conftest.$ac_ext >&5
  1753. ac_retval=1
  1754. fi
  1755. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1756. as_fn_set_status $ac_retval
  1757. } # ac_fn_c_try_compile
  1758. # ac_fn_c_try_link LINENO
  1759. # -----------------------
  1760. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1761. ac_fn_c_try_link ()
  1762. {
  1763. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1764. rm -f conftest.$ac_objext conftest$ac_exeext
  1765. if { { ac_try="$ac_link"
  1766. case "(($ac_try" in
  1767. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1768. *) ac_try_echo=$ac_try;;
  1769. esac
  1770. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1771. $as_echo "$ac_try_echo"; } >&5
  1772. (eval "$ac_link") 2>conftest.err
  1773. ac_status=$?
  1774. if test -s conftest.err; then
  1775. grep -v '^ *+' conftest.err >conftest.er1
  1776. cat conftest.er1 >&5
  1777. mv -f conftest.er1 conftest.err
  1778. fi
  1779. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1780. test $ac_status = 0; } && {
  1781. test -z "$ac_c_werror_flag" ||
  1782. test ! -s conftest.err
  1783. } && test -s conftest$ac_exeext && {
  1784. test "$cross_compiling" = yes ||
  1785. test -x conftest$ac_exeext
  1786. }; then :
  1787. ac_retval=0
  1788. else
  1789. $as_echo "$as_me: failed program was:" >&5
  1790. sed 's/^/| /' conftest.$ac_ext >&5
  1791. ac_retval=1
  1792. fi
  1793. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1794. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1795. # interfere with the next link command; also delete a directory that is
  1796. # left behind by Apple's compiler. We do this before executing the actions.
  1797. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1798. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1799. as_fn_set_status $ac_retval
  1800. } # ac_fn_c_try_link
  1801. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1802. # -------------------------------------------------------
  1803. # Tests whether HEADER exists and can be compiled using the include files in
  1804. # INCLUDES, setting the cache variable VAR accordingly.
  1805. ac_fn_c_check_header_compile ()
  1806. {
  1807. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1808. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1809. $as_echo_n "checking for $2... " >&6; }
  1810. if eval \${$3+:} false; then :
  1811. $as_echo_n "(cached) " >&6
  1812. else
  1813. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1814. /* end confdefs.h. */
  1815. $4
  1816. #include <$2>
  1817. _ACEOF
  1818. if ac_fn_c_try_compile "$LINENO"; then :
  1819. eval "$3=yes"
  1820. else
  1821. eval "$3=no"
  1822. fi
  1823. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1824. fi
  1825. eval ac_res=\$$3
  1826. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1827. $as_echo "$ac_res" >&6; }
  1828. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1829. } # ac_fn_c_check_header_compile
  1830. # ac_fn_c_try_cpp LINENO
  1831. # ----------------------
  1832. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1833. ac_fn_c_try_cpp ()
  1834. {
  1835. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1836. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1837. case "(($ac_try" in
  1838. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1839. *) ac_try_echo=$ac_try;;
  1840. esac
  1841. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1842. $as_echo "$ac_try_echo"; } >&5
  1843. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1844. ac_status=$?
  1845. if test -s conftest.err; then
  1846. grep -v '^ *+' conftest.err >conftest.er1
  1847. cat conftest.er1 >&5
  1848. mv -f conftest.er1 conftest.err
  1849. fi
  1850. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1851. test $ac_status = 0; } > conftest.i && {
  1852. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1853. test ! -s conftest.err
  1854. }; then :
  1855. ac_retval=0
  1856. else
  1857. $as_echo "$as_me: failed program was:" >&5
  1858. sed 's/^/| /' conftest.$ac_ext >&5
  1859. ac_retval=1
  1860. fi
  1861. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1862. as_fn_set_status $ac_retval
  1863. } # ac_fn_c_try_cpp
  1864. # ac_fn_c_try_run LINENO
  1865. # ----------------------
  1866. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1867. # that executables *can* be run.
  1868. ac_fn_c_try_run ()
  1869. {
  1870. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1871. if { { ac_try="$ac_link"
  1872. case "(($ac_try" in
  1873. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1874. *) ac_try_echo=$ac_try;;
  1875. esac
  1876. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1877. $as_echo "$ac_try_echo"; } >&5
  1878. (eval "$ac_link") 2>&5
  1879. ac_status=$?
  1880. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1881. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1882. { { case "(($ac_try" in
  1883. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1884. *) ac_try_echo=$ac_try;;
  1885. esac
  1886. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1887. $as_echo "$ac_try_echo"; } >&5
  1888. (eval "$ac_try") 2>&5
  1889. ac_status=$?
  1890. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1891. test $ac_status = 0; }; }; then :
  1892. ac_retval=0
  1893. else
  1894. $as_echo "$as_me: program exited with status $ac_status" >&5
  1895. $as_echo "$as_me: failed program was:" >&5
  1896. sed 's/^/| /' conftest.$ac_ext >&5
  1897. ac_retval=$ac_status
  1898. fi
  1899. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1900. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1901. as_fn_set_status $ac_retval
  1902. } # ac_fn_c_try_run
  1903. # ac_fn_c_check_func LINENO FUNC VAR
  1904. # ----------------------------------
  1905. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1906. ac_fn_c_check_func ()
  1907. {
  1908. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1909. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1910. $as_echo_n "checking for $2... " >&6; }
  1911. if eval \${$3+:} false; then :
  1912. $as_echo_n "(cached) " >&6
  1913. else
  1914. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1915. /* end confdefs.h. */
  1916. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1917. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1918. #define $2 innocuous_$2
  1919. /* System header to define __stub macros and hopefully few prototypes,
  1920. which can conflict with char $2 (); below.
  1921. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1922. <limits.h> exists even on freestanding compilers. */
  1923. #ifdef __STDC__
  1924. # include <limits.h>
  1925. #else
  1926. # include <assert.h>
  1927. #endif
  1928. #undef $2
  1929. /* Override any GCC internal prototype to avoid an error.
  1930. Use char because int might match the return type of a GCC
  1931. builtin and then its argument prototype would still apply. */
  1932. #ifdef __cplusplus
  1933. extern "C"
  1934. #endif
  1935. char $2 ();
  1936. /* The GNU C library defines this for functions which it implements
  1937. to always fail with ENOSYS. Some functions are actually named
  1938. something starting with __ and the normal name is an alias. */
  1939. #if defined __stub_$2 || defined __stub___$2
  1940. choke me
  1941. #endif
  1942. int
  1943. main ()
  1944. {
  1945. return $2 ();
  1946. ;
  1947. return 0;
  1948. }
  1949. _ACEOF
  1950. if ac_fn_c_try_link "$LINENO"; then :
  1951. eval "$3=yes"
  1952. else
  1953. eval "$3=no"
  1954. fi
  1955. rm -f core conftest.err conftest.$ac_objext \
  1956. conftest$ac_exeext conftest.$ac_ext
  1957. fi
  1958. eval ac_res=\$$3
  1959. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1960. $as_echo "$ac_res" >&6; }
  1961. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1962. } # ac_fn_c_check_func
  1963. # ac_fn_cxx_try_cpp LINENO
  1964. # ------------------------
  1965. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1966. ac_fn_cxx_try_cpp ()
  1967. {
  1968. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1969. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1970. case "(($ac_try" in
  1971. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1972. *) ac_try_echo=$ac_try;;
  1973. esac
  1974. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1975. $as_echo "$ac_try_echo"; } >&5
  1976. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1977. ac_status=$?
  1978. if test -s conftest.err; then
  1979. grep -v '^ *+' conftest.err >conftest.er1
  1980. cat conftest.er1 >&5
  1981. mv -f conftest.er1 conftest.err
  1982. fi
  1983. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1984. test $ac_status = 0; } > conftest.i && {
  1985. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1986. test ! -s conftest.err
  1987. }; then :
  1988. ac_retval=0
  1989. else
  1990. $as_echo "$as_me: failed program was:" >&5
  1991. sed 's/^/| /' conftest.$ac_ext >&5
  1992. ac_retval=1
  1993. fi
  1994. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1995. as_fn_set_status $ac_retval
  1996. } # ac_fn_cxx_try_cpp
  1997. # ac_fn_cxx_try_link LINENO
  1998. # -------------------------
  1999. # Try to link conftest.$ac_ext, and return whether this succeeded.
  2000. ac_fn_cxx_try_link ()
  2001. {
  2002. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2003. rm -f conftest.$ac_objext conftest$ac_exeext
  2004. if { { ac_try="$ac_link"
  2005. case "(($ac_try" in
  2006. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2007. *) ac_try_echo=$ac_try;;
  2008. esac
  2009. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2010. $as_echo "$ac_try_echo"; } >&5
  2011. (eval "$ac_link") 2>conftest.err
  2012. ac_status=$?
  2013. if test -s conftest.err; then
  2014. grep -v '^ *+' conftest.err >conftest.er1
  2015. cat conftest.er1 >&5
  2016. mv -f conftest.er1 conftest.err
  2017. fi
  2018. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2019. test $ac_status = 0; } && {
  2020. test -z "$ac_cxx_werror_flag" ||
  2021. test ! -s conftest.err
  2022. } && test -s conftest$ac_exeext && {
  2023. test "$cross_compiling" = yes ||
  2024. test -x conftest$ac_exeext
  2025. }; then :
  2026. ac_retval=0
  2027. else
  2028. $as_echo "$as_me: failed program was:" >&5
  2029. sed 's/^/| /' conftest.$ac_ext >&5
  2030. ac_retval=1
  2031. fi
  2032. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  2033. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  2034. # interfere with the next link command; also delete a directory that is
  2035. # left behind by Apple's compiler. We do this before executing the actions.
  2036. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2037. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2038. as_fn_set_status $ac_retval
  2039. } # ac_fn_cxx_try_link
  2040. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  2041. # -------------------------------------------------------
  2042. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  2043. # the include files in INCLUDES and setting the cache variable VAR
  2044. # accordingly.
  2045. ac_fn_c_check_header_mongrel ()
  2046. {
  2047. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2048. if eval \${$3+:} false; then :
  2049. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2050. $as_echo_n "checking for $2... " >&6; }
  2051. if eval \${$3+:} false; then :
  2052. $as_echo_n "(cached) " >&6
  2053. fi
  2054. eval ac_res=\$$3
  2055. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2056. $as_echo "$ac_res" >&6; }
  2057. else
  2058. # Is the header compilable?
  2059. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  2060. $as_echo_n "checking $2 usability... " >&6; }
  2061. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2062. /* end confdefs.h. */
  2063. $4
  2064. #include <$2>
  2065. _ACEOF
  2066. if ac_fn_c_try_compile "$LINENO"; then :
  2067. ac_header_compiler=yes
  2068. else
  2069. ac_header_compiler=no
  2070. fi
  2071. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2072. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  2073. $as_echo "$ac_header_compiler" >&6; }
  2074. # Is the header present?
  2075. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  2076. $as_echo_n "checking $2 presence... " >&6; }
  2077. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2078. /* end confdefs.h. */
  2079. #include <$2>
  2080. _ACEOF
  2081. if ac_fn_c_try_cpp "$LINENO"; then :
  2082. ac_header_preproc=yes
  2083. else
  2084. ac_header_preproc=no
  2085. fi
  2086. rm -f conftest.err conftest.i conftest.$ac_ext
  2087. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  2088. $as_echo "$ac_header_preproc" >&6; }
  2089. # So? What about this header?
  2090. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  2091. yes:no: )
  2092. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  2093. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  2094. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2095. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2096. ;;
  2097. no:yes:* )
  2098. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  2099. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  2100. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  2101. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  2102. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  2103. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  2104. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  2105. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  2106. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2107. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2108. ( $as_echo "## ------------------------------------------ ##
  2109. ## Report this to http://bugzilla.redhat.com/ ##
  2110. ## ------------------------------------------ ##"
  2111. ) | sed "s/^/$as_me: WARNING: /" >&2
  2112. ;;
  2113. esac
  2114. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2115. $as_echo_n "checking for $2... " >&6; }
  2116. if eval \${$3+:} false; then :
  2117. $as_echo_n "(cached) " >&6
  2118. else
  2119. eval "$3=\$ac_header_compiler"
  2120. fi
  2121. eval ac_res=\$$3
  2122. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2123. $as_echo "$ac_res" >&6; }
  2124. fi
  2125. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2126. } # ac_fn_c_check_header_mongrel
  2127. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  2128. # -------------------------------------------
  2129. # Tests whether TYPE exists after having included INCLUDES, setting cache
  2130. # variable VAR accordingly.
  2131. ac_fn_c_check_type ()
  2132. {
  2133. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2134. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2135. $as_echo_n "checking for $2... " >&6; }
  2136. if eval \${$3+:} false; then :
  2137. $as_echo_n "(cached) " >&6
  2138. else
  2139. eval "$3=no"
  2140. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2141. /* end confdefs.h. */
  2142. $4
  2143. int
  2144. main ()
  2145. {
  2146. if (sizeof ($2))
  2147. return 0;
  2148. ;
  2149. return 0;
  2150. }
  2151. _ACEOF
  2152. if ac_fn_c_try_compile "$LINENO"; then :
  2153. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2154. /* end confdefs.h. */
  2155. $4
  2156. int
  2157. main ()
  2158. {
  2159. if (sizeof (($2)))
  2160. return 0;
  2161. ;
  2162. return 0;
  2163. }
  2164. _ACEOF
  2165. if ac_fn_c_try_compile "$LINENO"; then :
  2166. else
  2167. eval "$3=yes"
  2168. fi
  2169. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2170. fi
  2171. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2172. fi
  2173. eval ac_res=\$$3
  2174. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2175. $as_echo "$ac_res" >&6; }
  2176. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2177. } # ac_fn_c_check_type
  2178. # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
  2179. # ---------------------------------------------
  2180. # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
  2181. # accordingly.
  2182. ac_fn_c_check_decl ()
  2183. {
  2184. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2185. as_decl_name=`echo $2|sed 's/ *(.*//'`
  2186. as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
  2187. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
  2188. $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
  2189. if eval \${$3+:} false; then :
  2190. $as_echo_n "(cached) " >&6
  2191. else
  2192. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2193. /* end confdefs.h. */
  2194. $4
  2195. int
  2196. main ()
  2197. {
  2198. #ifndef $as_decl_name
  2199. #ifdef __cplusplus
  2200. (void) $as_decl_use;
  2201. #else
  2202. (void) $as_decl_name;
  2203. #endif
  2204. #endif
  2205. ;
  2206. return 0;
  2207. }
  2208. _ACEOF
  2209. if ac_fn_c_try_compile "$LINENO"; then :
  2210. eval "$3=yes"
  2211. else
  2212. eval "$3=no"
  2213. fi
  2214. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2215. fi
  2216. eval ac_res=\$$3
  2217. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2218. $as_echo "$ac_res" >&6; }
  2219. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2220. } # ac_fn_c_check_decl
  2221. cat >config.log <<_ACEOF
  2222. This file contains any messages produced by compilers while
  2223. running configure, to aid debugging if configure makes a mistake.
  2224. It was created by dirsrv $as_me 1.0, which was
  2225. generated by GNU Autoconf 2.69. Invocation command line was
  2226. $ $0 $@
  2227. _ACEOF
  2228. exec 5>>config.log
  2229. {
  2230. cat <<_ASUNAME
  2231. ## --------- ##
  2232. ## Platform. ##
  2233. ## --------- ##
  2234. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2235. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2236. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2237. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2238. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2239. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2240. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2241. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2242. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2243. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2244. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2245. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2246. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2247. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2248. _ASUNAME
  2249. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2250. for as_dir in $PATH
  2251. do
  2252. IFS=$as_save_IFS
  2253. test -z "$as_dir" && as_dir=.
  2254. $as_echo "PATH: $as_dir"
  2255. done
  2256. IFS=$as_save_IFS
  2257. } >&5
  2258. cat >&5 <<_ACEOF
  2259. ## ----------- ##
  2260. ## Core tests. ##
  2261. ## ----------- ##
  2262. _ACEOF
  2263. # Keep a trace of the command line.
  2264. # Strip out --no-create and --no-recursion so they do not pile up.
  2265. # Strip out --silent because we don't want to record it for future runs.
  2266. # Also quote any args containing shell meta-characters.
  2267. # Make two passes to allow for proper duplicate-argument suppression.
  2268. ac_configure_args=
  2269. ac_configure_args0=
  2270. ac_configure_args1=
  2271. ac_must_keep_next=false
  2272. for ac_pass in 1 2
  2273. do
  2274. for ac_arg
  2275. do
  2276. case $ac_arg in
  2277. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2278. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2279. | -silent | --silent | --silen | --sile | --sil)
  2280. continue ;;
  2281. *\'*)
  2282. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2283. esac
  2284. case $ac_pass in
  2285. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2286. 2)
  2287. as_fn_append ac_configure_args1 " '$ac_arg'"
  2288. if test $ac_must_keep_next = true; then
  2289. ac_must_keep_next=false # Got value, back to normal.
  2290. else
  2291. case $ac_arg in
  2292. *=* | --config-cache | -C | -disable-* | --disable-* \
  2293. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2294. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2295. | -with-* | --with-* | -without-* | --without-* | --x)
  2296. case "$ac_configure_args0 " in
  2297. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2298. esac
  2299. ;;
  2300. -* ) ac_must_keep_next=true ;;
  2301. esac
  2302. fi
  2303. as_fn_append ac_configure_args " '$ac_arg'"
  2304. ;;
  2305. esac
  2306. done
  2307. done
  2308. { ac_configure_args0=; unset ac_configure_args0;}
  2309. { ac_configure_args1=; unset ac_configure_args1;}
  2310. # When interrupted or exit'd, cleanup temporary files, and complete
  2311. # config.log. We remove comments because anyway the quotes in there
  2312. # would cause problems or look ugly.
  2313. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2314. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2315. trap 'exit_status=$?
  2316. # Save into config.log some information that might help in debugging.
  2317. {
  2318. echo
  2319. $as_echo "## ---------------- ##
  2320. ## Cache variables. ##
  2321. ## ---------------- ##"
  2322. echo
  2323. # The following way of writing the cache mishandles newlines in values,
  2324. (
  2325. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2326. eval ac_val=\$$ac_var
  2327. case $ac_val in #(
  2328. *${as_nl}*)
  2329. case $ac_var in #(
  2330. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2331. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2332. esac
  2333. case $ac_var in #(
  2334. _ | IFS | as_nl) ;; #(
  2335. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2336. *) { eval $ac_var=; unset $ac_var;} ;;
  2337. esac ;;
  2338. esac
  2339. done
  2340. (set) 2>&1 |
  2341. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2342. *${as_nl}ac_space=\ *)
  2343. sed -n \
  2344. "s/'\''/'\''\\\\'\'''\''/g;
  2345. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2346. ;; #(
  2347. *)
  2348. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2349. ;;
  2350. esac |
  2351. sort
  2352. )
  2353. echo
  2354. $as_echo "## ----------------- ##
  2355. ## Output variables. ##
  2356. ## ----------------- ##"
  2357. echo
  2358. for ac_var in $ac_subst_vars
  2359. do
  2360. eval ac_val=\$$ac_var
  2361. case $ac_val in
  2362. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2363. esac
  2364. $as_echo "$ac_var='\''$ac_val'\''"
  2365. done | sort
  2366. echo
  2367. if test -n "$ac_subst_files"; then
  2368. $as_echo "## ------------------- ##
  2369. ## File substitutions. ##
  2370. ## ------------------- ##"
  2371. echo
  2372. for ac_var in $ac_subst_files
  2373. do
  2374. eval ac_val=\$$ac_var
  2375. case $ac_val in
  2376. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2377. esac
  2378. $as_echo "$ac_var='\''$ac_val'\''"
  2379. done | sort
  2380. echo
  2381. fi
  2382. if test -s confdefs.h; then
  2383. $as_echo "## ----------- ##
  2384. ## confdefs.h. ##
  2385. ## ----------- ##"
  2386. echo
  2387. cat confdefs.h
  2388. echo
  2389. fi
  2390. test "$ac_signal" != 0 &&
  2391. $as_echo "$as_me: caught signal $ac_signal"
  2392. $as_echo "$as_me: exit $exit_status"
  2393. } >&5
  2394. rm -f core *.core core.conftest.* &&
  2395. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2396. exit $exit_status
  2397. ' 0
  2398. for ac_signal in 1 2 13 15; do
  2399. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2400. done
  2401. ac_signal=0
  2402. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2403. rm -f -r conftest* confdefs.h
  2404. $as_echo "/* confdefs.h */" > confdefs.h
  2405. # Predefined preprocessor variables.
  2406. cat >>confdefs.h <<_ACEOF
  2407. #define PACKAGE_NAME "$PACKAGE_NAME"
  2408. _ACEOF
  2409. cat >>confdefs.h <<_ACEOF
  2410. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2411. _ACEOF
  2412. cat >>confdefs.h <<_ACEOF
  2413. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2414. _ACEOF
  2415. cat >>confdefs.h <<_ACEOF
  2416. #define PACKAGE_STRING "$PACKAGE_STRING"
  2417. _ACEOF
  2418. cat >>confdefs.h <<_ACEOF
  2419. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2420. _ACEOF
  2421. cat >>confdefs.h <<_ACEOF
  2422. #define PACKAGE_URL "$PACKAGE_URL"
  2423. _ACEOF
  2424. # Let the site file select an alternate cache file if it wants to.
  2425. # Prefer an explicitly selected file to automatically selected ones.
  2426. ac_site_file1=NONE
  2427. ac_site_file2=NONE
  2428. if test -n "$CONFIG_SITE"; then
  2429. # We do not want a PATH search for config.site.
  2430. case $CONFIG_SITE in #((
  2431. -*) ac_site_file1=./$CONFIG_SITE;;
  2432. */*) ac_site_file1=$CONFIG_SITE;;
  2433. *) ac_site_file1=./$CONFIG_SITE;;
  2434. esac
  2435. elif test "x$prefix" != xNONE; then
  2436. ac_site_file1=$prefix/share/config.site
  2437. ac_site_file2=$prefix/etc/config.site
  2438. else
  2439. ac_site_file1=$ac_default_prefix/share/config.site
  2440. ac_site_file2=$ac_default_prefix/etc/config.site
  2441. fi
  2442. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2443. do
  2444. test "x$ac_site_file" = xNONE && continue
  2445. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2446. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2447. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2448. sed 's/^/| /' "$ac_site_file" >&5
  2449. . "$ac_site_file" \
  2450. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2451. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2452. as_fn_error $? "failed to load site script $ac_site_file
  2453. See \`config.log' for more details" "$LINENO" 5; }
  2454. fi
  2455. done
  2456. if test -r "$cache_file"; then
  2457. # Some versions of bash will fail to source /dev/null (special files
  2458. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2459. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2460. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2461. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2462. case $cache_file in
  2463. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2464. *) . "./$cache_file";;
  2465. esac
  2466. fi
  2467. else
  2468. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2469. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2470. >$cache_file
  2471. fi
  2472. as_fn_append ac_header_list " stdlib.h"
  2473. as_fn_append ac_header_list " unistd.h"
  2474. as_fn_append ac_header_list " sys/param.h"
  2475. # Check that the precious variables saved in the cache have kept the same
  2476. # value.
  2477. ac_cache_corrupted=false
  2478. for ac_var in $ac_precious_vars; do
  2479. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2480. eval ac_new_set=\$ac_env_${ac_var}_set
  2481. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2482. eval ac_new_val=\$ac_env_${ac_var}_value
  2483. case $ac_old_set,$ac_new_set in
  2484. set,)
  2485. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2486. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2487. ac_cache_corrupted=: ;;
  2488. ,set)
  2489. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2490. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2491. ac_cache_corrupted=: ;;
  2492. ,);;
  2493. *)
  2494. if test "x$ac_old_val" != "x$ac_new_val"; then
  2495. # differences in whitespace do not lead to failure.
  2496. ac_old_val_w=`echo x $ac_old_val`
  2497. ac_new_val_w=`echo x $ac_new_val`
  2498. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2499. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2500. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2501. ac_cache_corrupted=:
  2502. else
  2503. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2504. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2505. eval $ac_var=\$ac_old_val
  2506. fi
  2507. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2508. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2509. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2510. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2511. fi;;
  2512. esac
  2513. # Pass precious variables to config.status.
  2514. if test "$ac_new_set" = set; then
  2515. case $ac_new_val in
  2516. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2517. *) ac_arg=$ac_var=$ac_new_val ;;
  2518. esac
  2519. case " $ac_configure_args " in
  2520. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2521. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2522. esac
  2523. fi
  2524. done
  2525. if $ac_cache_corrupted; then
  2526. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2527. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2528. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2529. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2530. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2531. fi
  2532. ## -------------------- ##
  2533. ## Main body of script. ##
  2534. ## -------------------- ##
  2535. ac_ext=c
  2536. ac_cpp='$CPP $CPPFLAGS'
  2537. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2538. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2539. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2540. # AC_CONFIG_HEADER must be called right after AC_INIT.
  2541. ac_config_headers="$ac_config_headers config.h"
  2542. # include the version information
  2543. . $srcdir/VERSION.sh
  2544. { $as_echo "$as_me:${as_lineno-$LINENO}: This is configure for $PACKAGE_TARNAME $PACKAGE_VERSION" >&5
  2545. $as_echo "$as_me: This is configure for $PACKAGE_TARNAME $PACKAGE_VERSION" >&6;}
  2546. cat >>confdefs.h <<_ACEOF
  2547. #define DS_PACKAGE_VERSION "$PACKAGE_VERSION"
  2548. _ACEOF
  2549. cat >>confdefs.h <<_ACEOF
  2550. #define DS_PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2551. _ACEOF
  2552. cat >>confdefs.h <<_ACEOF
  2553. #define DS_PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2554. _ACEOF
  2555. cat >>confdefs.h <<_ACEOF
  2556. #define DS_PACKAGE_STRING "$PACKAGE_STRING"
  2557. _ACEOF
  2558. am__api_version='1.13'
  2559. ac_aux_dir=
  2560. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2561. if test -f "$ac_dir/install-sh"; then
  2562. ac_aux_dir=$ac_dir
  2563. ac_install_sh="$ac_aux_dir/install-sh -c"
  2564. break
  2565. elif test -f "$ac_dir/install.sh"; then
  2566. ac_aux_dir=$ac_dir
  2567. ac_install_sh="$ac_aux_dir/install.sh -c"
  2568. break
  2569. elif test -f "$ac_dir/shtool"; then
  2570. ac_aux_dir=$ac_dir
  2571. ac_install_sh="$ac_aux_dir/shtool install -c"
  2572. break
  2573. fi
  2574. done
  2575. if test -z "$ac_aux_dir"; then
  2576. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2577. fi
  2578. # These three variables are undocumented and unsupported,
  2579. # and are intended to be withdrawn in a future Autoconf release.
  2580. # They can cause serious problems if a builder's source tree is in a directory
  2581. # whose full name contains unusual characters.
  2582. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2583. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2584. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2585. # Find a good install program. We prefer a C program (faster),
  2586. # so one script is as good as another. But avoid the broken or
  2587. # incompatible versions:
  2588. # SysV /etc/install, /usr/sbin/install
  2589. # SunOS /usr/etc/install
  2590. # IRIX /sbin/install
  2591. # AIX /bin/install
  2592. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2593. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2594. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2595. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2596. # OS/2's system install, which has a completely different semantic
  2597. # ./install, which can be erroneously created by make from ./install.sh.
  2598. # Reject install programs that cannot install multiple files.
  2599. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2600. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2601. if test -z "$INSTALL"; then
  2602. if ${ac_cv_path_install+:} false; then :
  2603. $as_echo_n "(cached) " >&6
  2604. else
  2605. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2606. for as_dir in $PATH
  2607. do
  2608. IFS=$as_save_IFS
  2609. test -z "$as_dir" && as_dir=.
  2610. # Account for people who put trailing slashes in PATH elements.
  2611. case $as_dir/ in #((
  2612. ./ | .// | /[cC]/* | \
  2613. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2614. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2615. /usr/ucb/* ) ;;
  2616. *)
  2617. # OSF1 and SCO ODT 3.0 have their own names for install.
  2618. # Don't use installbsd from OSF since it installs stuff as root
  2619. # by default.
  2620. for ac_prog in ginstall scoinst install; do
  2621. for ac_exec_ext in '' $ac_executable_extensions; do
  2622. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  2623. if test $ac_prog = install &&
  2624. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2625. # AIX install. It has an incompatible calling convention.
  2626. :
  2627. elif test $ac_prog = install &&
  2628. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2629. # program-specific install script used by HP pwplus--don't use.
  2630. :
  2631. else
  2632. rm -rf conftest.one conftest.two conftest.dir
  2633. echo one > conftest.one
  2634. echo two > conftest.two
  2635. mkdir conftest.dir
  2636. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2637. test -s conftest.one && test -s conftest.two &&
  2638. test -s conftest.dir/conftest.one &&
  2639. test -s conftest.dir/conftest.two
  2640. then
  2641. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2642. break 3
  2643. fi
  2644. fi
  2645. fi
  2646. done
  2647. done
  2648. ;;
  2649. esac
  2650. done
  2651. IFS=$as_save_IFS
  2652. rm -rf conftest.one conftest.two conftest.dir
  2653. fi
  2654. if test "${ac_cv_path_install+set}" = set; then
  2655. INSTALL=$ac_cv_path_install
  2656. else
  2657. # As a last resort, use the slow shell script. Don't cache a
  2658. # value for INSTALL within a source directory, because that will
  2659. # break other packages using the cache if that directory is
  2660. # removed, or if the value is a relative name.
  2661. INSTALL=$ac_install_sh
  2662. fi
  2663. fi
  2664. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2665. $as_echo "$INSTALL" >&6; }
  2666. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2667. # It thinks the first close brace ends the variable substitution.
  2668. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2669. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2670. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2671. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2672. $as_echo_n "checking whether build environment is sane... " >&6; }
  2673. # Reject unsafe characters in $srcdir or the absolute working directory
  2674. # name. Accept space and tab only in the latter.
  2675. am_lf='
  2676. '
  2677. case `pwd` in
  2678. *[\\\"\#\$\&\'\`$am_lf]*)
  2679. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  2680. esac
  2681. case $srcdir in
  2682. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2683. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  2684. esac
  2685. # Do 'set' in a subshell so we don't clobber the current shell's
  2686. # arguments. Must try -L first in case configure is actually a
  2687. # symlink; some systems play weird games with the mod time of symlinks
  2688. # (eg FreeBSD returns the mod time of the symlink's containing
  2689. # directory).
  2690. if (
  2691. am_has_slept=no
  2692. for am_try in 1 2; do
  2693. echo "timestamp, slept: $am_has_slept" > conftest.file
  2694. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2695. if test "$*" = "X"; then
  2696. # -L didn't work.
  2697. set X `ls -t "$srcdir/configure" conftest.file`
  2698. fi
  2699. if test "$*" != "X $srcdir/configure conftest.file" \
  2700. && test "$*" != "X conftest.file $srcdir/configure"; then
  2701. # If neither matched, then we have a broken ls. This can happen
  2702. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2703. # broken ls alias from the environment. This has actually
  2704. # happened. Such a system could not be considered "sane".
  2705. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  2706. alias in your environment" "$LINENO" 5
  2707. fi
  2708. if test "$2" = conftest.file || test $am_try -eq 2; then
  2709. break
  2710. fi
  2711. # Just in case.
  2712. sleep 1
  2713. am_has_slept=yes
  2714. done
  2715. test "$2" = conftest.file
  2716. )
  2717. then
  2718. # Ok.
  2719. :
  2720. else
  2721. as_fn_error $? "newly created file is older than distributed files!
  2722. Check your system clock" "$LINENO" 5
  2723. fi
  2724. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2725. $as_echo "yes" >&6; }
  2726. # If we didn't sleep, we still need to ensure time stamps of config.status and
  2727. # generated files are strictly newer.
  2728. am_sleep_pid=
  2729. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  2730. ( sleep 1 ) &
  2731. am_sleep_pid=$!
  2732. fi
  2733. rm -f conftest.file
  2734. test "$program_prefix" != NONE &&
  2735. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2736. # Use a double $ so make ignores it.
  2737. test "$program_suffix" != NONE &&
  2738. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2739. # Double any \ or $.
  2740. # By default was `s,x,x', remove it if useless.
  2741. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2742. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2743. # expand $ac_aux_dir to an absolute path
  2744. am_aux_dir=`cd $ac_aux_dir && pwd`
  2745. if test x"${MISSING+set}" != xset; then
  2746. case $am_aux_dir in
  2747. *\ * | *\ *)
  2748. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2749. *)
  2750. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2751. esac
  2752. fi
  2753. # Use eval to expand $SHELL
  2754. if eval "$MISSING --is-lightweight"; then
  2755. am_missing_run="$MISSING "
  2756. else
  2757. am_missing_run=
  2758. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  2759. $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  2760. fi
  2761. if test x"${install_sh}" != xset; then
  2762. case $am_aux_dir in
  2763. *\ * | *\ *)
  2764. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2765. *)
  2766. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2767. esac
  2768. fi
  2769. # Installed binaries are usually stripped using 'strip' when the user
  2770. # run "make install-strip". However 'strip' might not be the right
  2771. # tool to use in cross-compilation environments, therefore Automake
  2772. # will honor the 'STRIP' environment variable to overrule this program.
  2773. if test "$cross_compiling" != no; then
  2774. if test -n "$ac_tool_prefix"; then
  2775. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2776. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2777. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2778. $as_echo_n "checking for $ac_word... " >&6; }
  2779. if ${ac_cv_prog_STRIP+:} false; then :
  2780. $as_echo_n "(cached) " >&6
  2781. else
  2782. if test -n "$STRIP"; then
  2783. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2784. else
  2785. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2786. for as_dir in $PATH
  2787. do
  2788. IFS=$as_save_IFS
  2789. test -z "$as_dir" && as_dir=.
  2790. for ac_exec_ext in '' $ac_executable_extensions; do
  2791. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2792. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2793. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2794. break 2
  2795. fi
  2796. done
  2797. done
  2798. IFS=$as_save_IFS
  2799. fi
  2800. fi
  2801. STRIP=$ac_cv_prog_STRIP
  2802. if test -n "$STRIP"; then
  2803. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2804. $as_echo "$STRIP" >&6; }
  2805. else
  2806. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2807. $as_echo "no" >&6; }
  2808. fi
  2809. fi
  2810. if test -z "$ac_cv_prog_STRIP"; then
  2811. ac_ct_STRIP=$STRIP
  2812. # Extract the first word of "strip", so it can be a program name with args.
  2813. set dummy strip; ac_word=$2
  2814. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2815. $as_echo_n "checking for $ac_word... " >&6; }
  2816. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  2817. $as_echo_n "(cached) " >&6
  2818. else
  2819. if test -n "$ac_ct_STRIP"; then
  2820. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2821. else
  2822. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2823. for as_dir in $PATH
  2824. do
  2825. IFS=$as_save_IFS
  2826. test -z "$as_dir" && as_dir=.
  2827. for ac_exec_ext in '' $ac_executable_extensions; do
  2828. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2829. ac_cv_prog_ac_ct_STRIP="strip"
  2830. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2831. break 2
  2832. fi
  2833. done
  2834. done
  2835. IFS=$as_save_IFS
  2836. fi
  2837. fi
  2838. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2839. if test -n "$ac_ct_STRIP"; then
  2840. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2841. $as_echo "$ac_ct_STRIP" >&6; }
  2842. else
  2843. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2844. $as_echo "no" >&6; }
  2845. fi
  2846. if test "x$ac_ct_STRIP" = x; then
  2847. STRIP=":"
  2848. else
  2849. case $cross_compiling:$ac_tool_warned in
  2850. yes:)
  2851. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2852. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2853. ac_tool_warned=yes ;;
  2854. esac
  2855. STRIP=$ac_ct_STRIP
  2856. fi
  2857. else
  2858. STRIP="$ac_cv_prog_STRIP"
  2859. fi
  2860. fi
  2861. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2862. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2863. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2864. if test -z "$MKDIR_P"; then
  2865. if ${ac_cv_path_mkdir+:} false; then :
  2866. $as_echo_n "(cached) " >&6
  2867. else
  2868. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2869. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2870. do
  2871. IFS=$as_save_IFS
  2872. test -z "$as_dir" && as_dir=.
  2873. for ac_prog in mkdir gmkdir; do
  2874. for ac_exec_ext in '' $ac_executable_extensions; do
  2875. as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  2876. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2877. 'mkdir (GNU coreutils) '* | \
  2878. 'mkdir (coreutils) '* | \
  2879. 'mkdir (fileutils) '4.1*)
  2880. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2881. break 3;;
  2882. esac
  2883. done
  2884. done
  2885. done
  2886. IFS=$as_save_IFS
  2887. fi
  2888. test -d ./--version && rmdir ./--version
  2889. if test "${ac_cv_path_mkdir+set}" = set; then
  2890. MKDIR_P="$ac_cv_path_mkdir -p"
  2891. else
  2892. # As a last resort, use the slow shell script. Don't cache a
  2893. # value for MKDIR_P within a source directory, because that will
  2894. # break other packages using the cache if that directory is
  2895. # removed, or if the value is a relative name.
  2896. MKDIR_P="$ac_install_sh -d"
  2897. fi
  2898. fi
  2899. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2900. $as_echo "$MKDIR_P" >&6; }
  2901. for ac_prog in gawk mawk nawk awk
  2902. do
  2903. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2904. set dummy $ac_prog; ac_word=$2
  2905. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2906. $as_echo_n "checking for $ac_word... " >&6; }
  2907. if ${ac_cv_prog_AWK+:} false; then :
  2908. $as_echo_n "(cached) " >&6
  2909. else
  2910. if test -n "$AWK"; then
  2911. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2912. else
  2913. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2914. for as_dir in $PATH
  2915. do
  2916. IFS=$as_save_IFS
  2917. test -z "$as_dir" && as_dir=.
  2918. for ac_exec_ext in '' $ac_executable_extensions; do
  2919. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2920. ac_cv_prog_AWK="$ac_prog"
  2921. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2922. break 2
  2923. fi
  2924. done
  2925. done
  2926. IFS=$as_save_IFS
  2927. fi
  2928. fi
  2929. AWK=$ac_cv_prog_AWK
  2930. if test -n "$AWK"; then
  2931. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2932. $as_echo "$AWK" >&6; }
  2933. else
  2934. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2935. $as_echo "no" >&6; }
  2936. fi
  2937. test -n "$AWK" && break
  2938. done
  2939. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2940. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2941. set x ${MAKE-make}
  2942. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2943. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  2944. $as_echo_n "(cached) " >&6
  2945. else
  2946. cat >conftest.make <<\_ACEOF
  2947. SHELL = /bin/sh
  2948. all:
  2949. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2950. _ACEOF
  2951. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  2952. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2953. *@@@%%%=?*=@@@%%%*)
  2954. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2955. *)
  2956. eval ac_cv_prog_make_${ac_make}_set=no;;
  2957. esac
  2958. rm -f conftest.make
  2959. fi
  2960. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2961. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2962. $as_echo "yes" >&6; }
  2963. SET_MAKE=
  2964. else
  2965. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2966. $as_echo "no" >&6; }
  2967. SET_MAKE="MAKE=${MAKE-make}"
  2968. fi
  2969. rm -rf .tst 2>/dev/null
  2970. mkdir .tst 2>/dev/null
  2971. if test -d .tst; then
  2972. am__leading_dot=.
  2973. else
  2974. am__leading_dot=_
  2975. fi
  2976. rmdir .tst 2>/dev/null
  2977. # Check whether --enable-silent-rules was given.
  2978. if test "${enable_silent_rules+set}" = set; then :
  2979. enableval=$enable_silent_rules;
  2980. fi
  2981. case $enable_silent_rules in # (((
  2982. yes) AM_DEFAULT_VERBOSITY=0;;
  2983. no) AM_DEFAULT_VERBOSITY=1;;
  2984. *) AM_DEFAULT_VERBOSITY=1;;
  2985. esac
  2986. am_make=${MAKE-make}
  2987. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  2988. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  2989. if ${am_cv_make_support_nested_variables+:} false; then :
  2990. $as_echo_n "(cached) " >&6
  2991. else
  2992. if $as_echo 'TRUE=$(BAR$(V))
  2993. BAR0=false
  2994. BAR1=true
  2995. V=1
  2996. am__doit:
  2997. @$(TRUE)
  2998. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  2999. am_cv_make_support_nested_variables=yes
  3000. else
  3001. am_cv_make_support_nested_variables=no
  3002. fi
  3003. fi
  3004. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  3005. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  3006. if test $am_cv_make_support_nested_variables = yes; then
  3007. AM_V='$(V)'
  3008. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  3009. else
  3010. AM_V=$AM_DEFAULT_VERBOSITY
  3011. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  3012. fi
  3013. AM_BACKSLASH='\'
  3014. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  3015. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  3016. # is not polluted with repeated "-I."
  3017. am__isrc=' -I$(srcdir)'
  3018. # test to see if srcdir already configured
  3019. if test -f $srcdir/config.status; then
  3020. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  3021. fi
  3022. fi
  3023. # test whether we have cygpath
  3024. if test -z "$CYGPATH_W"; then
  3025. if (cygpath --version) >/dev/null 2>/dev/null; then
  3026. CYGPATH_W='cygpath -w'
  3027. else
  3028. CYGPATH_W=echo
  3029. fi
  3030. fi
  3031. # Define the identity of the package.
  3032. PACKAGE='dirsrv'
  3033. VERSION='1.0'
  3034. # Some tools Automake needs.
  3035. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  3036. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  3037. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  3038. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  3039. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  3040. # For better backward compatibility. To be removed once Automake 1.9.x
  3041. # dies out for good. For more background, see:
  3042. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  3043. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  3044. mkdir_p='$(MKDIR_P)'
  3045. # We need awk for the "check" target. The system "awk" is bad on
  3046. # some platforms.
  3047. # Always define AMTAR for backward compatibility. Yes, it's still used
  3048. # in the wild :-( We should find a proper way to deprecate it ...
  3049. AMTAR='$${TAR-tar}'
  3050. # We'll loop over all known methods to create a tar archive until one works.
  3051. _am_tools='gnutar pax cpio none'
  3052. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a pax tar archive" >&5
  3053. $as_echo_n "checking how to create a pax tar archive... " >&6; }
  3054. # Go ahead even if we have the value already cached. We do so because we
  3055. # need to set the values for the 'am__tar' and 'am__untar' variables.
  3056. _am_tools=${am_cv_prog_tar_pax-$_am_tools}
  3057. for _am_tool in $_am_tools; do
  3058. case $_am_tool in
  3059. gnutar)
  3060. for _am_tar in tar gnutar gtar; do
  3061. { echo "$as_me:$LINENO: $_am_tar --version" >&5
  3062. ($_am_tar --version) >&5 2>&5
  3063. ac_status=$?
  3064. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3065. (exit $ac_status); } && break
  3066. done
  3067. am__tar="$_am_tar --format=posix -chf - "'"$$tardir"'
  3068. am__tar_="$_am_tar --format=posix -chf - "'"$tardir"'
  3069. am__untar="$_am_tar -xf -"
  3070. ;;
  3071. plaintar)
  3072. # Must skip GNU tar: if it does not support --format= it doesn't create
  3073. # ustar tarball either.
  3074. (tar --version) >/dev/null 2>&1 && continue
  3075. am__tar='tar chf - "$$tardir"'
  3076. am__tar_='tar chf - "$tardir"'
  3077. am__untar='tar xf -'
  3078. ;;
  3079. pax)
  3080. am__tar='pax -L -x pax -w "$$tardir"'
  3081. am__tar_='pax -L -x pax -w "$tardir"'
  3082. am__untar='pax -r'
  3083. ;;
  3084. cpio)
  3085. am__tar='find "$$tardir" -print | cpio -o -H pax -L'
  3086. am__tar_='find "$tardir" -print | cpio -o -H pax -L'
  3087. am__untar='cpio -i -H pax -d'
  3088. ;;
  3089. none)
  3090. am__tar=false
  3091. am__tar_=false
  3092. am__untar=false
  3093. ;;
  3094. esac
  3095. # If the value was cached, stop now. We just wanted to have am__tar
  3096. # and am__untar set.
  3097. test -n "${am_cv_prog_tar_pax}" && break
  3098. # tar/untar a dummy directory, and stop if the command works.
  3099. rm -rf conftest.dir
  3100. mkdir conftest.dir
  3101. echo GrepMe > conftest.dir/file
  3102. { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
  3103. (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
  3104. ac_status=$?
  3105. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3106. (exit $ac_status); }
  3107. rm -rf conftest.dir
  3108. if test -s conftest.tar; then
  3109. { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
  3110. ($am__untar <conftest.tar) >&5 2>&5
  3111. ac_status=$?
  3112. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3113. (exit $ac_status); }
  3114. { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
  3115. (cat conftest.dir/file) >&5 2>&5
  3116. ac_status=$?
  3117. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3118. (exit $ac_status); }
  3119. grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
  3120. fi
  3121. done
  3122. rm -rf conftest.dir
  3123. if ${am_cv_prog_tar_pax+:} false; then :
  3124. $as_echo_n "(cached) " >&6
  3125. else
  3126. am_cv_prog_tar_pax=$_am_tool
  3127. fi
  3128. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_pax" >&5
  3129. $as_echo "$am_cv_prog_tar_pax" >&6; }
  3130. # define these for automake distdir
  3131. VERSION=$PACKAGE_VERSION
  3132. PACKAGE=$PACKAGE_TARNAME
  3133. cat >>confdefs.h <<_ACEOF
  3134. #define VERSION "$VERSION"
  3135. _ACEOF
  3136. cat >>confdefs.h <<_ACEOF
  3137. #define PACKAGE "$PACKAGE"
  3138. _ACEOF
  3139. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  3140. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  3141. # Check whether --enable-maintainer-mode was given.
  3142. if test "${enable_maintainer_mode+set}" = set; then :
  3143. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  3144. else
  3145. USE_MAINTAINER_MODE=no
  3146. fi
  3147. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  3148. $as_echo "$USE_MAINTAINER_MODE" >&6; }
  3149. if test $USE_MAINTAINER_MODE = yes; then
  3150. MAINTAINER_MODE_TRUE=
  3151. MAINTAINER_MODE_FALSE='#'
  3152. else
  3153. MAINTAINER_MODE_TRUE='#'
  3154. MAINTAINER_MODE_FALSE=
  3155. fi
  3156. MAINT=$MAINTAINER_MODE_TRUE
  3157. # Make sure we can run config.sub.
  3158. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  3159. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  3160. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  3161. $as_echo_n "checking build system type... " >&6; }
  3162. if ${ac_cv_build+:} false; then :
  3163. $as_echo_n "(cached) " >&6
  3164. else
  3165. ac_build_alias=$build_alias
  3166. test "x$ac_build_alias" = x &&
  3167. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  3168. test "x$ac_build_alias" = x &&
  3169. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  3170. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  3171. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  3172. fi
  3173. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  3174. $as_echo "$ac_cv_build" >&6; }
  3175. case $ac_cv_build in
  3176. *-*-*) ;;
  3177. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  3178. esac
  3179. build=$ac_cv_build
  3180. ac_save_IFS=$IFS; IFS='-'
  3181. set x $ac_cv_build
  3182. shift
  3183. build_cpu=$1
  3184. build_vendor=$2
  3185. shift; shift
  3186. # Remember, the first character of IFS is used to create $*,
  3187. # except with old shells:
  3188. build_os=$*
  3189. IFS=$ac_save_IFS
  3190. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  3191. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  3192. $as_echo_n "checking host system type... " >&6; }
  3193. if ${ac_cv_host+:} false; then :
  3194. $as_echo_n "(cached) " >&6
  3195. else
  3196. if test "x$host_alias" = x; then
  3197. ac_cv_host=$ac_cv_build
  3198. else
  3199. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  3200. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  3201. fi
  3202. fi
  3203. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  3204. $as_echo "$ac_cv_host" >&6; }
  3205. case $ac_cv_host in
  3206. *-*-*) ;;
  3207. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  3208. esac
  3209. host=$ac_cv_host
  3210. ac_save_IFS=$IFS; IFS='-'
  3211. set x $ac_cv_host
  3212. shift
  3213. host_cpu=$1
  3214. host_vendor=$2
  3215. shift; shift
  3216. # Remember, the first character of IFS is used to create $*,
  3217. # except with old shells:
  3218. host_os=$*
  3219. IFS=$ac_save_IFS
  3220. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  3221. # Checks for programs.
  3222. ac_ext=cpp
  3223. ac_cpp='$CXXCPP $CPPFLAGS'
  3224. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3225. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3226. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3227. if test -z "$CXX"; then
  3228. if test -n "$CCC"; then
  3229. CXX=$CCC
  3230. else
  3231. if test -n "$ac_tool_prefix"; then
  3232. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  3233. do
  3234. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3235. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3236. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3237. $as_echo_n "checking for $ac_word... " >&6; }
  3238. if ${ac_cv_prog_CXX+:} false; then :
  3239. $as_echo_n "(cached) " >&6
  3240. else
  3241. if test -n "$CXX"; then
  3242. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  3243. else
  3244. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3245. for as_dir in $PATH
  3246. do
  3247. IFS=$as_save_IFS
  3248. test -z "$as_dir" && as_dir=.
  3249. for ac_exec_ext in '' $ac_executable_extensions; do
  3250. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3251. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  3252. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3253. break 2
  3254. fi
  3255. done
  3256. done
  3257. IFS=$as_save_IFS
  3258. fi
  3259. fi
  3260. CXX=$ac_cv_prog_CXX
  3261. if test -n "$CXX"; then
  3262. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  3263. $as_echo "$CXX" >&6; }
  3264. else
  3265. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3266. $as_echo "no" >&6; }
  3267. fi
  3268. test -n "$CXX" && break
  3269. done
  3270. fi
  3271. if test -z "$CXX"; then
  3272. ac_ct_CXX=$CXX
  3273. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  3274. do
  3275. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3276. set dummy $ac_prog; ac_word=$2
  3277. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3278. $as_echo_n "checking for $ac_word... " >&6; }
  3279. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  3280. $as_echo_n "(cached) " >&6
  3281. else
  3282. if test -n "$ac_ct_CXX"; then
  3283. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  3284. else
  3285. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3286. for as_dir in $PATH
  3287. do
  3288. IFS=$as_save_IFS
  3289. test -z "$as_dir" && as_dir=.
  3290. for ac_exec_ext in '' $ac_executable_extensions; do
  3291. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3292. ac_cv_prog_ac_ct_CXX="$ac_prog"
  3293. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3294. break 2
  3295. fi
  3296. done
  3297. done
  3298. IFS=$as_save_IFS
  3299. fi
  3300. fi
  3301. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  3302. if test -n "$ac_ct_CXX"; then
  3303. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  3304. $as_echo "$ac_ct_CXX" >&6; }
  3305. else
  3306. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3307. $as_echo "no" >&6; }
  3308. fi
  3309. test -n "$ac_ct_CXX" && break
  3310. done
  3311. if test "x$ac_ct_CXX" = x; then
  3312. CXX="g++"
  3313. else
  3314. case $cross_compiling:$ac_tool_warned in
  3315. yes:)
  3316. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3317. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3318. ac_tool_warned=yes ;;
  3319. esac
  3320. CXX=$ac_ct_CXX
  3321. fi
  3322. fi
  3323. fi
  3324. fi
  3325. # Provide some information about the compiler.
  3326. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  3327. set X $ac_compile
  3328. ac_compiler=$2
  3329. for ac_option in --version -v -V -qversion; do
  3330. { { ac_try="$ac_compiler $ac_option >&5"
  3331. case "(($ac_try" in
  3332. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3333. *) ac_try_echo=$ac_try;;
  3334. esac
  3335. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3336. $as_echo "$ac_try_echo"; } >&5
  3337. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3338. ac_status=$?
  3339. if test -s conftest.err; then
  3340. sed '10a\
  3341. ... rest of stderr output deleted ...
  3342. 10q' conftest.err >conftest.er1
  3343. cat conftest.er1 >&5
  3344. fi
  3345. rm -f conftest.er1 conftest.err
  3346. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3347. test $ac_status = 0; }
  3348. done
  3349. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3350. /* end confdefs.h. */
  3351. int
  3352. main ()
  3353. {
  3354. ;
  3355. return 0;
  3356. }
  3357. _ACEOF
  3358. ac_clean_files_save=$ac_clean_files
  3359. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3360. # Try to create an executable without -o first, disregard a.out.
  3361. # It will help us diagnose broken compilers, and finding out an intuition
  3362. # of exeext.
  3363. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
  3364. $as_echo_n "checking whether the C++ compiler works... " >&6; }
  3365. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3366. # The possible output files:
  3367. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3368. ac_rmfiles=
  3369. for ac_file in $ac_files
  3370. do
  3371. case $ac_file in
  3372. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3373. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3374. esac
  3375. done
  3376. rm -f $ac_rmfiles
  3377. if { { ac_try="$ac_link_default"
  3378. case "(($ac_try" in
  3379. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3380. *) ac_try_echo=$ac_try;;
  3381. esac
  3382. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3383. $as_echo "$ac_try_echo"; } >&5
  3384. (eval "$ac_link_default") 2>&5
  3385. ac_status=$?
  3386. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3387. test $ac_status = 0; }; then :
  3388. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3389. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3390. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3391. # so that the user can short-circuit this test for compilers unknown to
  3392. # Autoconf.
  3393. for ac_file in $ac_files ''
  3394. do
  3395. test -f "$ac_file" || continue
  3396. case $ac_file in
  3397. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3398. ;;
  3399. [ab].out )
  3400. # We found the default executable, but exeext='' is most
  3401. # certainly right.
  3402. break;;
  3403. *.* )
  3404. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3405. then :; else
  3406. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3407. fi
  3408. # We set ac_cv_exeext here because the later test for it is not
  3409. # safe: cross compilers may not add the suffix if given an `-o'
  3410. # argument, so we may need to know it at that point already.
  3411. # Even if this section looks crufty: it has the advantage of
  3412. # actually working.
  3413. break;;
  3414. * )
  3415. break;;
  3416. esac
  3417. done
  3418. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3419. else
  3420. ac_file=''
  3421. fi
  3422. if test -z "$ac_file"; then :
  3423. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3424. $as_echo "no" >&6; }
  3425. $as_echo "$as_me: failed program was:" >&5
  3426. sed 's/^/| /' conftest.$ac_ext >&5
  3427. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3428. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3429. as_fn_error 77 "C++ compiler cannot create executables
  3430. See \`config.log' for more details" "$LINENO" 5; }
  3431. else
  3432. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3433. $as_echo "yes" >&6; }
  3434. fi
  3435. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
  3436. $as_echo_n "checking for C++ compiler default output file name... " >&6; }
  3437. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3438. $as_echo "$ac_file" >&6; }
  3439. ac_exeext=$ac_cv_exeext
  3440. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3441. ac_clean_files=$ac_clean_files_save
  3442. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3443. $as_echo_n "checking for suffix of executables... " >&6; }
  3444. if { { ac_try="$ac_link"
  3445. case "(($ac_try" in
  3446. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3447. *) ac_try_echo=$ac_try;;
  3448. esac
  3449. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3450. $as_echo "$ac_try_echo"; } >&5
  3451. (eval "$ac_link") 2>&5
  3452. ac_status=$?
  3453. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3454. test $ac_status = 0; }; then :
  3455. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3456. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3457. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3458. # `rm'.
  3459. for ac_file in conftest.exe conftest conftest.*; do
  3460. test -f "$ac_file" || continue
  3461. case $ac_file in
  3462. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3463. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3464. break;;
  3465. * ) break;;
  3466. esac
  3467. done
  3468. else
  3469. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3470. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3471. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3472. See \`config.log' for more details" "$LINENO" 5; }
  3473. fi
  3474. rm -f conftest conftest$ac_cv_exeext
  3475. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3476. $as_echo "$ac_cv_exeext" >&6; }
  3477. rm -f conftest.$ac_ext
  3478. EXEEXT=$ac_cv_exeext
  3479. ac_exeext=$EXEEXT
  3480. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3481. /* end confdefs.h. */
  3482. #include <stdio.h>
  3483. int
  3484. main ()
  3485. {
  3486. FILE *f = fopen ("conftest.out", "w");
  3487. return ferror (f) || fclose (f) != 0;
  3488. ;
  3489. return 0;
  3490. }
  3491. _ACEOF
  3492. ac_clean_files="$ac_clean_files conftest.out"
  3493. # Check that the compiler produces executables we can run. If not, either
  3494. # the compiler is broken, or we cross compile.
  3495. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3496. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3497. if test "$cross_compiling" != yes; then
  3498. { { ac_try="$ac_link"
  3499. case "(($ac_try" in
  3500. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3501. *) ac_try_echo=$ac_try;;
  3502. esac
  3503. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3504. $as_echo "$ac_try_echo"; } >&5
  3505. (eval "$ac_link") 2>&5
  3506. ac_status=$?
  3507. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3508. test $ac_status = 0; }
  3509. if { ac_try='./conftest$ac_cv_exeext'
  3510. { { case "(($ac_try" in
  3511. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3512. *) ac_try_echo=$ac_try;;
  3513. esac
  3514. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3515. $as_echo "$ac_try_echo"; } >&5
  3516. (eval "$ac_try") 2>&5
  3517. ac_status=$?
  3518. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3519. test $ac_status = 0; }; }; then
  3520. cross_compiling=no
  3521. else
  3522. if test "$cross_compiling" = maybe; then
  3523. cross_compiling=yes
  3524. else
  3525. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3526. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3527. as_fn_error $? "cannot run C++ compiled programs.
  3528. If you meant to cross compile, use \`--host'.
  3529. See \`config.log' for more details" "$LINENO" 5; }
  3530. fi
  3531. fi
  3532. fi
  3533. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3534. $as_echo "$cross_compiling" >&6; }
  3535. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3536. ac_clean_files=$ac_clean_files_save
  3537. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3538. $as_echo_n "checking for suffix of object files... " >&6; }
  3539. if ${ac_cv_objext+:} false; then :
  3540. $as_echo_n "(cached) " >&6
  3541. else
  3542. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3543. /* end confdefs.h. */
  3544. int
  3545. main ()
  3546. {
  3547. ;
  3548. return 0;
  3549. }
  3550. _ACEOF
  3551. rm -f conftest.o conftest.obj
  3552. if { { ac_try="$ac_compile"
  3553. case "(($ac_try" in
  3554. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3555. *) ac_try_echo=$ac_try;;
  3556. esac
  3557. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3558. $as_echo "$ac_try_echo"; } >&5
  3559. (eval "$ac_compile") 2>&5
  3560. ac_status=$?
  3561. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3562. test $ac_status = 0; }; then :
  3563. for ac_file in conftest.o conftest.obj conftest.*; do
  3564. test -f "$ac_file" || continue;
  3565. case $ac_file in
  3566. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3567. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3568. break;;
  3569. esac
  3570. done
  3571. else
  3572. $as_echo "$as_me: failed program was:" >&5
  3573. sed 's/^/| /' conftest.$ac_ext >&5
  3574. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3575. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3576. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3577. See \`config.log' for more details" "$LINENO" 5; }
  3578. fi
  3579. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3580. fi
  3581. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3582. $as_echo "$ac_cv_objext" >&6; }
  3583. OBJEXT=$ac_cv_objext
  3584. ac_objext=$OBJEXT
  3585. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  3586. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  3587. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  3588. $as_echo_n "(cached) " >&6
  3589. else
  3590. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3591. /* end confdefs.h. */
  3592. int
  3593. main ()
  3594. {
  3595. #ifndef __GNUC__
  3596. choke me
  3597. #endif
  3598. ;
  3599. return 0;
  3600. }
  3601. _ACEOF
  3602. if ac_fn_cxx_try_compile "$LINENO"; then :
  3603. ac_compiler_gnu=yes
  3604. else
  3605. ac_compiler_gnu=no
  3606. fi
  3607. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3608. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  3609. fi
  3610. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  3611. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  3612. if test $ac_compiler_gnu = yes; then
  3613. GXX=yes
  3614. else
  3615. GXX=
  3616. fi
  3617. ac_test_CXXFLAGS=${CXXFLAGS+set}
  3618. ac_save_CXXFLAGS=$CXXFLAGS
  3619. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  3620. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  3621. if ${ac_cv_prog_cxx_g+:} false; then :
  3622. $as_echo_n "(cached) " >&6
  3623. else
  3624. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  3625. ac_cxx_werror_flag=yes
  3626. ac_cv_prog_cxx_g=no
  3627. CXXFLAGS="-g"
  3628. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3629. /* end confdefs.h. */
  3630. int
  3631. main ()
  3632. {
  3633. ;
  3634. return 0;
  3635. }
  3636. _ACEOF
  3637. if ac_fn_cxx_try_compile "$LINENO"; then :
  3638. ac_cv_prog_cxx_g=yes
  3639. else
  3640. CXXFLAGS=""
  3641. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3642. /* end confdefs.h. */
  3643. int
  3644. main ()
  3645. {
  3646. ;
  3647. return 0;
  3648. }
  3649. _ACEOF
  3650. if ac_fn_cxx_try_compile "$LINENO"; then :
  3651. else
  3652. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3653. CXXFLAGS="-g"
  3654. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3655. /* end confdefs.h. */
  3656. int
  3657. main ()
  3658. {
  3659. ;
  3660. return 0;
  3661. }
  3662. _ACEOF
  3663. if ac_fn_cxx_try_compile "$LINENO"; then :
  3664. ac_cv_prog_cxx_g=yes
  3665. fi
  3666. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3667. fi
  3668. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3669. fi
  3670. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3671. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3672. fi
  3673. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  3674. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  3675. if test "$ac_test_CXXFLAGS" = set; then
  3676. CXXFLAGS=$ac_save_CXXFLAGS
  3677. elif test $ac_cv_prog_cxx_g = yes; then
  3678. if test "$GXX" = yes; then
  3679. CXXFLAGS="-g -O2"
  3680. else
  3681. CXXFLAGS="-g"
  3682. fi
  3683. else
  3684. if test "$GXX" = yes; then
  3685. CXXFLAGS="-O2"
  3686. else
  3687. CXXFLAGS=
  3688. fi
  3689. fi
  3690. ac_ext=c
  3691. ac_cpp='$CPP $CPPFLAGS'
  3692. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3693. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3694. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3695. DEPDIR="${am__leading_dot}deps"
  3696. ac_config_commands="$ac_config_commands depfiles"
  3697. am_make=${MAKE-make}
  3698. cat > confinc << 'END'
  3699. am__doit:
  3700. @echo this is the am__doit target
  3701. .PHONY: am__doit
  3702. END
  3703. # If we don't find an include directive, just comment out the code.
  3704. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3705. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3706. am__include="#"
  3707. am__quote=
  3708. _am_result=none
  3709. # First try GNU make style include.
  3710. echo "include confinc" > confmf
  3711. # Ignore all kinds of additional output from 'make'.
  3712. case `$am_make -s -f confmf 2> /dev/null` in #(
  3713. *the\ am__doit\ target*)
  3714. am__include=include
  3715. am__quote=
  3716. _am_result=GNU
  3717. ;;
  3718. esac
  3719. # Now try BSD make style include.
  3720. if test "$am__include" = "#"; then
  3721. echo '.include "confinc"' > confmf
  3722. case `$am_make -s -f confmf 2> /dev/null` in #(
  3723. *the\ am__doit\ target*)
  3724. am__include=.include
  3725. am__quote="\""
  3726. _am_result=BSD
  3727. ;;
  3728. esac
  3729. fi
  3730. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3731. $as_echo "$_am_result" >&6; }
  3732. rm -f confinc confmf
  3733. # Check whether --enable-dependency-tracking was given.
  3734. if test "${enable_dependency_tracking+set}" = set; then :
  3735. enableval=$enable_dependency_tracking;
  3736. fi
  3737. if test "x$enable_dependency_tracking" != xno; then
  3738. am_depcomp="$ac_aux_dir/depcomp"
  3739. AMDEPBACKSLASH='\'
  3740. am__nodep='_no'
  3741. fi
  3742. if test "x$enable_dependency_tracking" != xno; then
  3743. AMDEP_TRUE=
  3744. AMDEP_FALSE='#'
  3745. else
  3746. AMDEP_TRUE='#'
  3747. AMDEP_FALSE=
  3748. fi
  3749. depcc="$CXX" am_compiler_list=
  3750. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3751. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3752. if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
  3753. $as_echo_n "(cached) " >&6
  3754. else
  3755. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3756. # We make a subdir and do the tests there. Otherwise we can end up
  3757. # making bogus files that we don't know about and never remove. For
  3758. # instance it was reported that on HP-UX the gcc test will end up
  3759. # making a dummy file named 'D' -- because '-MD' means "put the output
  3760. # in D".
  3761. rm -rf conftest.dir
  3762. mkdir conftest.dir
  3763. # Copy depcomp to subdir because otherwise we won't find it if we're
  3764. # using a relative directory.
  3765. cp "$am_depcomp" conftest.dir
  3766. cd conftest.dir
  3767. # We will build objects and dependencies in a subdirectory because
  3768. # it helps to detect inapplicable dependency modes. For instance
  3769. # both Tru64's cc and ICC support -MD to output dependencies as a
  3770. # side effect of compilation, but ICC will put the dependencies in
  3771. # the current directory while Tru64 will put them in the object
  3772. # directory.
  3773. mkdir sub
  3774. am_cv_CXX_dependencies_compiler_type=none
  3775. if test "$am_compiler_list" = ""; then
  3776. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3777. fi
  3778. am__universal=false
  3779. case " $depcc " in #(
  3780. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3781. esac
  3782. for depmode in $am_compiler_list; do
  3783. # Setup a source with many dependencies, because some compilers
  3784. # like to wrap large dependency lists on column 80 (with \), and
  3785. # we should not choose a depcomp mode which is confused by this.
  3786. #
  3787. # We need to recreate these files for each test, as the compiler may
  3788. # overwrite some of them when testing with obscure command lines.
  3789. # This happens at least with the AIX C compiler.
  3790. : > sub/conftest.c
  3791. for i in 1 2 3 4 5 6; do
  3792. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3793. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  3794. # Solaris 10 /bin/sh.
  3795. echo '/* dummy */' > sub/conftst$i.h
  3796. done
  3797. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3798. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  3799. # mode. It turns out that the SunPro C++ compiler does not properly
  3800. # handle '-M -o', and we need to detect this. Also, some Intel
  3801. # versions had trouble with output in subdirs.
  3802. am__obj=sub/conftest.${OBJEXT-o}
  3803. am__minus_obj="-o $am__obj"
  3804. case $depmode in
  3805. gcc)
  3806. # This depmode causes a compiler race in universal mode.
  3807. test "$am__universal" = false || continue
  3808. ;;
  3809. nosideeffect)
  3810. # After this tag, mechanisms are not by side-effect, so they'll
  3811. # only be used when explicitly requested.
  3812. if test "x$enable_dependency_tracking" = xyes; then
  3813. continue
  3814. else
  3815. break
  3816. fi
  3817. ;;
  3818. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  3819. # This compiler won't grok '-c -o', but also, the minuso test has
  3820. # not run yet. These depmodes are late enough in the game, and
  3821. # so weak that their functioning should not be impacted.
  3822. am__obj=conftest.${OBJEXT-o}
  3823. am__minus_obj=
  3824. ;;
  3825. none) break ;;
  3826. esac
  3827. if depmode=$depmode \
  3828. source=sub/conftest.c object=$am__obj \
  3829. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3830. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3831. >/dev/null 2>conftest.err &&
  3832. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3833. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3834. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3835. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3836. # icc doesn't choke on unknown options, it will just issue warnings
  3837. # or remarks (even with -Werror). So we grep stderr for any message
  3838. # that says an option was ignored or not supported.
  3839. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3840. # icc: Command line warning: ignoring option '-M'; no argument required
  3841. # The diagnosis changed in icc 8.0:
  3842. # icc: Command line remark: option '-MP' not supported
  3843. if (grep 'ignoring option' conftest.err ||
  3844. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3845. am_cv_CXX_dependencies_compiler_type=$depmode
  3846. break
  3847. fi
  3848. fi
  3849. done
  3850. cd ..
  3851. rm -rf conftest.dir
  3852. else
  3853. am_cv_CXX_dependencies_compiler_type=none
  3854. fi
  3855. fi
  3856. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  3857. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  3858. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  3859. if
  3860. test "x$enable_dependency_tracking" != xno \
  3861. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  3862. am__fastdepCXX_TRUE=
  3863. am__fastdepCXX_FALSE='#'
  3864. else
  3865. am__fastdepCXX_TRUE='#'
  3866. am__fastdepCXX_FALSE=
  3867. fi
  3868. ac_ext=c
  3869. ac_cpp='$CPP $CPPFLAGS'
  3870. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3871. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3872. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3873. if test -n "$ac_tool_prefix"; then
  3874. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3875. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3876. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3877. $as_echo_n "checking for $ac_word... " >&6; }
  3878. if ${ac_cv_prog_CC+:} false; then :
  3879. $as_echo_n "(cached) " >&6
  3880. else
  3881. if test -n "$CC"; then
  3882. ac_cv_prog_CC="$CC" # Let the user override the test.
  3883. else
  3884. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3885. for as_dir in $PATH
  3886. do
  3887. IFS=$as_save_IFS
  3888. test -z "$as_dir" && as_dir=.
  3889. for ac_exec_ext in '' $ac_executable_extensions; do
  3890. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3891. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3892. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3893. break 2
  3894. fi
  3895. done
  3896. done
  3897. IFS=$as_save_IFS
  3898. fi
  3899. fi
  3900. CC=$ac_cv_prog_CC
  3901. if test -n "$CC"; then
  3902. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3903. $as_echo "$CC" >&6; }
  3904. else
  3905. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3906. $as_echo "no" >&6; }
  3907. fi
  3908. fi
  3909. if test -z "$ac_cv_prog_CC"; then
  3910. ac_ct_CC=$CC
  3911. # Extract the first word of "gcc", so it can be a program name with args.
  3912. set dummy gcc; ac_word=$2
  3913. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3914. $as_echo_n "checking for $ac_word... " >&6; }
  3915. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3916. $as_echo_n "(cached) " >&6
  3917. else
  3918. if test -n "$ac_ct_CC"; then
  3919. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3920. else
  3921. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3922. for as_dir in $PATH
  3923. do
  3924. IFS=$as_save_IFS
  3925. test -z "$as_dir" && as_dir=.
  3926. for ac_exec_ext in '' $ac_executable_extensions; do
  3927. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3928. ac_cv_prog_ac_ct_CC="gcc"
  3929. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3930. break 2
  3931. fi
  3932. done
  3933. done
  3934. IFS=$as_save_IFS
  3935. fi
  3936. fi
  3937. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3938. if test -n "$ac_ct_CC"; then
  3939. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3940. $as_echo "$ac_ct_CC" >&6; }
  3941. else
  3942. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3943. $as_echo "no" >&6; }
  3944. fi
  3945. if test "x$ac_ct_CC" = x; then
  3946. CC=""
  3947. else
  3948. case $cross_compiling:$ac_tool_warned in
  3949. yes:)
  3950. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3951. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3952. ac_tool_warned=yes ;;
  3953. esac
  3954. CC=$ac_ct_CC
  3955. fi
  3956. else
  3957. CC="$ac_cv_prog_CC"
  3958. fi
  3959. if test -z "$CC"; then
  3960. if test -n "$ac_tool_prefix"; then
  3961. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3962. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3963. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3964. $as_echo_n "checking for $ac_word... " >&6; }
  3965. if ${ac_cv_prog_CC+:} false; then :
  3966. $as_echo_n "(cached) " >&6
  3967. else
  3968. if test -n "$CC"; then
  3969. ac_cv_prog_CC="$CC" # Let the user override the test.
  3970. else
  3971. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3972. for as_dir in $PATH
  3973. do
  3974. IFS=$as_save_IFS
  3975. test -z "$as_dir" && as_dir=.
  3976. for ac_exec_ext in '' $ac_executable_extensions; do
  3977. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3978. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3979. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3980. break 2
  3981. fi
  3982. done
  3983. done
  3984. IFS=$as_save_IFS
  3985. fi
  3986. fi
  3987. CC=$ac_cv_prog_CC
  3988. if test -n "$CC"; then
  3989. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3990. $as_echo "$CC" >&6; }
  3991. else
  3992. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3993. $as_echo "no" >&6; }
  3994. fi
  3995. fi
  3996. fi
  3997. if test -z "$CC"; then
  3998. # Extract the first word of "cc", so it can be a program name with args.
  3999. set dummy cc; ac_word=$2
  4000. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4001. $as_echo_n "checking for $ac_word... " >&6; }
  4002. if ${ac_cv_prog_CC+:} false; then :
  4003. $as_echo_n "(cached) " >&6
  4004. else
  4005. if test -n "$CC"; then
  4006. ac_cv_prog_CC="$CC" # Let the user override the test.
  4007. else
  4008. ac_prog_rejected=no
  4009. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4010. for as_dir in $PATH
  4011. do
  4012. IFS=$as_save_IFS
  4013. test -z "$as_dir" && as_dir=.
  4014. for ac_exec_ext in '' $ac_executable_extensions; do
  4015. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4016. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  4017. ac_prog_rejected=yes
  4018. continue
  4019. fi
  4020. ac_cv_prog_CC="cc"
  4021. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4022. break 2
  4023. fi
  4024. done
  4025. done
  4026. IFS=$as_save_IFS
  4027. if test $ac_prog_rejected = yes; then
  4028. # We found a bogon in the path, so make sure we never use it.
  4029. set dummy $ac_cv_prog_CC
  4030. shift
  4031. if test $# != 0; then
  4032. # We chose a different compiler from the bogus one.
  4033. # However, it has the same basename, so the bogon will be chosen
  4034. # first if we set CC to just the basename; use the full file name.
  4035. shift
  4036. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  4037. fi
  4038. fi
  4039. fi
  4040. fi
  4041. CC=$ac_cv_prog_CC
  4042. if test -n "$CC"; then
  4043. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4044. $as_echo "$CC" >&6; }
  4045. else
  4046. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4047. $as_echo "no" >&6; }
  4048. fi
  4049. fi
  4050. if test -z "$CC"; then
  4051. if test -n "$ac_tool_prefix"; then
  4052. for ac_prog in cl.exe
  4053. do
  4054. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4055. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4056. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4057. $as_echo_n "checking for $ac_word... " >&6; }
  4058. if ${ac_cv_prog_CC+:} false; then :
  4059. $as_echo_n "(cached) " >&6
  4060. else
  4061. if test -n "$CC"; then
  4062. ac_cv_prog_CC="$CC" # Let the user override the test.
  4063. else
  4064. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4065. for as_dir in $PATH
  4066. do
  4067. IFS=$as_save_IFS
  4068. test -z "$as_dir" && as_dir=.
  4069. for ac_exec_ext in '' $ac_executable_extensions; do
  4070. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4071. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  4072. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4073. break 2
  4074. fi
  4075. done
  4076. done
  4077. IFS=$as_save_IFS
  4078. fi
  4079. fi
  4080. CC=$ac_cv_prog_CC
  4081. if test -n "$CC"; then
  4082. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4083. $as_echo "$CC" >&6; }
  4084. else
  4085. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4086. $as_echo "no" >&6; }
  4087. fi
  4088. test -n "$CC" && break
  4089. done
  4090. fi
  4091. if test -z "$CC"; then
  4092. ac_ct_CC=$CC
  4093. for ac_prog in cl.exe
  4094. do
  4095. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4096. set dummy $ac_prog; ac_word=$2
  4097. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4098. $as_echo_n "checking for $ac_word... " >&6; }
  4099. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  4100. $as_echo_n "(cached) " >&6
  4101. else
  4102. if test -n "$ac_ct_CC"; then
  4103. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4104. else
  4105. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4106. for as_dir in $PATH
  4107. do
  4108. IFS=$as_save_IFS
  4109. test -z "$as_dir" && as_dir=.
  4110. for ac_exec_ext in '' $ac_executable_extensions; do
  4111. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4112. ac_cv_prog_ac_ct_CC="$ac_prog"
  4113. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4114. break 2
  4115. fi
  4116. done
  4117. done
  4118. IFS=$as_save_IFS
  4119. fi
  4120. fi
  4121. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4122. if test -n "$ac_ct_CC"; then
  4123. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  4124. $as_echo "$ac_ct_CC" >&6; }
  4125. else
  4126. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4127. $as_echo "no" >&6; }
  4128. fi
  4129. test -n "$ac_ct_CC" && break
  4130. done
  4131. if test "x$ac_ct_CC" = x; then
  4132. CC=""
  4133. else
  4134. case $cross_compiling:$ac_tool_warned in
  4135. yes:)
  4136. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4137. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4138. ac_tool_warned=yes ;;
  4139. esac
  4140. CC=$ac_ct_CC
  4141. fi
  4142. fi
  4143. fi
  4144. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4145. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4146. as_fn_error $? "no acceptable C compiler found in \$PATH
  4147. See \`config.log' for more details" "$LINENO" 5; }
  4148. # Provide some information about the compiler.
  4149. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  4150. set X $ac_compile
  4151. ac_compiler=$2
  4152. for ac_option in --version -v -V -qversion; do
  4153. { { ac_try="$ac_compiler $ac_option >&5"
  4154. case "(($ac_try" in
  4155. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4156. *) ac_try_echo=$ac_try;;
  4157. esac
  4158. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4159. $as_echo "$ac_try_echo"; } >&5
  4160. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  4161. ac_status=$?
  4162. if test -s conftest.err; then
  4163. sed '10a\
  4164. ... rest of stderr output deleted ...
  4165. 10q' conftest.err >conftest.er1
  4166. cat conftest.er1 >&5
  4167. fi
  4168. rm -f conftest.er1 conftest.err
  4169. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4170. test $ac_status = 0; }
  4171. done
  4172. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  4173. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  4174. if ${ac_cv_c_compiler_gnu+:} false; then :
  4175. $as_echo_n "(cached) " >&6
  4176. else
  4177. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4178. /* end confdefs.h. */
  4179. int
  4180. main ()
  4181. {
  4182. #ifndef __GNUC__
  4183. choke me
  4184. #endif
  4185. ;
  4186. return 0;
  4187. }
  4188. _ACEOF
  4189. if ac_fn_c_try_compile "$LINENO"; then :
  4190. ac_compiler_gnu=yes
  4191. else
  4192. ac_compiler_gnu=no
  4193. fi
  4194. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4195. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  4196. fi
  4197. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  4198. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  4199. if test $ac_compiler_gnu = yes; then
  4200. GCC=yes
  4201. else
  4202. GCC=
  4203. fi
  4204. ac_test_CFLAGS=${CFLAGS+set}
  4205. ac_save_CFLAGS=$CFLAGS
  4206. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  4207. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  4208. if ${ac_cv_prog_cc_g+:} false; then :
  4209. $as_echo_n "(cached) " >&6
  4210. else
  4211. ac_save_c_werror_flag=$ac_c_werror_flag
  4212. ac_c_werror_flag=yes
  4213. ac_cv_prog_cc_g=no
  4214. CFLAGS="-g"
  4215. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4216. /* end confdefs.h. */
  4217. int
  4218. main ()
  4219. {
  4220. ;
  4221. return 0;
  4222. }
  4223. _ACEOF
  4224. if ac_fn_c_try_compile "$LINENO"; then :
  4225. ac_cv_prog_cc_g=yes
  4226. else
  4227. CFLAGS=""
  4228. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4229. /* end confdefs.h. */
  4230. int
  4231. main ()
  4232. {
  4233. ;
  4234. return 0;
  4235. }
  4236. _ACEOF
  4237. if ac_fn_c_try_compile "$LINENO"; then :
  4238. else
  4239. ac_c_werror_flag=$ac_save_c_werror_flag
  4240. CFLAGS="-g"
  4241. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4242. /* end confdefs.h. */
  4243. int
  4244. main ()
  4245. {
  4246. ;
  4247. return 0;
  4248. }
  4249. _ACEOF
  4250. if ac_fn_c_try_compile "$LINENO"; then :
  4251. ac_cv_prog_cc_g=yes
  4252. fi
  4253. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4254. fi
  4255. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4256. fi
  4257. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4258. ac_c_werror_flag=$ac_save_c_werror_flag
  4259. fi
  4260. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  4261. $as_echo "$ac_cv_prog_cc_g" >&6; }
  4262. if test "$ac_test_CFLAGS" = set; then
  4263. CFLAGS=$ac_save_CFLAGS
  4264. elif test $ac_cv_prog_cc_g = yes; then
  4265. if test "$GCC" = yes; then
  4266. CFLAGS="-g -O2"
  4267. else
  4268. CFLAGS="-g"
  4269. fi
  4270. else
  4271. if test "$GCC" = yes; then
  4272. CFLAGS="-O2"
  4273. else
  4274. CFLAGS=
  4275. fi
  4276. fi
  4277. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  4278. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  4279. if ${ac_cv_prog_cc_c89+:} false; then :
  4280. $as_echo_n "(cached) " >&6
  4281. else
  4282. ac_cv_prog_cc_c89=no
  4283. ac_save_CC=$CC
  4284. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4285. /* end confdefs.h. */
  4286. #include <stdarg.h>
  4287. #include <stdio.h>
  4288. struct stat;
  4289. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  4290. struct buf { int x; };
  4291. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  4292. static char *e (p, i)
  4293. char **p;
  4294. int i;
  4295. {
  4296. return p[i];
  4297. }
  4298. static char *f (char * (*g) (char **, int), char **p, ...)
  4299. {
  4300. char *s;
  4301. va_list v;
  4302. va_start (v,p);
  4303. s = g (p, va_arg (v,int));
  4304. va_end (v);
  4305. return s;
  4306. }
  4307. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  4308. function prototypes and stuff, but not '\xHH' hex character constants.
  4309. These don't provoke an error unfortunately, instead are silently treated
  4310. as 'x'. The following induces an error, until -std is added to get
  4311. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  4312. array size at least. It's necessary to write '\x00'==0 to get something
  4313. that's true only with -std. */
  4314. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  4315. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  4316. inside strings and character constants. */
  4317. #define FOO(x) 'x'
  4318. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  4319. int test (int i, double x);
  4320. struct s1 {int (*f) (int a);};
  4321. struct s2 {int (*f) (double a);};
  4322. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4323. int argc;
  4324. char **argv;
  4325. int
  4326. main ()
  4327. {
  4328. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  4329. ;
  4330. return 0;
  4331. }
  4332. _ACEOF
  4333. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  4334. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4335. do
  4336. CC="$ac_save_CC $ac_arg"
  4337. if ac_fn_c_try_compile "$LINENO"; then :
  4338. ac_cv_prog_cc_c89=$ac_arg
  4339. fi
  4340. rm -f core conftest.err conftest.$ac_objext
  4341. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4342. done
  4343. rm -f conftest.$ac_ext
  4344. CC=$ac_save_CC
  4345. fi
  4346. # AC_CACHE_VAL
  4347. case "x$ac_cv_prog_cc_c89" in
  4348. x)
  4349. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4350. $as_echo "none needed" >&6; } ;;
  4351. xno)
  4352. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4353. $as_echo "unsupported" >&6; } ;;
  4354. *)
  4355. CC="$CC $ac_cv_prog_cc_c89"
  4356. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4357. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  4358. esac
  4359. if test "x$ac_cv_prog_cc_c89" != xno; then :
  4360. fi
  4361. ac_ext=c
  4362. ac_cpp='$CPP $CPPFLAGS'
  4363. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4364. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4365. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4366. depcc="$CC" am_compiler_list=
  4367. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4368. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4369. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  4370. $as_echo_n "(cached) " >&6
  4371. else
  4372. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4373. # We make a subdir and do the tests there. Otherwise we can end up
  4374. # making bogus files that we don't know about and never remove. For
  4375. # instance it was reported that on HP-UX the gcc test will end up
  4376. # making a dummy file named 'D' -- because '-MD' means "put the output
  4377. # in D".
  4378. rm -rf conftest.dir
  4379. mkdir conftest.dir
  4380. # Copy depcomp to subdir because otherwise we won't find it if we're
  4381. # using a relative directory.
  4382. cp "$am_depcomp" conftest.dir
  4383. cd conftest.dir
  4384. # We will build objects and dependencies in a subdirectory because
  4385. # it helps to detect inapplicable dependency modes. For instance
  4386. # both Tru64's cc and ICC support -MD to output dependencies as a
  4387. # side effect of compilation, but ICC will put the dependencies in
  4388. # the current directory while Tru64 will put them in the object
  4389. # directory.
  4390. mkdir sub
  4391. am_cv_CC_dependencies_compiler_type=none
  4392. if test "$am_compiler_list" = ""; then
  4393. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4394. fi
  4395. am__universal=false
  4396. case " $depcc " in #(
  4397. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  4398. esac
  4399. for depmode in $am_compiler_list; do
  4400. # Setup a source with many dependencies, because some compilers
  4401. # like to wrap large dependency lists on column 80 (with \), and
  4402. # we should not choose a depcomp mode which is confused by this.
  4403. #
  4404. # We need to recreate these files for each test, as the compiler may
  4405. # overwrite some of them when testing with obscure command lines.
  4406. # This happens at least with the AIX C compiler.
  4407. : > sub/conftest.c
  4408. for i in 1 2 3 4 5 6; do
  4409. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4410. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  4411. # Solaris 10 /bin/sh.
  4412. echo '/* dummy */' > sub/conftst$i.h
  4413. done
  4414. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4415. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  4416. # mode. It turns out that the SunPro C++ compiler does not properly
  4417. # handle '-M -o', and we need to detect this. Also, some Intel
  4418. # versions had trouble with output in subdirs.
  4419. am__obj=sub/conftest.${OBJEXT-o}
  4420. am__minus_obj="-o $am__obj"
  4421. case $depmode in
  4422. gcc)
  4423. # This depmode causes a compiler race in universal mode.
  4424. test "$am__universal" = false || continue
  4425. ;;
  4426. nosideeffect)
  4427. # After this tag, mechanisms are not by side-effect, so they'll
  4428. # only be used when explicitly requested.
  4429. if test "x$enable_dependency_tracking" = xyes; then
  4430. continue
  4431. else
  4432. break
  4433. fi
  4434. ;;
  4435. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  4436. # This compiler won't grok '-c -o', but also, the minuso test has
  4437. # not run yet. These depmodes are late enough in the game, and
  4438. # so weak that their functioning should not be impacted.
  4439. am__obj=conftest.${OBJEXT-o}
  4440. am__minus_obj=
  4441. ;;
  4442. none) break ;;
  4443. esac
  4444. if depmode=$depmode \
  4445. source=sub/conftest.c object=$am__obj \
  4446. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4447. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4448. >/dev/null 2>conftest.err &&
  4449. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4450. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4451. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4452. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4453. # icc doesn't choke on unknown options, it will just issue warnings
  4454. # or remarks (even with -Werror). So we grep stderr for any message
  4455. # that says an option was ignored or not supported.
  4456. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4457. # icc: Command line warning: ignoring option '-M'; no argument required
  4458. # The diagnosis changed in icc 8.0:
  4459. # icc: Command line remark: option '-MP' not supported
  4460. if (grep 'ignoring option' conftest.err ||
  4461. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4462. am_cv_CC_dependencies_compiler_type=$depmode
  4463. break
  4464. fi
  4465. fi
  4466. done
  4467. cd ..
  4468. rm -rf conftest.dir
  4469. else
  4470. am_cv_CC_dependencies_compiler_type=none
  4471. fi
  4472. fi
  4473. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  4474. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  4475. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4476. if
  4477. test "x$enable_dependency_tracking" != xno \
  4478. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4479. am__fastdepCC_TRUE=
  4480. am__fastdepCC_FALSE='#'
  4481. else
  4482. am__fastdepCC_TRUE='#'
  4483. am__fastdepCC_FALSE=
  4484. fi
  4485. if test "x$CC" != xcc; then
  4486. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
  4487. $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
  4488. else
  4489. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
  4490. $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
  4491. fi
  4492. set dummy $CC; ac_cc=`$as_echo "$2" |
  4493. sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  4494. if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
  4495. $as_echo_n "(cached) " >&6
  4496. else
  4497. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4498. /* end confdefs.h. */
  4499. int
  4500. main ()
  4501. {
  4502. ;
  4503. return 0;
  4504. }
  4505. _ACEOF
  4506. # Make sure it works both with $CC and with simple cc.
  4507. # We do the test twice because some compilers refuse to overwrite an
  4508. # existing .o file with -o, though they will create one.
  4509. ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  4510. rm -f conftest2.*
  4511. if { { case "(($ac_try" in
  4512. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4513. *) ac_try_echo=$ac_try;;
  4514. esac
  4515. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4516. $as_echo "$ac_try_echo"; } >&5
  4517. (eval "$ac_try") 2>&5
  4518. ac_status=$?
  4519. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4520. test $ac_status = 0; } &&
  4521. test -f conftest2.$ac_objext && { { case "(($ac_try" in
  4522. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4523. *) ac_try_echo=$ac_try;;
  4524. esac
  4525. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4526. $as_echo "$ac_try_echo"; } >&5
  4527. (eval "$ac_try") 2>&5
  4528. ac_status=$?
  4529. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4530. test $ac_status = 0; };
  4531. then
  4532. eval ac_cv_prog_cc_${ac_cc}_c_o=yes
  4533. if test "x$CC" != xcc; then
  4534. # Test first that cc exists at all.
  4535. if { ac_try='cc -c conftest.$ac_ext >&5'
  4536. { { case "(($ac_try" in
  4537. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4538. *) ac_try_echo=$ac_try;;
  4539. esac
  4540. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4541. $as_echo "$ac_try_echo"; } >&5
  4542. (eval "$ac_try") 2>&5
  4543. ac_status=$?
  4544. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4545. test $ac_status = 0; }; }; then
  4546. ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  4547. rm -f conftest2.*
  4548. if { { case "(($ac_try" in
  4549. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4550. *) ac_try_echo=$ac_try;;
  4551. esac
  4552. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4553. $as_echo "$ac_try_echo"; } >&5
  4554. (eval "$ac_try") 2>&5
  4555. ac_status=$?
  4556. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4557. test $ac_status = 0; } &&
  4558. test -f conftest2.$ac_objext && { { case "(($ac_try" in
  4559. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4560. *) ac_try_echo=$ac_try;;
  4561. esac
  4562. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4563. $as_echo "$ac_try_echo"; } >&5
  4564. (eval "$ac_try") 2>&5
  4565. ac_status=$?
  4566. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4567. test $ac_status = 0; };
  4568. then
  4569. # cc works too.
  4570. :
  4571. else
  4572. # cc exists but doesn't like -o.
  4573. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  4574. fi
  4575. fi
  4576. fi
  4577. else
  4578. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  4579. fi
  4580. rm -f core conftest*
  4581. fi
  4582. if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
  4583. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4584. $as_echo "yes" >&6; }
  4585. else
  4586. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4587. $as_echo "no" >&6; }
  4588. $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
  4589. fi
  4590. # FIXME: we rely on the cache variable name because
  4591. # there is no other way.
  4592. set dummy $CC
  4593. am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  4594. eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
  4595. if test "$am_t" != yes; then
  4596. # Losing compiler, so override with the script.
  4597. # FIXME: It is wrong to rewrite CC.
  4598. # But if we don't then we get into trouble of one sort or another.
  4599. # A longer-term fix would be to have automake use am__CC in this case,
  4600. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  4601. CC="$am_aux_dir/compile $CC"
  4602. fi
  4603. # By default we simply use the C compiler to build assembly code.
  4604. test "${CCAS+set}" = set || CCAS=$CC
  4605. test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
  4606. depcc="$CCAS" am_compiler_list=
  4607. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4608. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4609. if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
  4610. $as_echo_n "(cached) " >&6
  4611. else
  4612. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4613. # We make a subdir and do the tests there. Otherwise we can end up
  4614. # making bogus files that we don't know about and never remove. For
  4615. # instance it was reported that on HP-UX the gcc test will end up
  4616. # making a dummy file named 'D' -- because '-MD' means "put the output
  4617. # in D".
  4618. rm -rf conftest.dir
  4619. mkdir conftest.dir
  4620. # Copy depcomp to subdir because otherwise we won't find it if we're
  4621. # using a relative directory.
  4622. cp "$am_depcomp" conftest.dir
  4623. cd conftest.dir
  4624. # We will build objects and dependencies in a subdirectory because
  4625. # it helps to detect inapplicable dependency modes. For instance
  4626. # both Tru64's cc and ICC support -MD to output dependencies as a
  4627. # side effect of compilation, but ICC will put the dependencies in
  4628. # the current directory while Tru64 will put them in the object
  4629. # directory.
  4630. mkdir sub
  4631. am_cv_CCAS_dependencies_compiler_type=none
  4632. if test "$am_compiler_list" = ""; then
  4633. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4634. fi
  4635. am__universal=false
  4636. for depmode in $am_compiler_list; do
  4637. # Setup a source with many dependencies, because some compilers
  4638. # like to wrap large dependency lists on column 80 (with \), and
  4639. # we should not choose a depcomp mode which is confused by this.
  4640. #
  4641. # We need to recreate these files for each test, as the compiler may
  4642. # overwrite some of them when testing with obscure command lines.
  4643. # This happens at least with the AIX C compiler.
  4644. : > sub/conftest.c
  4645. for i in 1 2 3 4 5 6; do
  4646. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4647. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  4648. # Solaris 10 /bin/sh.
  4649. echo '/* dummy */' > sub/conftst$i.h
  4650. done
  4651. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4652. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  4653. # mode. It turns out that the SunPro C++ compiler does not properly
  4654. # handle '-M -o', and we need to detect this. Also, some Intel
  4655. # versions had trouble with output in subdirs.
  4656. am__obj=sub/conftest.${OBJEXT-o}
  4657. am__minus_obj="-o $am__obj"
  4658. case $depmode in
  4659. gcc)
  4660. # This depmode causes a compiler race in universal mode.
  4661. test "$am__universal" = false || continue
  4662. ;;
  4663. nosideeffect)
  4664. # After this tag, mechanisms are not by side-effect, so they'll
  4665. # only be used when explicitly requested.
  4666. if test "x$enable_dependency_tracking" = xyes; then
  4667. continue
  4668. else
  4669. break
  4670. fi
  4671. ;;
  4672. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  4673. # This compiler won't grok '-c -o', but also, the minuso test has
  4674. # not run yet. These depmodes are late enough in the game, and
  4675. # so weak that their functioning should not be impacted.
  4676. am__obj=conftest.${OBJEXT-o}
  4677. am__minus_obj=
  4678. ;;
  4679. none) break ;;
  4680. esac
  4681. if depmode=$depmode \
  4682. source=sub/conftest.c object=$am__obj \
  4683. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4684. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4685. >/dev/null 2>conftest.err &&
  4686. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4687. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4688. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4689. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4690. # icc doesn't choke on unknown options, it will just issue warnings
  4691. # or remarks (even with -Werror). So we grep stderr for any message
  4692. # that says an option was ignored or not supported.
  4693. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4694. # icc: Command line warning: ignoring option '-M'; no argument required
  4695. # The diagnosis changed in icc 8.0:
  4696. # icc: Command line remark: option '-MP' not supported
  4697. if (grep 'ignoring option' conftest.err ||
  4698. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4699. am_cv_CCAS_dependencies_compiler_type=$depmode
  4700. break
  4701. fi
  4702. fi
  4703. done
  4704. cd ..
  4705. rm -rf conftest.dir
  4706. else
  4707. am_cv_CCAS_dependencies_compiler_type=none
  4708. fi
  4709. fi
  4710. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
  4711. $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
  4712. CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
  4713. if
  4714. test "x$enable_dependency_tracking" != xno \
  4715. && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
  4716. am__fastdepCCAS_TRUE=
  4717. am__fastdepCCAS_FALSE='#'
  4718. else
  4719. am__fastdepCCAS_TRUE='#'
  4720. am__fastdepCCAS_FALSE=
  4721. fi
  4722. # disable static libs by default - we only use a couple
  4723. # Check whether --enable-static was given.
  4724. if test "${enable_static+set}" = set; then :
  4725. enableval=$enable_static; p=${PACKAGE-default}
  4726. case $enableval in
  4727. yes) enable_static=yes ;;
  4728. no) enable_static=no ;;
  4729. *)
  4730. enable_static=no
  4731. # Look at the argument we got. We use all the common list separators.
  4732. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  4733. for pkg in $enableval; do
  4734. IFS="$lt_save_ifs"
  4735. if test "X$pkg" = "X$p"; then
  4736. enable_static=yes
  4737. fi
  4738. done
  4739. IFS="$lt_save_ifs"
  4740. ;;
  4741. esac
  4742. else
  4743. enable_static=no
  4744. fi
  4745. case `pwd` in
  4746. *\ * | *\ *)
  4747. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  4748. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  4749. esac
  4750. macro_version='2.4.2'
  4751. macro_revision='1.3337'
  4752. ltmain="$ac_aux_dir/ltmain.sh"
  4753. # Backslashify metacharacters that are still active within
  4754. # double-quoted strings.
  4755. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  4756. # Same as above, but do not quote variable references.
  4757. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  4758. # Sed substitution to delay expansion of an escaped shell variable in a
  4759. # double_quote_subst'ed string.
  4760. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  4761. # Sed substitution to delay expansion of an escaped single quote.
  4762. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  4763. # Sed substitution to avoid accidental globbing in evaled expressions
  4764. no_glob_subst='s/\*/\\\*/g'
  4765. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  4766. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  4767. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  4768. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  4769. $as_echo_n "checking how to print strings... " >&6; }
  4770. # Test print first, because it will be a builtin if present.
  4771. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  4772. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  4773. ECHO='print -r --'
  4774. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  4775. ECHO='printf %s\n'
  4776. else
  4777. # Use this function as a fallback that always works.
  4778. func_fallback_echo ()
  4779. {
  4780. eval 'cat <<_LTECHO_EOF
  4781. $1
  4782. _LTECHO_EOF'
  4783. }
  4784. ECHO='func_fallback_echo'
  4785. fi
  4786. # func_echo_all arg...
  4787. # Invoke $ECHO with all args, space-separated.
  4788. func_echo_all ()
  4789. {
  4790. $ECHO ""
  4791. }
  4792. case "$ECHO" in
  4793. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  4794. $as_echo "printf" >&6; } ;;
  4795. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  4796. $as_echo "print -r" >&6; } ;;
  4797. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  4798. $as_echo "cat" >&6; } ;;
  4799. esac
  4800. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4801. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4802. if ${ac_cv_path_SED+:} false; then :
  4803. $as_echo_n "(cached) " >&6
  4804. else
  4805. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4806. for ac_i in 1 2 3 4 5 6 7; do
  4807. ac_script="$ac_script$as_nl$ac_script"
  4808. done
  4809. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4810. { ac_script=; unset ac_script;}
  4811. if test -z "$SED"; then
  4812. ac_path_SED_found=false
  4813. # Loop through the user's path and test for each of PROGNAME-LIST
  4814. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4815. for as_dir in $PATH
  4816. do
  4817. IFS=$as_save_IFS
  4818. test -z "$as_dir" && as_dir=.
  4819. for ac_prog in sed gsed; do
  4820. for ac_exec_ext in '' $ac_executable_extensions; do
  4821. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4822. as_fn_executable_p "$ac_path_SED" || continue
  4823. # Check for GNU ac_path_SED and select it if it is found.
  4824. # Check for GNU $ac_path_SED
  4825. case `"$ac_path_SED" --version 2>&1` in
  4826. *GNU*)
  4827. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4828. *)
  4829. ac_count=0
  4830. $as_echo_n 0123456789 >"conftest.in"
  4831. while :
  4832. do
  4833. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4834. mv "conftest.tmp" "conftest.in"
  4835. cp "conftest.in" "conftest.nl"
  4836. $as_echo '' >> "conftest.nl"
  4837. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4838. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4839. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4840. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4841. # Best one so far, save it but keep looking for a better one
  4842. ac_cv_path_SED="$ac_path_SED"
  4843. ac_path_SED_max=$ac_count
  4844. fi
  4845. # 10*(2^10) chars as input seems more than enough
  4846. test $ac_count -gt 10 && break
  4847. done
  4848. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4849. esac
  4850. $ac_path_SED_found && break 3
  4851. done
  4852. done
  4853. done
  4854. IFS=$as_save_IFS
  4855. if test -z "$ac_cv_path_SED"; then
  4856. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4857. fi
  4858. else
  4859. ac_cv_path_SED=$SED
  4860. fi
  4861. fi
  4862. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4863. $as_echo "$ac_cv_path_SED" >&6; }
  4864. SED="$ac_cv_path_SED"
  4865. rm -f conftest.sed
  4866. test -z "$SED" && SED=sed
  4867. Xsed="$SED -e 1s/^X//"
  4868. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4869. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4870. if ${ac_cv_path_GREP+:} false; then :
  4871. $as_echo_n "(cached) " >&6
  4872. else
  4873. if test -z "$GREP"; then
  4874. ac_path_GREP_found=false
  4875. # Loop through the user's path and test for each of PROGNAME-LIST
  4876. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4877. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4878. do
  4879. IFS=$as_save_IFS
  4880. test -z "$as_dir" && as_dir=.
  4881. for ac_prog in grep ggrep; do
  4882. for ac_exec_ext in '' $ac_executable_extensions; do
  4883. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4884. as_fn_executable_p "$ac_path_GREP" || continue
  4885. # Check for GNU ac_path_GREP and select it if it is found.
  4886. # Check for GNU $ac_path_GREP
  4887. case `"$ac_path_GREP" --version 2>&1` in
  4888. *GNU*)
  4889. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4890. *)
  4891. ac_count=0
  4892. $as_echo_n 0123456789 >"conftest.in"
  4893. while :
  4894. do
  4895. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4896. mv "conftest.tmp" "conftest.in"
  4897. cp "conftest.in" "conftest.nl"
  4898. $as_echo 'GREP' >> "conftest.nl"
  4899. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4900. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4901. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4902. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4903. # Best one so far, save it but keep looking for a better one
  4904. ac_cv_path_GREP="$ac_path_GREP"
  4905. ac_path_GREP_max=$ac_count
  4906. fi
  4907. # 10*(2^10) chars as input seems more than enough
  4908. test $ac_count -gt 10 && break
  4909. done
  4910. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4911. esac
  4912. $ac_path_GREP_found && break 3
  4913. done
  4914. done
  4915. done
  4916. IFS=$as_save_IFS
  4917. if test -z "$ac_cv_path_GREP"; then
  4918. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4919. fi
  4920. else
  4921. ac_cv_path_GREP=$GREP
  4922. fi
  4923. fi
  4924. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4925. $as_echo "$ac_cv_path_GREP" >&6; }
  4926. GREP="$ac_cv_path_GREP"
  4927. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4928. $as_echo_n "checking for egrep... " >&6; }
  4929. if ${ac_cv_path_EGREP+:} false; then :
  4930. $as_echo_n "(cached) " >&6
  4931. else
  4932. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4933. then ac_cv_path_EGREP="$GREP -E"
  4934. else
  4935. if test -z "$EGREP"; then
  4936. ac_path_EGREP_found=false
  4937. # Loop through the user's path and test for each of PROGNAME-LIST
  4938. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4939. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4940. do
  4941. IFS=$as_save_IFS
  4942. test -z "$as_dir" && as_dir=.
  4943. for ac_prog in egrep; do
  4944. for ac_exec_ext in '' $ac_executable_extensions; do
  4945. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4946. as_fn_executable_p "$ac_path_EGREP" || continue
  4947. # Check for GNU ac_path_EGREP and select it if it is found.
  4948. # Check for GNU $ac_path_EGREP
  4949. case `"$ac_path_EGREP" --version 2>&1` in
  4950. *GNU*)
  4951. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4952. *)
  4953. ac_count=0
  4954. $as_echo_n 0123456789 >"conftest.in"
  4955. while :
  4956. do
  4957. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4958. mv "conftest.tmp" "conftest.in"
  4959. cp "conftest.in" "conftest.nl"
  4960. $as_echo 'EGREP' >> "conftest.nl"
  4961. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4962. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4963. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4964. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4965. # Best one so far, save it but keep looking for a better one
  4966. ac_cv_path_EGREP="$ac_path_EGREP"
  4967. ac_path_EGREP_max=$ac_count
  4968. fi
  4969. # 10*(2^10) chars as input seems more than enough
  4970. test $ac_count -gt 10 && break
  4971. done
  4972. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4973. esac
  4974. $ac_path_EGREP_found && break 3
  4975. done
  4976. done
  4977. done
  4978. IFS=$as_save_IFS
  4979. if test -z "$ac_cv_path_EGREP"; then
  4980. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4981. fi
  4982. else
  4983. ac_cv_path_EGREP=$EGREP
  4984. fi
  4985. fi
  4986. fi
  4987. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4988. $as_echo "$ac_cv_path_EGREP" >&6; }
  4989. EGREP="$ac_cv_path_EGREP"
  4990. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4991. $as_echo_n "checking for fgrep... " >&6; }
  4992. if ${ac_cv_path_FGREP+:} false; then :
  4993. $as_echo_n "(cached) " >&6
  4994. else
  4995. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4996. then ac_cv_path_FGREP="$GREP -F"
  4997. else
  4998. if test -z "$FGREP"; then
  4999. ac_path_FGREP_found=false
  5000. # Loop through the user's path and test for each of PROGNAME-LIST
  5001. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5002. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5003. do
  5004. IFS=$as_save_IFS
  5005. test -z "$as_dir" && as_dir=.
  5006. for ac_prog in fgrep; do
  5007. for ac_exec_ext in '' $ac_executable_extensions; do
  5008. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  5009. as_fn_executable_p "$ac_path_FGREP" || continue
  5010. # Check for GNU ac_path_FGREP and select it if it is found.
  5011. # Check for GNU $ac_path_FGREP
  5012. case `"$ac_path_FGREP" --version 2>&1` in
  5013. *GNU*)
  5014. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  5015. *)
  5016. ac_count=0
  5017. $as_echo_n 0123456789 >"conftest.in"
  5018. while :
  5019. do
  5020. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5021. mv "conftest.tmp" "conftest.in"
  5022. cp "conftest.in" "conftest.nl"
  5023. $as_echo 'FGREP' >> "conftest.nl"
  5024. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5025. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5026. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5027. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  5028. # Best one so far, save it but keep looking for a better one
  5029. ac_cv_path_FGREP="$ac_path_FGREP"
  5030. ac_path_FGREP_max=$ac_count
  5031. fi
  5032. # 10*(2^10) chars as input seems more than enough
  5033. test $ac_count -gt 10 && break
  5034. done
  5035. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5036. esac
  5037. $ac_path_FGREP_found && break 3
  5038. done
  5039. done
  5040. done
  5041. IFS=$as_save_IFS
  5042. if test -z "$ac_cv_path_FGREP"; then
  5043. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  5044. fi
  5045. else
  5046. ac_cv_path_FGREP=$FGREP
  5047. fi
  5048. fi
  5049. fi
  5050. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  5051. $as_echo "$ac_cv_path_FGREP" >&6; }
  5052. FGREP="$ac_cv_path_FGREP"
  5053. test -z "$GREP" && GREP=grep
  5054. # Check whether --with-gnu-ld was given.
  5055. if test "${with_gnu_ld+set}" = set; then :
  5056. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  5057. else
  5058. with_gnu_ld=no
  5059. fi
  5060. ac_prog=ld
  5061. if test "$GCC" = yes; then
  5062. # Check if gcc -print-prog-name=ld gives a path.
  5063. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  5064. $as_echo_n "checking for ld used by $CC... " >&6; }
  5065. case $host in
  5066. *-*-mingw*)
  5067. # gcc leaves a trailing carriage return which upsets mingw
  5068. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  5069. *)
  5070. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  5071. esac
  5072. case $ac_prog in
  5073. # Accept absolute paths.
  5074. [\\/]* | ?:[\\/]*)
  5075. re_direlt='/[^/][^/]*/\.\./'
  5076. # Canonicalize the pathname of ld
  5077. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  5078. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  5079. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  5080. done
  5081. test -z "$LD" && LD="$ac_prog"
  5082. ;;
  5083. "")
  5084. # If it fails, then pretend we aren't using GCC.
  5085. ac_prog=ld
  5086. ;;
  5087. *)
  5088. # If it is relative, then search for the first ld in PATH.
  5089. with_gnu_ld=unknown
  5090. ;;
  5091. esac
  5092. elif test "$with_gnu_ld" = yes; then
  5093. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  5094. $as_echo_n "checking for GNU ld... " >&6; }
  5095. else
  5096. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  5097. $as_echo_n "checking for non-GNU ld... " >&6; }
  5098. fi
  5099. if ${lt_cv_path_LD+:} false; then :
  5100. $as_echo_n "(cached) " >&6
  5101. else
  5102. if test -z "$LD"; then
  5103. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5104. for ac_dir in $PATH; do
  5105. IFS="$lt_save_ifs"
  5106. test -z "$ac_dir" && ac_dir=.
  5107. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  5108. lt_cv_path_LD="$ac_dir/$ac_prog"
  5109. # Check to see if the program is GNU ld. I'd rather use --version,
  5110. # but apparently some variants of GNU ld only accept -v.
  5111. # Break only if it was the GNU/non-GNU ld that we prefer.
  5112. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  5113. *GNU* | *'with BFD'*)
  5114. test "$with_gnu_ld" != no && break
  5115. ;;
  5116. *)
  5117. test "$with_gnu_ld" != yes && break
  5118. ;;
  5119. esac
  5120. fi
  5121. done
  5122. IFS="$lt_save_ifs"
  5123. else
  5124. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  5125. fi
  5126. fi
  5127. LD="$lt_cv_path_LD"
  5128. if test -n "$LD"; then
  5129. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  5130. $as_echo "$LD" >&6; }
  5131. else
  5132. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5133. $as_echo "no" >&6; }
  5134. fi
  5135. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  5136. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  5137. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  5138. if ${lt_cv_prog_gnu_ld+:} false; then :
  5139. $as_echo_n "(cached) " >&6
  5140. else
  5141. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  5142. case `$LD -v 2>&1 </dev/null` in
  5143. *GNU* | *'with BFD'*)
  5144. lt_cv_prog_gnu_ld=yes
  5145. ;;
  5146. *)
  5147. lt_cv_prog_gnu_ld=no
  5148. ;;
  5149. esac
  5150. fi
  5151. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  5152. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  5153. with_gnu_ld=$lt_cv_prog_gnu_ld
  5154. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  5155. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  5156. if ${lt_cv_path_NM+:} false; then :
  5157. $as_echo_n "(cached) " >&6
  5158. else
  5159. if test -n "$NM"; then
  5160. # Let the user override the test.
  5161. lt_cv_path_NM="$NM"
  5162. else
  5163. lt_nm_to_check="${ac_tool_prefix}nm"
  5164. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  5165. lt_nm_to_check="$lt_nm_to_check nm"
  5166. fi
  5167. for lt_tmp_nm in $lt_nm_to_check; do
  5168. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5169. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  5170. IFS="$lt_save_ifs"
  5171. test -z "$ac_dir" && ac_dir=.
  5172. tmp_nm="$ac_dir/$lt_tmp_nm"
  5173. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  5174. # Check to see if the nm accepts a BSD-compat flag.
  5175. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  5176. # nm: unknown option "B" ignored
  5177. # Tru64's nm complains that /dev/null is an invalid object file
  5178. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  5179. */dev/null* | *'Invalid file or object type'*)
  5180. lt_cv_path_NM="$tmp_nm -B"
  5181. break
  5182. ;;
  5183. *)
  5184. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  5185. */dev/null*)
  5186. lt_cv_path_NM="$tmp_nm -p"
  5187. break
  5188. ;;
  5189. *)
  5190. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  5191. continue # so that we can try to find one that supports BSD flags
  5192. ;;
  5193. esac
  5194. ;;
  5195. esac
  5196. fi
  5197. done
  5198. IFS="$lt_save_ifs"
  5199. done
  5200. : ${lt_cv_path_NM=no}
  5201. fi
  5202. fi
  5203. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  5204. $as_echo "$lt_cv_path_NM" >&6; }
  5205. if test "$lt_cv_path_NM" != "no"; then
  5206. NM="$lt_cv_path_NM"
  5207. else
  5208. # Didn't find any BSD compatible name lister, look for dumpbin.
  5209. if test -n "$DUMPBIN"; then :
  5210. # Let the user override the test.
  5211. else
  5212. if test -n "$ac_tool_prefix"; then
  5213. for ac_prog in dumpbin "link -dump"
  5214. do
  5215. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5216. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5217. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5218. $as_echo_n "checking for $ac_word... " >&6; }
  5219. if ${ac_cv_prog_DUMPBIN+:} false; then :
  5220. $as_echo_n "(cached) " >&6
  5221. else
  5222. if test -n "$DUMPBIN"; then
  5223. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  5224. else
  5225. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5226. for as_dir in $PATH
  5227. do
  5228. IFS=$as_save_IFS
  5229. test -z "$as_dir" && as_dir=.
  5230. for ac_exec_ext in '' $ac_executable_extensions; do
  5231. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5232. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  5233. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5234. break 2
  5235. fi
  5236. done
  5237. done
  5238. IFS=$as_save_IFS
  5239. fi
  5240. fi
  5241. DUMPBIN=$ac_cv_prog_DUMPBIN
  5242. if test -n "$DUMPBIN"; then
  5243. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  5244. $as_echo "$DUMPBIN" >&6; }
  5245. else
  5246. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5247. $as_echo "no" >&6; }
  5248. fi
  5249. test -n "$DUMPBIN" && break
  5250. done
  5251. fi
  5252. if test -z "$DUMPBIN"; then
  5253. ac_ct_DUMPBIN=$DUMPBIN
  5254. for ac_prog in dumpbin "link -dump"
  5255. do
  5256. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5257. set dummy $ac_prog; ac_word=$2
  5258. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5259. $as_echo_n "checking for $ac_word... " >&6; }
  5260. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  5261. $as_echo_n "(cached) " >&6
  5262. else
  5263. if test -n "$ac_ct_DUMPBIN"; then
  5264. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  5265. else
  5266. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5267. for as_dir in $PATH
  5268. do
  5269. IFS=$as_save_IFS
  5270. test -z "$as_dir" && as_dir=.
  5271. for ac_exec_ext in '' $ac_executable_extensions; do
  5272. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5273. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  5274. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5275. break 2
  5276. fi
  5277. done
  5278. done
  5279. IFS=$as_save_IFS
  5280. fi
  5281. fi
  5282. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  5283. if test -n "$ac_ct_DUMPBIN"; then
  5284. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  5285. $as_echo "$ac_ct_DUMPBIN" >&6; }
  5286. else
  5287. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5288. $as_echo "no" >&6; }
  5289. fi
  5290. test -n "$ac_ct_DUMPBIN" && break
  5291. done
  5292. if test "x$ac_ct_DUMPBIN" = x; then
  5293. DUMPBIN=":"
  5294. else
  5295. case $cross_compiling:$ac_tool_warned in
  5296. yes:)
  5297. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5298. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5299. ac_tool_warned=yes ;;
  5300. esac
  5301. DUMPBIN=$ac_ct_DUMPBIN
  5302. fi
  5303. fi
  5304. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  5305. *COFF*)
  5306. DUMPBIN="$DUMPBIN -symbols"
  5307. ;;
  5308. *)
  5309. DUMPBIN=:
  5310. ;;
  5311. esac
  5312. fi
  5313. if test "$DUMPBIN" != ":"; then
  5314. NM="$DUMPBIN"
  5315. fi
  5316. fi
  5317. test -z "$NM" && NM=nm
  5318. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  5319. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  5320. if ${lt_cv_nm_interface+:} false; then :
  5321. $as_echo_n "(cached) " >&6
  5322. else
  5323. lt_cv_nm_interface="BSD nm"
  5324. echo "int some_variable = 0;" > conftest.$ac_ext
  5325. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  5326. (eval "$ac_compile" 2>conftest.err)
  5327. cat conftest.err >&5
  5328. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  5329. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  5330. cat conftest.err >&5
  5331. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  5332. cat conftest.out >&5
  5333. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  5334. lt_cv_nm_interface="MS dumpbin"
  5335. fi
  5336. rm -f conftest*
  5337. fi
  5338. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  5339. $as_echo "$lt_cv_nm_interface" >&6; }
  5340. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  5341. $as_echo_n "checking whether ln -s works... " >&6; }
  5342. LN_S=$as_ln_s
  5343. if test "$LN_S" = "ln -s"; then
  5344. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5345. $as_echo "yes" >&6; }
  5346. else
  5347. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  5348. $as_echo "no, using $LN_S" >&6; }
  5349. fi
  5350. # find the maximum length of command line arguments
  5351. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  5352. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  5353. if ${lt_cv_sys_max_cmd_len+:} false; then :
  5354. $as_echo_n "(cached) " >&6
  5355. else
  5356. i=0
  5357. teststring="ABCD"
  5358. case $build_os in
  5359. msdosdjgpp*)
  5360. # On DJGPP, this test can blow up pretty badly due to problems in libc
  5361. # (any single argument exceeding 2000 bytes causes a buffer overrun
  5362. # during glob expansion). Even if it were fixed, the result of this
  5363. # check would be larger than it should be.
  5364. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  5365. ;;
  5366. gnu*)
  5367. # Under GNU Hurd, this test is not required because there is
  5368. # no limit to the length of command line arguments.
  5369. # Libtool will interpret -1 as no limit whatsoever
  5370. lt_cv_sys_max_cmd_len=-1;
  5371. ;;
  5372. cygwin* | mingw* | cegcc*)
  5373. # On Win9x/ME, this test blows up -- it succeeds, but takes
  5374. # about 5 minutes as the teststring grows exponentially.
  5375. # Worse, since 9x/ME are not pre-emptively multitasking,
  5376. # you end up with a "frozen" computer, even though with patience
  5377. # the test eventually succeeds (with a max line length of 256k).
  5378. # Instead, let's just punt: use the minimum linelength reported by
  5379. # all of the supported platforms: 8192 (on NT/2K/XP).
  5380. lt_cv_sys_max_cmd_len=8192;
  5381. ;;
  5382. mint*)
  5383. # On MiNT this can take a long time and run out of memory.
  5384. lt_cv_sys_max_cmd_len=8192;
  5385. ;;
  5386. amigaos*)
  5387. # On AmigaOS with pdksh, this test takes hours, literally.
  5388. # So we just punt and use a minimum line length of 8192.
  5389. lt_cv_sys_max_cmd_len=8192;
  5390. ;;
  5391. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  5392. # This has been around since 386BSD, at least. Likely further.
  5393. if test -x /sbin/sysctl; then
  5394. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  5395. elif test -x /usr/sbin/sysctl; then
  5396. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  5397. else
  5398. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  5399. fi
  5400. # And add a safety zone
  5401. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5402. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5403. ;;
  5404. interix*)
  5405. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  5406. lt_cv_sys_max_cmd_len=196608
  5407. ;;
  5408. os2*)
  5409. # The test takes a long time on OS/2.
  5410. lt_cv_sys_max_cmd_len=8192
  5411. ;;
  5412. osf*)
  5413. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  5414. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  5415. # nice to cause kernel panics so lets avoid the loop below.
  5416. # First set a reasonable default.
  5417. lt_cv_sys_max_cmd_len=16384
  5418. #
  5419. if test -x /sbin/sysconfig; then
  5420. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  5421. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  5422. esac
  5423. fi
  5424. ;;
  5425. sco3.2v5*)
  5426. lt_cv_sys_max_cmd_len=102400
  5427. ;;
  5428. sysv5* | sco5v6* | sysv4.2uw2*)
  5429. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  5430. if test -n "$kargmax"; then
  5431. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  5432. else
  5433. lt_cv_sys_max_cmd_len=32768
  5434. fi
  5435. ;;
  5436. *)
  5437. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  5438. if test -n "$lt_cv_sys_max_cmd_len"; then
  5439. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5440. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5441. else
  5442. # Make teststring a little bigger before we do anything with it.
  5443. # a 1K string should be a reasonable start.
  5444. for i in 1 2 3 4 5 6 7 8 ; do
  5445. teststring=$teststring$teststring
  5446. done
  5447. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  5448. # If test is not a shell built-in, we'll probably end up computing a
  5449. # maximum length that is only half of the actual maximum length, but
  5450. # we can't tell.
  5451. while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
  5452. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  5453. test $i != 17 # 1/2 MB should be enough
  5454. do
  5455. i=`expr $i + 1`
  5456. teststring=$teststring$teststring
  5457. done
  5458. # Only check the string length outside the loop.
  5459. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  5460. teststring=
  5461. # Add a significant safety factor because C++ compilers can tack on
  5462. # massive amounts of additional arguments before passing them to the
  5463. # linker. It appears as though 1/2 is a usable value.
  5464. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5465. fi
  5466. ;;
  5467. esac
  5468. fi
  5469. if test -n $lt_cv_sys_max_cmd_len ; then
  5470. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  5471. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  5472. else
  5473. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  5474. $as_echo "none" >&6; }
  5475. fi
  5476. max_cmd_len=$lt_cv_sys_max_cmd_len
  5477. : ${CP="cp -f"}
  5478. : ${MV="mv -f"}
  5479. : ${RM="rm -f"}
  5480. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  5481. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  5482. # Try some XSI features
  5483. xsi_shell=no
  5484. ( _lt_dummy="a/b/c"
  5485. test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  5486. = c,a/b,b/c, \
  5487. && eval 'test $(( 1 + 1 )) -eq 2 \
  5488. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  5489. && xsi_shell=yes
  5490. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  5491. $as_echo "$xsi_shell" >&6; }
  5492. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  5493. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  5494. lt_shell_append=no
  5495. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  5496. >/dev/null 2>&1 \
  5497. && lt_shell_append=yes
  5498. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  5499. $as_echo "$lt_shell_append" >&6; }
  5500. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  5501. lt_unset=unset
  5502. else
  5503. lt_unset=false
  5504. fi
  5505. # test EBCDIC or ASCII
  5506. case `echo X|tr X '\101'` in
  5507. A) # ASCII based system
  5508. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  5509. lt_SP2NL='tr \040 \012'
  5510. lt_NL2SP='tr \015\012 \040\040'
  5511. ;;
  5512. *) # EBCDIC based system
  5513. lt_SP2NL='tr \100 \n'
  5514. lt_NL2SP='tr \r\n \100\100'
  5515. ;;
  5516. esac
  5517. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  5518. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  5519. if ${lt_cv_to_host_file_cmd+:} false; then :
  5520. $as_echo_n "(cached) " >&6
  5521. else
  5522. case $host in
  5523. *-*-mingw* )
  5524. case $build in
  5525. *-*-mingw* ) # actually msys
  5526. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  5527. ;;
  5528. *-*-cygwin* )
  5529. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  5530. ;;
  5531. * ) # otherwise, assume *nix
  5532. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  5533. ;;
  5534. esac
  5535. ;;
  5536. *-*-cygwin* )
  5537. case $build in
  5538. *-*-mingw* ) # actually msys
  5539. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  5540. ;;
  5541. *-*-cygwin* )
  5542. lt_cv_to_host_file_cmd=func_convert_file_noop
  5543. ;;
  5544. * ) # otherwise, assume *nix
  5545. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  5546. ;;
  5547. esac
  5548. ;;
  5549. * ) # unhandled hosts (and "normal" native builds)
  5550. lt_cv_to_host_file_cmd=func_convert_file_noop
  5551. ;;
  5552. esac
  5553. fi
  5554. to_host_file_cmd=$lt_cv_to_host_file_cmd
  5555. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  5556. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  5557. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  5558. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  5559. if ${lt_cv_to_tool_file_cmd+:} false; then :
  5560. $as_echo_n "(cached) " >&6
  5561. else
  5562. #assume ordinary cross tools, or native build.
  5563. lt_cv_to_tool_file_cmd=func_convert_file_noop
  5564. case $host in
  5565. *-*-mingw* )
  5566. case $build in
  5567. *-*-mingw* ) # actually msys
  5568. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  5569. ;;
  5570. esac
  5571. ;;
  5572. esac
  5573. fi
  5574. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  5575. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  5576. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  5577. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  5578. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  5579. if ${lt_cv_ld_reload_flag+:} false; then :
  5580. $as_echo_n "(cached) " >&6
  5581. else
  5582. lt_cv_ld_reload_flag='-r'
  5583. fi
  5584. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  5585. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  5586. reload_flag=$lt_cv_ld_reload_flag
  5587. case $reload_flag in
  5588. "" | " "*) ;;
  5589. *) reload_flag=" $reload_flag" ;;
  5590. esac
  5591. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5592. case $host_os in
  5593. cygwin* | mingw* | pw32* | cegcc*)
  5594. if test "$GCC" != yes; then
  5595. reload_cmds=false
  5596. fi
  5597. ;;
  5598. darwin*)
  5599. if test "$GCC" = yes; then
  5600. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  5601. else
  5602. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5603. fi
  5604. ;;
  5605. esac
  5606. if test -n "$ac_tool_prefix"; then
  5607. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5608. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5609. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5610. $as_echo_n "checking for $ac_word... " >&6; }
  5611. if ${ac_cv_prog_OBJDUMP+:} false; then :
  5612. $as_echo_n "(cached) " >&6
  5613. else
  5614. if test -n "$OBJDUMP"; then
  5615. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5616. else
  5617. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5618. for as_dir in $PATH
  5619. do
  5620. IFS=$as_save_IFS
  5621. test -z "$as_dir" && as_dir=.
  5622. for ac_exec_ext in '' $ac_executable_extensions; do
  5623. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5624. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5625. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5626. break 2
  5627. fi
  5628. done
  5629. done
  5630. IFS=$as_save_IFS
  5631. fi
  5632. fi
  5633. OBJDUMP=$ac_cv_prog_OBJDUMP
  5634. if test -n "$OBJDUMP"; then
  5635. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5636. $as_echo "$OBJDUMP" >&6; }
  5637. else
  5638. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5639. $as_echo "no" >&6; }
  5640. fi
  5641. fi
  5642. if test -z "$ac_cv_prog_OBJDUMP"; then
  5643. ac_ct_OBJDUMP=$OBJDUMP
  5644. # Extract the first word of "objdump", so it can be a program name with args.
  5645. set dummy objdump; ac_word=$2
  5646. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5647. $as_echo_n "checking for $ac_word... " >&6; }
  5648. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  5649. $as_echo_n "(cached) " >&6
  5650. else
  5651. if test -n "$ac_ct_OBJDUMP"; then
  5652. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5653. else
  5654. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5655. for as_dir in $PATH
  5656. do
  5657. IFS=$as_save_IFS
  5658. test -z "$as_dir" && as_dir=.
  5659. for ac_exec_ext in '' $ac_executable_extensions; do
  5660. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5661. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5662. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5663. break 2
  5664. fi
  5665. done
  5666. done
  5667. IFS=$as_save_IFS
  5668. fi
  5669. fi
  5670. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5671. if test -n "$ac_ct_OBJDUMP"; then
  5672. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5673. $as_echo "$ac_ct_OBJDUMP" >&6; }
  5674. else
  5675. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5676. $as_echo "no" >&6; }
  5677. fi
  5678. if test "x$ac_ct_OBJDUMP" = x; then
  5679. OBJDUMP="false"
  5680. else
  5681. case $cross_compiling:$ac_tool_warned in
  5682. yes:)
  5683. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5684. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5685. ac_tool_warned=yes ;;
  5686. esac
  5687. OBJDUMP=$ac_ct_OBJDUMP
  5688. fi
  5689. else
  5690. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5691. fi
  5692. test -z "$OBJDUMP" && OBJDUMP=objdump
  5693. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5694. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  5695. if ${lt_cv_deplibs_check_method+:} false; then :
  5696. $as_echo_n "(cached) " >&6
  5697. else
  5698. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5699. lt_cv_file_magic_test_file=
  5700. lt_cv_deplibs_check_method='unknown'
  5701. # Need to set the preceding variable on all platforms that support
  5702. # interlibrary dependencies.
  5703. # 'none' -- dependencies not supported.
  5704. # `unknown' -- same as none, but documents that we really don't know.
  5705. # 'pass_all' -- all dependencies passed with no checks.
  5706. # 'test_compile' -- check by making test program.
  5707. # 'file_magic [[regex]]' -- check by looking for files in library path
  5708. # which responds to the $file_magic_cmd with a given extended regex.
  5709. # If you have `file' or equivalent on your system and you're not sure
  5710. # whether `pass_all' will *always* work, you probably want this one.
  5711. case $host_os in
  5712. aix[4-9]*)
  5713. lt_cv_deplibs_check_method=pass_all
  5714. ;;
  5715. beos*)
  5716. lt_cv_deplibs_check_method=pass_all
  5717. ;;
  5718. bsdi[45]*)
  5719. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5720. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5721. lt_cv_file_magic_test_file=/shlib/libc.so
  5722. ;;
  5723. cygwin*)
  5724. # func_win32_libid is a shell function defined in ltmain.sh
  5725. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5726. lt_cv_file_magic_cmd='func_win32_libid'
  5727. ;;
  5728. mingw* | pw32*)
  5729. # Base MSYS/MinGW do not provide the 'file' command needed by
  5730. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5731. # unless we find 'file', for example because we are cross-compiling.
  5732. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  5733. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  5734. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5735. lt_cv_file_magic_cmd='func_win32_libid'
  5736. else
  5737. # Keep this pattern in sync with the one in func_win32_libid.
  5738. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  5739. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5740. fi
  5741. ;;
  5742. cegcc*)
  5743. # use the weaker test based on 'objdump'. See mingw*.
  5744. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5745. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5746. ;;
  5747. darwin* | rhapsody*)
  5748. lt_cv_deplibs_check_method=pass_all
  5749. ;;
  5750. freebsd* | dragonfly*)
  5751. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5752. case $host_cpu in
  5753. i*86 )
  5754. # Not sure whether the presence of OpenBSD here was a mistake.
  5755. # Let's accept both of them until this is cleared up.
  5756. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5757. lt_cv_file_magic_cmd=/usr/bin/file
  5758. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5759. ;;
  5760. esac
  5761. else
  5762. lt_cv_deplibs_check_method=pass_all
  5763. fi
  5764. ;;
  5765. gnu*)
  5766. lt_cv_deplibs_check_method=pass_all
  5767. ;;
  5768. haiku*)
  5769. lt_cv_deplibs_check_method=pass_all
  5770. ;;
  5771. hpux10.20* | hpux11*)
  5772. lt_cv_file_magic_cmd=/usr/bin/file
  5773. case $host_cpu in
  5774. ia64*)
  5775. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5776. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5777. ;;
  5778. hppa*64*)
  5779. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
  5780. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5781. ;;
  5782. *)
  5783. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  5784. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5785. ;;
  5786. esac
  5787. ;;
  5788. interix[3-9]*)
  5789. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5790. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5791. ;;
  5792. irix5* | irix6* | nonstopux*)
  5793. case $LD in
  5794. *-32|*"-32 ") libmagic=32-bit;;
  5795. *-n32|*"-n32 ") libmagic=N32;;
  5796. *-64|*"-64 ") libmagic=64-bit;;
  5797. *) libmagic=never-match;;
  5798. esac
  5799. lt_cv_deplibs_check_method=pass_all
  5800. ;;
  5801. # This must be glibc/ELF.
  5802. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  5803. lt_cv_deplibs_check_method=pass_all
  5804. ;;
  5805. netbsd*)
  5806. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5807. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5808. else
  5809. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5810. fi
  5811. ;;
  5812. newos6*)
  5813. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5814. lt_cv_file_magic_cmd=/usr/bin/file
  5815. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5816. ;;
  5817. *nto* | *qnx*)
  5818. lt_cv_deplibs_check_method=pass_all
  5819. ;;
  5820. openbsd*)
  5821. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  5822. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5823. else
  5824. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5825. fi
  5826. ;;
  5827. osf3* | osf4* | osf5*)
  5828. lt_cv_deplibs_check_method=pass_all
  5829. ;;
  5830. rdos*)
  5831. lt_cv_deplibs_check_method=pass_all
  5832. ;;
  5833. solaris*)
  5834. lt_cv_deplibs_check_method=pass_all
  5835. ;;
  5836. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5837. lt_cv_deplibs_check_method=pass_all
  5838. ;;
  5839. sysv4 | sysv4.3*)
  5840. case $host_vendor in
  5841. motorola)
  5842. 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]'
  5843. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5844. ;;
  5845. ncr)
  5846. lt_cv_deplibs_check_method=pass_all
  5847. ;;
  5848. sequent)
  5849. lt_cv_file_magic_cmd='/bin/file'
  5850. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5851. ;;
  5852. sni)
  5853. lt_cv_file_magic_cmd='/bin/file'
  5854. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5855. lt_cv_file_magic_test_file=/lib/libc.so
  5856. ;;
  5857. siemens)
  5858. lt_cv_deplibs_check_method=pass_all
  5859. ;;
  5860. pc)
  5861. lt_cv_deplibs_check_method=pass_all
  5862. ;;
  5863. esac
  5864. ;;
  5865. tpf*)
  5866. lt_cv_deplibs_check_method=pass_all
  5867. ;;
  5868. esac
  5869. fi
  5870. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5871. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  5872. file_magic_glob=
  5873. want_nocaseglob=no
  5874. if test "$build" = "$host"; then
  5875. case $host_os in
  5876. mingw* | pw32*)
  5877. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  5878. want_nocaseglob=yes
  5879. else
  5880. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  5881. fi
  5882. ;;
  5883. esac
  5884. fi
  5885. file_magic_cmd=$lt_cv_file_magic_cmd
  5886. deplibs_check_method=$lt_cv_deplibs_check_method
  5887. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5888. if test -n "$ac_tool_prefix"; then
  5889. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  5890. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  5891. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5892. $as_echo_n "checking for $ac_word... " >&6; }
  5893. if ${ac_cv_prog_DLLTOOL+:} false; then :
  5894. $as_echo_n "(cached) " >&6
  5895. else
  5896. if test -n "$DLLTOOL"; then
  5897. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  5898. else
  5899. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5900. for as_dir in $PATH
  5901. do
  5902. IFS=$as_save_IFS
  5903. test -z "$as_dir" && as_dir=.
  5904. for ac_exec_ext in '' $ac_executable_extensions; do
  5905. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5906. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  5907. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5908. break 2
  5909. fi
  5910. done
  5911. done
  5912. IFS=$as_save_IFS
  5913. fi
  5914. fi
  5915. DLLTOOL=$ac_cv_prog_DLLTOOL
  5916. if test -n "$DLLTOOL"; then
  5917. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  5918. $as_echo "$DLLTOOL" >&6; }
  5919. else
  5920. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5921. $as_echo "no" >&6; }
  5922. fi
  5923. fi
  5924. if test -z "$ac_cv_prog_DLLTOOL"; then
  5925. ac_ct_DLLTOOL=$DLLTOOL
  5926. # Extract the first word of "dlltool", so it can be a program name with args.
  5927. set dummy dlltool; ac_word=$2
  5928. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5929. $as_echo_n "checking for $ac_word... " >&6; }
  5930. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  5931. $as_echo_n "(cached) " >&6
  5932. else
  5933. if test -n "$ac_ct_DLLTOOL"; then
  5934. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  5935. else
  5936. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5937. for as_dir in $PATH
  5938. do
  5939. IFS=$as_save_IFS
  5940. test -z "$as_dir" && as_dir=.
  5941. for ac_exec_ext in '' $ac_executable_extensions; do
  5942. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5943. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  5944. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5945. break 2
  5946. fi
  5947. done
  5948. done
  5949. IFS=$as_save_IFS
  5950. fi
  5951. fi
  5952. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  5953. if test -n "$ac_ct_DLLTOOL"; then
  5954. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  5955. $as_echo "$ac_ct_DLLTOOL" >&6; }
  5956. else
  5957. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5958. $as_echo "no" >&6; }
  5959. fi
  5960. if test "x$ac_ct_DLLTOOL" = x; then
  5961. DLLTOOL="false"
  5962. else
  5963. case $cross_compiling:$ac_tool_warned in
  5964. yes:)
  5965. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5966. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5967. ac_tool_warned=yes ;;
  5968. esac
  5969. DLLTOOL=$ac_ct_DLLTOOL
  5970. fi
  5971. else
  5972. DLLTOOL="$ac_cv_prog_DLLTOOL"
  5973. fi
  5974. test -z "$DLLTOOL" && DLLTOOL=dlltool
  5975. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  5976. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  5977. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  5978. $as_echo_n "(cached) " >&6
  5979. else
  5980. lt_cv_sharedlib_from_linklib_cmd='unknown'
  5981. case $host_os in
  5982. cygwin* | mingw* | pw32* | cegcc*)
  5983. # two different shell functions defined in ltmain.sh
  5984. # decide which to use based on capabilities of $DLLTOOL
  5985. case `$DLLTOOL --help 2>&1` in
  5986. *--identify-strict*)
  5987. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  5988. ;;
  5989. *)
  5990. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  5991. ;;
  5992. esac
  5993. ;;
  5994. *)
  5995. # fallback: assume linklib IS sharedlib
  5996. lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  5997. ;;
  5998. esac
  5999. fi
  6000. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  6001. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  6002. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  6003. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  6004. if test -n "$ac_tool_prefix"; then
  6005. for ac_prog in ar
  6006. do
  6007. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  6008. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  6009. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6010. $as_echo_n "checking for $ac_word... " >&6; }
  6011. if ${ac_cv_prog_AR+:} false; then :
  6012. $as_echo_n "(cached) " >&6
  6013. else
  6014. if test -n "$AR"; then
  6015. ac_cv_prog_AR="$AR" # Let the user override the test.
  6016. else
  6017. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6018. for as_dir in $PATH
  6019. do
  6020. IFS=$as_save_IFS
  6021. test -z "$as_dir" && as_dir=.
  6022. for ac_exec_ext in '' $ac_executable_extensions; do
  6023. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6024. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  6025. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6026. break 2
  6027. fi
  6028. done
  6029. done
  6030. IFS=$as_save_IFS
  6031. fi
  6032. fi
  6033. AR=$ac_cv_prog_AR
  6034. if test -n "$AR"; then
  6035. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  6036. $as_echo "$AR" >&6; }
  6037. else
  6038. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6039. $as_echo "no" >&6; }
  6040. fi
  6041. test -n "$AR" && break
  6042. done
  6043. fi
  6044. if test -z "$AR"; then
  6045. ac_ct_AR=$AR
  6046. for ac_prog in ar
  6047. do
  6048. # Extract the first word of "$ac_prog", so it can be a program name with args.
  6049. set dummy $ac_prog; ac_word=$2
  6050. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6051. $as_echo_n "checking for $ac_word... " >&6; }
  6052. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  6053. $as_echo_n "(cached) " >&6
  6054. else
  6055. if test -n "$ac_ct_AR"; then
  6056. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  6057. else
  6058. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6059. for as_dir in $PATH
  6060. do
  6061. IFS=$as_save_IFS
  6062. test -z "$as_dir" && as_dir=.
  6063. for ac_exec_ext in '' $ac_executable_extensions; do
  6064. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6065. ac_cv_prog_ac_ct_AR="$ac_prog"
  6066. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6067. break 2
  6068. fi
  6069. done
  6070. done
  6071. IFS=$as_save_IFS
  6072. fi
  6073. fi
  6074. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  6075. if test -n "$ac_ct_AR"; then
  6076. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  6077. $as_echo "$ac_ct_AR" >&6; }
  6078. else
  6079. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6080. $as_echo "no" >&6; }
  6081. fi
  6082. test -n "$ac_ct_AR" && break
  6083. done
  6084. if test "x$ac_ct_AR" = x; then
  6085. AR="false"
  6086. else
  6087. case $cross_compiling:$ac_tool_warned in
  6088. yes:)
  6089. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6090. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6091. ac_tool_warned=yes ;;
  6092. esac
  6093. AR=$ac_ct_AR
  6094. fi
  6095. fi
  6096. : ${AR=ar}
  6097. : ${AR_FLAGS=cru}
  6098. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  6099. $as_echo_n "checking for archiver @FILE support... " >&6; }
  6100. if ${lt_cv_ar_at_file+:} false; then :
  6101. $as_echo_n "(cached) " >&6
  6102. else
  6103. lt_cv_ar_at_file=no
  6104. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6105. /* end confdefs.h. */
  6106. int
  6107. main ()
  6108. {
  6109. ;
  6110. return 0;
  6111. }
  6112. _ACEOF
  6113. if ac_fn_c_try_compile "$LINENO"; then :
  6114. echo conftest.$ac_objext > conftest.lst
  6115. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  6116. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  6117. (eval $lt_ar_try) 2>&5
  6118. ac_status=$?
  6119. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6120. test $ac_status = 0; }
  6121. if test "$ac_status" -eq 0; then
  6122. # Ensure the archiver fails upon bogus file names.
  6123. rm -f conftest.$ac_objext libconftest.a
  6124. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  6125. (eval $lt_ar_try) 2>&5
  6126. ac_status=$?
  6127. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6128. test $ac_status = 0; }
  6129. if test "$ac_status" -ne 0; then
  6130. lt_cv_ar_at_file=@
  6131. fi
  6132. fi
  6133. rm -f conftest.* libconftest.a
  6134. fi
  6135. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6136. fi
  6137. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  6138. $as_echo "$lt_cv_ar_at_file" >&6; }
  6139. if test "x$lt_cv_ar_at_file" = xno; then
  6140. archiver_list_spec=
  6141. else
  6142. archiver_list_spec=$lt_cv_ar_at_file
  6143. fi
  6144. if test -n "$ac_tool_prefix"; then
  6145. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  6146. set dummy ${ac_tool_prefix}strip; ac_word=$2
  6147. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6148. $as_echo_n "checking for $ac_word... " >&6; }
  6149. if ${ac_cv_prog_STRIP+:} false; then :
  6150. $as_echo_n "(cached) " >&6
  6151. else
  6152. if test -n "$STRIP"; then
  6153. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  6154. else
  6155. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6156. for as_dir in $PATH
  6157. do
  6158. IFS=$as_save_IFS
  6159. test -z "$as_dir" && as_dir=.
  6160. for ac_exec_ext in '' $ac_executable_extensions; do
  6161. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6162. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  6163. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6164. break 2
  6165. fi
  6166. done
  6167. done
  6168. IFS=$as_save_IFS
  6169. fi
  6170. fi
  6171. STRIP=$ac_cv_prog_STRIP
  6172. if test -n "$STRIP"; then
  6173. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  6174. $as_echo "$STRIP" >&6; }
  6175. else
  6176. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6177. $as_echo "no" >&6; }
  6178. fi
  6179. fi
  6180. if test -z "$ac_cv_prog_STRIP"; then
  6181. ac_ct_STRIP=$STRIP
  6182. # Extract the first word of "strip", so it can be a program name with args.
  6183. set dummy strip; ac_word=$2
  6184. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6185. $as_echo_n "checking for $ac_word... " >&6; }
  6186. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  6187. $as_echo_n "(cached) " >&6
  6188. else
  6189. if test -n "$ac_ct_STRIP"; then
  6190. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  6191. else
  6192. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6193. for as_dir in $PATH
  6194. do
  6195. IFS=$as_save_IFS
  6196. test -z "$as_dir" && as_dir=.
  6197. for ac_exec_ext in '' $ac_executable_extensions; do
  6198. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6199. ac_cv_prog_ac_ct_STRIP="strip"
  6200. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6201. break 2
  6202. fi
  6203. done
  6204. done
  6205. IFS=$as_save_IFS
  6206. fi
  6207. fi
  6208. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  6209. if test -n "$ac_ct_STRIP"; then
  6210. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  6211. $as_echo "$ac_ct_STRIP" >&6; }
  6212. else
  6213. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6214. $as_echo "no" >&6; }
  6215. fi
  6216. if test "x$ac_ct_STRIP" = x; then
  6217. STRIP=":"
  6218. else
  6219. case $cross_compiling:$ac_tool_warned in
  6220. yes:)
  6221. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6222. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6223. ac_tool_warned=yes ;;
  6224. esac
  6225. STRIP=$ac_ct_STRIP
  6226. fi
  6227. else
  6228. STRIP="$ac_cv_prog_STRIP"
  6229. fi
  6230. test -z "$STRIP" && STRIP=:
  6231. if test -n "$ac_tool_prefix"; then
  6232. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  6233. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  6234. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6235. $as_echo_n "checking for $ac_word... " >&6; }
  6236. if ${ac_cv_prog_RANLIB+:} false; then :
  6237. $as_echo_n "(cached) " >&6
  6238. else
  6239. if test -n "$RANLIB"; then
  6240. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  6241. else
  6242. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6243. for as_dir in $PATH
  6244. do
  6245. IFS=$as_save_IFS
  6246. test -z "$as_dir" && as_dir=.
  6247. for ac_exec_ext in '' $ac_executable_extensions; do
  6248. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6249. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  6250. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6251. break 2
  6252. fi
  6253. done
  6254. done
  6255. IFS=$as_save_IFS
  6256. fi
  6257. fi
  6258. RANLIB=$ac_cv_prog_RANLIB
  6259. if test -n "$RANLIB"; then
  6260. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  6261. $as_echo "$RANLIB" >&6; }
  6262. else
  6263. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6264. $as_echo "no" >&6; }
  6265. fi
  6266. fi
  6267. if test -z "$ac_cv_prog_RANLIB"; then
  6268. ac_ct_RANLIB=$RANLIB
  6269. # Extract the first word of "ranlib", so it can be a program name with args.
  6270. set dummy ranlib; ac_word=$2
  6271. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6272. $as_echo_n "checking for $ac_word... " >&6; }
  6273. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  6274. $as_echo_n "(cached) " >&6
  6275. else
  6276. if test -n "$ac_ct_RANLIB"; then
  6277. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  6278. else
  6279. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6280. for as_dir in $PATH
  6281. do
  6282. IFS=$as_save_IFS
  6283. test -z "$as_dir" && as_dir=.
  6284. for ac_exec_ext in '' $ac_executable_extensions; do
  6285. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6286. ac_cv_prog_ac_ct_RANLIB="ranlib"
  6287. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6288. break 2
  6289. fi
  6290. done
  6291. done
  6292. IFS=$as_save_IFS
  6293. fi
  6294. fi
  6295. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  6296. if test -n "$ac_ct_RANLIB"; then
  6297. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  6298. $as_echo "$ac_ct_RANLIB" >&6; }
  6299. else
  6300. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6301. $as_echo "no" >&6; }
  6302. fi
  6303. if test "x$ac_ct_RANLIB" = x; then
  6304. RANLIB=":"
  6305. else
  6306. case $cross_compiling:$ac_tool_warned in
  6307. yes:)
  6308. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6309. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6310. ac_tool_warned=yes ;;
  6311. esac
  6312. RANLIB=$ac_ct_RANLIB
  6313. fi
  6314. else
  6315. RANLIB="$ac_cv_prog_RANLIB"
  6316. fi
  6317. test -z "$RANLIB" && RANLIB=:
  6318. # Determine commands to create old-style static archives.
  6319. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  6320. old_postinstall_cmds='chmod 644 $oldlib'
  6321. old_postuninstall_cmds=
  6322. if test -n "$RANLIB"; then
  6323. case $host_os in
  6324. openbsd*)
  6325. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  6326. ;;
  6327. *)
  6328. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  6329. ;;
  6330. esac
  6331. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  6332. fi
  6333. case $host_os in
  6334. darwin*)
  6335. lock_old_archive_extraction=yes ;;
  6336. *)
  6337. lock_old_archive_extraction=no ;;
  6338. esac
  6339. # If no C compiler was specified, use CC.
  6340. LTCC=${LTCC-"$CC"}
  6341. # If no C compiler flags were specified, use CFLAGS.
  6342. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6343. # Allow CC to be a program name with arguments.
  6344. compiler=$CC
  6345. # Check for command to grab the raw symbol name followed by C symbol from nm.
  6346. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  6347. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  6348. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  6349. $as_echo_n "(cached) " >&6
  6350. else
  6351. # These are sane defaults that work on at least a few old systems.
  6352. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  6353. # Character class describing NM global symbol codes.
  6354. symcode='[BCDEGRST]'
  6355. # Regexp to match symbols that can be accessed directly from C.
  6356. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  6357. # Define system-specific variables.
  6358. case $host_os in
  6359. aix*)
  6360. symcode='[BCDT]'
  6361. ;;
  6362. cygwin* | mingw* | pw32* | cegcc*)
  6363. symcode='[ABCDGISTW]'
  6364. ;;
  6365. hpux*)
  6366. if test "$host_cpu" = ia64; then
  6367. symcode='[ABCDEGRST]'
  6368. fi
  6369. ;;
  6370. irix* | nonstopux*)
  6371. symcode='[BCDEGRST]'
  6372. ;;
  6373. osf*)
  6374. symcode='[BCDEGQRST]'
  6375. ;;
  6376. solaris*)
  6377. symcode='[BDRT]'
  6378. ;;
  6379. sco3.2v5*)
  6380. symcode='[DT]'
  6381. ;;
  6382. sysv4.2uw2*)
  6383. symcode='[DT]'
  6384. ;;
  6385. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  6386. symcode='[ABDT]'
  6387. ;;
  6388. sysv4)
  6389. symcode='[DFNSTU]'
  6390. ;;
  6391. esac
  6392. # If we're using GNU nm, then use its standard symbol codes.
  6393. case `$NM -V 2>&1` in
  6394. *GNU* | *'with BFD'*)
  6395. symcode='[ABCDGIRSTW]' ;;
  6396. esac
  6397. # Transform an extracted symbol line into a proper C declaration.
  6398. # Some systems (esp. on ia64) link data and code symbols differently,
  6399. # so use this general approach.
  6400. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  6401. # Transform an extracted symbol line into symbol name and symbol address
  6402. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  6403. 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'"
  6404. # Handle CRLF in mingw tool chain
  6405. opt_cr=
  6406. case $build_os in
  6407. mingw*)
  6408. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  6409. ;;
  6410. esac
  6411. # Try without a prefix underscore, then with it.
  6412. for ac_symprfx in "" "_"; do
  6413. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  6414. symxfrm="\\1 $ac_symprfx\\2 \\2"
  6415. # Write the raw and C identifiers.
  6416. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6417. # Fake it for dumpbin and say T for any non-static function
  6418. # and D for any global variable.
  6419. # Also find C++ and __fastcall symbols from MSVC++,
  6420. # which start with @ or ?.
  6421. lt_cv_sys_global_symbol_pipe="$AWK '"\
  6422. " {last_section=section; section=\$ 3};"\
  6423. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  6424. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  6425. " \$ 0!~/External *\|/{next};"\
  6426. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  6427. " {if(hide[section]) next};"\
  6428. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  6429. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  6430. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  6431. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  6432. " ' prfx=^$ac_symprfx"
  6433. else
  6434. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  6435. fi
  6436. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  6437. # Check to see that the pipe works correctly.
  6438. pipe_works=no
  6439. rm -f conftest*
  6440. cat > conftest.$ac_ext <<_LT_EOF
  6441. #ifdef __cplusplus
  6442. extern "C" {
  6443. #endif
  6444. char nm_test_var;
  6445. void nm_test_func(void);
  6446. void nm_test_func(void){}
  6447. #ifdef __cplusplus
  6448. }
  6449. #endif
  6450. int main(){nm_test_var='a';nm_test_func();return(0);}
  6451. _LT_EOF
  6452. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6453. (eval $ac_compile) 2>&5
  6454. ac_status=$?
  6455. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6456. test $ac_status = 0; }; then
  6457. # Now try to grab the symbols.
  6458. nlist=conftest.nm
  6459. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  6460. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  6461. ac_status=$?
  6462. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6463. test $ac_status = 0; } && test -s "$nlist"; then
  6464. # Try sorting and uniquifying the output.
  6465. if sort "$nlist" | uniq > "$nlist"T; then
  6466. mv -f "$nlist"T "$nlist"
  6467. else
  6468. rm -f "$nlist"T
  6469. fi
  6470. # Make sure that we snagged all the symbols we need.
  6471. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  6472. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  6473. cat <<_LT_EOF > conftest.$ac_ext
  6474. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  6475. #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  6476. /* DATA imports from DLLs on WIN32 con't be const, because runtime
  6477. relocations are performed -- see ld's documentation on pseudo-relocs. */
  6478. # define LT_DLSYM_CONST
  6479. #elif defined(__osf__)
  6480. /* This system does not cope well with relocations in const data. */
  6481. # define LT_DLSYM_CONST
  6482. #else
  6483. # define LT_DLSYM_CONST const
  6484. #endif
  6485. #ifdef __cplusplus
  6486. extern "C" {
  6487. #endif
  6488. _LT_EOF
  6489. # Now generate the symbol file.
  6490. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  6491. cat <<_LT_EOF >> conftest.$ac_ext
  6492. /* The mapping between symbol names and symbols. */
  6493. LT_DLSYM_CONST struct {
  6494. const char *name;
  6495. void *address;
  6496. }
  6497. lt__PROGRAM__LTX_preloaded_symbols[] =
  6498. {
  6499. { "@PROGRAM@", (void *) 0 },
  6500. _LT_EOF
  6501. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  6502. cat <<\_LT_EOF >> conftest.$ac_ext
  6503. {0, (void *) 0}
  6504. };
  6505. /* This works around a problem in FreeBSD linker */
  6506. #ifdef FREEBSD_WORKAROUND
  6507. static const void *lt_preloaded_setup() {
  6508. return lt__PROGRAM__LTX_preloaded_symbols;
  6509. }
  6510. #endif
  6511. #ifdef __cplusplus
  6512. }
  6513. #endif
  6514. _LT_EOF
  6515. # Now try linking the two files.
  6516. mv conftest.$ac_objext conftstm.$ac_objext
  6517. lt_globsym_save_LIBS=$LIBS
  6518. lt_globsym_save_CFLAGS=$CFLAGS
  6519. LIBS="conftstm.$ac_objext"
  6520. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  6521. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  6522. (eval $ac_link) 2>&5
  6523. ac_status=$?
  6524. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6525. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  6526. pipe_works=yes
  6527. fi
  6528. LIBS=$lt_globsym_save_LIBS
  6529. CFLAGS=$lt_globsym_save_CFLAGS
  6530. else
  6531. echo "cannot find nm_test_func in $nlist" >&5
  6532. fi
  6533. else
  6534. echo "cannot find nm_test_var in $nlist" >&5
  6535. fi
  6536. else
  6537. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  6538. fi
  6539. else
  6540. echo "$progname: failed program was:" >&5
  6541. cat conftest.$ac_ext >&5
  6542. fi
  6543. rm -rf conftest* conftst*
  6544. # Do not use the global_symbol_pipe unless it works.
  6545. if test "$pipe_works" = yes; then
  6546. break
  6547. else
  6548. lt_cv_sys_global_symbol_pipe=
  6549. fi
  6550. done
  6551. fi
  6552. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6553. lt_cv_sys_global_symbol_to_cdecl=
  6554. fi
  6555. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6556. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  6557. $as_echo "failed" >&6; }
  6558. else
  6559. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  6560. $as_echo "ok" >&6; }
  6561. fi
  6562. # Response file support.
  6563. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6564. nm_file_list_spec='@'
  6565. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  6566. nm_file_list_spec='@'
  6567. fi
  6568. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  6569. $as_echo_n "checking for sysroot... " >&6; }
  6570. # Check whether --with-sysroot was given.
  6571. if test "${with_sysroot+set}" = set; then :
  6572. withval=$with_sysroot;
  6573. else
  6574. with_sysroot=no
  6575. fi
  6576. lt_sysroot=
  6577. case ${with_sysroot} in #(
  6578. yes)
  6579. if test "$GCC" = yes; then
  6580. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  6581. fi
  6582. ;; #(
  6583. /*)
  6584. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  6585. ;; #(
  6586. no|'')
  6587. ;; #(
  6588. *)
  6589. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
  6590. $as_echo "${with_sysroot}" >&6; }
  6591. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  6592. ;;
  6593. esac
  6594. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  6595. $as_echo "${lt_sysroot:-no}" >&6; }
  6596. # Check whether --enable-libtool-lock was given.
  6597. if test "${enable_libtool_lock+set}" = set; then :
  6598. enableval=$enable_libtool_lock;
  6599. fi
  6600. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  6601. # Some flags need to be propagated to the compiler or linker for good
  6602. # libtool support.
  6603. case $host in
  6604. ia64-*-hpux*)
  6605. # Find out which ABI we are using.
  6606. echo 'int i;' > conftest.$ac_ext
  6607. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6608. (eval $ac_compile) 2>&5
  6609. ac_status=$?
  6610. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6611. test $ac_status = 0; }; then
  6612. case `/usr/bin/file conftest.$ac_objext` in
  6613. *ELF-32*)
  6614. HPUX_IA64_MODE="32"
  6615. ;;
  6616. *ELF-64*)
  6617. HPUX_IA64_MODE="64"
  6618. ;;
  6619. esac
  6620. fi
  6621. rm -rf conftest*
  6622. ;;
  6623. *-*-irix6*)
  6624. # Find out which ABI we are using.
  6625. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6626. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6627. (eval $ac_compile) 2>&5
  6628. ac_status=$?
  6629. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6630. test $ac_status = 0; }; then
  6631. if test "$lt_cv_prog_gnu_ld" = yes; then
  6632. case `/usr/bin/file conftest.$ac_objext` in
  6633. *32-bit*)
  6634. LD="${LD-ld} -melf32bsmip"
  6635. ;;
  6636. *N32*)
  6637. LD="${LD-ld} -melf32bmipn32"
  6638. ;;
  6639. *64-bit*)
  6640. LD="${LD-ld} -melf64bmip"
  6641. ;;
  6642. esac
  6643. else
  6644. case `/usr/bin/file conftest.$ac_objext` in
  6645. *32-bit*)
  6646. LD="${LD-ld} -32"
  6647. ;;
  6648. *N32*)
  6649. LD="${LD-ld} -n32"
  6650. ;;
  6651. *64-bit*)
  6652. LD="${LD-ld} -64"
  6653. ;;
  6654. esac
  6655. fi
  6656. fi
  6657. rm -rf conftest*
  6658. ;;
  6659. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  6660. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  6661. # Find out which ABI we are using.
  6662. echo 'int i;' > conftest.$ac_ext
  6663. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6664. (eval $ac_compile) 2>&5
  6665. ac_status=$?
  6666. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6667. test $ac_status = 0; }; then
  6668. case `/usr/bin/file conftest.o` in
  6669. *32-bit*)
  6670. case $host in
  6671. x86_64-*kfreebsd*-gnu)
  6672. LD="${LD-ld} -m elf_i386_fbsd"
  6673. ;;
  6674. x86_64-*linux*)
  6675. LD="${LD-ld} -m elf_i386"
  6676. ;;
  6677. ppc64-*linux*|powerpc64-*linux*)
  6678. LD="${LD-ld} -m elf32ppclinux"
  6679. ;;
  6680. s390x-*linux*)
  6681. LD="${LD-ld} -m elf_s390"
  6682. ;;
  6683. sparc64-*linux*)
  6684. LD="${LD-ld} -m elf32_sparc"
  6685. ;;
  6686. esac
  6687. ;;
  6688. *64-bit*)
  6689. case $host in
  6690. x86_64-*kfreebsd*-gnu)
  6691. LD="${LD-ld} -m elf_x86_64_fbsd"
  6692. ;;
  6693. x86_64-*linux*)
  6694. LD="${LD-ld} -m elf_x86_64"
  6695. ;;
  6696. ppc*-*linux*|powerpc*-*linux*)
  6697. LD="${LD-ld} -m elf64ppc"
  6698. ;;
  6699. s390*-*linux*|s390*-*tpf*)
  6700. LD="${LD-ld} -m elf64_s390"
  6701. ;;
  6702. sparc*-*linux*)
  6703. LD="${LD-ld} -m elf64_sparc"
  6704. ;;
  6705. esac
  6706. ;;
  6707. esac
  6708. fi
  6709. rm -rf conftest*
  6710. ;;
  6711. *-*-sco3.2v5*)
  6712. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6713. SAVE_CFLAGS="$CFLAGS"
  6714. CFLAGS="$CFLAGS -belf"
  6715. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  6716. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  6717. if ${lt_cv_cc_needs_belf+:} false; then :
  6718. $as_echo_n "(cached) " >&6
  6719. else
  6720. ac_ext=c
  6721. ac_cpp='$CPP $CPPFLAGS'
  6722. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6723. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6724. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6725. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6726. /* end confdefs.h. */
  6727. int
  6728. main ()
  6729. {
  6730. ;
  6731. return 0;
  6732. }
  6733. _ACEOF
  6734. if ac_fn_c_try_link "$LINENO"; then :
  6735. lt_cv_cc_needs_belf=yes
  6736. else
  6737. lt_cv_cc_needs_belf=no
  6738. fi
  6739. rm -f core conftest.err conftest.$ac_objext \
  6740. conftest$ac_exeext conftest.$ac_ext
  6741. ac_ext=c
  6742. ac_cpp='$CPP $CPPFLAGS'
  6743. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6744. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6745. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6746. fi
  6747. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  6748. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  6749. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  6750. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6751. CFLAGS="$SAVE_CFLAGS"
  6752. fi
  6753. ;;
  6754. *-*solaris*)
  6755. # Find out which ABI we are using.
  6756. echo 'int i;' > conftest.$ac_ext
  6757. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6758. (eval $ac_compile) 2>&5
  6759. ac_status=$?
  6760. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6761. test $ac_status = 0; }; then
  6762. case `/usr/bin/file conftest.o` in
  6763. *64-bit*)
  6764. case $lt_cv_prog_gnu_ld in
  6765. yes*)
  6766. case $host in
  6767. i?86-*-solaris*)
  6768. LD="${LD-ld} -m elf_x86_64"
  6769. ;;
  6770. sparc*-*-solaris*)
  6771. LD="${LD-ld} -m elf64_sparc"
  6772. ;;
  6773. esac
  6774. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  6775. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  6776. LD="${LD-ld}_sol2"
  6777. fi
  6778. ;;
  6779. *)
  6780. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6781. LD="${LD-ld} -64"
  6782. fi
  6783. ;;
  6784. esac
  6785. ;;
  6786. esac
  6787. fi
  6788. rm -rf conftest*
  6789. ;;
  6790. esac
  6791. need_locks="$enable_libtool_lock"
  6792. if test -n "$ac_tool_prefix"; then
  6793. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  6794. set dummy ${ac_tool_prefix}mt; ac_word=$2
  6795. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6796. $as_echo_n "checking for $ac_word... " >&6; }
  6797. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  6798. $as_echo_n "(cached) " >&6
  6799. else
  6800. if test -n "$MANIFEST_TOOL"; then
  6801. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  6802. else
  6803. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6804. for as_dir in $PATH
  6805. do
  6806. IFS=$as_save_IFS
  6807. test -z "$as_dir" && as_dir=.
  6808. for ac_exec_ext in '' $ac_executable_extensions; do
  6809. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6810. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  6811. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6812. break 2
  6813. fi
  6814. done
  6815. done
  6816. IFS=$as_save_IFS
  6817. fi
  6818. fi
  6819. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  6820. if test -n "$MANIFEST_TOOL"; then
  6821. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  6822. $as_echo "$MANIFEST_TOOL" >&6; }
  6823. else
  6824. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6825. $as_echo "no" >&6; }
  6826. fi
  6827. fi
  6828. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  6829. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  6830. # Extract the first word of "mt", so it can be a program name with args.
  6831. set dummy mt; ac_word=$2
  6832. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6833. $as_echo_n "checking for $ac_word... " >&6; }
  6834. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  6835. $as_echo_n "(cached) " >&6
  6836. else
  6837. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6838. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  6839. else
  6840. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6841. for as_dir in $PATH
  6842. do
  6843. IFS=$as_save_IFS
  6844. test -z "$as_dir" && as_dir=.
  6845. for ac_exec_ext in '' $ac_executable_extensions; do
  6846. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6847. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  6848. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6849. break 2
  6850. fi
  6851. done
  6852. done
  6853. IFS=$as_save_IFS
  6854. fi
  6855. fi
  6856. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  6857. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6858. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  6859. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  6860. else
  6861. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6862. $as_echo "no" >&6; }
  6863. fi
  6864. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  6865. MANIFEST_TOOL=":"
  6866. else
  6867. case $cross_compiling:$ac_tool_warned in
  6868. yes:)
  6869. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6870. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6871. ac_tool_warned=yes ;;
  6872. esac
  6873. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  6874. fi
  6875. else
  6876. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  6877. fi
  6878. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  6879. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  6880. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  6881. if ${lt_cv_path_mainfest_tool+:} false; then :
  6882. $as_echo_n "(cached) " >&6
  6883. else
  6884. lt_cv_path_mainfest_tool=no
  6885. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  6886. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  6887. cat conftest.err >&5
  6888. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  6889. lt_cv_path_mainfest_tool=yes
  6890. fi
  6891. rm -f conftest*
  6892. fi
  6893. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  6894. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  6895. if test "x$lt_cv_path_mainfest_tool" != xyes; then
  6896. MANIFEST_TOOL=:
  6897. fi
  6898. case $host_os in
  6899. rhapsody* | darwin*)
  6900. if test -n "$ac_tool_prefix"; then
  6901. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6902. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6903. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6904. $as_echo_n "checking for $ac_word... " >&6; }
  6905. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  6906. $as_echo_n "(cached) " >&6
  6907. else
  6908. if test -n "$DSYMUTIL"; then
  6909. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6910. else
  6911. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6912. for as_dir in $PATH
  6913. do
  6914. IFS=$as_save_IFS
  6915. test -z "$as_dir" && as_dir=.
  6916. for ac_exec_ext in '' $ac_executable_extensions; do
  6917. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6918. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6919. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6920. break 2
  6921. fi
  6922. done
  6923. done
  6924. IFS=$as_save_IFS
  6925. fi
  6926. fi
  6927. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6928. if test -n "$DSYMUTIL"; then
  6929. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  6930. $as_echo "$DSYMUTIL" >&6; }
  6931. else
  6932. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6933. $as_echo "no" >&6; }
  6934. fi
  6935. fi
  6936. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6937. ac_ct_DSYMUTIL=$DSYMUTIL
  6938. # Extract the first word of "dsymutil", so it can be a program name with args.
  6939. set dummy dsymutil; ac_word=$2
  6940. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6941. $as_echo_n "checking for $ac_word... " >&6; }
  6942. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  6943. $as_echo_n "(cached) " >&6
  6944. else
  6945. if test -n "$ac_ct_DSYMUTIL"; then
  6946. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6947. else
  6948. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6949. for as_dir in $PATH
  6950. do
  6951. IFS=$as_save_IFS
  6952. test -z "$as_dir" && as_dir=.
  6953. for ac_exec_ext in '' $ac_executable_extensions; do
  6954. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6955. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6956. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6957. break 2
  6958. fi
  6959. done
  6960. done
  6961. IFS=$as_save_IFS
  6962. fi
  6963. fi
  6964. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6965. if test -n "$ac_ct_DSYMUTIL"; then
  6966. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  6967. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  6968. else
  6969. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6970. $as_echo "no" >&6; }
  6971. fi
  6972. if test "x$ac_ct_DSYMUTIL" = x; then
  6973. DSYMUTIL=":"
  6974. else
  6975. case $cross_compiling:$ac_tool_warned in
  6976. yes:)
  6977. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6978. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6979. ac_tool_warned=yes ;;
  6980. esac
  6981. DSYMUTIL=$ac_ct_DSYMUTIL
  6982. fi
  6983. else
  6984. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6985. fi
  6986. if test -n "$ac_tool_prefix"; then
  6987. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6988. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6989. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6990. $as_echo_n "checking for $ac_word... " >&6; }
  6991. if ${ac_cv_prog_NMEDIT+:} false; then :
  6992. $as_echo_n "(cached) " >&6
  6993. else
  6994. if test -n "$NMEDIT"; then
  6995. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6996. else
  6997. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6998. for as_dir in $PATH
  6999. do
  7000. IFS=$as_save_IFS
  7001. test -z "$as_dir" && as_dir=.
  7002. for ac_exec_ext in '' $ac_executable_extensions; do
  7003. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7004. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  7005. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7006. break 2
  7007. fi
  7008. done
  7009. done
  7010. IFS=$as_save_IFS
  7011. fi
  7012. fi
  7013. NMEDIT=$ac_cv_prog_NMEDIT
  7014. if test -n "$NMEDIT"; then
  7015. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  7016. $as_echo "$NMEDIT" >&6; }
  7017. else
  7018. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7019. $as_echo "no" >&6; }
  7020. fi
  7021. fi
  7022. if test -z "$ac_cv_prog_NMEDIT"; then
  7023. ac_ct_NMEDIT=$NMEDIT
  7024. # Extract the first word of "nmedit", so it can be a program name with args.
  7025. set dummy nmedit; ac_word=$2
  7026. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7027. $as_echo_n "checking for $ac_word... " >&6; }
  7028. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  7029. $as_echo_n "(cached) " >&6
  7030. else
  7031. if test -n "$ac_ct_NMEDIT"; then
  7032. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  7033. else
  7034. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7035. for as_dir in $PATH
  7036. do
  7037. IFS=$as_save_IFS
  7038. test -z "$as_dir" && as_dir=.
  7039. for ac_exec_ext in '' $ac_executable_extensions; do
  7040. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7041. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  7042. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7043. break 2
  7044. fi
  7045. done
  7046. done
  7047. IFS=$as_save_IFS
  7048. fi
  7049. fi
  7050. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  7051. if test -n "$ac_ct_NMEDIT"; then
  7052. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  7053. $as_echo "$ac_ct_NMEDIT" >&6; }
  7054. else
  7055. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7056. $as_echo "no" >&6; }
  7057. fi
  7058. if test "x$ac_ct_NMEDIT" = x; then
  7059. NMEDIT=":"
  7060. else
  7061. case $cross_compiling:$ac_tool_warned in
  7062. yes:)
  7063. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7064. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7065. ac_tool_warned=yes ;;
  7066. esac
  7067. NMEDIT=$ac_ct_NMEDIT
  7068. fi
  7069. else
  7070. NMEDIT="$ac_cv_prog_NMEDIT"
  7071. fi
  7072. if test -n "$ac_tool_prefix"; then
  7073. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  7074. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  7075. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7076. $as_echo_n "checking for $ac_word... " >&6; }
  7077. if ${ac_cv_prog_LIPO+:} false; then :
  7078. $as_echo_n "(cached) " >&6
  7079. else
  7080. if test -n "$LIPO"; then
  7081. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  7082. else
  7083. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7084. for as_dir in $PATH
  7085. do
  7086. IFS=$as_save_IFS
  7087. test -z "$as_dir" && as_dir=.
  7088. for ac_exec_ext in '' $ac_executable_extensions; do
  7089. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7090. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  7091. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7092. break 2
  7093. fi
  7094. done
  7095. done
  7096. IFS=$as_save_IFS
  7097. fi
  7098. fi
  7099. LIPO=$ac_cv_prog_LIPO
  7100. if test -n "$LIPO"; then
  7101. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  7102. $as_echo "$LIPO" >&6; }
  7103. else
  7104. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7105. $as_echo "no" >&6; }
  7106. fi
  7107. fi
  7108. if test -z "$ac_cv_prog_LIPO"; then
  7109. ac_ct_LIPO=$LIPO
  7110. # Extract the first word of "lipo", so it can be a program name with args.
  7111. set dummy lipo; ac_word=$2
  7112. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7113. $as_echo_n "checking for $ac_word... " >&6; }
  7114. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  7115. $as_echo_n "(cached) " >&6
  7116. else
  7117. if test -n "$ac_ct_LIPO"; then
  7118. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  7119. else
  7120. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7121. for as_dir in $PATH
  7122. do
  7123. IFS=$as_save_IFS
  7124. test -z "$as_dir" && as_dir=.
  7125. for ac_exec_ext in '' $ac_executable_extensions; do
  7126. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7127. ac_cv_prog_ac_ct_LIPO="lipo"
  7128. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7129. break 2
  7130. fi
  7131. done
  7132. done
  7133. IFS=$as_save_IFS
  7134. fi
  7135. fi
  7136. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  7137. if test -n "$ac_ct_LIPO"; then
  7138. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  7139. $as_echo "$ac_ct_LIPO" >&6; }
  7140. else
  7141. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7142. $as_echo "no" >&6; }
  7143. fi
  7144. if test "x$ac_ct_LIPO" = x; then
  7145. LIPO=":"
  7146. else
  7147. case $cross_compiling:$ac_tool_warned in
  7148. yes:)
  7149. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7150. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7151. ac_tool_warned=yes ;;
  7152. esac
  7153. LIPO=$ac_ct_LIPO
  7154. fi
  7155. else
  7156. LIPO="$ac_cv_prog_LIPO"
  7157. fi
  7158. if test -n "$ac_tool_prefix"; then
  7159. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  7160. set dummy ${ac_tool_prefix}otool; ac_word=$2
  7161. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7162. $as_echo_n "checking for $ac_word... " >&6; }
  7163. if ${ac_cv_prog_OTOOL+:} false; then :
  7164. $as_echo_n "(cached) " >&6
  7165. else
  7166. if test -n "$OTOOL"; then
  7167. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  7168. else
  7169. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7170. for as_dir in $PATH
  7171. do
  7172. IFS=$as_save_IFS
  7173. test -z "$as_dir" && as_dir=.
  7174. for ac_exec_ext in '' $ac_executable_extensions; do
  7175. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7176. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  7177. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7178. break 2
  7179. fi
  7180. done
  7181. done
  7182. IFS=$as_save_IFS
  7183. fi
  7184. fi
  7185. OTOOL=$ac_cv_prog_OTOOL
  7186. if test -n "$OTOOL"; then
  7187. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  7188. $as_echo "$OTOOL" >&6; }
  7189. else
  7190. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7191. $as_echo "no" >&6; }
  7192. fi
  7193. fi
  7194. if test -z "$ac_cv_prog_OTOOL"; then
  7195. ac_ct_OTOOL=$OTOOL
  7196. # Extract the first word of "otool", so it can be a program name with args.
  7197. set dummy otool; ac_word=$2
  7198. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7199. $as_echo_n "checking for $ac_word... " >&6; }
  7200. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  7201. $as_echo_n "(cached) " >&6
  7202. else
  7203. if test -n "$ac_ct_OTOOL"; then
  7204. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  7205. else
  7206. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7207. for as_dir in $PATH
  7208. do
  7209. IFS=$as_save_IFS
  7210. test -z "$as_dir" && as_dir=.
  7211. for ac_exec_ext in '' $ac_executable_extensions; do
  7212. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7213. ac_cv_prog_ac_ct_OTOOL="otool"
  7214. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7215. break 2
  7216. fi
  7217. done
  7218. done
  7219. IFS=$as_save_IFS
  7220. fi
  7221. fi
  7222. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  7223. if test -n "$ac_ct_OTOOL"; then
  7224. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  7225. $as_echo "$ac_ct_OTOOL" >&6; }
  7226. else
  7227. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7228. $as_echo "no" >&6; }
  7229. fi
  7230. if test "x$ac_ct_OTOOL" = x; then
  7231. OTOOL=":"
  7232. else
  7233. case $cross_compiling:$ac_tool_warned in
  7234. yes:)
  7235. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7236. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7237. ac_tool_warned=yes ;;
  7238. esac
  7239. OTOOL=$ac_ct_OTOOL
  7240. fi
  7241. else
  7242. OTOOL="$ac_cv_prog_OTOOL"
  7243. fi
  7244. if test -n "$ac_tool_prefix"; then
  7245. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  7246. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  7247. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7248. $as_echo_n "checking for $ac_word... " >&6; }
  7249. if ${ac_cv_prog_OTOOL64+:} false; then :
  7250. $as_echo_n "(cached) " >&6
  7251. else
  7252. if test -n "$OTOOL64"; then
  7253. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  7254. else
  7255. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7256. for as_dir in $PATH
  7257. do
  7258. IFS=$as_save_IFS
  7259. test -z "$as_dir" && as_dir=.
  7260. for ac_exec_ext in '' $ac_executable_extensions; do
  7261. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7262. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  7263. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7264. break 2
  7265. fi
  7266. done
  7267. done
  7268. IFS=$as_save_IFS
  7269. fi
  7270. fi
  7271. OTOOL64=$ac_cv_prog_OTOOL64
  7272. if test -n "$OTOOL64"; then
  7273. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  7274. $as_echo "$OTOOL64" >&6; }
  7275. else
  7276. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7277. $as_echo "no" >&6; }
  7278. fi
  7279. fi
  7280. if test -z "$ac_cv_prog_OTOOL64"; then
  7281. ac_ct_OTOOL64=$OTOOL64
  7282. # Extract the first word of "otool64", so it can be a program name with args.
  7283. set dummy otool64; ac_word=$2
  7284. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7285. $as_echo_n "checking for $ac_word... " >&6; }
  7286. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  7287. $as_echo_n "(cached) " >&6
  7288. else
  7289. if test -n "$ac_ct_OTOOL64"; then
  7290. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  7291. else
  7292. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7293. for as_dir in $PATH
  7294. do
  7295. IFS=$as_save_IFS
  7296. test -z "$as_dir" && as_dir=.
  7297. for ac_exec_ext in '' $ac_executable_extensions; do
  7298. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7299. ac_cv_prog_ac_ct_OTOOL64="otool64"
  7300. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7301. break 2
  7302. fi
  7303. done
  7304. done
  7305. IFS=$as_save_IFS
  7306. fi
  7307. fi
  7308. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  7309. if test -n "$ac_ct_OTOOL64"; then
  7310. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  7311. $as_echo "$ac_ct_OTOOL64" >&6; }
  7312. else
  7313. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7314. $as_echo "no" >&6; }
  7315. fi
  7316. if test "x$ac_ct_OTOOL64" = x; then
  7317. OTOOL64=":"
  7318. else
  7319. case $cross_compiling:$ac_tool_warned in
  7320. yes:)
  7321. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7322. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7323. ac_tool_warned=yes ;;
  7324. esac
  7325. OTOOL64=$ac_ct_OTOOL64
  7326. fi
  7327. else
  7328. OTOOL64="$ac_cv_prog_OTOOL64"
  7329. fi
  7330. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  7331. $as_echo_n "checking for -single_module linker flag... " >&6; }
  7332. if ${lt_cv_apple_cc_single_mod+:} false; then :
  7333. $as_echo_n "(cached) " >&6
  7334. else
  7335. lt_cv_apple_cc_single_mod=no
  7336. if test -z "${LT_MULTI_MODULE}"; then
  7337. # By default we will add the -single_module flag. You can override
  7338. # by either setting the environment variable LT_MULTI_MODULE
  7339. # non-empty at configure time, or by adding -multi_module to the
  7340. # link flags.
  7341. rm -rf libconftest.dylib*
  7342. echo "int foo(void){return 1;}" > conftest.c
  7343. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7344. -dynamiclib -Wl,-single_module conftest.c" >&5
  7345. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7346. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  7347. _lt_result=$?
  7348. # If there is a non-empty error log, and "single_module"
  7349. # appears in it, assume the flag caused a linker warning
  7350. if test -s conftest.err && $GREP single_module conftest.err; then
  7351. cat conftest.err >&5
  7352. # Otherwise, if the output was created with a 0 exit code from
  7353. # the compiler, it worked.
  7354. elif test -f libconftest.dylib && test $_lt_result -eq 0; then
  7355. lt_cv_apple_cc_single_mod=yes
  7356. else
  7357. cat conftest.err >&5
  7358. fi
  7359. rm -rf libconftest.dylib*
  7360. rm -f conftest.*
  7361. fi
  7362. fi
  7363. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  7364. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  7365. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  7366. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  7367. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  7368. $as_echo_n "(cached) " >&6
  7369. else
  7370. lt_cv_ld_exported_symbols_list=no
  7371. save_LDFLAGS=$LDFLAGS
  7372. echo "_main" > conftest.sym
  7373. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  7374. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7375. /* end confdefs.h. */
  7376. int
  7377. main ()
  7378. {
  7379. ;
  7380. return 0;
  7381. }
  7382. _ACEOF
  7383. if ac_fn_c_try_link "$LINENO"; then :
  7384. lt_cv_ld_exported_symbols_list=yes
  7385. else
  7386. lt_cv_ld_exported_symbols_list=no
  7387. fi
  7388. rm -f core conftest.err conftest.$ac_objext \
  7389. conftest$ac_exeext conftest.$ac_ext
  7390. LDFLAGS="$save_LDFLAGS"
  7391. fi
  7392. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  7393. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  7394. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  7395. $as_echo_n "checking for -force_load linker flag... " >&6; }
  7396. if ${lt_cv_ld_force_load+:} false; then :
  7397. $as_echo_n "(cached) " >&6
  7398. else
  7399. lt_cv_ld_force_load=no
  7400. cat > conftest.c << _LT_EOF
  7401. int forced_loaded() { return 2;}
  7402. _LT_EOF
  7403. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  7404. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  7405. echo "$AR cru libconftest.a conftest.o" >&5
  7406. $AR cru libconftest.a conftest.o 2>&5
  7407. echo "$RANLIB libconftest.a" >&5
  7408. $RANLIB libconftest.a 2>&5
  7409. cat > conftest.c << _LT_EOF
  7410. int main() { return 0;}
  7411. _LT_EOF
  7412. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  7413. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  7414. _lt_result=$?
  7415. if test -s conftest.err && $GREP force_load conftest.err; then
  7416. cat conftest.err >&5
  7417. elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
  7418. lt_cv_ld_force_load=yes
  7419. else
  7420. cat conftest.err >&5
  7421. fi
  7422. rm -f conftest.err libconftest.a conftest conftest.c
  7423. rm -rf conftest.dSYM
  7424. fi
  7425. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  7426. $as_echo "$lt_cv_ld_force_load" >&6; }
  7427. case $host_os in
  7428. rhapsody* | darwin1.[012])
  7429. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  7430. darwin1.*)
  7431. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  7432. darwin*) # darwin 5.x on
  7433. # if running on 10.5 or later, the deployment target defaults
  7434. # to the OS version, if on x86, and 10.4, the deployment
  7435. # target defaults to 10.4. Don't you love it?
  7436. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  7437. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  7438. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  7439. 10.[012]*)
  7440. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  7441. 10.*)
  7442. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  7443. esac
  7444. ;;
  7445. esac
  7446. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  7447. _lt_dar_single_mod='$single_module'
  7448. fi
  7449. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  7450. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  7451. else
  7452. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  7453. fi
  7454. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  7455. _lt_dsymutil='~$DSYMUTIL $lib || :'
  7456. else
  7457. _lt_dsymutil=
  7458. fi
  7459. ;;
  7460. esac
  7461. ac_ext=c
  7462. ac_cpp='$CPP $CPPFLAGS'
  7463. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7464. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7465. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7466. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  7467. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  7468. # On Suns, sometimes $CPP names a directory.
  7469. if test -n "$CPP" && test -d "$CPP"; then
  7470. CPP=
  7471. fi
  7472. if test -z "$CPP"; then
  7473. if ${ac_cv_prog_CPP+:} false; then :
  7474. $as_echo_n "(cached) " >&6
  7475. else
  7476. # Double quotes because CPP needs to be expanded
  7477. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  7478. do
  7479. ac_preproc_ok=false
  7480. for ac_c_preproc_warn_flag in '' yes
  7481. do
  7482. # Use a header file that comes with gcc, so configuring glibc
  7483. # with a fresh cross-compiler works.
  7484. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7485. # <limits.h> exists even on freestanding compilers.
  7486. # On the NeXT, cc -E runs the code through the compiler's parser,
  7487. # not just through cpp. "Syntax error" is here to catch this case.
  7488. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7489. /* end confdefs.h. */
  7490. #ifdef __STDC__
  7491. # include <limits.h>
  7492. #else
  7493. # include <assert.h>
  7494. #endif
  7495. Syntax error
  7496. _ACEOF
  7497. if ac_fn_c_try_cpp "$LINENO"; then :
  7498. else
  7499. # Broken: fails on valid input.
  7500. continue
  7501. fi
  7502. rm -f conftest.err conftest.i conftest.$ac_ext
  7503. # OK, works on sane cases. Now check whether nonexistent headers
  7504. # can be detected and how.
  7505. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7506. /* end confdefs.h. */
  7507. #include <ac_nonexistent.h>
  7508. _ACEOF
  7509. if ac_fn_c_try_cpp "$LINENO"; then :
  7510. # Broken: success on invalid input.
  7511. continue
  7512. else
  7513. # Passes both tests.
  7514. ac_preproc_ok=:
  7515. break
  7516. fi
  7517. rm -f conftest.err conftest.i conftest.$ac_ext
  7518. done
  7519. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  7520. rm -f conftest.i conftest.err conftest.$ac_ext
  7521. if $ac_preproc_ok; then :
  7522. break
  7523. fi
  7524. done
  7525. ac_cv_prog_CPP=$CPP
  7526. fi
  7527. CPP=$ac_cv_prog_CPP
  7528. else
  7529. ac_cv_prog_CPP=$CPP
  7530. fi
  7531. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  7532. $as_echo "$CPP" >&6; }
  7533. ac_preproc_ok=false
  7534. for ac_c_preproc_warn_flag in '' yes
  7535. do
  7536. # Use a header file that comes with gcc, so configuring glibc
  7537. # with a fresh cross-compiler works.
  7538. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7539. # <limits.h> exists even on freestanding compilers.
  7540. # On the NeXT, cc -E runs the code through the compiler's parser,
  7541. # not just through cpp. "Syntax error" is here to catch this case.
  7542. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7543. /* end confdefs.h. */
  7544. #ifdef __STDC__
  7545. # include <limits.h>
  7546. #else
  7547. # include <assert.h>
  7548. #endif
  7549. Syntax error
  7550. _ACEOF
  7551. if ac_fn_c_try_cpp "$LINENO"; then :
  7552. else
  7553. # Broken: fails on valid input.
  7554. continue
  7555. fi
  7556. rm -f conftest.err conftest.i conftest.$ac_ext
  7557. # OK, works on sane cases. Now check whether nonexistent headers
  7558. # can be detected and how.
  7559. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7560. /* end confdefs.h. */
  7561. #include <ac_nonexistent.h>
  7562. _ACEOF
  7563. if ac_fn_c_try_cpp "$LINENO"; then :
  7564. # Broken: success on invalid input.
  7565. continue
  7566. else
  7567. # Passes both tests.
  7568. ac_preproc_ok=:
  7569. break
  7570. fi
  7571. rm -f conftest.err conftest.i conftest.$ac_ext
  7572. done
  7573. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  7574. rm -f conftest.i conftest.err conftest.$ac_ext
  7575. if $ac_preproc_ok; then :
  7576. else
  7577. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  7578. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  7579. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  7580. See \`config.log' for more details" "$LINENO" 5; }
  7581. fi
  7582. ac_ext=c
  7583. ac_cpp='$CPP $CPPFLAGS'
  7584. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7585. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7586. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7587. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  7588. $as_echo_n "checking for ANSI C header files... " >&6; }
  7589. if ${ac_cv_header_stdc+:} false; then :
  7590. $as_echo_n "(cached) " >&6
  7591. else
  7592. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7593. /* end confdefs.h. */
  7594. #include <stdlib.h>
  7595. #include <stdarg.h>
  7596. #include <string.h>
  7597. #include <float.h>
  7598. int
  7599. main ()
  7600. {
  7601. ;
  7602. return 0;
  7603. }
  7604. _ACEOF
  7605. if ac_fn_c_try_compile "$LINENO"; then :
  7606. ac_cv_header_stdc=yes
  7607. else
  7608. ac_cv_header_stdc=no
  7609. fi
  7610. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7611. if test $ac_cv_header_stdc = yes; then
  7612. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  7613. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7614. /* end confdefs.h. */
  7615. #include <string.h>
  7616. _ACEOF
  7617. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7618. $EGREP "memchr" >/dev/null 2>&1; then :
  7619. else
  7620. ac_cv_header_stdc=no
  7621. fi
  7622. rm -f conftest*
  7623. fi
  7624. if test $ac_cv_header_stdc = yes; then
  7625. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  7626. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7627. /* end confdefs.h. */
  7628. #include <stdlib.h>
  7629. _ACEOF
  7630. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7631. $EGREP "free" >/dev/null 2>&1; then :
  7632. else
  7633. ac_cv_header_stdc=no
  7634. fi
  7635. rm -f conftest*
  7636. fi
  7637. if test $ac_cv_header_stdc = yes; then
  7638. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  7639. if test "$cross_compiling" = yes; then :
  7640. :
  7641. else
  7642. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7643. /* end confdefs.h. */
  7644. #include <ctype.h>
  7645. #include <stdlib.h>
  7646. #if ((' ' & 0x0FF) == 0x020)
  7647. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  7648. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  7649. #else
  7650. # define ISLOWER(c) \
  7651. (('a' <= (c) && (c) <= 'i') \
  7652. || ('j' <= (c) && (c) <= 'r') \
  7653. || ('s' <= (c) && (c) <= 'z'))
  7654. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  7655. #endif
  7656. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  7657. int
  7658. main ()
  7659. {
  7660. int i;
  7661. for (i = 0; i < 256; i++)
  7662. if (XOR (islower (i), ISLOWER (i))
  7663. || toupper (i) != TOUPPER (i))
  7664. return 2;
  7665. return 0;
  7666. }
  7667. _ACEOF
  7668. if ac_fn_c_try_run "$LINENO"; then :
  7669. else
  7670. ac_cv_header_stdc=no
  7671. fi
  7672. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  7673. conftest.$ac_objext conftest.beam conftest.$ac_ext
  7674. fi
  7675. fi
  7676. fi
  7677. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  7678. $as_echo "$ac_cv_header_stdc" >&6; }
  7679. if test $ac_cv_header_stdc = yes; then
  7680. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  7681. fi
  7682. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  7683. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  7684. inttypes.h stdint.h unistd.h
  7685. do :
  7686. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7687. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  7688. "
  7689. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  7690. cat >>confdefs.h <<_ACEOF
  7691. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7692. _ACEOF
  7693. fi
  7694. done
  7695. for ac_header in dlfcn.h
  7696. do :
  7697. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  7698. "
  7699. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  7700. cat >>confdefs.h <<_ACEOF
  7701. #define HAVE_DLFCN_H 1
  7702. _ACEOF
  7703. fi
  7704. done
  7705. func_stripname_cnf ()
  7706. {
  7707. case ${2} in
  7708. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  7709. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  7710. esac
  7711. } # func_stripname_cnf
  7712. # Set options
  7713. enable_dlopen=no
  7714. enable_win32_dll=no
  7715. # Check whether --enable-shared was given.
  7716. if test "${enable_shared+set}" = set; then :
  7717. enableval=$enable_shared; p=${PACKAGE-default}
  7718. case $enableval in
  7719. yes) enable_shared=yes ;;
  7720. no) enable_shared=no ;;
  7721. *)
  7722. enable_shared=no
  7723. # Look at the argument we got. We use all the common list separators.
  7724. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7725. for pkg in $enableval; do
  7726. IFS="$lt_save_ifs"
  7727. if test "X$pkg" = "X$p"; then
  7728. enable_shared=yes
  7729. fi
  7730. done
  7731. IFS="$lt_save_ifs"
  7732. ;;
  7733. esac
  7734. else
  7735. enable_shared=yes
  7736. fi
  7737. # Check whether --with-pic was given.
  7738. if test "${with_pic+set}" = set; then :
  7739. withval=$with_pic; lt_p=${PACKAGE-default}
  7740. case $withval in
  7741. yes|no) pic_mode=$withval ;;
  7742. *)
  7743. pic_mode=default
  7744. # Look at the argument we got. We use all the common list separators.
  7745. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7746. for lt_pkg in $withval; do
  7747. IFS="$lt_save_ifs"
  7748. if test "X$lt_pkg" = "X$lt_p"; then
  7749. pic_mode=yes
  7750. fi
  7751. done
  7752. IFS="$lt_save_ifs"
  7753. ;;
  7754. esac
  7755. else
  7756. pic_mode=default
  7757. fi
  7758. test -z "$pic_mode" && pic_mode=default
  7759. # Check whether --enable-fast-install was given.
  7760. if test "${enable_fast_install+set}" = set; then :
  7761. enableval=$enable_fast_install; p=${PACKAGE-default}
  7762. case $enableval in
  7763. yes) enable_fast_install=yes ;;
  7764. no) enable_fast_install=no ;;
  7765. *)
  7766. enable_fast_install=no
  7767. # Look at the argument we got. We use all the common list separators.
  7768. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7769. for pkg in $enableval; do
  7770. IFS="$lt_save_ifs"
  7771. if test "X$pkg" = "X$p"; then
  7772. enable_fast_install=yes
  7773. fi
  7774. done
  7775. IFS="$lt_save_ifs"
  7776. ;;
  7777. esac
  7778. else
  7779. enable_fast_install=yes
  7780. fi
  7781. # This can be used to rebuild libtool when needed
  7782. LIBTOOL_DEPS="$ltmain"
  7783. # Always use our own libtool.
  7784. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7785. test -z "$LN_S" && LN_S="ln -s"
  7786. if test -n "${ZSH_VERSION+set}" ; then
  7787. setopt NO_GLOB_SUBST
  7788. fi
  7789. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7790. $as_echo_n "checking for objdir... " >&6; }
  7791. if ${lt_cv_objdir+:} false; then :
  7792. $as_echo_n "(cached) " >&6
  7793. else
  7794. rm -f .libs 2>/dev/null
  7795. mkdir .libs 2>/dev/null
  7796. if test -d .libs; then
  7797. lt_cv_objdir=.libs
  7798. else
  7799. # MS-DOS does not allow filenames that begin with a dot.
  7800. lt_cv_objdir=_libs
  7801. fi
  7802. rmdir .libs 2>/dev/null
  7803. fi
  7804. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7805. $as_echo "$lt_cv_objdir" >&6; }
  7806. objdir=$lt_cv_objdir
  7807. cat >>confdefs.h <<_ACEOF
  7808. #define LT_OBJDIR "$lt_cv_objdir/"
  7809. _ACEOF
  7810. case $host_os in
  7811. aix3*)
  7812. # AIX sometimes has problems with the GCC collect2 program. For some
  7813. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7814. # vanish in a puff of smoke.
  7815. if test "X${COLLECT_NAMES+set}" != Xset; then
  7816. COLLECT_NAMES=
  7817. export COLLECT_NAMES
  7818. fi
  7819. ;;
  7820. esac
  7821. # Global variables:
  7822. ofile=libtool
  7823. can_build_shared=yes
  7824. # All known linkers require a `.a' archive for static linking (except MSVC,
  7825. # which needs '.lib').
  7826. libext=a
  7827. with_gnu_ld="$lt_cv_prog_gnu_ld"
  7828. old_CC="$CC"
  7829. old_CFLAGS="$CFLAGS"
  7830. # Set sane defaults for various variables
  7831. test -z "$CC" && CC=cc
  7832. test -z "$LTCC" && LTCC=$CC
  7833. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7834. test -z "$LD" && LD=ld
  7835. test -z "$ac_objext" && ac_objext=o
  7836. for cc_temp in $compiler""; do
  7837. case $cc_temp in
  7838. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  7839. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  7840. \-*) ;;
  7841. *) break;;
  7842. esac
  7843. done
  7844. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  7845. # Only perform the check for file, if the check method requires it
  7846. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7847. case $deplibs_check_method in
  7848. file_magic*)
  7849. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7850. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7851. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  7852. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7853. $as_echo_n "(cached) " >&6
  7854. else
  7855. case $MAGIC_CMD in
  7856. [\\/*] | ?:[\\/]*)
  7857. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7858. ;;
  7859. *)
  7860. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7861. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7862. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7863. for ac_dir in $ac_dummy; do
  7864. IFS="$lt_save_ifs"
  7865. test -z "$ac_dir" && ac_dir=.
  7866. if test -f $ac_dir/${ac_tool_prefix}file; then
  7867. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  7868. if test -n "$file_magic_test_file"; then
  7869. case $deplibs_check_method in
  7870. "file_magic "*)
  7871. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7872. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7873. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7874. $EGREP "$file_magic_regex" > /dev/null; then
  7875. :
  7876. else
  7877. cat <<_LT_EOF 1>&2
  7878. *** Warning: the command libtool uses to detect shared libraries,
  7879. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7880. *** The result is that libtool may fail to recognize shared libraries
  7881. *** as such. This will affect the creation of libtool libraries that
  7882. *** depend on shared libraries, but programs linked with such libtool
  7883. *** libraries will work regardless of this problem. Nevertheless, you
  7884. *** may want to report the problem to your system manager and/or to
  7885. *** [email protected]
  7886. _LT_EOF
  7887. fi ;;
  7888. esac
  7889. fi
  7890. break
  7891. fi
  7892. done
  7893. IFS="$lt_save_ifs"
  7894. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7895. ;;
  7896. esac
  7897. fi
  7898. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7899. if test -n "$MAGIC_CMD"; then
  7900. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7901. $as_echo "$MAGIC_CMD" >&6; }
  7902. else
  7903. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7904. $as_echo "no" >&6; }
  7905. fi
  7906. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7907. if test -n "$ac_tool_prefix"; then
  7908. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7909. $as_echo_n "checking for file... " >&6; }
  7910. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7911. $as_echo_n "(cached) " >&6
  7912. else
  7913. case $MAGIC_CMD in
  7914. [\\/*] | ?:[\\/]*)
  7915. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7916. ;;
  7917. *)
  7918. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7919. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7920. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7921. for ac_dir in $ac_dummy; do
  7922. IFS="$lt_save_ifs"
  7923. test -z "$ac_dir" && ac_dir=.
  7924. if test -f $ac_dir/file; then
  7925. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  7926. if test -n "$file_magic_test_file"; then
  7927. case $deplibs_check_method in
  7928. "file_magic "*)
  7929. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7930. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7931. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7932. $EGREP "$file_magic_regex" > /dev/null; then
  7933. :
  7934. else
  7935. cat <<_LT_EOF 1>&2
  7936. *** Warning: the command libtool uses to detect shared libraries,
  7937. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7938. *** The result is that libtool may fail to recognize shared libraries
  7939. *** as such. This will affect the creation of libtool libraries that
  7940. *** depend on shared libraries, but programs linked with such libtool
  7941. *** libraries will work regardless of this problem. Nevertheless, you
  7942. *** may want to report the problem to your system manager and/or to
  7943. *** [email protected]
  7944. _LT_EOF
  7945. fi ;;
  7946. esac
  7947. fi
  7948. break
  7949. fi
  7950. done
  7951. IFS="$lt_save_ifs"
  7952. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7953. ;;
  7954. esac
  7955. fi
  7956. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7957. if test -n "$MAGIC_CMD"; then
  7958. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7959. $as_echo "$MAGIC_CMD" >&6; }
  7960. else
  7961. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7962. $as_echo "no" >&6; }
  7963. fi
  7964. else
  7965. MAGIC_CMD=:
  7966. fi
  7967. fi
  7968. fi
  7969. ;;
  7970. esac
  7971. # Use C for the default configuration in the libtool script
  7972. lt_save_CC="$CC"
  7973. ac_ext=c
  7974. ac_cpp='$CPP $CPPFLAGS'
  7975. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7976. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7977. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7978. # Source file extension for C test sources.
  7979. ac_ext=c
  7980. # Object file extension for compiled C test sources.
  7981. objext=o
  7982. objext=$objext
  7983. # Code to be used in simple compile tests
  7984. lt_simple_compile_test_code="int some_variable = 0;"
  7985. # Code to be used in simple link tests
  7986. lt_simple_link_test_code='int main(){return(0);}'
  7987. # If no C compiler was specified, use CC.
  7988. LTCC=${LTCC-"$CC"}
  7989. # If no C compiler flags were specified, use CFLAGS.
  7990. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7991. # Allow CC to be a program name with arguments.
  7992. compiler=$CC
  7993. # Save the default compiler, since it gets overwritten when the other
  7994. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7995. compiler_DEFAULT=$CC
  7996. # save warnings/boilerplate of simple test code
  7997. ac_outfile=conftest.$ac_objext
  7998. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7999. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  8000. _lt_compiler_boilerplate=`cat conftest.err`
  8001. $RM conftest*
  8002. ac_outfile=conftest.$ac_objext
  8003. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  8004. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  8005. _lt_linker_boilerplate=`cat conftest.err`
  8006. $RM -r conftest*
  8007. ## CAVEAT EMPTOR:
  8008. ## There is no encapsulation within the following macros, do not change
  8009. ## the running order or otherwise move them around unless you know exactly
  8010. ## what you are doing...
  8011. if test -n "$compiler"; then
  8012. lt_prog_compiler_no_builtin_flag=
  8013. if test "$GCC" = yes; then
  8014. case $cc_basename in
  8015. nvcc*)
  8016. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  8017. *)
  8018. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  8019. esac
  8020. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  8021. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  8022. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  8023. $as_echo_n "(cached) " >&6
  8024. else
  8025. lt_cv_prog_compiler_rtti_exceptions=no
  8026. ac_outfile=conftest.$ac_objext
  8027. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8028. lt_compiler_flag="-fno-rtti -fno-exceptions"
  8029. # Insert the option either (1) after the last *FLAGS variable, or
  8030. # (2) before a word containing "conftest.", or (3) at the end.
  8031. # Note that $ac_compile itself does not contain backslashes and begins
  8032. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8033. # The option is referenced via a variable to avoid confusing sed.
  8034. lt_compile=`echo "$ac_compile" | $SED \
  8035. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8036. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8037. -e 's:$: $lt_compiler_flag:'`
  8038. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8039. (eval "$lt_compile" 2>conftest.err)
  8040. ac_status=$?
  8041. cat conftest.err >&5
  8042. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8043. if (exit $ac_status) && test -s "$ac_outfile"; then
  8044. # The compiler can only warn and ignore the option if not recognized
  8045. # So say no if there are warnings other than the usual output.
  8046. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8047. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8048. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8049. lt_cv_prog_compiler_rtti_exceptions=yes
  8050. fi
  8051. fi
  8052. $RM conftest*
  8053. fi
  8054. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  8055. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  8056. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  8057. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  8058. else
  8059. :
  8060. fi
  8061. fi
  8062. lt_prog_compiler_wl=
  8063. lt_prog_compiler_pic=
  8064. lt_prog_compiler_static=
  8065. if test "$GCC" = yes; then
  8066. lt_prog_compiler_wl='-Wl,'
  8067. lt_prog_compiler_static='-static'
  8068. case $host_os in
  8069. aix*)
  8070. # All AIX code is PIC.
  8071. if test "$host_cpu" = ia64; then
  8072. # AIX 5 now supports IA64 processor
  8073. lt_prog_compiler_static='-Bstatic'
  8074. fi
  8075. ;;
  8076. amigaos*)
  8077. case $host_cpu in
  8078. powerpc)
  8079. # see comment about AmigaOS4 .so support
  8080. lt_prog_compiler_pic='-fPIC'
  8081. ;;
  8082. m68k)
  8083. # FIXME: we need at least 68020 code to build shared libraries, but
  8084. # adding the `-m68020' flag to GCC prevents building anything better,
  8085. # like `-m68040'.
  8086. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  8087. ;;
  8088. esac
  8089. ;;
  8090. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  8091. # PIC is the default for these OSes.
  8092. ;;
  8093. mingw* | cygwin* | pw32* | os2* | cegcc*)
  8094. # This hack is so that the source file can tell whether it is being
  8095. # built for inclusion in a dll (and should export symbols for example).
  8096. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  8097. # (--disable-auto-import) libraries
  8098. lt_prog_compiler_pic='-DDLL_EXPORT'
  8099. ;;
  8100. darwin* | rhapsody*)
  8101. # PIC is the default on this platform
  8102. # Common symbols not allowed in MH_DYLIB files
  8103. lt_prog_compiler_pic='-fno-common'
  8104. ;;
  8105. haiku*)
  8106. # PIC is the default for Haiku.
  8107. # The "-static" flag exists, but is broken.
  8108. lt_prog_compiler_static=
  8109. ;;
  8110. hpux*)
  8111. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  8112. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  8113. # sets the default TLS model and affects inlining.
  8114. case $host_cpu in
  8115. hppa*64*)
  8116. # +Z the default
  8117. ;;
  8118. *)
  8119. lt_prog_compiler_pic='-fPIC'
  8120. ;;
  8121. esac
  8122. ;;
  8123. interix[3-9]*)
  8124. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  8125. # Instead, we relocate shared libraries at runtime.
  8126. ;;
  8127. msdosdjgpp*)
  8128. # Just because we use GCC doesn't mean we suddenly get shared libraries
  8129. # on systems that don't support them.
  8130. lt_prog_compiler_can_build_shared=no
  8131. enable_shared=no
  8132. ;;
  8133. *nto* | *qnx*)
  8134. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8135. # it will coredump.
  8136. lt_prog_compiler_pic='-fPIC -shared'
  8137. ;;
  8138. sysv4*MP*)
  8139. if test -d /usr/nec; then
  8140. lt_prog_compiler_pic=-Kconform_pic
  8141. fi
  8142. ;;
  8143. *)
  8144. lt_prog_compiler_pic='-fPIC'
  8145. ;;
  8146. esac
  8147. case $cc_basename in
  8148. nvcc*) # Cuda Compiler Driver 2.2
  8149. lt_prog_compiler_wl='-Xlinker '
  8150. if test -n "$lt_prog_compiler_pic"; then
  8151. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  8152. fi
  8153. ;;
  8154. esac
  8155. else
  8156. # PORTME Check for flag to pass linker flags through the system compiler.
  8157. case $host_os in
  8158. aix*)
  8159. lt_prog_compiler_wl='-Wl,'
  8160. if test "$host_cpu" = ia64; then
  8161. # AIX 5 now supports IA64 processor
  8162. lt_prog_compiler_static='-Bstatic'
  8163. else
  8164. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  8165. fi
  8166. ;;
  8167. mingw* | cygwin* | pw32* | os2* | cegcc*)
  8168. # This hack is so that the source file can tell whether it is being
  8169. # built for inclusion in a dll (and should export symbols for example).
  8170. lt_prog_compiler_pic='-DDLL_EXPORT'
  8171. ;;
  8172. hpux9* | hpux10* | hpux11*)
  8173. lt_prog_compiler_wl='-Wl,'
  8174. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  8175. # not for PA HP-UX.
  8176. case $host_cpu in
  8177. hppa*64*|ia64*)
  8178. # +Z the default
  8179. ;;
  8180. *)
  8181. lt_prog_compiler_pic='+Z'
  8182. ;;
  8183. esac
  8184. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  8185. lt_prog_compiler_static='${wl}-a ${wl}archive'
  8186. ;;
  8187. irix5* | irix6* | nonstopux*)
  8188. lt_prog_compiler_wl='-Wl,'
  8189. # PIC (with -KPIC) is the default.
  8190. lt_prog_compiler_static='-non_shared'
  8191. ;;
  8192. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  8193. case $cc_basename in
  8194. # old Intel for x86_64 which still supported -KPIC.
  8195. ecc*)
  8196. lt_prog_compiler_wl='-Wl,'
  8197. lt_prog_compiler_pic='-KPIC'
  8198. lt_prog_compiler_static='-static'
  8199. ;;
  8200. # icc used to be incompatible with GCC.
  8201. # ICC 10 doesn't accept -KPIC any more.
  8202. icc* | ifort*)
  8203. lt_prog_compiler_wl='-Wl,'
  8204. lt_prog_compiler_pic='-fPIC'
  8205. lt_prog_compiler_static='-static'
  8206. ;;
  8207. # Lahey Fortran 8.1.
  8208. lf95*)
  8209. lt_prog_compiler_wl='-Wl,'
  8210. lt_prog_compiler_pic='--shared'
  8211. lt_prog_compiler_static='--static'
  8212. ;;
  8213. nagfor*)
  8214. # NAG Fortran compiler
  8215. lt_prog_compiler_wl='-Wl,-Wl,,'
  8216. lt_prog_compiler_pic='-PIC'
  8217. lt_prog_compiler_static='-Bstatic'
  8218. ;;
  8219. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  8220. # Portland Group compilers (*not* the Pentium gcc compiler,
  8221. # which looks to be a dead project)
  8222. lt_prog_compiler_wl='-Wl,'
  8223. lt_prog_compiler_pic='-fpic'
  8224. lt_prog_compiler_static='-Bstatic'
  8225. ;;
  8226. ccc*)
  8227. lt_prog_compiler_wl='-Wl,'
  8228. # All Alpha code is PIC.
  8229. lt_prog_compiler_static='-non_shared'
  8230. ;;
  8231. xl* | bgxl* | bgf* | mpixl*)
  8232. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  8233. lt_prog_compiler_wl='-Wl,'
  8234. lt_prog_compiler_pic='-qpic'
  8235. lt_prog_compiler_static='-qstaticlink'
  8236. ;;
  8237. *)
  8238. case `$CC -V 2>&1 | sed 5q` in
  8239. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  8240. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  8241. lt_prog_compiler_pic='-KPIC'
  8242. lt_prog_compiler_static='-Bstatic'
  8243. lt_prog_compiler_wl=''
  8244. ;;
  8245. *Sun\ F* | *Sun*Fortran*)
  8246. lt_prog_compiler_pic='-KPIC'
  8247. lt_prog_compiler_static='-Bstatic'
  8248. lt_prog_compiler_wl='-Qoption ld '
  8249. ;;
  8250. *Sun\ C*)
  8251. # Sun C 5.9
  8252. lt_prog_compiler_pic='-KPIC'
  8253. lt_prog_compiler_static='-Bstatic'
  8254. lt_prog_compiler_wl='-Wl,'
  8255. ;;
  8256. *Intel*\ [CF]*Compiler*)
  8257. lt_prog_compiler_wl='-Wl,'
  8258. lt_prog_compiler_pic='-fPIC'
  8259. lt_prog_compiler_static='-static'
  8260. ;;
  8261. *Portland\ Group*)
  8262. lt_prog_compiler_wl='-Wl,'
  8263. lt_prog_compiler_pic='-fpic'
  8264. lt_prog_compiler_static='-Bstatic'
  8265. ;;
  8266. esac
  8267. ;;
  8268. esac
  8269. ;;
  8270. newsos6)
  8271. lt_prog_compiler_pic='-KPIC'
  8272. lt_prog_compiler_static='-Bstatic'
  8273. ;;
  8274. *nto* | *qnx*)
  8275. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8276. # it will coredump.
  8277. lt_prog_compiler_pic='-fPIC -shared'
  8278. ;;
  8279. osf3* | osf4* | osf5*)
  8280. lt_prog_compiler_wl='-Wl,'
  8281. # All OSF/1 code is PIC.
  8282. lt_prog_compiler_static='-non_shared'
  8283. ;;
  8284. rdos*)
  8285. lt_prog_compiler_static='-non_shared'
  8286. ;;
  8287. solaris*)
  8288. lt_prog_compiler_pic='-KPIC'
  8289. lt_prog_compiler_static='-Bstatic'
  8290. case $cc_basename in
  8291. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  8292. lt_prog_compiler_wl='-Qoption ld ';;
  8293. *)
  8294. lt_prog_compiler_wl='-Wl,';;
  8295. esac
  8296. ;;
  8297. sunos4*)
  8298. lt_prog_compiler_wl='-Qoption ld '
  8299. lt_prog_compiler_pic='-PIC'
  8300. lt_prog_compiler_static='-Bstatic'
  8301. ;;
  8302. sysv4 | sysv4.2uw2* | sysv4.3*)
  8303. lt_prog_compiler_wl='-Wl,'
  8304. lt_prog_compiler_pic='-KPIC'
  8305. lt_prog_compiler_static='-Bstatic'
  8306. ;;
  8307. sysv4*MP*)
  8308. if test -d /usr/nec ;then
  8309. lt_prog_compiler_pic='-Kconform_pic'
  8310. lt_prog_compiler_static='-Bstatic'
  8311. fi
  8312. ;;
  8313. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  8314. lt_prog_compiler_wl='-Wl,'
  8315. lt_prog_compiler_pic='-KPIC'
  8316. lt_prog_compiler_static='-Bstatic'
  8317. ;;
  8318. unicos*)
  8319. lt_prog_compiler_wl='-Wl,'
  8320. lt_prog_compiler_can_build_shared=no
  8321. ;;
  8322. uts4*)
  8323. lt_prog_compiler_pic='-pic'
  8324. lt_prog_compiler_static='-Bstatic'
  8325. ;;
  8326. *)
  8327. lt_prog_compiler_can_build_shared=no
  8328. ;;
  8329. esac
  8330. fi
  8331. case $host_os in
  8332. # For platforms which do not support PIC, -DPIC is meaningless:
  8333. *djgpp*)
  8334. lt_prog_compiler_pic=
  8335. ;;
  8336. *)
  8337. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  8338. ;;
  8339. esac
  8340. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  8341. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  8342. if ${lt_cv_prog_compiler_pic+:} false; then :
  8343. $as_echo_n "(cached) " >&6
  8344. else
  8345. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  8346. fi
  8347. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  8348. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  8349. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  8350. #
  8351. # Check to make sure the PIC flag actually works.
  8352. #
  8353. if test -n "$lt_prog_compiler_pic"; then
  8354. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  8355. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  8356. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  8357. $as_echo_n "(cached) " >&6
  8358. else
  8359. lt_cv_prog_compiler_pic_works=no
  8360. ac_outfile=conftest.$ac_objext
  8361. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8362. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  8363. # Insert the option either (1) after the last *FLAGS variable, or
  8364. # (2) before a word containing "conftest.", or (3) at the end.
  8365. # Note that $ac_compile itself does not contain backslashes and begins
  8366. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8367. # The option is referenced via a variable to avoid confusing sed.
  8368. lt_compile=`echo "$ac_compile" | $SED \
  8369. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8370. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8371. -e 's:$: $lt_compiler_flag:'`
  8372. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8373. (eval "$lt_compile" 2>conftest.err)
  8374. ac_status=$?
  8375. cat conftest.err >&5
  8376. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8377. if (exit $ac_status) && test -s "$ac_outfile"; then
  8378. # The compiler can only warn and ignore the option if not recognized
  8379. # So say no if there are warnings other than the usual output.
  8380. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8381. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8382. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8383. lt_cv_prog_compiler_pic_works=yes
  8384. fi
  8385. fi
  8386. $RM conftest*
  8387. fi
  8388. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  8389. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  8390. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  8391. case $lt_prog_compiler_pic in
  8392. "" | " "*) ;;
  8393. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  8394. esac
  8395. else
  8396. lt_prog_compiler_pic=
  8397. lt_prog_compiler_can_build_shared=no
  8398. fi
  8399. fi
  8400. #
  8401. # Check to make sure the static flag actually works.
  8402. #
  8403. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  8404. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  8405. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  8406. if ${lt_cv_prog_compiler_static_works+:} false; then :
  8407. $as_echo_n "(cached) " >&6
  8408. else
  8409. lt_cv_prog_compiler_static_works=no
  8410. save_LDFLAGS="$LDFLAGS"
  8411. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  8412. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8413. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8414. # The linker can only warn and ignore the option if not recognized
  8415. # So say no if there are warnings
  8416. if test -s conftest.err; then
  8417. # Append any errors to the config.log.
  8418. cat conftest.err 1>&5
  8419. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8420. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8421. if diff conftest.exp conftest.er2 >/dev/null; then
  8422. lt_cv_prog_compiler_static_works=yes
  8423. fi
  8424. else
  8425. lt_cv_prog_compiler_static_works=yes
  8426. fi
  8427. fi
  8428. $RM -r conftest*
  8429. LDFLAGS="$save_LDFLAGS"
  8430. fi
  8431. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  8432. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  8433. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  8434. :
  8435. else
  8436. lt_prog_compiler_static=
  8437. fi
  8438. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8439. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8440. if ${lt_cv_prog_compiler_c_o+:} false; then :
  8441. $as_echo_n "(cached) " >&6
  8442. else
  8443. lt_cv_prog_compiler_c_o=no
  8444. $RM -r conftest 2>/dev/null
  8445. mkdir conftest
  8446. cd conftest
  8447. mkdir out
  8448. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8449. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8450. # Insert the option either (1) after the last *FLAGS variable, or
  8451. # (2) before a word containing "conftest.", or (3) at the end.
  8452. # Note that $ac_compile itself does not contain backslashes and begins
  8453. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8454. lt_compile=`echo "$ac_compile" | $SED \
  8455. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8456. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8457. -e 's:$: $lt_compiler_flag:'`
  8458. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8459. (eval "$lt_compile" 2>out/conftest.err)
  8460. ac_status=$?
  8461. cat out/conftest.err >&5
  8462. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8463. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8464. then
  8465. # The compiler can only warn and ignore the option if not recognized
  8466. # So say no if there are warnings
  8467. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8468. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8469. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8470. lt_cv_prog_compiler_c_o=yes
  8471. fi
  8472. fi
  8473. chmod u+w . 2>&5
  8474. $RM conftest*
  8475. # SGI C++ compiler will create directory out/ii_files/ for
  8476. # template instantiation
  8477. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8478. $RM out/* && rmdir out
  8479. cd ..
  8480. $RM -r conftest
  8481. $RM conftest*
  8482. fi
  8483. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8484. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8485. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8486. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8487. if ${lt_cv_prog_compiler_c_o+:} false; then :
  8488. $as_echo_n "(cached) " >&6
  8489. else
  8490. lt_cv_prog_compiler_c_o=no
  8491. $RM -r conftest 2>/dev/null
  8492. mkdir conftest
  8493. cd conftest
  8494. mkdir out
  8495. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8496. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8497. # Insert the option either (1) after the last *FLAGS variable, or
  8498. # (2) before a word containing "conftest.", or (3) at the end.
  8499. # Note that $ac_compile itself does not contain backslashes and begins
  8500. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8501. lt_compile=`echo "$ac_compile" | $SED \
  8502. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8503. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8504. -e 's:$: $lt_compiler_flag:'`
  8505. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8506. (eval "$lt_compile" 2>out/conftest.err)
  8507. ac_status=$?
  8508. cat out/conftest.err >&5
  8509. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8510. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8511. then
  8512. # The compiler can only warn and ignore the option if not recognized
  8513. # So say no if there are warnings
  8514. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8515. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8516. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8517. lt_cv_prog_compiler_c_o=yes
  8518. fi
  8519. fi
  8520. chmod u+w . 2>&5
  8521. $RM conftest*
  8522. # SGI C++ compiler will create directory out/ii_files/ for
  8523. # template instantiation
  8524. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8525. $RM out/* && rmdir out
  8526. cd ..
  8527. $RM -r conftest
  8528. $RM conftest*
  8529. fi
  8530. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8531. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8532. hard_links="nottested"
  8533. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  8534. # do not overwrite the value of need_locks provided by the user
  8535. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  8536. $as_echo_n "checking if we can lock with hard links... " >&6; }
  8537. hard_links=yes
  8538. $RM conftest*
  8539. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8540. touch conftest.a
  8541. ln conftest.a conftest.b 2>&5 || hard_links=no
  8542. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8543. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  8544. $as_echo "$hard_links" >&6; }
  8545. if test "$hard_links" = no; then
  8546. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  8547. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  8548. need_locks=warn
  8549. fi
  8550. else
  8551. need_locks=no
  8552. fi
  8553. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  8554. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  8555. runpath_var=
  8556. allow_undefined_flag=
  8557. always_export_symbols=no
  8558. archive_cmds=
  8559. archive_expsym_cmds=
  8560. compiler_needs_object=no
  8561. enable_shared_with_static_runtimes=no
  8562. export_dynamic_flag_spec=
  8563. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8564. hardcode_automatic=no
  8565. hardcode_direct=no
  8566. hardcode_direct_absolute=no
  8567. hardcode_libdir_flag_spec=
  8568. hardcode_libdir_separator=
  8569. hardcode_minus_L=no
  8570. hardcode_shlibpath_var=unsupported
  8571. inherit_rpath=no
  8572. link_all_deplibs=unknown
  8573. module_cmds=
  8574. module_expsym_cmds=
  8575. old_archive_from_new_cmds=
  8576. old_archive_from_expsyms_cmds=
  8577. thread_safe_flag_spec=
  8578. whole_archive_flag_spec=
  8579. # include_expsyms should be a list of space-separated symbols to be *always*
  8580. # included in the symbol list
  8581. include_expsyms=
  8582. # exclude_expsyms can be an extended regexp of symbols to exclude
  8583. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  8584. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  8585. # as well as any symbol that contains `d'.
  8586. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  8587. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  8588. # platforms (ab)use it in PIC code, but their linkers get confused if
  8589. # the symbol is explicitly referenced. Since portable code cannot
  8590. # rely on this symbol name, it's probably fine to never include it in
  8591. # preloaded symbol tables.
  8592. # Exclude shared library initialization/finalization symbols.
  8593. extract_expsyms_cmds=
  8594. case $host_os in
  8595. cygwin* | mingw* | pw32* | cegcc*)
  8596. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  8597. # When not using gcc, we currently assume that we are using
  8598. # Microsoft Visual C++.
  8599. if test "$GCC" != yes; then
  8600. with_gnu_ld=no
  8601. fi
  8602. ;;
  8603. interix*)
  8604. # we just hope/assume this is gcc and not c89 (= MSVC++)
  8605. with_gnu_ld=yes
  8606. ;;
  8607. openbsd*)
  8608. with_gnu_ld=no
  8609. ;;
  8610. esac
  8611. ld_shlibs=yes
  8612. # On some targets, GNU ld is compatible enough with the native linker
  8613. # that we're better off using the native interface for both.
  8614. lt_use_gnu_ld_interface=no
  8615. if test "$with_gnu_ld" = yes; then
  8616. case $host_os in
  8617. aix*)
  8618. # The AIX port of GNU ld has always aspired to compatibility
  8619. # with the native linker. However, as the warning in the GNU ld
  8620. # block says, versions before 2.19.5* couldn't really create working
  8621. # shared libraries, regardless of the interface used.
  8622. case `$LD -v 2>&1` in
  8623. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  8624. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  8625. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  8626. *)
  8627. lt_use_gnu_ld_interface=yes
  8628. ;;
  8629. esac
  8630. ;;
  8631. *)
  8632. lt_use_gnu_ld_interface=yes
  8633. ;;
  8634. esac
  8635. fi
  8636. if test "$lt_use_gnu_ld_interface" = yes; then
  8637. # If archive_cmds runs LD, not CC, wlarc should be empty
  8638. wlarc='${wl}'
  8639. # Set some defaults for GNU ld with shared library support. These
  8640. # are reset later if shared libraries are not supported. Putting them
  8641. # here allows them to be overridden if necessary.
  8642. runpath_var=LD_RUN_PATH
  8643. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8644. export_dynamic_flag_spec='${wl}--export-dynamic'
  8645. # ancient GNU ld didn't support --whole-archive et. al.
  8646. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  8647. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  8648. else
  8649. whole_archive_flag_spec=
  8650. fi
  8651. supports_anon_versioning=no
  8652. case `$LD -v 2>&1` in
  8653. *GNU\ gold*) supports_anon_versioning=yes ;;
  8654. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  8655. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  8656. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  8657. *\ 2.11.*) ;; # other 2.11 versions
  8658. *) supports_anon_versioning=yes ;;
  8659. esac
  8660. # See if GNU ld supports shared libraries.
  8661. case $host_os in
  8662. aix[3-9]*)
  8663. # On AIX/PPC, the GNU linker is very broken
  8664. if test "$host_cpu" != ia64; then
  8665. ld_shlibs=no
  8666. cat <<_LT_EOF 1>&2
  8667. *** Warning: the GNU linker, at least up to release 2.19, is reported
  8668. *** to be unable to reliably create shared libraries on AIX.
  8669. *** Therefore, libtool is disabling shared libraries support. If you
  8670. *** really care for shared libraries, you may want to install binutils
  8671. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  8672. *** You will then need to restart the configuration process.
  8673. _LT_EOF
  8674. fi
  8675. ;;
  8676. amigaos*)
  8677. case $host_cpu in
  8678. powerpc)
  8679. # see comment about AmigaOS4 .so support
  8680. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8681. archive_expsym_cmds=''
  8682. ;;
  8683. m68k)
  8684. 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)'
  8685. hardcode_libdir_flag_spec='-L$libdir'
  8686. hardcode_minus_L=yes
  8687. ;;
  8688. esac
  8689. ;;
  8690. beos*)
  8691. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8692. allow_undefined_flag=unsupported
  8693. # Joseph Beckenbach <[email protected]> says some releases of gcc
  8694. # support --undefined. This deserves some investigation. FIXME
  8695. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8696. else
  8697. ld_shlibs=no
  8698. fi
  8699. ;;
  8700. cygwin* | mingw* | pw32* | cegcc*)
  8701. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  8702. # as there is no search path for DLLs.
  8703. hardcode_libdir_flag_spec='-L$libdir'
  8704. export_dynamic_flag_spec='${wl}--export-all-symbols'
  8705. allow_undefined_flag=unsupported
  8706. always_export_symbols=no
  8707. enable_shared_with_static_runtimes=yes
  8708. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
  8709. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  8710. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  8711. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8712. # If the export-symbols file already is a .def file (1st line
  8713. # is EXPORTS), use it as is; otherwise, prepend...
  8714. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8715. cp $export_symbols $output_objdir/$soname.def;
  8716. else
  8717. echo EXPORTS > $output_objdir/$soname.def;
  8718. cat $export_symbols >> $output_objdir/$soname.def;
  8719. fi~
  8720. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8721. else
  8722. ld_shlibs=no
  8723. fi
  8724. ;;
  8725. haiku*)
  8726. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8727. link_all_deplibs=yes
  8728. ;;
  8729. interix[3-9]*)
  8730. hardcode_direct=no
  8731. hardcode_shlibpath_var=no
  8732. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8733. export_dynamic_flag_spec='${wl}-E'
  8734. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8735. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8736. # default) and relocated if they conflict, which is a slow very memory
  8737. # consuming and fragmenting process. To avoid this, we pick a random,
  8738. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8739. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8740. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8741. 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'
  8742. ;;
  8743. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  8744. tmp_diet=no
  8745. if test "$host_os" = linux-dietlibc; then
  8746. case $cc_basename in
  8747. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8748. esac
  8749. fi
  8750. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8751. && test "$tmp_diet" = no
  8752. then
  8753. tmp_addflag=' $pic_flag'
  8754. tmp_sharedflag='-shared'
  8755. case $cc_basename,$host_cpu in
  8756. pgcc*) # Portland Group C compiler
  8757. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  8758. tmp_addflag=' $pic_flag'
  8759. ;;
  8760. pgf77* | pgf90* | pgf95* | pgfortran*)
  8761. # Portland Group f77 and f90 compilers
  8762. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  8763. tmp_addflag=' $pic_flag -Mnomain' ;;
  8764. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8765. tmp_addflag=' -i_dynamic' ;;
  8766. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8767. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8768. ifc* | ifort*) # Intel Fortran compiler
  8769. tmp_addflag=' -nofor_main' ;;
  8770. lf95*) # Lahey Fortran 8.1
  8771. whole_archive_flag_spec=
  8772. tmp_sharedflag='--shared' ;;
  8773. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8774. tmp_sharedflag='-qmkshrobj'
  8775. tmp_addflag= ;;
  8776. nvcc*) # Cuda Compiler Driver 2.2
  8777. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  8778. compiler_needs_object=yes
  8779. ;;
  8780. esac
  8781. case `$CC -V 2>&1 | sed 5q` in
  8782. *Sun\ C*) # Sun C 5.9
  8783. whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  8784. compiler_needs_object=yes
  8785. tmp_sharedflag='-G' ;;
  8786. *Sun\ F*) # Sun Fortran 8.3
  8787. tmp_sharedflag='-G' ;;
  8788. esac
  8789. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8790. if test "x$supports_anon_versioning" = xyes; then
  8791. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8792. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8793. echo "local: *; };" >> $output_objdir/$libname.ver~
  8794. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  8795. fi
  8796. case $cc_basename in
  8797. xlf* | bgf* | bgxlf* | mpixlf*)
  8798. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8799. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8800. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8801. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  8802. if test "x$supports_anon_versioning" = xyes; then
  8803. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8804. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8805. echo "local: *; };" >> $output_objdir/$libname.ver~
  8806. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8807. fi
  8808. ;;
  8809. esac
  8810. else
  8811. ld_shlibs=no
  8812. fi
  8813. ;;
  8814. netbsd*)
  8815. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8816. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8817. wlarc=
  8818. else
  8819. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8820. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8821. fi
  8822. ;;
  8823. solaris*)
  8824. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8825. ld_shlibs=no
  8826. cat <<_LT_EOF 1>&2
  8827. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8828. *** create shared libraries on Solaris systems. Therefore, libtool
  8829. *** is disabling shared libraries support. We urge you to upgrade GNU
  8830. *** binutils to release 2.9.1 or newer. Another option is to modify
  8831. *** your PATH or compiler configuration so that the native linker is
  8832. *** used, and then restart.
  8833. _LT_EOF
  8834. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8835. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8836. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8837. else
  8838. ld_shlibs=no
  8839. fi
  8840. ;;
  8841. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8842. case `$LD -v 2>&1` in
  8843. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8844. ld_shlibs=no
  8845. cat <<_LT_EOF 1>&2
  8846. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  8847. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8848. *** is disabling shared libraries support. We urge you to upgrade GNU
  8849. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8850. *** your PATH or compiler configuration so that the native linker is
  8851. *** used, and then restart.
  8852. _LT_EOF
  8853. ;;
  8854. *)
  8855. # For security reasons, it is highly recommended that you always
  8856. # use absolute paths for naming shared libraries, and exclude the
  8857. # DT_RUNPATH tag from executables and libraries. But doing so
  8858. # requires that you compile everything twice, which is a pain.
  8859. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8860. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8861. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8862. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8863. else
  8864. ld_shlibs=no
  8865. fi
  8866. ;;
  8867. esac
  8868. ;;
  8869. sunos4*)
  8870. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8871. wlarc=
  8872. hardcode_direct=yes
  8873. hardcode_shlibpath_var=no
  8874. ;;
  8875. *)
  8876. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8877. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8878. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8879. else
  8880. ld_shlibs=no
  8881. fi
  8882. ;;
  8883. esac
  8884. if test "$ld_shlibs" = no; then
  8885. runpath_var=
  8886. hardcode_libdir_flag_spec=
  8887. export_dynamic_flag_spec=
  8888. whole_archive_flag_spec=
  8889. fi
  8890. else
  8891. # PORTME fill in a description of your system's linker (not GNU ld)
  8892. case $host_os in
  8893. aix3*)
  8894. allow_undefined_flag=unsupported
  8895. always_export_symbols=yes
  8896. 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'
  8897. # Note: this linker hardcodes the directories in LIBPATH if there
  8898. # are no directories specified by -L.
  8899. hardcode_minus_L=yes
  8900. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  8901. # Neither direct hardcoding nor static linking is supported with a
  8902. # broken collect2.
  8903. hardcode_direct=unsupported
  8904. fi
  8905. ;;
  8906. aix[4-9]*)
  8907. if test "$host_cpu" = ia64; then
  8908. # On IA64, the linker does run time linking by default, so we don't
  8909. # have to do anything special.
  8910. aix_use_runtimelinking=no
  8911. exp_sym_flag='-Bexport'
  8912. no_entry_flag=""
  8913. else
  8914. # If we're using GNU nm, then we don't want the "-C" option.
  8915. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  8916. # Also, AIX nm treats weak defined symbols like other global
  8917. # defined symbols, whereas GNU nm marks them as "W".
  8918. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8919. export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  8920. else
  8921. 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'
  8922. fi
  8923. aix_use_runtimelinking=no
  8924. # Test if we are trying to use run time linking or normal
  8925. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8926. # need to do runtime linking.
  8927. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8928. for ld_flag in $LDFLAGS; do
  8929. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  8930. aix_use_runtimelinking=yes
  8931. break
  8932. fi
  8933. done
  8934. ;;
  8935. esac
  8936. exp_sym_flag='-bexport'
  8937. no_entry_flag='-bnoentry'
  8938. fi
  8939. # When large executables or shared objects are built, AIX ld can
  8940. # have problems creating the table of contents. If linking a library
  8941. # or program results in "error TOC overflow" add -mminimal-toc to
  8942. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8943. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8944. archive_cmds=''
  8945. hardcode_direct=yes
  8946. hardcode_direct_absolute=yes
  8947. hardcode_libdir_separator=':'
  8948. link_all_deplibs=yes
  8949. file_list_spec='${wl}-f,'
  8950. if test "$GCC" = yes; then
  8951. case $host_os in aix4.[012]|aix4.[012].*)
  8952. # We only want to do this on AIX 4.2 and lower, the check
  8953. # below for broken collect2 doesn't work under 4.3+
  8954. collect2name=`${CC} -print-prog-name=collect2`
  8955. if test -f "$collect2name" &&
  8956. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8957. then
  8958. # We have reworked collect2
  8959. :
  8960. else
  8961. # We have old collect2
  8962. hardcode_direct=unsupported
  8963. # It fails to find uninstalled libraries when the uninstalled
  8964. # path is not listed in the libpath. Setting hardcode_minus_L
  8965. # to unsupported forces relinking
  8966. hardcode_minus_L=yes
  8967. hardcode_libdir_flag_spec='-L$libdir'
  8968. hardcode_libdir_separator=
  8969. fi
  8970. ;;
  8971. esac
  8972. shared_flag='-shared'
  8973. if test "$aix_use_runtimelinking" = yes; then
  8974. shared_flag="$shared_flag "'${wl}-G'
  8975. fi
  8976. else
  8977. # not using gcc
  8978. if test "$host_cpu" = ia64; then
  8979. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8980. # chokes on -Wl,-G. The following line is correct:
  8981. shared_flag='-G'
  8982. else
  8983. if test "$aix_use_runtimelinking" = yes; then
  8984. shared_flag='${wl}-G'
  8985. else
  8986. shared_flag='${wl}-bM:SRE'
  8987. fi
  8988. fi
  8989. fi
  8990. export_dynamic_flag_spec='${wl}-bexpall'
  8991. # It seems that -bexpall does not export symbols beginning with
  8992. # underscore (_), so it is better to generate a list of symbols to export.
  8993. always_export_symbols=yes
  8994. if test "$aix_use_runtimelinking" = yes; then
  8995. # Warning - without using the other runtime loading flags (-brtl),
  8996. # -berok will link without error, but may produce a broken library.
  8997. allow_undefined_flag='-berok'
  8998. # Determine the default libpath from the value encoded in an
  8999. # empty executable.
  9000. if test "${lt_cv_aix_libpath+set}" = set; then
  9001. aix_libpath=$lt_cv_aix_libpath
  9002. else
  9003. if ${lt_cv_aix_libpath_+:} false; then :
  9004. $as_echo_n "(cached) " >&6
  9005. else
  9006. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9007. /* end confdefs.h. */
  9008. int
  9009. main ()
  9010. {
  9011. ;
  9012. return 0;
  9013. }
  9014. _ACEOF
  9015. if ac_fn_c_try_link "$LINENO"; then :
  9016. lt_aix_libpath_sed='
  9017. /Import File Strings/,/^$/ {
  9018. /^0/ {
  9019. s/^0 *\([^ ]*\) *$/\1/
  9020. p
  9021. }
  9022. }'
  9023. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9024. # Check for a 64-bit object if we didn't find anything.
  9025. if test -z "$lt_cv_aix_libpath_"; then
  9026. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9027. fi
  9028. fi
  9029. rm -f core conftest.err conftest.$ac_objext \
  9030. conftest$ac_exeext conftest.$ac_ext
  9031. if test -z "$lt_cv_aix_libpath_"; then
  9032. lt_cv_aix_libpath_="/usr/lib:/lib"
  9033. fi
  9034. fi
  9035. aix_libpath=$lt_cv_aix_libpath_
  9036. fi
  9037. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  9038. archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  9039. else
  9040. if test "$host_cpu" = ia64; then
  9041. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  9042. allow_undefined_flag="-z nodefs"
  9043. 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"
  9044. else
  9045. # Determine the default libpath from the value encoded in an
  9046. # empty executable.
  9047. if test "${lt_cv_aix_libpath+set}" = set; then
  9048. aix_libpath=$lt_cv_aix_libpath
  9049. else
  9050. if ${lt_cv_aix_libpath_+:} false; then :
  9051. $as_echo_n "(cached) " >&6
  9052. else
  9053. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9054. /* end confdefs.h. */
  9055. int
  9056. main ()
  9057. {
  9058. ;
  9059. return 0;
  9060. }
  9061. _ACEOF
  9062. if ac_fn_c_try_link "$LINENO"; then :
  9063. lt_aix_libpath_sed='
  9064. /Import File Strings/,/^$/ {
  9065. /^0/ {
  9066. s/^0 *\([^ ]*\) *$/\1/
  9067. p
  9068. }
  9069. }'
  9070. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9071. # Check for a 64-bit object if we didn't find anything.
  9072. if test -z "$lt_cv_aix_libpath_"; then
  9073. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9074. fi
  9075. fi
  9076. rm -f core conftest.err conftest.$ac_objext \
  9077. conftest$ac_exeext conftest.$ac_ext
  9078. if test -z "$lt_cv_aix_libpath_"; then
  9079. lt_cv_aix_libpath_="/usr/lib:/lib"
  9080. fi
  9081. fi
  9082. aix_libpath=$lt_cv_aix_libpath_
  9083. fi
  9084. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  9085. # Warning - without using the other run time loading flags,
  9086. # -berok will link without error, but may produce a broken library.
  9087. no_undefined_flag=' ${wl}-bernotok'
  9088. allow_undefined_flag=' ${wl}-berok'
  9089. if test "$with_gnu_ld" = yes; then
  9090. # We only use this code for GNU lds that support --whole-archive.
  9091. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  9092. else
  9093. # Exported symbols can be pulled into shared objects from archives
  9094. whole_archive_flag_spec='$convenience'
  9095. fi
  9096. archive_cmds_need_lc=yes
  9097. # This is similar to how AIX traditionally builds its shared libraries.
  9098. 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'
  9099. fi
  9100. fi
  9101. ;;
  9102. amigaos*)
  9103. case $host_cpu in
  9104. powerpc)
  9105. # see comment about AmigaOS4 .so support
  9106. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9107. archive_expsym_cmds=''
  9108. ;;
  9109. m68k)
  9110. 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)'
  9111. hardcode_libdir_flag_spec='-L$libdir'
  9112. hardcode_minus_L=yes
  9113. ;;
  9114. esac
  9115. ;;
  9116. bsdi[45]*)
  9117. export_dynamic_flag_spec=-rdynamic
  9118. ;;
  9119. cygwin* | mingw* | pw32* | cegcc*)
  9120. # When not using gcc, we currently assume that we are using
  9121. # Microsoft Visual C++.
  9122. # hardcode_libdir_flag_spec is actually meaningless, as there is
  9123. # no search path for DLLs.
  9124. case $cc_basename in
  9125. cl*)
  9126. # Native MSVC
  9127. hardcode_libdir_flag_spec=' '
  9128. allow_undefined_flag=unsupported
  9129. always_export_symbols=yes
  9130. file_list_spec='@'
  9131. # Tell ltmain to make .lib files, not .a files.
  9132. libext=lib
  9133. # Tell ltmain to make .dll files, not .so files.
  9134. shrext_cmds=".dll"
  9135. # FIXME: Setting linknames here is a bad hack.
  9136. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  9137. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  9138. sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  9139. else
  9140. sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  9141. fi~
  9142. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  9143. linknames='
  9144. # The linker will not automatically build a static lib if we build a DLL.
  9145. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  9146. enable_shared_with_static_runtimes=yes
  9147. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  9148. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  9149. # Don't use ranlib
  9150. old_postinstall_cmds='chmod 644 $oldlib'
  9151. postlink_cmds='lt_outputfile="@OUTPUT@"~
  9152. lt_tool_outputfile="@TOOL_OUTPUT@"~
  9153. case $lt_outputfile in
  9154. *.exe|*.EXE) ;;
  9155. *)
  9156. lt_outputfile="$lt_outputfile.exe"
  9157. lt_tool_outputfile="$lt_tool_outputfile.exe"
  9158. ;;
  9159. esac~
  9160. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  9161. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  9162. $RM "$lt_outputfile.manifest";
  9163. fi'
  9164. ;;
  9165. *)
  9166. # Assume MSVC wrapper
  9167. hardcode_libdir_flag_spec=' '
  9168. allow_undefined_flag=unsupported
  9169. # Tell ltmain to make .lib files, not .a files.
  9170. libext=lib
  9171. # Tell ltmain to make .dll files, not .so files.
  9172. shrext_cmds=".dll"
  9173. # FIXME: Setting linknames here is a bad hack.
  9174. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  9175. # The linker will automatically build a .lib file if we build a DLL.
  9176. old_archive_from_new_cmds='true'
  9177. # FIXME: Should let the user specify the lib program.
  9178. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  9179. enable_shared_with_static_runtimes=yes
  9180. ;;
  9181. esac
  9182. ;;
  9183. darwin* | rhapsody*)
  9184. archive_cmds_need_lc=no
  9185. hardcode_direct=no
  9186. hardcode_automatic=yes
  9187. hardcode_shlibpath_var=unsupported
  9188. if test "$lt_cv_ld_force_load" = "yes"; then
  9189. whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
  9190. else
  9191. whole_archive_flag_spec=''
  9192. fi
  9193. link_all_deplibs=yes
  9194. allow_undefined_flag="$_lt_dar_allow_undefined"
  9195. case $cc_basename in
  9196. ifort*) _lt_dar_can_shared=yes ;;
  9197. *) _lt_dar_can_shared=$GCC ;;
  9198. esac
  9199. if test "$_lt_dar_can_shared" = "yes"; then
  9200. output_verbose_link_cmd=func_echo_all
  9201. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  9202. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  9203. 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}"
  9204. 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}"
  9205. else
  9206. ld_shlibs=no
  9207. fi
  9208. ;;
  9209. dgux*)
  9210. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9211. hardcode_libdir_flag_spec='-L$libdir'
  9212. hardcode_shlibpath_var=no
  9213. ;;
  9214. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  9215. # support. Future versions do this automatically, but an explicit c++rt0.o
  9216. # does not break anything, and helps significantly (at the cost of a little
  9217. # extra space).
  9218. freebsd2.2*)
  9219. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  9220. hardcode_libdir_flag_spec='-R$libdir'
  9221. hardcode_direct=yes
  9222. hardcode_shlibpath_var=no
  9223. ;;
  9224. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  9225. freebsd2.*)
  9226. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9227. hardcode_direct=yes
  9228. hardcode_minus_L=yes
  9229. hardcode_shlibpath_var=no
  9230. ;;
  9231. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  9232. freebsd* | dragonfly*)
  9233. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9234. hardcode_libdir_flag_spec='-R$libdir'
  9235. hardcode_direct=yes
  9236. hardcode_shlibpath_var=no
  9237. ;;
  9238. hpux9*)
  9239. if test "$GCC" = yes; then
  9240. archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  9241. else
  9242. 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'
  9243. fi
  9244. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  9245. hardcode_libdir_separator=:
  9246. hardcode_direct=yes
  9247. # hardcode_minus_L: Not really in the search PATH,
  9248. # but as the default location of the library.
  9249. hardcode_minus_L=yes
  9250. export_dynamic_flag_spec='${wl}-E'
  9251. ;;
  9252. hpux10*)
  9253. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  9254. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9255. else
  9256. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9257. fi
  9258. if test "$with_gnu_ld" = no; then
  9259. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  9260. hardcode_libdir_separator=:
  9261. hardcode_direct=yes
  9262. hardcode_direct_absolute=yes
  9263. export_dynamic_flag_spec='${wl}-E'
  9264. # hardcode_minus_L: Not really in the search PATH,
  9265. # but as the default location of the library.
  9266. hardcode_minus_L=yes
  9267. fi
  9268. ;;
  9269. hpux11*)
  9270. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  9271. case $host_cpu in
  9272. hppa*64*)
  9273. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9274. ;;
  9275. ia64*)
  9276. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9277. ;;
  9278. *)
  9279. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9280. ;;
  9281. esac
  9282. else
  9283. case $host_cpu in
  9284. hppa*64*)
  9285. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9286. ;;
  9287. ia64*)
  9288. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9289. ;;
  9290. *)
  9291. # Older versions of the 11.00 compiler do not understand -b yet
  9292. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  9293. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  9294. $as_echo_n "checking if $CC understands -b... " >&6; }
  9295. if ${lt_cv_prog_compiler__b+:} false; then :
  9296. $as_echo_n "(cached) " >&6
  9297. else
  9298. lt_cv_prog_compiler__b=no
  9299. save_LDFLAGS="$LDFLAGS"
  9300. LDFLAGS="$LDFLAGS -b"
  9301. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  9302. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  9303. # The linker can only warn and ignore the option if not recognized
  9304. # So say no if there are warnings
  9305. if test -s conftest.err; then
  9306. # Append any errors to the config.log.
  9307. cat conftest.err 1>&5
  9308. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  9309. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9310. if diff conftest.exp conftest.er2 >/dev/null; then
  9311. lt_cv_prog_compiler__b=yes
  9312. fi
  9313. else
  9314. lt_cv_prog_compiler__b=yes
  9315. fi
  9316. fi
  9317. $RM -r conftest*
  9318. LDFLAGS="$save_LDFLAGS"
  9319. fi
  9320. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  9321. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  9322. if test x"$lt_cv_prog_compiler__b" = xyes; then
  9323. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9324. else
  9325. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9326. fi
  9327. ;;
  9328. esac
  9329. fi
  9330. if test "$with_gnu_ld" = no; then
  9331. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  9332. hardcode_libdir_separator=:
  9333. case $host_cpu in
  9334. hppa*64*|ia64*)
  9335. hardcode_direct=no
  9336. hardcode_shlibpath_var=no
  9337. ;;
  9338. *)
  9339. hardcode_direct=yes
  9340. hardcode_direct_absolute=yes
  9341. export_dynamic_flag_spec='${wl}-E'
  9342. # hardcode_minus_L: Not really in the search PATH,
  9343. # but as the default location of the library.
  9344. hardcode_minus_L=yes
  9345. ;;
  9346. esac
  9347. fi
  9348. ;;
  9349. irix5* | irix6* | nonstopux*)
  9350. if test "$GCC" = yes; then
  9351. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  9352. # Try to use the -exported_symbol ld option, if it does not
  9353. # work, assume that -exports_file does not work either and
  9354. # implicitly export all symbols.
  9355. # This should be the same for all languages, so no per-tag cache variable.
  9356. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  9357. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  9358. if ${lt_cv_irix_exported_symbol+:} false; then :
  9359. $as_echo_n "(cached) " >&6
  9360. else
  9361. save_LDFLAGS="$LDFLAGS"
  9362. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  9363. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9364. /* end confdefs.h. */
  9365. int foo (void) { return 0; }
  9366. _ACEOF
  9367. if ac_fn_c_try_link "$LINENO"; then :
  9368. lt_cv_irix_exported_symbol=yes
  9369. else
  9370. lt_cv_irix_exported_symbol=no
  9371. fi
  9372. rm -f core conftest.err conftest.$ac_objext \
  9373. conftest$ac_exeext conftest.$ac_ext
  9374. LDFLAGS="$save_LDFLAGS"
  9375. fi
  9376. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  9377. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  9378. if test "$lt_cv_irix_exported_symbol" = yes; then
  9379. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
  9380. fi
  9381. else
  9382. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  9383. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
  9384. fi
  9385. archive_cmds_need_lc='no'
  9386. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9387. hardcode_libdir_separator=:
  9388. inherit_rpath=yes
  9389. link_all_deplibs=yes
  9390. ;;
  9391. netbsd*)
  9392. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9393. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  9394. else
  9395. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  9396. fi
  9397. hardcode_libdir_flag_spec='-R$libdir'
  9398. hardcode_direct=yes
  9399. hardcode_shlibpath_var=no
  9400. ;;
  9401. newsos6)
  9402. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9403. hardcode_direct=yes
  9404. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9405. hardcode_libdir_separator=:
  9406. hardcode_shlibpath_var=no
  9407. ;;
  9408. *nto* | *qnx*)
  9409. ;;
  9410. openbsd*)
  9411. if test -f /usr/libexec/ld.so; then
  9412. hardcode_direct=yes
  9413. hardcode_shlibpath_var=no
  9414. hardcode_direct_absolute=yes
  9415. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9416. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9417. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  9418. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  9419. export_dynamic_flag_spec='${wl}-E'
  9420. else
  9421. case $host_os in
  9422. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  9423. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9424. hardcode_libdir_flag_spec='-R$libdir'
  9425. ;;
  9426. *)
  9427. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9428. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  9429. ;;
  9430. esac
  9431. fi
  9432. else
  9433. ld_shlibs=no
  9434. fi
  9435. ;;
  9436. os2*)
  9437. hardcode_libdir_flag_spec='-L$libdir'
  9438. hardcode_minus_L=yes
  9439. allow_undefined_flag=unsupported
  9440. 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'
  9441. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  9442. ;;
  9443. osf3*)
  9444. if test "$GCC" = yes; then
  9445. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  9446. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  9447. else
  9448. allow_undefined_flag=' -expect_unresolved \*'
  9449. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  9450. fi
  9451. archive_cmds_need_lc='no'
  9452. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9453. hardcode_libdir_separator=:
  9454. ;;
  9455. osf4* | osf5*) # as osf3* with the addition of -msym flag
  9456. if test "$GCC" = yes; then
  9457. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  9458. archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  9459. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9460. else
  9461. allow_undefined_flag=' -expect_unresolved \*'
  9462. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  9463. 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~
  9464. $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
  9465. # Both c and cxx compiler support -rpath directly
  9466. hardcode_libdir_flag_spec='-rpath $libdir'
  9467. fi
  9468. archive_cmds_need_lc='no'
  9469. hardcode_libdir_separator=:
  9470. ;;
  9471. solaris*)
  9472. no_undefined_flag=' -z defs'
  9473. if test "$GCC" = yes; then
  9474. wlarc='${wl}'
  9475. archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9476. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9477. $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9478. else
  9479. case `$CC -V 2>&1` in
  9480. *"Compilers 5.0"*)
  9481. wlarc=''
  9482. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9483. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9484. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  9485. ;;
  9486. *)
  9487. wlarc='${wl}'
  9488. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9489. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9490. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9491. ;;
  9492. esac
  9493. fi
  9494. hardcode_libdir_flag_spec='-R$libdir'
  9495. hardcode_shlibpath_var=no
  9496. case $host_os in
  9497. solaris2.[0-5] | solaris2.[0-5].*) ;;
  9498. *)
  9499. # The compiler driver will combine and reorder linker options,
  9500. # but understands `-z linker_flag'. GCC discards it without `$wl',
  9501. # but is careful enough not to reorder.
  9502. # Supported since Solaris 2.6 (maybe 2.5.1?)
  9503. if test "$GCC" = yes; then
  9504. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  9505. else
  9506. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  9507. fi
  9508. ;;
  9509. esac
  9510. link_all_deplibs=yes
  9511. ;;
  9512. sunos4*)
  9513. if test "x$host_vendor" = xsequent; then
  9514. # Use $CC to link under sequent, because it throws in some extra .o
  9515. # files that make .init and .fini sections work.
  9516. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9517. else
  9518. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  9519. fi
  9520. hardcode_libdir_flag_spec='-L$libdir'
  9521. hardcode_direct=yes
  9522. hardcode_minus_L=yes
  9523. hardcode_shlibpath_var=no
  9524. ;;
  9525. sysv4)
  9526. case $host_vendor in
  9527. sni)
  9528. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9529. hardcode_direct=yes # is this really true???
  9530. ;;
  9531. siemens)
  9532. ## LD is ld it makes a PLAMLIB
  9533. ## CC just makes a GrossModule.
  9534. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  9535. reload_cmds='$CC -r -o $output$reload_objs'
  9536. hardcode_direct=no
  9537. ;;
  9538. motorola)
  9539. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9540. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  9541. ;;
  9542. esac
  9543. runpath_var='LD_RUN_PATH'
  9544. hardcode_shlibpath_var=no
  9545. ;;
  9546. sysv4.3*)
  9547. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9548. hardcode_shlibpath_var=no
  9549. export_dynamic_flag_spec='-Bexport'
  9550. ;;
  9551. sysv4*MP*)
  9552. if test -d /usr/nec; then
  9553. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9554. hardcode_shlibpath_var=no
  9555. runpath_var=LD_RUN_PATH
  9556. hardcode_runpath_var=yes
  9557. ld_shlibs=yes
  9558. fi
  9559. ;;
  9560. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  9561. no_undefined_flag='${wl}-z,text'
  9562. archive_cmds_need_lc=no
  9563. hardcode_shlibpath_var=no
  9564. runpath_var='LD_RUN_PATH'
  9565. if test "$GCC" = yes; then
  9566. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9567. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9568. else
  9569. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9570. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9571. fi
  9572. ;;
  9573. sysv5* | sco3.2v5* | sco5v6*)
  9574. # Note: We can NOT use -z defs as we might desire, because we do not
  9575. # link with -lc, and that would cause any symbols used from libc to
  9576. # always be unresolved, which means just about no library would
  9577. # ever link correctly. If we're not using GNU ld we use -z text
  9578. # though, which does catch some bad symbols but isn't as heavy-handed
  9579. # as -z defs.
  9580. no_undefined_flag='${wl}-z,text'
  9581. allow_undefined_flag='${wl}-z,nodefs'
  9582. archive_cmds_need_lc=no
  9583. hardcode_shlibpath_var=no
  9584. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  9585. hardcode_libdir_separator=':'
  9586. link_all_deplibs=yes
  9587. export_dynamic_flag_spec='${wl}-Bexport'
  9588. runpath_var='LD_RUN_PATH'
  9589. if test "$GCC" = yes; then
  9590. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9591. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9592. else
  9593. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9594. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9595. fi
  9596. ;;
  9597. uts4*)
  9598. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9599. hardcode_libdir_flag_spec='-L$libdir'
  9600. hardcode_shlibpath_var=no
  9601. ;;
  9602. *)
  9603. ld_shlibs=no
  9604. ;;
  9605. esac
  9606. if test x$host_vendor = xsni; then
  9607. case $host in
  9608. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  9609. export_dynamic_flag_spec='${wl}-Blargedynsym'
  9610. ;;
  9611. esac
  9612. fi
  9613. fi
  9614. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  9615. $as_echo "$ld_shlibs" >&6; }
  9616. test "$ld_shlibs" = no && can_build_shared=no
  9617. with_gnu_ld=$with_gnu_ld
  9618. #
  9619. # Do we need to explicitly link libc?
  9620. #
  9621. case "x$archive_cmds_need_lc" in
  9622. x|xyes)
  9623. # Assume -lc should be added
  9624. archive_cmds_need_lc=yes
  9625. if test "$enable_shared" = yes && test "$GCC" = yes; then
  9626. case $archive_cmds in
  9627. *'~'*)
  9628. # FIXME: we may have to deal with multi-command sequences.
  9629. ;;
  9630. '$CC '*)
  9631. # Test whether the compiler implicitly links with -lc since on some
  9632. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  9633. # to ld, don't add -lc before -lgcc.
  9634. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  9635. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  9636. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  9637. $as_echo_n "(cached) " >&6
  9638. else
  9639. $RM conftest*
  9640. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9641. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9642. (eval $ac_compile) 2>&5
  9643. ac_status=$?
  9644. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9645. test $ac_status = 0; } 2>conftest.err; then
  9646. soname=conftest
  9647. lib=conftest
  9648. libobjs=conftest.$ac_objext
  9649. deplibs=
  9650. wl=$lt_prog_compiler_wl
  9651. pic_flag=$lt_prog_compiler_pic
  9652. compiler_flags=-v
  9653. linker_flags=-v
  9654. verstring=
  9655. output_objdir=.
  9656. libname=conftest
  9657. lt_save_allow_undefined_flag=$allow_undefined_flag
  9658. allow_undefined_flag=
  9659. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  9660. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9661. ac_status=$?
  9662. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9663. test $ac_status = 0; }
  9664. then
  9665. lt_cv_archive_cmds_need_lc=no
  9666. else
  9667. lt_cv_archive_cmds_need_lc=yes
  9668. fi
  9669. allow_undefined_flag=$lt_save_allow_undefined_flag
  9670. else
  9671. cat conftest.err 1>&5
  9672. fi
  9673. $RM conftest*
  9674. fi
  9675. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  9676. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  9677. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  9678. ;;
  9679. esac
  9680. fi
  9681. ;;
  9682. esac
  9683. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  9684. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  9685. if test "$GCC" = yes; then
  9686. case $host_os in
  9687. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  9688. *) lt_awk_arg="/^libraries:/" ;;
  9689. esac
  9690. case $host_os in
  9691. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  9692. *) lt_sed_strip_eq="s,=/,/,g" ;;
  9693. esac
  9694. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  9695. case $lt_search_path_spec in
  9696. *\;*)
  9697. # if the path contains ";" then we assume it to be the separator
  9698. # otherwise default to the standard path separator (i.e. ":") - it is
  9699. # assumed that no part of a normal pathname contains ";" but that should
  9700. # okay in the real world where ";" in dirpaths is itself problematic.
  9701. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  9702. ;;
  9703. *)
  9704. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  9705. ;;
  9706. esac
  9707. # Ok, now we have the path, separated by spaces, we can step through it
  9708. # and add multilib dir if necessary.
  9709. lt_tmp_lt_search_path_spec=
  9710. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9711. for lt_sys_path in $lt_search_path_spec; do
  9712. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  9713. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  9714. else
  9715. test -d "$lt_sys_path" && \
  9716. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  9717. fi
  9718. done
  9719. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  9720. BEGIN {RS=" "; FS="/|\n";} {
  9721. lt_foo="";
  9722. lt_count=0;
  9723. for (lt_i = NF; lt_i > 0; lt_i--) {
  9724. if ($lt_i != "" && $lt_i != ".") {
  9725. if ($lt_i == "..") {
  9726. lt_count++;
  9727. } else {
  9728. if (lt_count == 0) {
  9729. lt_foo="/" $lt_i lt_foo;
  9730. } else {
  9731. lt_count--;
  9732. }
  9733. }
  9734. }
  9735. }
  9736. if (lt_foo != "") { lt_freq[lt_foo]++; }
  9737. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9738. }'`
  9739. # AWK program above erroneously prepends '/' to C:/dos/paths
  9740. # for these hosts.
  9741. case $host_os in
  9742. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  9743. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  9744. esac
  9745. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  9746. else
  9747. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9748. fi
  9749. library_names_spec=
  9750. libname_spec='lib$name'
  9751. soname_spec=
  9752. shrext_cmds=".so"
  9753. postinstall_cmds=
  9754. postuninstall_cmds=
  9755. finish_cmds=
  9756. finish_eval=
  9757. shlibpath_var=
  9758. shlibpath_overrides_runpath=unknown
  9759. version_type=none
  9760. dynamic_linker="$host_os ld.so"
  9761. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9762. need_lib_prefix=unknown
  9763. hardcode_into_libs=no
  9764. # when you set need_version to no, make sure it does not cause -set_version
  9765. # flags to be left without arguments
  9766. need_version=unknown
  9767. case $host_os in
  9768. aix3*)
  9769. version_type=linux # correct to gnu/linux during the next big refactor
  9770. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  9771. shlibpath_var=LIBPATH
  9772. # AIX 3 has no versioning support, so we append a major version to the name.
  9773. soname_spec='${libname}${release}${shared_ext}$major'
  9774. ;;
  9775. aix[4-9]*)
  9776. version_type=linux # correct to gnu/linux during the next big refactor
  9777. need_lib_prefix=no
  9778. need_version=no
  9779. hardcode_into_libs=yes
  9780. if test "$host_cpu" = ia64; then
  9781. # AIX 5 supports IA64
  9782. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  9783. shlibpath_var=LD_LIBRARY_PATH
  9784. else
  9785. # With GCC up to 2.95.x, collect2 would create an import file
  9786. # for dependence libraries. The import file would start with
  9787. # the line `#! .'. This would cause the generated library to
  9788. # depend on `.', always an invalid library. This was fixed in
  9789. # development snapshots of GCC prior to 3.0.
  9790. case $host_os in
  9791. aix4 | aix4.[01] | aix4.[01].*)
  9792. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9793. echo ' yes '
  9794. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  9795. :
  9796. else
  9797. can_build_shared=no
  9798. fi
  9799. ;;
  9800. esac
  9801. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  9802. # soname into executable. Probably we can add versioning support to
  9803. # collect2, so additional links can be useful in future.
  9804. if test "$aix_use_runtimelinking" = yes; then
  9805. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9806. # instead of lib<name>.a to let people know that these are not
  9807. # typical AIX shared libraries.
  9808. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9809. else
  9810. # We preserve .a as extension for shared libraries through AIX4.2
  9811. # and later when we are not doing run time linking.
  9812. library_names_spec='${libname}${release}.a $libname.a'
  9813. soname_spec='${libname}${release}${shared_ext}$major'
  9814. fi
  9815. shlibpath_var=LIBPATH
  9816. fi
  9817. ;;
  9818. amigaos*)
  9819. case $host_cpu in
  9820. powerpc)
  9821. # Since July 2007 AmigaOS4 officially supports .so libraries.
  9822. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  9823. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9824. ;;
  9825. m68k)
  9826. library_names_spec='$libname.ixlibrary $libname.a'
  9827. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9828. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
  9829. ;;
  9830. esac
  9831. ;;
  9832. beos*)
  9833. library_names_spec='${libname}${shared_ext}'
  9834. dynamic_linker="$host_os ld.so"
  9835. shlibpath_var=LIBRARY_PATH
  9836. ;;
  9837. bsdi[45]*)
  9838. version_type=linux # correct to gnu/linux during the next big refactor
  9839. need_version=no
  9840. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9841. soname_spec='${libname}${release}${shared_ext}$major'
  9842. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9843. shlibpath_var=LD_LIBRARY_PATH
  9844. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9845. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9846. # the default ld.so.conf also contains /usr/contrib/lib and
  9847. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9848. # libtool to hard-code these into programs
  9849. ;;
  9850. cygwin* | mingw* | pw32* | cegcc*)
  9851. version_type=windows
  9852. shrext_cmds=".dll"
  9853. need_version=no
  9854. need_lib_prefix=no
  9855. case $GCC,$cc_basename in
  9856. yes,*)
  9857. # gcc
  9858. library_names_spec='$libname.dll.a'
  9859. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9860. postinstall_cmds='base_file=`basename \${file}`~
  9861. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  9862. dldir=$destdir/`dirname \$dlpath`~
  9863. test -d \$dldir || mkdir -p \$dldir~
  9864. $install_prog $dir/$dlname \$dldir/$dlname~
  9865. chmod a+x \$dldir/$dlname~
  9866. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9867. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9868. fi'
  9869. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9870. dlpath=$dir/\$dldll~
  9871. $RM \$dlpath'
  9872. shlibpath_overrides_runpath=yes
  9873. case $host_os in
  9874. cygwin*)
  9875. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  9876. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9877. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  9878. ;;
  9879. mingw* | cegcc*)
  9880. # MinGW DLLs use traditional 'lib' prefix
  9881. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9882. ;;
  9883. pw32*)
  9884. # pw32 DLLs use 'pw' prefix rather than 'lib'
  9885. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9886. ;;
  9887. esac
  9888. dynamic_linker='Win32 ld.exe'
  9889. ;;
  9890. *,cl*)
  9891. # Native MSVC
  9892. libname_spec='$name'
  9893. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9894. library_names_spec='${libname}.dll.lib'
  9895. case $build_os in
  9896. mingw*)
  9897. sys_lib_search_path_spec=
  9898. lt_save_ifs=$IFS
  9899. IFS=';'
  9900. for lt_path in $LIB
  9901. do
  9902. IFS=$lt_save_ifs
  9903. # Let DOS variable expansion print the short 8.3 style file name.
  9904. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  9905. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  9906. done
  9907. IFS=$lt_save_ifs
  9908. # Convert to MSYS style.
  9909. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  9910. ;;
  9911. cygwin*)
  9912. # Convert to unix form, then to dos form, then back to unix form
  9913. # but this time dos style (no spaces!) so that the unix form looks
  9914. # like /cygdrive/c/PROGRA~1:/cygdr...
  9915. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  9916. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  9917. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9918. ;;
  9919. *)
  9920. sys_lib_search_path_spec="$LIB"
  9921. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  9922. # It is most probably a Windows format PATH.
  9923. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  9924. else
  9925. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9926. fi
  9927. # FIXME: find the short name or the path components, as spaces are
  9928. # common. (e.g. "Program Files" -> "PROGRA~1")
  9929. ;;
  9930. esac
  9931. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9932. postinstall_cmds='base_file=`basename \${file}`~
  9933. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  9934. dldir=$destdir/`dirname \$dlpath`~
  9935. test -d \$dldir || mkdir -p \$dldir~
  9936. $install_prog $dir/$dlname \$dldir/$dlname'
  9937. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9938. dlpath=$dir/\$dldll~
  9939. $RM \$dlpath'
  9940. shlibpath_overrides_runpath=yes
  9941. dynamic_linker='Win32 link.exe'
  9942. ;;
  9943. *)
  9944. # Assume MSVC wrapper
  9945. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  9946. dynamic_linker='Win32 ld.exe'
  9947. ;;
  9948. esac
  9949. # FIXME: first we should search . and the directory the executable is in
  9950. shlibpath_var=PATH
  9951. ;;
  9952. darwin* | rhapsody*)
  9953. dynamic_linker="$host_os dyld"
  9954. version_type=darwin
  9955. need_lib_prefix=no
  9956. need_version=no
  9957. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  9958. soname_spec='${libname}${release}${major}$shared_ext'
  9959. shlibpath_overrides_runpath=yes
  9960. shlibpath_var=DYLD_LIBRARY_PATH
  9961. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  9962. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  9963. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  9964. ;;
  9965. dgux*)
  9966. version_type=linux # correct to gnu/linux during the next big refactor
  9967. need_lib_prefix=no
  9968. need_version=no
  9969. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  9970. soname_spec='${libname}${release}${shared_ext}$major'
  9971. shlibpath_var=LD_LIBRARY_PATH
  9972. ;;
  9973. freebsd* | dragonfly*)
  9974. # DragonFly does not have aout. When/if they implement a new
  9975. # versioning mechanism, adjust this.
  9976. if test -x /usr/bin/objformat; then
  9977. objformat=`/usr/bin/objformat`
  9978. else
  9979. case $host_os in
  9980. freebsd[23].*) objformat=aout ;;
  9981. *) objformat=elf ;;
  9982. esac
  9983. fi
  9984. version_type=freebsd-$objformat
  9985. case $version_type in
  9986. freebsd-elf*)
  9987. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9988. need_version=no
  9989. need_lib_prefix=no
  9990. ;;
  9991. freebsd-*)
  9992. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  9993. need_version=yes
  9994. ;;
  9995. esac
  9996. shlibpath_var=LD_LIBRARY_PATH
  9997. case $host_os in
  9998. freebsd2.*)
  9999. shlibpath_overrides_runpath=yes
  10000. ;;
  10001. freebsd3.[01]* | freebsdelf3.[01]*)
  10002. shlibpath_overrides_runpath=yes
  10003. hardcode_into_libs=yes
  10004. ;;
  10005. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  10006. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  10007. shlibpath_overrides_runpath=no
  10008. hardcode_into_libs=yes
  10009. ;;
  10010. *) # from 4.6 on, and DragonFly
  10011. shlibpath_overrides_runpath=yes
  10012. hardcode_into_libs=yes
  10013. ;;
  10014. esac
  10015. ;;
  10016. gnu*)
  10017. version_type=linux # correct to gnu/linux during the next big refactor
  10018. need_lib_prefix=no
  10019. need_version=no
  10020. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  10021. soname_spec='${libname}${release}${shared_ext}$major'
  10022. shlibpath_var=LD_LIBRARY_PATH
  10023. shlibpath_overrides_runpath=no
  10024. hardcode_into_libs=yes
  10025. ;;
  10026. haiku*)
  10027. version_type=linux # correct to gnu/linux during the next big refactor
  10028. need_lib_prefix=no
  10029. need_version=no
  10030. dynamic_linker="$host_os runtime_loader"
  10031. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  10032. soname_spec='${libname}${release}${shared_ext}$major'
  10033. shlibpath_var=LIBRARY_PATH
  10034. shlibpath_overrides_runpath=yes
  10035. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  10036. hardcode_into_libs=yes
  10037. ;;
  10038. hpux9* | hpux10* | hpux11*)
  10039. # Give a soname corresponding to the major version so that dld.sl refuses to
  10040. # link against other versions.
  10041. version_type=sunos
  10042. need_lib_prefix=no
  10043. need_version=no
  10044. case $host_cpu in
  10045. ia64*)
  10046. shrext_cmds='.so'
  10047. hardcode_into_libs=yes
  10048. dynamic_linker="$host_os dld.so"
  10049. shlibpath_var=LD_LIBRARY_PATH
  10050. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10051. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10052. soname_spec='${libname}${release}${shared_ext}$major'
  10053. if test "X$HPUX_IA64_MODE" = X32; then
  10054. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  10055. else
  10056. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  10057. fi
  10058. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10059. ;;
  10060. hppa*64*)
  10061. shrext_cmds='.sl'
  10062. hardcode_into_libs=yes
  10063. dynamic_linker="$host_os dld.sl"
  10064. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  10065. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10066. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10067. soname_spec='${libname}${release}${shared_ext}$major'
  10068. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  10069. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10070. ;;
  10071. *)
  10072. shrext_cmds='.sl'
  10073. dynamic_linker="$host_os dld.sl"
  10074. shlibpath_var=SHLIB_PATH
  10075. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  10076. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10077. soname_spec='${libname}${release}${shared_ext}$major'
  10078. ;;
  10079. esac
  10080. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  10081. postinstall_cmds='chmod 555 $lib'
  10082. # or fails outright, so override atomically:
  10083. install_override_mode=555
  10084. ;;
  10085. interix[3-9]*)
  10086. version_type=linux # correct to gnu/linux during the next big refactor
  10087. need_lib_prefix=no
  10088. need_version=no
  10089. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  10090. soname_spec='${libname}${release}${shared_ext}$major'
  10091. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  10092. shlibpath_var=LD_LIBRARY_PATH
  10093. shlibpath_overrides_runpath=no
  10094. hardcode_into_libs=yes
  10095. ;;
  10096. irix5* | irix6* | nonstopux*)
  10097. case $host_os in
  10098. nonstopux*) version_type=nonstopux ;;
  10099. *)
  10100. if test "$lt_cv_prog_gnu_ld" = yes; then
  10101. version_type=linux # correct to gnu/linux during the next big refactor
  10102. else
  10103. version_type=irix
  10104. fi ;;
  10105. esac
  10106. need_lib_prefix=no
  10107. need_version=no
  10108. soname_spec='${libname}${release}${shared_ext}$major'
  10109. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  10110. case $host_os in
  10111. irix5* | nonstopux*)
  10112. libsuff= shlibsuff=
  10113. ;;
  10114. *)
  10115. case $LD in # libtool.m4 will add one of these switches to LD
  10116. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  10117. libsuff= shlibsuff= libmagic=32-bit;;
  10118. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  10119. libsuff=32 shlibsuff=N32 libmagic=N32;;
  10120. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  10121. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  10122. *) libsuff= shlibsuff= libmagic=never-match;;
  10123. esac
  10124. ;;
  10125. esac
  10126. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  10127. shlibpath_overrides_runpath=no
  10128. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  10129. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  10130. hardcode_into_libs=yes
  10131. ;;
  10132. # No shared lib support for Linux oldld, aout, or coff.
  10133. linux*oldld* | linux*aout* | linux*coff*)
  10134. dynamic_linker=no
  10135. ;;
  10136. # This must be glibc/ELF.
  10137. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  10138. version_type=linux # correct to gnu/linux during the next big refactor
  10139. need_lib_prefix=no
  10140. need_version=no
  10141. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10142. soname_spec='${libname}${release}${shared_ext}$major'
  10143. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  10144. shlibpath_var=LD_LIBRARY_PATH
  10145. shlibpath_overrides_runpath=no
  10146. # Some binutils ld are patched to set DT_RUNPATH
  10147. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  10148. $as_echo_n "(cached) " >&6
  10149. else
  10150. lt_cv_shlibpath_overrides_runpath=no
  10151. save_LDFLAGS=$LDFLAGS
  10152. save_libdir=$libdir
  10153. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  10154. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  10155. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10156. /* end confdefs.h. */
  10157. int
  10158. main ()
  10159. {
  10160. ;
  10161. return 0;
  10162. }
  10163. _ACEOF
  10164. if ac_fn_c_try_link "$LINENO"; then :
  10165. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  10166. lt_cv_shlibpath_overrides_runpath=yes
  10167. fi
  10168. fi
  10169. rm -f core conftest.err conftest.$ac_objext \
  10170. conftest$ac_exeext conftest.$ac_ext
  10171. LDFLAGS=$save_LDFLAGS
  10172. libdir=$save_libdir
  10173. fi
  10174. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  10175. # This implies no fast_install, which is unacceptable.
  10176. # Some rework will be needed to allow for fast_install
  10177. # before this can be enabled.
  10178. hardcode_into_libs=yes
  10179. # Add ABI-specific directories to the system library path.
  10180. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  10181. # Append ld.so.conf contents to the search path
  10182. if test -f /etc/ld.so.conf; then
  10183. 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;s/"//g;/^$/d' | tr '\n' ' '`
  10184. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  10185. fi
  10186. # We used to test for /lib/ld.so.1 and disable shared libraries on
  10187. # powerpc, because MkLinux only supported shared libraries with the
  10188. # GNU dynamic linker. Since this was broken with cross compilers,
  10189. # most powerpc-linux boxes support dynamic linking these days and
  10190. # people can always --disable-shared, the test was removed, and we
  10191. # assume the GNU/Linux dynamic linker is in use.
  10192. dynamic_linker='GNU/Linux ld.so'
  10193. ;;
  10194. netbsd*)
  10195. version_type=sunos
  10196. need_lib_prefix=no
  10197. need_version=no
  10198. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10199. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  10200. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10201. dynamic_linker='NetBSD (a.out) ld.so'
  10202. else
  10203. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  10204. soname_spec='${libname}${release}${shared_ext}$major'
  10205. dynamic_linker='NetBSD ld.elf_so'
  10206. fi
  10207. shlibpath_var=LD_LIBRARY_PATH
  10208. shlibpath_overrides_runpath=yes
  10209. hardcode_into_libs=yes
  10210. ;;
  10211. newsos6)
  10212. version_type=linux # correct to gnu/linux during the next big refactor
  10213. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10214. shlibpath_var=LD_LIBRARY_PATH
  10215. shlibpath_overrides_runpath=yes
  10216. ;;
  10217. *nto* | *qnx*)
  10218. version_type=qnx
  10219. need_lib_prefix=no
  10220. need_version=no
  10221. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10222. soname_spec='${libname}${release}${shared_ext}$major'
  10223. shlibpath_var=LD_LIBRARY_PATH
  10224. shlibpath_overrides_runpath=no
  10225. hardcode_into_libs=yes
  10226. dynamic_linker='ldqnx.so'
  10227. ;;
  10228. openbsd*)
  10229. version_type=sunos
  10230. sys_lib_dlsearch_path_spec="/usr/lib"
  10231. need_lib_prefix=no
  10232. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  10233. case $host_os in
  10234. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  10235. *) need_version=no ;;
  10236. esac
  10237. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  10238. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10239. shlibpath_var=LD_LIBRARY_PATH
  10240. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  10241. case $host_os in
  10242. openbsd2.[89] | openbsd2.[89].*)
  10243. shlibpath_overrides_runpath=no
  10244. ;;
  10245. *)
  10246. shlibpath_overrides_runpath=yes
  10247. ;;
  10248. esac
  10249. else
  10250. shlibpath_overrides_runpath=yes
  10251. fi
  10252. ;;
  10253. os2*)
  10254. libname_spec='$name'
  10255. shrext_cmds=".dll"
  10256. need_lib_prefix=no
  10257. library_names_spec='$libname${shared_ext} $libname.a'
  10258. dynamic_linker='OS/2 ld.exe'
  10259. shlibpath_var=LIBPATH
  10260. ;;
  10261. osf3* | osf4* | osf5*)
  10262. version_type=osf
  10263. need_lib_prefix=no
  10264. need_version=no
  10265. soname_spec='${libname}${release}${shared_ext}$major'
  10266. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10267. shlibpath_var=LD_LIBRARY_PATH
  10268. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  10269. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  10270. ;;
  10271. rdos*)
  10272. dynamic_linker=no
  10273. ;;
  10274. solaris*)
  10275. version_type=linux # correct to gnu/linux during the next big refactor
  10276. need_lib_prefix=no
  10277. need_version=no
  10278. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10279. soname_spec='${libname}${release}${shared_ext}$major'
  10280. shlibpath_var=LD_LIBRARY_PATH
  10281. shlibpath_overrides_runpath=yes
  10282. hardcode_into_libs=yes
  10283. # ldd complains unless libraries are executable
  10284. postinstall_cmds='chmod +x $lib'
  10285. ;;
  10286. sunos4*)
  10287. version_type=sunos
  10288. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  10289. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  10290. shlibpath_var=LD_LIBRARY_PATH
  10291. shlibpath_overrides_runpath=yes
  10292. if test "$with_gnu_ld" = yes; then
  10293. need_lib_prefix=no
  10294. fi
  10295. need_version=yes
  10296. ;;
  10297. sysv4 | sysv4.3*)
  10298. version_type=linux # correct to gnu/linux during the next big refactor
  10299. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10300. soname_spec='${libname}${release}${shared_ext}$major'
  10301. shlibpath_var=LD_LIBRARY_PATH
  10302. case $host_vendor in
  10303. sni)
  10304. shlibpath_overrides_runpath=no
  10305. need_lib_prefix=no
  10306. runpath_var=LD_RUN_PATH
  10307. ;;
  10308. siemens)
  10309. need_lib_prefix=no
  10310. ;;
  10311. motorola)
  10312. need_lib_prefix=no
  10313. need_version=no
  10314. shlibpath_overrides_runpath=no
  10315. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  10316. ;;
  10317. esac
  10318. ;;
  10319. sysv4*MP*)
  10320. if test -d /usr/nec ;then
  10321. version_type=linux # correct to gnu/linux during the next big refactor
  10322. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  10323. soname_spec='$libname${shared_ext}.$major'
  10324. shlibpath_var=LD_LIBRARY_PATH
  10325. fi
  10326. ;;
  10327. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  10328. version_type=freebsd-elf
  10329. need_lib_prefix=no
  10330. need_version=no
  10331. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  10332. soname_spec='${libname}${release}${shared_ext}$major'
  10333. shlibpath_var=LD_LIBRARY_PATH
  10334. shlibpath_overrides_runpath=yes
  10335. hardcode_into_libs=yes
  10336. if test "$with_gnu_ld" = yes; then
  10337. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  10338. else
  10339. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  10340. case $host_os in
  10341. sco3.2v5*)
  10342. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  10343. ;;
  10344. esac
  10345. fi
  10346. sys_lib_dlsearch_path_spec='/usr/lib'
  10347. ;;
  10348. tpf*)
  10349. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  10350. version_type=linux # correct to gnu/linux during the next big refactor
  10351. need_lib_prefix=no
  10352. need_version=no
  10353. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10354. shlibpath_var=LD_LIBRARY_PATH
  10355. shlibpath_overrides_runpath=no
  10356. hardcode_into_libs=yes
  10357. ;;
  10358. uts4*)
  10359. version_type=linux # correct to gnu/linux during the next big refactor
  10360. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10361. soname_spec='${libname}${release}${shared_ext}$major'
  10362. shlibpath_var=LD_LIBRARY_PATH
  10363. ;;
  10364. *)
  10365. dynamic_linker=no
  10366. ;;
  10367. esac
  10368. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  10369. $as_echo "$dynamic_linker" >&6; }
  10370. test "$dynamic_linker" = no && can_build_shared=no
  10371. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  10372. if test "$GCC" = yes; then
  10373. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  10374. fi
  10375. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  10376. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  10377. fi
  10378. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  10379. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  10380. fi
  10381. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  10382. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  10383. hardcode_action=
  10384. if test -n "$hardcode_libdir_flag_spec" ||
  10385. test -n "$runpath_var" ||
  10386. test "X$hardcode_automatic" = "Xyes" ; then
  10387. # We can hardcode non-existent directories.
  10388. if test "$hardcode_direct" != no &&
  10389. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  10390. # have to relink, otherwise we might link with an installed library
  10391. # when we should be linking with a yet-to-be-installed one
  10392. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  10393. test "$hardcode_minus_L" != no; then
  10394. # Linking always hardcodes the temporary library directory.
  10395. hardcode_action=relink
  10396. else
  10397. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  10398. hardcode_action=immediate
  10399. fi
  10400. else
  10401. # We cannot hardcode anything, or else we can only hardcode existing
  10402. # directories.
  10403. hardcode_action=unsupported
  10404. fi
  10405. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  10406. $as_echo "$hardcode_action" >&6; }
  10407. if test "$hardcode_action" = relink ||
  10408. test "$inherit_rpath" = yes; then
  10409. # Fast installation is not supported
  10410. enable_fast_install=no
  10411. elif test "$shlibpath_overrides_runpath" = yes ||
  10412. test "$enable_shared" = no; then
  10413. # Fast installation is not necessary
  10414. enable_fast_install=needless
  10415. fi
  10416. if test "x$enable_dlopen" != xyes; then
  10417. enable_dlopen=unknown
  10418. enable_dlopen_self=unknown
  10419. enable_dlopen_self_static=unknown
  10420. else
  10421. lt_cv_dlopen=no
  10422. lt_cv_dlopen_libs=
  10423. case $host_os in
  10424. beos*)
  10425. lt_cv_dlopen="load_add_on"
  10426. lt_cv_dlopen_libs=
  10427. lt_cv_dlopen_self=yes
  10428. ;;
  10429. mingw* | pw32* | cegcc*)
  10430. lt_cv_dlopen="LoadLibrary"
  10431. lt_cv_dlopen_libs=
  10432. ;;
  10433. cygwin*)
  10434. lt_cv_dlopen="dlopen"
  10435. lt_cv_dlopen_libs=
  10436. ;;
  10437. darwin*)
  10438. # if libdl is installed we need to link against it
  10439. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10440. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10441. if ${ac_cv_lib_dl_dlopen+:} false; then :
  10442. $as_echo_n "(cached) " >&6
  10443. else
  10444. ac_check_lib_save_LIBS=$LIBS
  10445. LIBS="-ldl $LIBS"
  10446. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10447. /* end confdefs.h. */
  10448. /* Override any GCC internal prototype to avoid an error.
  10449. Use char because int might match the return type of a GCC
  10450. builtin and then its argument prototype would still apply. */
  10451. #ifdef __cplusplus
  10452. extern "C"
  10453. #endif
  10454. char dlopen ();
  10455. int
  10456. main ()
  10457. {
  10458. return dlopen ();
  10459. ;
  10460. return 0;
  10461. }
  10462. _ACEOF
  10463. if ac_fn_c_try_link "$LINENO"; then :
  10464. ac_cv_lib_dl_dlopen=yes
  10465. else
  10466. ac_cv_lib_dl_dlopen=no
  10467. fi
  10468. rm -f core conftest.err conftest.$ac_objext \
  10469. conftest$ac_exeext conftest.$ac_ext
  10470. LIBS=$ac_check_lib_save_LIBS
  10471. fi
  10472. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10473. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10474. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10475. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  10476. else
  10477. lt_cv_dlopen="dyld"
  10478. lt_cv_dlopen_libs=
  10479. lt_cv_dlopen_self=yes
  10480. fi
  10481. ;;
  10482. *)
  10483. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  10484. if test "x$ac_cv_func_shl_load" = xyes; then :
  10485. lt_cv_dlopen="shl_load"
  10486. else
  10487. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  10488. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  10489. if ${ac_cv_lib_dld_shl_load+:} false; then :
  10490. $as_echo_n "(cached) " >&6
  10491. else
  10492. ac_check_lib_save_LIBS=$LIBS
  10493. LIBS="-ldld $LIBS"
  10494. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10495. /* end confdefs.h. */
  10496. /* Override any GCC internal prototype to avoid an error.
  10497. Use char because int might match the return type of a GCC
  10498. builtin and then its argument prototype would still apply. */
  10499. #ifdef __cplusplus
  10500. extern "C"
  10501. #endif
  10502. char shl_load ();
  10503. int
  10504. main ()
  10505. {
  10506. return shl_load ();
  10507. ;
  10508. return 0;
  10509. }
  10510. _ACEOF
  10511. if ac_fn_c_try_link "$LINENO"; then :
  10512. ac_cv_lib_dld_shl_load=yes
  10513. else
  10514. ac_cv_lib_dld_shl_load=no
  10515. fi
  10516. rm -f core conftest.err conftest.$ac_objext \
  10517. conftest$ac_exeext conftest.$ac_ext
  10518. LIBS=$ac_check_lib_save_LIBS
  10519. fi
  10520. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  10521. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  10522. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  10523. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  10524. else
  10525. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  10526. if test "x$ac_cv_func_dlopen" = xyes; then :
  10527. lt_cv_dlopen="dlopen"
  10528. else
  10529. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10530. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10531. if ${ac_cv_lib_dl_dlopen+:} false; then :
  10532. $as_echo_n "(cached) " >&6
  10533. else
  10534. ac_check_lib_save_LIBS=$LIBS
  10535. LIBS="-ldl $LIBS"
  10536. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  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 dlopen ();
  10545. int
  10546. main ()
  10547. {
  10548. return dlopen ();
  10549. ;
  10550. return 0;
  10551. }
  10552. _ACEOF
  10553. if ac_fn_c_try_link "$LINENO"; then :
  10554. ac_cv_lib_dl_dlopen=yes
  10555. else
  10556. ac_cv_lib_dl_dlopen=no
  10557. fi
  10558. rm -f core conftest.err conftest.$ac_objext \
  10559. conftest$ac_exeext conftest.$ac_ext
  10560. LIBS=$ac_check_lib_save_LIBS
  10561. fi
  10562. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10563. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10564. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10565. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  10566. else
  10567. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  10568. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  10569. if ${ac_cv_lib_svld_dlopen+:} false; then :
  10570. $as_echo_n "(cached) " >&6
  10571. else
  10572. ac_check_lib_save_LIBS=$LIBS
  10573. LIBS="-lsvld $LIBS"
  10574. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10575. /* end confdefs.h. */
  10576. /* Override any GCC internal prototype to avoid an error.
  10577. Use char because int might match the return type of a GCC
  10578. builtin and then its argument prototype would still apply. */
  10579. #ifdef __cplusplus
  10580. extern "C"
  10581. #endif
  10582. char dlopen ();
  10583. int
  10584. main ()
  10585. {
  10586. return dlopen ();
  10587. ;
  10588. return 0;
  10589. }
  10590. _ACEOF
  10591. if ac_fn_c_try_link "$LINENO"; then :
  10592. ac_cv_lib_svld_dlopen=yes
  10593. else
  10594. ac_cv_lib_svld_dlopen=no
  10595. fi
  10596. rm -f core conftest.err conftest.$ac_objext \
  10597. conftest$ac_exeext conftest.$ac_ext
  10598. LIBS=$ac_check_lib_save_LIBS
  10599. fi
  10600. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  10601. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  10602. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  10603. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  10604. else
  10605. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  10606. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  10607. if ${ac_cv_lib_dld_dld_link+:} false; then :
  10608. $as_echo_n "(cached) " >&6
  10609. else
  10610. ac_check_lib_save_LIBS=$LIBS
  10611. LIBS="-ldld $LIBS"
  10612. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10613. /* end confdefs.h. */
  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 dld_link ();
  10621. int
  10622. main ()
  10623. {
  10624. return dld_link ();
  10625. ;
  10626. return 0;
  10627. }
  10628. _ACEOF
  10629. if ac_fn_c_try_link "$LINENO"; then :
  10630. ac_cv_lib_dld_dld_link=yes
  10631. else
  10632. ac_cv_lib_dld_dld_link=no
  10633. fi
  10634. rm -f core conftest.err conftest.$ac_objext \
  10635. conftest$ac_exeext conftest.$ac_ext
  10636. LIBS=$ac_check_lib_save_LIBS
  10637. fi
  10638. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  10639. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  10640. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  10641. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  10642. fi
  10643. fi
  10644. fi
  10645. fi
  10646. fi
  10647. fi
  10648. ;;
  10649. esac
  10650. if test "x$lt_cv_dlopen" != xno; then
  10651. enable_dlopen=yes
  10652. else
  10653. enable_dlopen=no
  10654. fi
  10655. case $lt_cv_dlopen in
  10656. dlopen)
  10657. save_CPPFLAGS="$CPPFLAGS"
  10658. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  10659. save_LDFLAGS="$LDFLAGS"
  10660. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  10661. save_LIBS="$LIBS"
  10662. LIBS="$lt_cv_dlopen_libs $LIBS"
  10663. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  10664. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  10665. if ${lt_cv_dlopen_self+:} false; then :
  10666. $as_echo_n "(cached) " >&6
  10667. else
  10668. if test "$cross_compiling" = yes; then :
  10669. lt_cv_dlopen_self=cross
  10670. else
  10671. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10672. lt_status=$lt_dlunknown
  10673. cat > conftest.$ac_ext <<_LT_EOF
  10674. #line $LINENO "configure"
  10675. #include "confdefs.h"
  10676. #if HAVE_DLFCN_H
  10677. #include <dlfcn.h>
  10678. #endif
  10679. #include <stdio.h>
  10680. #ifdef RTLD_GLOBAL
  10681. # define LT_DLGLOBAL RTLD_GLOBAL
  10682. #else
  10683. # ifdef DL_GLOBAL
  10684. # define LT_DLGLOBAL DL_GLOBAL
  10685. # else
  10686. # define LT_DLGLOBAL 0
  10687. # endif
  10688. #endif
  10689. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10690. find out it does not work in some platform. */
  10691. #ifndef LT_DLLAZY_OR_NOW
  10692. # ifdef RTLD_LAZY
  10693. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10694. # else
  10695. # ifdef DL_LAZY
  10696. # define LT_DLLAZY_OR_NOW DL_LAZY
  10697. # else
  10698. # ifdef RTLD_NOW
  10699. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10700. # else
  10701. # ifdef DL_NOW
  10702. # define LT_DLLAZY_OR_NOW DL_NOW
  10703. # else
  10704. # define LT_DLLAZY_OR_NOW 0
  10705. # endif
  10706. # endif
  10707. # endif
  10708. # endif
  10709. #endif
  10710. /* When -fvisbility=hidden is used, assume the code has been annotated
  10711. correspondingly for the symbols needed. */
  10712. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10713. int fnord () __attribute__((visibility("default")));
  10714. #endif
  10715. int fnord () { return 42; }
  10716. int main ()
  10717. {
  10718. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10719. int status = $lt_dlunknown;
  10720. if (self)
  10721. {
  10722. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10723. else
  10724. {
  10725. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10726. else puts (dlerror ());
  10727. }
  10728. /* dlclose (self); */
  10729. }
  10730. else
  10731. puts (dlerror ());
  10732. return status;
  10733. }
  10734. _LT_EOF
  10735. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10736. (eval $ac_link) 2>&5
  10737. ac_status=$?
  10738. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10739. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10740. (./conftest; exit; ) >&5 2>/dev/null
  10741. lt_status=$?
  10742. case x$lt_status in
  10743. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  10744. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  10745. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  10746. esac
  10747. else :
  10748. # compilation failed
  10749. lt_cv_dlopen_self=no
  10750. fi
  10751. fi
  10752. rm -fr conftest*
  10753. fi
  10754. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  10755. $as_echo "$lt_cv_dlopen_self" >&6; }
  10756. if test "x$lt_cv_dlopen_self" = xyes; then
  10757. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  10758. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  10759. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  10760. if ${lt_cv_dlopen_self_static+:} false; then :
  10761. $as_echo_n "(cached) " >&6
  10762. else
  10763. if test "$cross_compiling" = yes; then :
  10764. lt_cv_dlopen_self_static=cross
  10765. else
  10766. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10767. lt_status=$lt_dlunknown
  10768. cat > conftest.$ac_ext <<_LT_EOF
  10769. #line $LINENO "configure"
  10770. #include "confdefs.h"
  10771. #if HAVE_DLFCN_H
  10772. #include <dlfcn.h>
  10773. #endif
  10774. #include <stdio.h>
  10775. #ifdef RTLD_GLOBAL
  10776. # define LT_DLGLOBAL RTLD_GLOBAL
  10777. #else
  10778. # ifdef DL_GLOBAL
  10779. # define LT_DLGLOBAL DL_GLOBAL
  10780. # else
  10781. # define LT_DLGLOBAL 0
  10782. # endif
  10783. #endif
  10784. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10785. find out it does not work in some platform. */
  10786. #ifndef LT_DLLAZY_OR_NOW
  10787. # ifdef RTLD_LAZY
  10788. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10789. # else
  10790. # ifdef DL_LAZY
  10791. # define LT_DLLAZY_OR_NOW DL_LAZY
  10792. # else
  10793. # ifdef RTLD_NOW
  10794. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10795. # else
  10796. # ifdef DL_NOW
  10797. # define LT_DLLAZY_OR_NOW DL_NOW
  10798. # else
  10799. # define LT_DLLAZY_OR_NOW 0
  10800. # endif
  10801. # endif
  10802. # endif
  10803. # endif
  10804. #endif
  10805. /* When -fvisbility=hidden is used, assume the code has been annotated
  10806. correspondingly for the symbols needed. */
  10807. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10808. int fnord () __attribute__((visibility("default")));
  10809. #endif
  10810. int fnord () { return 42; }
  10811. int main ()
  10812. {
  10813. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10814. int status = $lt_dlunknown;
  10815. if (self)
  10816. {
  10817. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10818. else
  10819. {
  10820. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10821. else puts (dlerror ());
  10822. }
  10823. /* dlclose (self); */
  10824. }
  10825. else
  10826. puts (dlerror ());
  10827. return status;
  10828. }
  10829. _LT_EOF
  10830. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10831. (eval $ac_link) 2>&5
  10832. ac_status=$?
  10833. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10834. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10835. (./conftest; exit; ) >&5 2>/dev/null
  10836. lt_status=$?
  10837. case x$lt_status in
  10838. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  10839. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  10840. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  10841. esac
  10842. else :
  10843. # compilation failed
  10844. lt_cv_dlopen_self_static=no
  10845. fi
  10846. fi
  10847. rm -fr conftest*
  10848. fi
  10849. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  10850. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  10851. fi
  10852. CPPFLAGS="$save_CPPFLAGS"
  10853. LDFLAGS="$save_LDFLAGS"
  10854. LIBS="$save_LIBS"
  10855. ;;
  10856. esac
  10857. case $lt_cv_dlopen_self in
  10858. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  10859. *) enable_dlopen_self=unknown ;;
  10860. esac
  10861. case $lt_cv_dlopen_self_static in
  10862. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  10863. *) enable_dlopen_self_static=unknown ;;
  10864. esac
  10865. fi
  10866. striplib=
  10867. old_striplib=
  10868. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  10869. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  10870. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  10871. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  10872. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  10873. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10874. $as_echo "yes" >&6; }
  10875. else
  10876. # FIXME - insert some real tests, host_os isn't really good enough
  10877. case $host_os in
  10878. darwin*)
  10879. if test -n "$STRIP" ; then
  10880. striplib="$STRIP -x"
  10881. old_striplib="$STRIP -S"
  10882. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10883. $as_echo "yes" >&6; }
  10884. else
  10885. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10886. $as_echo "no" >&6; }
  10887. fi
  10888. ;;
  10889. *)
  10890. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10891. $as_echo "no" >&6; }
  10892. ;;
  10893. esac
  10894. fi
  10895. # Report which library types will actually be built
  10896. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  10897. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  10898. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  10899. $as_echo "$can_build_shared" >&6; }
  10900. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  10901. $as_echo_n "checking whether to build shared libraries... " >&6; }
  10902. test "$can_build_shared" = "no" && enable_shared=no
  10903. # On AIX, shared libraries and static libraries use the same namespace, and
  10904. # are all built from PIC.
  10905. case $host_os in
  10906. aix3*)
  10907. test "$enable_shared" = yes && enable_static=no
  10908. if test -n "$RANLIB"; then
  10909. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  10910. postinstall_cmds='$RANLIB $lib'
  10911. fi
  10912. ;;
  10913. aix[4-9]*)
  10914. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  10915. test "$enable_shared" = yes && enable_static=no
  10916. fi
  10917. ;;
  10918. esac
  10919. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  10920. $as_echo "$enable_shared" >&6; }
  10921. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  10922. $as_echo_n "checking whether to build static libraries... " >&6; }
  10923. # Make sure either enable_shared or enable_static is yes.
  10924. test "$enable_shared" = yes || enable_static=yes
  10925. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  10926. $as_echo "$enable_static" >&6; }
  10927. fi
  10928. ac_ext=c
  10929. ac_cpp='$CPP $CPPFLAGS'
  10930. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10931. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10932. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10933. CC="$lt_save_CC"
  10934. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  10935. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  10936. (test "X$CXX" != "Xg++"))) ; then
  10937. ac_ext=cpp
  10938. ac_cpp='$CXXCPP $CPPFLAGS'
  10939. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10940. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10941. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10942. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  10943. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  10944. if test -z "$CXXCPP"; then
  10945. if ${ac_cv_prog_CXXCPP+:} false; then :
  10946. $as_echo_n "(cached) " >&6
  10947. else
  10948. # Double quotes because CXXCPP needs to be expanded
  10949. for CXXCPP in "$CXX -E" "/lib/cpp"
  10950. do
  10951. ac_preproc_ok=false
  10952. for ac_cxx_preproc_warn_flag in '' yes
  10953. do
  10954. # Use a header file that comes with gcc, so configuring glibc
  10955. # with a fresh cross-compiler works.
  10956. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10957. # <limits.h> exists even on freestanding compilers.
  10958. # On the NeXT, cc -E runs the code through the compiler's parser,
  10959. # not just through cpp. "Syntax error" is here to catch this case.
  10960. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10961. /* end confdefs.h. */
  10962. #ifdef __STDC__
  10963. # include <limits.h>
  10964. #else
  10965. # include <assert.h>
  10966. #endif
  10967. Syntax error
  10968. _ACEOF
  10969. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10970. else
  10971. # Broken: fails on valid input.
  10972. continue
  10973. fi
  10974. rm -f conftest.err conftest.i conftest.$ac_ext
  10975. # OK, works on sane cases. Now check whether nonexistent headers
  10976. # can be detected and how.
  10977. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10978. /* end confdefs.h. */
  10979. #include <ac_nonexistent.h>
  10980. _ACEOF
  10981. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10982. # Broken: success on invalid input.
  10983. continue
  10984. else
  10985. # Passes both tests.
  10986. ac_preproc_ok=:
  10987. break
  10988. fi
  10989. rm -f conftest.err conftest.i conftest.$ac_ext
  10990. done
  10991. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10992. rm -f conftest.i conftest.err conftest.$ac_ext
  10993. if $ac_preproc_ok; then :
  10994. break
  10995. fi
  10996. done
  10997. ac_cv_prog_CXXCPP=$CXXCPP
  10998. fi
  10999. CXXCPP=$ac_cv_prog_CXXCPP
  11000. else
  11001. ac_cv_prog_CXXCPP=$CXXCPP
  11002. fi
  11003. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  11004. $as_echo "$CXXCPP" >&6; }
  11005. ac_preproc_ok=false
  11006. for ac_cxx_preproc_warn_flag in '' yes
  11007. do
  11008. # Use a header file that comes with gcc, so configuring glibc
  11009. # with a fresh cross-compiler works.
  11010. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11011. # <limits.h> exists even on freestanding compilers.
  11012. # On the NeXT, cc -E runs the code through the compiler's parser,
  11013. # not just through cpp. "Syntax error" is here to catch this case.
  11014. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11015. /* end confdefs.h. */
  11016. #ifdef __STDC__
  11017. # include <limits.h>
  11018. #else
  11019. # include <assert.h>
  11020. #endif
  11021. Syntax error
  11022. _ACEOF
  11023. if ac_fn_cxx_try_cpp "$LINENO"; then :
  11024. else
  11025. # Broken: fails on valid input.
  11026. continue
  11027. fi
  11028. rm -f conftest.err conftest.i conftest.$ac_ext
  11029. # OK, works on sane cases. Now check whether nonexistent headers
  11030. # can be detected and how.
  11031. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11032. /* end confdefs.h. */
  11033. #include <ac_nonexistent.h>
  11034. _ACEOF
  11035. if ac_fn_cxx_try_cpp "$LINENO"; then :
  11036. # Broken: success on invalid input.
  11037. continue
  11038. else
  11039. # Passes both tests.
  11040. ac_preproc_ok=:
  11041. break
  11042. fi
  11043. rm -f conftest.err conftest.i conftest.$ac_ext
  11044. done
  11045. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  11046. rm -f conftest.i conftest.err conftest.$ac_ext
  11047. if $ac_preproc_ok; then :
  11048. else
  11049. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11050. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  11051. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  11052. See \`config.log' for more details" "$LINENO" 5; }
  11053. fi
  11054. ac_ext=c
  11055. ac_cpp='$CPP $CPPFLAGS'
  11056. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11057. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11058. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11059. else
  11060. _lt_caught_CXX_error=yes
  11061. fi
  11062. ac_ext=cpp
  11063. ac_cpp='$CXXCPP $CPPFLAGS'
  11064. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11065. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11066. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  11067. archive_cmds_need_lc_CXX=no
  11068. allow_undefined_flag_CXX=
  11069. always_export_symbols_CXX=no
  11070. archive_expsym_cmds_CXX=
  11071. compiler_needs_object_CXX=no
  11072. export_dynamic_flag_spec_CXX=
  11073. hardcode_direct_CXX=no
  11074. hardcode_direct_absolute_CXX=no
  11075. hardcode_libdir_flag_spec_CXX=
  11076. hardcode_libdir_separator_CXX=
  11077. hardcode_minus_L_CXX=no
  11078. hardcode_shlibpath_var_CXX=unsupported
  11079. hardcode_automatic_CXX=no
  11080. inherit_rpath_CXX=no
  11081. module_cmds_CXX=
  11082. module_expsym_cmds_CXX=
  11083. link_all_deplibs_CXX=unknown
  11084. old_archive_cmds_CXX=$old_archive_cmds
  11085. reload_flag_CXX=$reload_flag
  11086. reload_cmds_CXX=$reload_cmds
  11087. no_undefined_flag_CXX=
  11088. whole_archive_flag_spec_CXX=
  11089. enable_shared_with_static_runtimes_CXX=no
  11090. # Source file extension for C++ test sources.
  11091. ac_ext=cpp
  11092. # Object file extension for compiled C++ test sources.
  11093. objext=o
  11094. objext_CXX=$objext
  11095. # No sense in running all these tests if we already determined that
  11096. # the CXX compiler isn't working. Some variables (like enable_shared)
  11097. # are currently assumed to apply to all compilers on this platform,
  11098. # and will be corrupted by setting them based on a non-working compiler.
  11099. if test "$_lt_caught_CXX_error" != yes; then
  11100. # Code to be used in simple compile tests
  11101. lt_simple_compile_test_code="int some_variable = 0;"
  11102. # Code to be used in simple link tests
  11103. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  11104. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  11105. # If no C compiler was specified, use CC.
  11106. LTCC=${LTCC-"$CC"}
  11107. # If no C compiler flags were specified, use CFLAGS.
  11108. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  11109. # Allow CC to be a program name with arguments.
  11110. compiler=$CC
  11111. # save warnings/boilerplate of simple test code
  11112. ac_outfile=conftest.$ac_objext
  11113. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  11114. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11115. _lt_compiler_boilerplate=`cat conftest.err`
  11116. $RM conftest*
  11117. ac_outfile=conftest.$ac_objext
  11118. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  11119. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11120. _lt_linker_boilerplate=`cat conftest.err`
  11121. $RM -r conftest*
  11122. # Allow CC to be a program name with arguments.
  11123. lt_save_CC=$CC
  11124. lt_save_CFLAGS=$CFLAGS
  11125. lt_save_LD=$LD
  11126. lt_save_GCC=$GCC
  11127. GCC=$GXX
  11128. lt_save_with_gnu_ld=$with_gnu_ld
  11129. lt_save_path_LD=$lt_cv_path_LD
  11130. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  11131. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  11132. else
  11133. $as_unset lt_cv_prog_gnu_ld
  11134. fi
  11135. if test -n "${lt_cv_path_LDCXX+set}"; then
  11136. lt_cv_path_LD=$lt_cv_path_LDCXX
  11137. else
  11138. $as_unset lt_cv_path_LD
  11139. fi
  11140. test -z "${LDCXX+set}" || LD=$LDCXX
  11141. CC=${CXX-"c++"}
  11142. CFLAGS=$CXXFLAGS
  11143. compiler=$CC
  11144. compiler_CXX=$CC
  11145. for cc_temp in $compiler""; do
  11146. case $cc_temp in
  11147. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  11148. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  11149. \-*) ;;
  11150. *) break;;
  11151. esac
  11152. done
  11153. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  11154. if test -n "$compiler"; then
  11155. # We don't want -fno-exception when compiling C++ code, so set the
  11156. # no_builtin_flag separately
  11157. if test "$GXX" = yes; then
  11158. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  11159. else
  11160. lt_prog_compiler_no_builtin_flag_CXX=
  11161. fi
  11162. if test "$GXX" = yes; then
  11163. # Set up default GNU C++ configuration
  11164. # Check whether --with-gnu-ld was given.
  11165. if test "${with_gnu_ld+set}" = set; then :
  11166. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  11167. else
  11168. with_gnu_ld=no
  11169. fi
  11170. ac_prog=ld
  11171. if test "$GCC" = yes; then
  11172. # Check if gcc -print-prog-name=ld gives a path.
  11173. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  11174. $as_echo_n "checking for ld used by $CC... " >&6; }
  11175. case $host in
  11176. *-*-mingw*)
  11177. # gcc leaves a trailing carriage return which upsets mingw
  11178. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  11179. *)
  11180. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  11181. esac
  11182. case $ac_prog in
  11183. # Accept absolute paths.
  11184. [\\/]* | ?:[\\/]*)
  11185. re_direlt='/[^/][^/]*/\.\./'
  11186. # Canonicalize the pathname of ld
  11187. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  11188. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  11189. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  11190. done
  11191. test -z "$LD" && LD="$ac_prog"
  11192. ;;
  11193. "")
  11194. # If it fails, then pretend we aren't using GCC.
  11195. ac_prog=ld
  11196. ;;
  11197. *)
  11198. # If it is relative, then search for the first ld in PATH.
  11199. with_gnu_ld=unknown
  11200. ;;
  11201. esac
  11202. elif test "$with_gnu_ld" = yes; then
  11203. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  11204. $as_echo_n "checking for GNU ld... " >&6; }
  11205. else
  11206. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  11207. $as_echo_n "checking for non-GNU ld... " >&6; }
  11208. fi
  11209. if ${lt_cv_path_LD+:} false; then :
  11210. $as_echo_n "(cached) " >&6
  11211. else
  11212. if test -z "$LD"; then
  11213. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  11214. for ac_dir in $PATH; do
  11215. IFS="$lt_save_ifs"
  11216. test -z "$ac_dir" && ac_dir=.
  11217. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  11218. lt_cv_path_LD="$ac_dir/$ac_prog"
  11219. # Check to see if the program is GNU ld. I'd rather use --version,
  11220. # but apparently some variants of GNU ld only accept -v.
  11221. # Break only if it was the GNU/non-GNU ld that we prefer.
  11222. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  11223. *GNU* | *'with BFD'*)
  11224. test "$with_gnu_ld" != no && break
  11225. ;;
  11226. *)
  11227. test "$with_gnu_ld" != yes && break
  11228. ;;
  11229. esac
  11230. fi
  11231. done
  11232. IFS="$lt_save_ifs"
  11233. else
  11234. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  11235. fi
  11236. fi
  11237. LD="$lt_cv_path_LD"
  11238. if test -n "$LD"; then
  11239. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  11240. $as_echo "$LD" >&6; }
  11241. else
  11242. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11243. $as_echo "no" >&6; }
  11244. fi
  11245. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  11246. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  11247. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  11248. if ${lt_cv_prog_gnu_ld+:} false; then :
  11249. $as_echo_n "(cached) " >&6
  11250. else
  11251. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  11252. case `$LD -v 2>&1 </dev/null` in
  11253. *GNU* | *'with BFD'*)
  11254. lt_cv_prog_gnu_ld=yes
  11255. ;;
  11256. *)
  11257. lt_cv_prog_gnu_ld=no
  11258. ;;
  11259. esac
  11260. fi
  11261. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  11262. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  11263. with_gnu_ld=$lt_cv_prog_gnu_ld
  11264. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  11265. # archiving commands below assume that GNU ld is being used.
  11266. if test "$with_gnu_ld" = yes; then
  11267. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11268. archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  11269. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11270. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11271. # If archive_cmds runs LD, not CC, wlarc should be empty
  11272. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  11273. # investigate it a little bit more. (MM)
  11274. wlarc='${wl}'
  11275. # ancient GNU ld didn't support --whole-archive et. al.
  11276. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  11277. $GREP 'no-whole-archive' > /dev/null; then
  11278. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11279. else
  11280. whole_archive_flag_spec_CXX=
  11281. fi
  11282. else
  11283. with_gnu_ld=no
  11284. wlarc=
  11285. # A generic and very simple default shared library creation
  11286. # command for GNU C++ for the case where it uses the native
  11287. # linker, instead of GNU ld. If possible, this setting should
  11288. # overridden to take advantage of the native linker features on
  11289. # the platform it is being used on.
  11290. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11291. fi
  11292. # Commands to make compiler produce verbose output that lists
  11293. # what "hidden" libraries, object files and flags are used when
  11294. # linking a shared library.
  11295. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11296. else
  11297. GXX=no
  11298. with_gnu_ld=no
  11299. wlarc=
  11300. fi
  11301. # PORTME: fill in a description of your system's C++ link characteristics
  11302. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  11303. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  11304. ld_shlibs_CXX=yes
  11305. case $host_os in
  11306. aix3*)
  11307. # FIXME: insert proper C++ library support
  11308. ld_shlibs_CXX=no
  11309. ;;
  11310. aix[4-9]*)
  11311. if test "$host_cpu" = ia64; then
  11312. # On IA64, the linker does run time linking by default, so we don't
  11313. # have to do anything special.
  11314. aix_use_runtimelinking=no
  11315. exp_sym_flag='-Bexport'
  11316. no_entry_flag=""
  11317. else
  11318. aix_use_runtimelinking=no
  11319. # Test if we are trying to use run time linking or normal
  11320. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  11321. # need to do runtime linking.
  11322. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  11323. for ld_flag in $LDFLAGS; do
  11324. case $ld_flag in
  11325. *-brtl*)
  11326. aix_use_runtimelinking=yes
  11327. break
  11328. ;;
  11329. esac
  11330. done
  11331. ;;
  11332. esac
  11333. exp_sym_flag='-bexport'
  11334. no_entry_flag='-bnoentry'
  11335. fi
  11336. # When large executables or shared objects are built, AIX ld can
  11337. # have problems creating the table of contents. If linking a library
  11338. # or program results in "error TOC overflow" add -mminimal-toc to
  11339. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  11340. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  11341. archive_cmds_CXX=''
  11342. hardcode_direct_CXX=yes
  11343. hardcode_direct_absolute_CXX=yes
  11344. hardcode_libdir_separator_CXX=':'
  11345. link_all_deplibs_CXX=yes
  11346. file_list_spec_CXX='${wl}-f,'
  11347. if test "$GXX" = yes; then
  11348. case $host_os in aix4.[012]|aix4.[012].*)
  11349. # We only want to do this on AIX 4.2 and lower, the check
  11350. # below for broken collect2 doesn't work under 4.3+
  11351. collect2name=`${CC} -print-prog-name=collect2`
  11352. if test -f "$collect2name" &&
  11353. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  11354. then
  11355. # We have reworked collect2
  11356. :
  11357. else
  11358. # We have old collect2
  11359. hardcode_direct_CXX=unsupported
  11360. # It fails to find uninstalled libraries when the uninstalled
  11361. # path is not listed in the libpath. Setting hardcode_minus_L
  11362. # to unsupported forces relinking
  11363. hardcode_minus_L_CXX=yes
  11364. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11365. hardcode_libdir_separator_CXX=
  11366. fi
  11367. esac
  11368. shared_flag='-shared'
  11369. if test "$aix_use_runtimelinking" = yes; then
  11370. shared_flag="$shared_flag "'${wl}-G'
  11371. fi
  11372. else
  11373. # not using gcc
  11374. if test "$host_cpu" = ia64; then
  11375. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  11376. # chokes on -Wl,-G. The following line is correct:
  11377. shared_flag='-G'
  11378. else
  11379. if test "$aix_use_runtimelinking" = yes; then
  11380. shared_flag='${wl}-G'
  11381. else
  11382. shared_flag='${wl}-bM:SRE'
  11383. fi
  11384. fi
  11385. fi
  11386. export_dynamic_flag_spec_CXX='${wl}-bexpall'
  11387. # It seems that -bexpall does not export symbols beginning with
  11388. # underscore (_), so it is better to generate a list of symbols to
  11389. # export.
  11390. always_export_symbols_CXX=yes
  11391. if test "$aix_use_runtimelinking" = yes; then
  11392. # Warning - without using the other runtime loading flags (-brtl),
  11393. # -berok will link without error, but may produce a broken library.
  11394. allow_undefined_flag_CXX='-berok'
  11395. # Determine the default libpath from the value encoded in an empty
  11396. # executable.
  11397. if test "${lt_cv_aix_libpath+set}" = set; then
  11398. aix_libpath=$lt_cv_aix_libpath
  11399. else
  11400. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11401. $as_echo_n "(cached) " >&6
  11402. else
  11403. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11404. /* end confdefs.h. */
  11405. int
  11406. main ()
  11407. {
  11408. ;
  11409. return 0;
  11410. }
  11411. _ACEOF
  11412. if ac_fn_cxx_try_link "$LINENO"; then :
  11413. lt_aix_libpath_sed='
  11414. /Import File Strings/,/^$/ {
  11415. /^0/ {
  11416. s/^0 *\([^ ]*\) *$/\1/
  11417. p
  11418. }
  11419. }'
  11420. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11421. # Check for a 64-bit object if we didn't find anything.
  11422. if test -z "$lt_cv_aix_libpath__CXX"; then
  11423. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11424. fi
  11425. fi
  11426. rm -f core conftest.err conftest.$ac_objext \
  11427. conftest$ac_exeext conftest.$ac_ext
  11428. if test -z "$lt_cv_aix_libpath__CXX"; then
  11429. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  11430. fi
  11431. fi
  11432. aix_libpath=$lt_cv_aix_libpath__CXX
  11433. fi
  11434. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11435. 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 func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  11436. else
  11437. if test "$host_cpu" = ia64; then
  11438. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  11439. allow_undefined_flag_CXX="-z nodefs"
  11440. 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"
  11441. else
  11442. # Determine the default libpath from the value encoded in an
  11443. # empty executable.
  11444. if test "${lt_cv_aix_libpath+set}" = set; then
  11445. aix_libpath=$lt_cv_aix_libpath
  11446. else
  11447. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11448. $as_echo_n "(cached) " >&6
  11449. else
  11450. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11451. /* end confdefs.h. */
  11452. int
  11453. main ()
  11454. {
  11455. ;
  11456. return 0;
  11457. }
  11458. _ACEOF
  11459. if ac_fn_cxx_try_link "$LINENO"; then :
  11460. lt_aix_libpath_sed='
  11461. /Import File Strings/,/^$/ {
  11462. /^0/ {
  11463. s/^0 *\([^ ]*\) *$/\1/
  11464. p
  11465. }
  11466. }'
  11467. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11468. # Check for a 64-bit object if we didn't find anything.
  11469. if test -z "$lt_cv_aix_libpath__CXX"; then
  11470. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11471. fi
  11472. fi
  11473. rm -f core conftest.err conftest.$ac_objext \
  11474. conftest$ac_exeext conftest.$ac_ext
  11475. if test -z "$lt_cv_aix_libpath__CXX"; then
  11476. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  11477. fi
  11478. fi
  11479. aix_libpath=$lt_cv_aix_libpath__CXX
  11480. fi
  11481. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11482. # Warning - without using the other run time loading flags,
  11483. # -berok will link without error, but may produce a broken library.
  11484. no_undefined_flag_CXX=' ${wl}-bernotok'
  11485. allow_undefined_flag_CXX=' ${wl}-berok'
  11486. if test "$with_gnu_ld" = yes; then
  11487. # We only use this code for GNU lds that support --whole-archive.
  11488. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11489. else
  11490. # Exported symbols can be pulled into shared objects from archives
  11491. whole_archive_flag_spec_CXX='$convenience'
  11492. fi
  11493. archive_cmds_need_lc_CXX=yes
  11494. # This is similar to how AIX traditionally builds its shared
  11495. # libraries.
  11496. 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'
  11497. fi
  11498. fi
  11499. ;;
  11500. beos*)
  11501. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11502. allow_undefined_flag_CXX=unsupported
  11503. # Joseph Beckenbach <[email protected]> says some releases of gcc
  11504. # support --undefined. This deserves some investigation. FIXME
  11505. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11506. else
  11507. ld_shlibs_CXX=no
  11508. fi
  11509. ;;
  11510. chorus*)
  11511. case $cc_basename in
  11512. *)
  11513. # FIXME: insert proper C++ library support
  11514. ld_shlibs_CXX=no
  11515. ;;
  11516. esac
  11517. ;;
  11518. cygwin* | mingw* | pw32* | cegcc*)
  11519. case $GXX,$cc_basename in
  11520. ,cl* | no,cl*)
  11521. # Native MSVC
  11522. # hardcode_libdir_flag_spec is actually meaningless, as there is
  11523. # no search path for DLLs.
  11524. hardcode_libdir_flag_spec_CXX=' '
  11525. allow_undefined_flag_CXX=unsupported
  11526. always_export_symbols_CXX=yes
  11527. file_list_spec_CXX='@'
  11528. # Tell ltmain to make .lib files, not .a files.
  11529. libext=lib
  11530. # Tell ltmain to make .dll files, not .so files.
  11531. shrext_cmds=".dll"
  11532. # FIXME: Setting linknames here is a bad hack.
  11533. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  11534. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11535. $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  11536. else
  11537. $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  11538. fi~
  11539. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  11540. linknames='
  11541. # The linker will not automatically build a static lib if we build a DLL.
  11542. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  11543. enable_shared_with_static_runtimes_CXX=yes
  11544. # Don't use ranlib
  11545. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  11546. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  11547. lt_tool_outputfile="@TOOL_OUTPUT@"~
  11548. case $lt_outputfile in
  11549. *.exe|*.EXE) ;;
  11550. *)
  11551. lt_outputfile="$lt_outputfile.exe"
  11552. lt_tool_outputfile="$lt_tool_outputfile.exe"
  11553. ;;
  11554. esac~
  11555. func_to_tool_file "$lt_outputfile"~
  11556. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  11557. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  11558. $RM "$lt_outputfile.manifest";
  11559. fi'
  11560. ;;
  11561. *)
  11562. # g++
  11563. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  11564. # as there is no search path for DLLs.
  11565. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11566. export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
  11567. allow_undefined_flag_CXX=unsupported
  11568. always_export_symbols_CXX=no
  11569. enable_shared_with_static_runtimes_CXX=yes
  11570. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  11571. 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'
  11572. # If the export-symbols file already is a .def file (1st line
  11573. # is EXPORTS), use it as is; otherwise, prepend...
  11574. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11575. cp $export_symbols $output_objdir/$soname.def;
  11576. else
  11577. echo EXPORTS > $output_objdir/$soname.def;
  11578. cat $export_symbols >> $output_objdir/$soname.def;
  11579. fi~
  11580. $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'
  11581. else
  11582. ld_shlibs_CXX=no
  11583. fi
  11584. ;;
  11585. esac
  11586. ;;
  11587. darwin* | rhapsody*)
  11588. archive_cmds_need_lc_CXX=no
  11589. hardcode_direct_CXX=no
  11590. hardcode_automatic_CXX=yes
  11591. hardcode_shlibpath_var_CXX=unsupported
  11592. if test "$lt_cv_ld_force_load" = "yes"; then
  11593. whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
  11594. else
  11595. whole_archive_flag_spec_CXX=''
  11596. fi
  11597. link_all_deplibs_CXX=yes
  11598. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  11599. case $cc_basename in
  11600. ifort*) _lt_dar_can_shared=yes ;;
  11601. *) _lt_dar_can_shared=$GCC ;;
  11602. esac
  11603. if test "$_lt_dar_can_shared" = "yes"; then
  11604. output_verbose_link_cmd=func_echo_all
  11605. 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}"
  11606. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  11607. 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}"
  11608. 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}"
  11609. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  11610. 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}"
  11611. 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}"
  11612. fi
  11613. else
  11614. ld_shlibs_CXX=no
  11615. fi
  11616. ;;
  11617. dgux*)
  11618. case $cc_basename in
  11619. ec++*)
  11620. # FIXME: insert proper C++ library support
  11621. ld_shlibs_CXX=no
  11622. ;;
  11623. ghcx*)
  11624. # Green Hills C++ Compiler
  11625. # FIXME: insert proper C++ library support
  11626. ld_shlibs_CXX=no
  11627. ;;
  11628. *)
  11629. # FIXME: insert proper C++ library support
  11630. ld_shlibs_CXX=no
  11631. ;;
  11632. esac
  11633. ;;
  11634. freebsd2.*)
  11635. # C++ shared libraries reported to be fairly broken before
  11636. # switch to ELF
  11637. ld_shlibs_CXX=no
  11638. ;;
  11639. freebsd-elf*)
  11640. archive_cmds_need_lc_CXX=no
  11641. ;;
  11642. freebsd* | dragonfly*)
  11643. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  11644. # conventions
  11645. ld_shlibs_CXX=yes
  11646. ;;
  11647. gnu*)
  11648. ;;
  11649. haiku*)
  11650. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11651. link_all_deplibs_CXX=yes
  11652. ;;
  11653. hpux9*)
  11654. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11655. hardcode_libdir_separator_CXX=:
  11656. export_dynamic_flag_spec_CXX='${wl}-E'
  11657. hardcode_direct_CXX=yes
  11658. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11659. # but as the default
  11660. # location of the library.
  11661. case $cc_basename in
  11662. CC*)
  11663. # FIXME: insert proper C++ library support
  11664. ld_shlibs_CXX=no
  11665. ;;
  11666. aCC*)
  11667. 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'
  11668. # Commands to make compiler produce verbose output that lists
  11669. # what "hidden" libraries, object files and flags are used when
  11670. # linking a shared library.
  11671. #
  11672. # There doesn't appear to be a way to prevent this compiler from
  11673. # explicitly linking system object files so we need to strip them
  11674. # from the output so that they don't get included in the library
  11675. # dependencies.
  11676. 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; func_echo_all "$list"'
  11677. ;;
  11678. *)
  11679. if test "$GXX" = yes; then
  11680. archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${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'
  11681. else
  11682. # FIXME: insert proper C++ library support
  11683. ld_shlibs_CXX=no
  11684. fi
  11685. ;;
  11686. esac
  11687. ;;
  11688. hpux10*|hpux11*)
  11689. if test $with_gnu_ld = no; then
  11690. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11691. hardcode_libdir_separator_CXX=:
  11692. case $host_cpu in
  11693. hppa*64*|ia64*)
  11694. ;;
  11695. *)
  11696. export_dynamic_flag_spec_CXX='${wl}-E'
  11697. ;;
  11698. esac
  11699. fi
  11700. case $host_cpu in
  11701. hppa*64*|ia64*)
  11702. hardcode_direct_CXX=no
  11703. hardcode_shlibpath_var_CXX=no
  11704. ;;
  11705. *)
  11706. hardcode_direct_CXX=yes
  11707. hardcode_direct_absolute_CXX=yes
  11708. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11709. # but as the default
  11710. # location of the library.
  11711. ;;
  11712. esac
  11713. case $cc_basename in
  11714. CC*)
  11715. # FIXME: insert proper C++ library support
  11716. ld_shlibs_CXX=no
  11717. ;;
  11718. aCC*)
  11719. case $host_cpu in
  11720. hppa*64*)
  11721. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11722. ;;
  11723. ia64*)
  11724. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11725. ;;
  11726. *)
  11727. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11728. ;;
  11729. esac
  11730. # Commands to make compiler produce verbose output that lists
  11731. # what "hidden" libraries, object files and flags are used when
  11732. # linking a shared library.
  11733. #
  11734. # There doesn't appear to be a way to prevent this compiler from
  11735. # explicitly linking system object files so we need to strip them
  11736. # from the output so that they don't get included in the library
  11737. # dependencies.
  11738. 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; func_echo_all "$list"'
  11739. ;;
  11740. *)
  11741. if test "$GXX" = yes; then
  11742. if test $with_gnu_ld = no; then
  11743. case $host_cpu in
  11744. hppa*64*)
  11745. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11746. ;;
  11747. ia64*)
  11748. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11749. ;;
  11750. *)
  11751. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11752. ;;
  11753. esac
  11754. fi
  11755. else
  11756. # FIXME: insert proper C++ library support
  11757. ld_shlibs_CXX=no
  11758. fi
  11759. ;;
  11760. esac
  11761. ;;
  11762. interix[3-9]*)
  11763. hardcode_direct_CXX=no
  11764. hardcode_shlibpath_var_CXX=no
  11765. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11766. export_dynamic_flag_spec_CXX='${wl}-E'
  11767. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  11768. # Instead, shared libraries are loaded at an image base (0x10000000 by
  11769. # default) and relocated if they conflict, which is a slow very memory
  11770. # consuming and fragmenting process. To avoid this, we pick a random,
  11771. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  11772. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  11773. 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'
  11774. 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'
  11775. ;;
  11776. irix5* | irix6*)
  11777. case $cc_basename in
  11778. CC*)
  11779. # SGI C++
  11780. archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  11781. # Archives containing C++ object files must be created using
  11782. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  11783. # necessary to make sure instantiated templates are included
  11784. # in the archive.
  11785. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  11786. ;;
  11787. *)
  11788. if test "$GXX" = yes; then
  11789. if test "$with_gnu_ld" = no; then
  11790. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  11791. else
  11792. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
  11793. fi
  11794. fi
  11795. link_all_deplibs_CXX=yes
  11796. ;;
  11797. esac
  11798. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11799. hardcode_libdir_separator_CXX=:
  11800. inherit_rpath_CXX=yes
  11801. ;;
  11802. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  11803. case $cc_basename in
  11804. KCC*)
  11805. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11806. # KCC will only create a shared library if the output file
  11807. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11808. # to its proper name (with version) after linking.
  11809. 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'
  11810. 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'
  11811. # Commands to make compiler produce verbose output that lists
  11812. # what "hidden" libraries, object files and flags are used when
  11813. # linking a shared library.
  11814. #
  11815. # There doesn't appear to be a way to prevent this compiler from
  11816. # explicitly linking system object files so we need to strip them
  11817. # from the output so that they don't get included in the library
  11818. # dependencies.
  11819. 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; func_echo_all "$list"'
  11820. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11821. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11822. # Archives containing C++ object files must be created using
  11823. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  11824. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  11825. ;;
  11826. icpc* | ecpc* )
  11827. # Intel C++
  11828. with_gnu_ld=yes
  11829. # version 8.0 and above of icpc choke on multiply defined symbols
  11830. # if we add $predep_objects and $postdep_objects, however 7.1 and
  11831. # earlier do not add the objects themselves.
  11832. case `$CC -V 2>&1` in
  11833. *"Version 7."*)
  11834. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11835. 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'
  11836. ;;
  11837. *) # Version 8.0 or newer
  11838. tmp_idyn=
  11839. case $host_cpu in
  11840. ia64*) tmp_idyn=' -i_dynamic';;
  11841. esac
  11842. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11843. 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'
  11844. ;;
  11845. esac
  11846. archive_cmds_need_lc_CXX=no
  11847. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11848. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11849. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11850. ;;
  11851. pgCC* | pgcpp*)
  11852. # Portland Group C++ compiler
  11853. case `$CC -V` in
  11854. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  11855. prelink_cmds_CXX='tpldir=Template.dir~
  11856. rm -rf $tpldir~
  11857. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  11858. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  11859. old_archive_cmds_CXX='tpldir=Template.dir~
  11860. rm -rf $tpldir~
  11861. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  11862. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  11863. $RANLIB $oldlib'
  11864. archive_cmds_CXX='tpldir=Template.dir~
  11865. rm -rf $tpldir~
  11866. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11867. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11868. archive_expsym_cmds_CXX='tpldir=Template.dir~
  11869. rm -rf $tpldir~
  11870. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11871. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
  11872. ;;
  11873. *) # Version 6 and above use weak symbols
  11874. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11875. 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'
  11876. ;;
  11877. esac
  11878. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  11879. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11880. whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  11881. ;;
  11882. cxx*)
  11883. # Compaq C++
  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 -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
  11886. runpath_var=LD_RUN_PATH
  11887. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11888. hardcode_libdir_separator_CXX=:
  11889. # Commands to make compiler produce verbose output that lists
  11890. # what "hidden" libraries, object files and flags are used when
  11891. # linking a shared library.
  11892. #
  11893. # There doesn't appear to be a way to prevent this compiler from
  11894. # explicitly linking system object files so we need to strip them
  11895. # from the output so that they don't get included in the library
  11896. # dependencies.
  11897. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
  11898. ;;
  11899. xl* | mpixl* | bgxl*)
  11900. # IBM XL 8.0 on PPC, with GNU ld
  11901. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11902. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11903. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11904. if test "x$supports_anon_versioning" = xyes; then
  11905. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  11906. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  11907. echo "local: *; };" >> $output_objdir/$libname.ver~
  11908. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  11909. fi
  11910. ;;
  11911. *)
  11912. case `$CC -V 2>&1 | sed 5q` in
  11913. *Sun\ C*)
  11914. # Sun C++ 5.9
  11915. no_undefined_flag_CXX=' -zdefs'
  11916. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11917. 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'
  11918. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11919. whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  11920. compiler_needs_object_CXX=yes
  11921. # Not sure whether something based on
  11922. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  11923. # would be better.
  11924. output_verbose_link_cmd='func_echo_all'
  11925. # Archives containing C++ object files must be created using
  11926. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11927. # necessary to make sure instantiated templates are included
  11928. # in the archive.
  11929. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11930. ;;
  11931. esac
  11932. ;;
  11933. esac
  11934. ;;
  11935. lynxos*)
  11936. # FIXME: insert proper C++ library support
  11937. ld_shlibs_CXX=no
  11938. ;;
  11939. m88k*)
  11940. # FIXME: insert proper C++ library support
  11941. ld_shlibs_CXX=no
  11942. ;;
  11943. mvs*)
  11944. case $cc_basename in
  11945. cxx*)
  11946. # FIXME: insert proper C++ library support
  11947. ld_shlibs_CXX=no
  11948. ;;
  11949. *)
  11950. # FIXME: insert proper C++ library support
  11951. ld_shlibs_CXX=no
  11952. ;;
  11953. esac
  11954. ;;
  11955. netbsd*)
  11956. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11957. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  11958. wlarc=
  11959. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11960. hardcode_direct_CXX=yes
  11961. hardcode_shlibpath_var_CXX=no
  11962. fi
  11963. # Workaround some broken pre-1.5 toolchains
  11964. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  11965. ;;
  11966. *nto* | *qnx*)
  11967. ld_shlibs_CXX=yes
  11968. ;;
  11969. openbsd2*)
  11970. # C++ shared libraries are fairly broken
  11971. ld_shlibs_CXX=no
  11972. ;;
  11973. openbsd*)
  11974. if test -f /usr/libexec/ld.so; then
  11975. hardcode_direct_CXX=yes
  11976. hardcode_shlibpath_var_CXX=no
  11977. hardcode_direct_absolute_CXX=yes
  11978. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11979. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11980. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11981. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  11982. export_dynamic_flag_spec_CXX='${wl}-E'
  11983. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11984. fi
  11985. output_verbose_link_cmd=func_echo_all
  11986. else
  11987. ld_shlibs_CXX=no
  11988. fi
  11989. ;;
  11990. osf3* | osf4* | osf5*)
  11991. case $cc_basename in
  11992. KCC*)
  11993. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11994. # KCC will only create a shared library if the output file
  11995. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11996. # to its proper name (with version) after linking.
  11997. 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'
  11998. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11999. hardcode_libdir_separator_CXX=:
  12000. # Archives containing C++ object files must be created using
  12001. # the KAI C++ compiler.
  12002. case $host in
  12003. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  12004. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  12005. esac
  12006. ;;
  12007. RCC*)
  12008. # Rational C++ 2.4.1
  12009. # FIXME: insert proper C++ library support
  12010. ld_shlibs_CXX=no
  12011. ;;
  12012. cxx*)
  12013. case $host in
  12014. osf3*)
  12015. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  12016. archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  12017. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  12018. ;;
  12019. *)
  12020. allow_undefined_flag_CXX=' -expect_unresolved \*'
  12021. archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  12022. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  12023. echo "-hidden">> $lib.exp~
  12024. $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
  12025. $RM $lib.exp'
  12026. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  12027. ;;
  12028. esac
  12029. hardcode_libdir_separator_CXX=:
  12030. # Commands to make compiler produce verbose output that lists
  12031. # what "hidden" libraries, object files and flags are used when
  12032. # linking a shared library.
  12033. #
  12034. # There doesn't appear to be a way to prevent this compiler from
  12035. # explicitly linking system object files so we need to strip them
  12036. # from the output so that they don't get included in the library
  12037. # dependencies.
  12038. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  12039. ;;
  12040. *)
  12041. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  12042. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  12043. case $host in
  12044. osf3*)
  12045. archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  12046. ;;
  12047. *)
  12048. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  12049. ;;
  12050. esac
  12051. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  12052. hardcode_libdir_separator_CXX=:
  12053. # Commands to make compiler produce verbose output that lists
  12054. # what "hidden" libraries, object files and flags are used when
  12055. # linking a shared library.
  12056. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  12057. else
  12058. # FIXME: insert proper C++ library support
  12059. ld_shlibs_CXX=no
  12060. fi
  12061. ;;
  12062. esac
  12063. ;;
  12064. psos*)
  12065. # FIXME: insert proper C++ library support
  12066. ld_shlibs_CXX=no
  12067. ;;
  12068. sunos4*)
  12069. case $cc_basename in
  12070. CC*)
  12071. # Sun C++ 4.x
  12072. # FIXME: insert proper C++ library support
  12073. ld_shlibs_CXX=no
  12074. ;;
  12075. lcc*)
  12076. # Lucid
  12077. # FIXME: insert proper C++ library support
  12078. ld_shlibs_CXX=no
  12079. ;;
  12080. *)
  12081. # FIXME: insert proper C++ library support
  12082. ld_shlibs_CXX=no
  12083. ;;
  12084. esac
  12085. ;;
  12086. solaris*)
  12087. case $cc_basename in
  12088. CC* | sunCC*)
  12089. # Sun C++ 4.2, 5.x and Centerline C++
  12090. archive_cmds_need_lc_CXX=yes
  12091. no_undefined_flag_CXX=' -zdefs'
  12092. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12093. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12094. $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'
  12095. hardcode_libdir_flag_spec_CXX='-R$libdir'
  12096. hardcode_shlibpath_var_CXX=no
  12097. case $host_os in
  12098. solaris2.[0-5] | solaris2.[0-5].*) ;;
  12099. *)
  12100. # The compiler driver will combine and reorder linker options,
  12101. # but understands `-z linker_flag'.
  12102. # Supported since Solaris 2.6 (maybe 2.5.1?)
  12103. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  12104. ;;
  12105. esac
  12106. link_all_deplibs_CXX=yes
  12107. output_verbose_link_cmd='func_echo_all'
  12108. # Archives containing C++ object files must be created using
  12109. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  12110. # necessary to make sure instantiated templates are included
  12111. # in the archive.
  12112. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  12113. ;;
  12114. gcx*)
  12115. # Green Hills C++ Compiler
  12116. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  12117. # The C++ compiler must be used to create the archive.
  12118. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  12119. ;;
  12120. *)
  12121. # GNU C++ compiler with Solaris linker
  12122. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  12123. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  12124. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  12125. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  12126. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12127. $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  12128. # Commands to make compiler produce verbose output that lists
  12129. # what "hidden" libraries, object files and flags are used when
  12130. # linking a shared library.
  12131. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  12132. else
  12133. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  12134. # platform.
  12135. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  12136. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12137. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  12138. # Commands to make compiler produce verbose output that lists
  12139. # what "hidden" libraries, object files and flags are used when
  12140. # linking a shared library.
  12141. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  12142. fi
  12143. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  12144. case $host_os in
  12145. solaris2.[0-5] | solaris2.[0-5].*) ;;
  12146. *)
  12147. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  12148. ;;
  12149. esac
  12150. fi
  12151. ;;
  12152. esac
  12153. ;;
  12154. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  12155. no_undefined_flag_CXX='${wl}-z,text'
  12156. archive_cmds_need_lc_CXX=no
  12157. hardcode_shlibpath_var_CXX=no
  12158. runpath_var='LD_RUN_PATH'
  12159. case $cc_basename in
  12160. CC*)
  12161. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12162. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12163. ;;
  12164. *)
  12165. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12166. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12167. ;;
  12168. esac
  12169. ;;
  12170. sysv5* | sco3.2v5* | sco5v6*)
  12171. # Note: We can NOT use -z defs as we might desire, because we do not
  12172. # link with -lc, and that would cause any symbols used from libc to
  12173. # always be unresolved, which means just about no library would
  12174. # ever link correctly. If we're not using GNU ld we use -z text
  12175. # though, which does catch some bad symbols but isn't as heavy-handed
  12176. # as -z defs.
  12177. no_undefined_flag_CXX='${wl}-z,text'
  12178. allow_undefined_flag_CXX='${wl}-z,nodefs'
  12179. archive_cmds_need_lc_CXX=no
  12180. hardcode_shlibpath_var_CXX=no
  12181. hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  12182. hardcode_libdir_separator_CXX=':'
  12183. link_all_deplibs_CXX=yes
  12184. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  12185. runpath_var='LD_RUN_PATH'
  12186. case $cc_basename in
  12187. CC*)
  12188. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12189. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12190. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  12191. '"$old_archive_cmds_CXX"
  12192. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  12193. '"$reload_cmds_CXX"
  12194. ;;
  12195. *)
  12196. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12197. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12198. ;;
  12199. esac
  12200. ;;
  12201. tandem*)
  12202. case $cc_basename in
  12203. NCC*)
  12204. # NonStop-UX NCC 3.20
  12205. # FIXME: insert proper C++ library support
  12206. ld_shlibs_CXX=no
  12207. ;;
  12208. *)
  12209. # FIXME: insert proper C++ library support
  12210. ld_shlibs_CXX=no
  12211. ;;
  12212. esac
  12213. ;;
  12214. vxworks*)
  12215. # FIXME: insert proper C++ library support
  12216. ld_shlibs_CXX=no
  12217. ;;
  12218. *)
  12219. # FIXME: insert proper C++ library support
  12220. ld_shlibs_CXX=no
  12221. ;;
  12222. esac
  12223. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12224. $as_echo "$ld_shlibs_CXX" >&6; }
  12225. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12226. GCC_CXX="$GXX"
  12227. LD_CXX="$LD"
  12228. ## CAVEAT EMPTOR:
  12229. ## There is no encapsulation within the following macros, do not change
  12230. ## the running order or otherwise move them around unless you know exactly
  12231. ## what you are doing...
  12232. # Dependencies to place before and after the object being linked:
  12233. predep_objects_CXX=
  12234. postdep_objects_CXX=
  12235. predeps_CXX=
  12236. postdeps_CXX=
  12237. compiler_lib_search_path_CXX=
  12238. cat > conftest.$ac_ext <<_LT_EOF
  12239. class Foo
  12240. {
  12241. public:
  12242. Foo (void) { a = 0; }
  12243. private:
  12244. int a;
  12245. };
  12246. _LT_EOF
  12247. _lt_libdeps_save_CFLAGS=$CFLAGS
  12248. case "$CC $CFLAGS " in #(
  12249. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  12250. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  12251. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  12252. esac
  12253. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12254. (eval $ac_compile) 2>&5
  12255. ac_status=$?
  12256. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12257. test $ac_status = 0; }; then
  12258. # Parse the compiler output and extract the necessary
  12259. # objects, libraries and library flags.
  12260. # Sentinel used to keep track of whether or not we are before
  12261. # the conftest object file.
  12262. pre_test_object_deps_done=no
  12263. for p in `eval "$output_verbose_link_cmd"`; do
  12264. case ${prev}${p} in
  12265. -L* | -R* | -l*)
  12266. # Some compilers place space between "-{L,R}" and the path.
  12267. # Remove the space.
  12268. if test $p = "-L" ||
  12269. test $p = "-R"; then
  12270. prev=$p
  12271. continue
  12272. fi
  12273. # Expand the sysroot to ease extracting the directories later.
  12274. if test -z "$prev"; then
  12275. case $p in
  12276. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  12277. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  12278. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  12279. esac
  12280. fi
  12281. case $p in
  12282. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  12283. esac
  12284. if test "$pre_test_object_deps_done" = no; then
  12285. case ${prev} in
  12286. -L | -R)
  12287. # Internal compiler library paths should come after those
  12288. # provided the user. The postdeps already come after the
  12289. # user supplied libs so there is no need to process them.
  12290. if test -z "$compiler_lib_search_path_CXX"; then
  12291. compiler_lib_search_path_CXX="${prev}${p}"
  12292. else
  12293. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  12294. fi
  12295. ;;
  12296. # The "-l" case would never come before the object being
  12297. # linked, so don't bother handling this case.
  12298. esac
  12299. else
  12300. if test -z "$postdeps_CXX"; then
  12301. postdeps_CXX="${prev}${p}"
  12302. else
  12303. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  12304. fi
  12305. fi
  12306. prev=
  12307. ;;
  12308. *.lto.$objext) ;; # Ignore GCC LTO objects
  12309. *.$objext)
  12310. # This assumes that the test object file only shows up
  12311. # once in the compiler output.
  12312. if test "$p" = "conftest.$objext"; then
  12313. pre_test_object_deps_done=yes
  12314. continue
  12315. fi
  12316. if test "$pre_test_object_deps_done" = no; then
  12317. if test -z "$predep_objects_CXX"; then
  12318. predep_objects_CXX="$p"
  12319. else
  12320. predep_objects_CXX="$predep_objects_CXX $p"
  12321. fi
  12322. else
  12323. if test -z "$postdep_objects_CXX"; then
  12324. postdep_objects_CXX="$p"
  12325. else
  12326. postdep_objects_CXX="$postdep_objects_CXX $p"
  12327. fi
  12328. fi
  12329. ;;
  12330. *) ;; # Ignore the rest.
  12331. esac
  12332. done
  12333. # Clean up.
  12334. rm -f a.out a.exe
  12335. else
  12336. echo "libtool.m4: error: problem compiling CXX test program"
  12337. fi
  12338. $RM -f confest.$objext
  12339. CFLAGS=$_lt_libdeps_save_CFLAGS
  12340. # PORTME: override above test on systems where it is broken
  12341. case $host_os in
  12342. interix[3-9]*)
  12343. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  12344. # hack all around it, let's just trust "g++" to DTRT.
  12345. predep_objects_CXX=
  12346. postdep_objects_CXX=
  12347. postdeps_CXX=
  12348. ;;
  12349. linux*)
  12350. case `$CC -V 2>&1 | sed 5q` in
  12351. *Sun\ C*)
  12352. # Sun C++ 5.9
  12353. # The more standards-conforming stlport4 library is
  12354. # incompatible with the Cstd library. Avoid specifying
  12355. # it if it's in CXXFLAGS. Ignore libCrun as
  12356. # -library=stlport4 depends on it.
  12357. case " $CXX $CXXFLAGS " in
  12358. *" -library=stlport4 "*)
  12359. solaris_use_stlport4=yes
  12360. ;;
  12361. esac
  12362. if test "$solaris_use_stlport4" != yes; then
  12363. postdeps_CXX='-library=Cstd -library=Crun'
  12364. fi
  12365. ;;
  12366. esac
  12367. ;;
  12368. solaris*)
  12369. case $cc_basename in
  12370. CC* | sunCC*)
  12371. # The more standards-conforming stlport4 library is
  12372. # incompatible with the Cstd library. Avoid specifying
  12373. # it if it's in CXXFLAGS. Ignore libCrun as
  12374. # -library=stlport4 depends on it.
  12375. case " $CXX $CXXFLAGS " in
  12376. *" -library=stlport4 "*)
  12377. solaris_use_stlport4=yes
  12378. ;;
  12379. esac
  12380. # Adding this requires a known-good setup of shared libraries for
  12381. # Sun compiler versions before 5.6, else PIC objects from an old
  12382. # archive will be linked into the output, leading to subtle bugs.
  12383. if test "$solaris_use_stlport4" != yes; then
  12384. postdeps_CXX='-library=Cstd -library=Crun'
  12385. fi
  12386. ;;
  12387. esac
  12388. ;;
  12389. esac
  12390. case " $postdeps_CXX " in
  12391. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  12392. esac
  12393. compiler_lib_search_dirs_CXX=
  12394. if test -n "${compiler_lib_search_path_CXX}"; then
  12395. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  12396. fi
  12397. lt_prog_compiler_wl_CXX=
  12398. lt_prog_compiler_pic_CXX=
  12399. lt_prog_compiler_static_CXX=
  12400. # C++ specific cases for pic, static, wl, etc.
  12401. if test "$GXX" = yes; then
  12402. lt_prog_compiler_wl_CXX='-Wl,'
  12403. lt_prog_compiler_static_CXX='-static'
  12404. case $host_os in
  12405. aix*)
  12406. # All AIX code is PIC.
  12407. if test "$host_cpu" = ia64; then
  12408. # AIX 5 now supports IA64 processor
  12409. lt_prog_compiler_static_CXX='-Bstatic'
  12410. fi
  12411. ;;
  12412. amigaos*)
  12413. case $host_cpu in
  12414. powerpc)
  12415. # see comment about AmigaOS4 .so support
  12416. lt_prog_compiler_pic_CXX='-fPIC'
  12417. ;;
  12418. m68k)
  12419. # FIXME: we need at least 68020 code to build shared libraries, but
  12420. # adding the `-m68020' flag to GCC prevents building anything better,
  12421. # like `-m68040'.
  12422. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  12423. ;;
  12424. esac
  12425. ;;
  12426. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  12427. # PIC is the default for these OSes.
  12428. ;;
  12429. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12430. # This hack is so that the source file can tell whether it is being
  12431. # built for inclusion in a dll (and should export symbols for example).
  12432. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  12433. # (--disable-auto-import) libraries
  12434. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12435. ;;
  12436. darwin* | rhapsody*)
  12437. # PIC is the default on this platform
  12438. # Common symbols not allowed in MH_DYLIB files
  12439. lt_prog_compiler_pic_CXX='-fno-common'
  12440. ;;
  12441. *djgpp*)
  12442. # DJGPP does not support shared libraries at all
  12443. lt_prog_compiler_pic_CXX=
  12444. ;;
  12445. haiku*)
  12446. # PIC is the default for Haiku.
  12447. # The "-static" flag exists, but is broken.
  12448. lt_prog_compiler_static_CXX=
  12449. ;;
  12450. interix[3-9]*)
  12451. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  12452. # Instead, we relocate shared libraries at runtime.
  12453. ;;
  12454. sysv4*MP*)
  12455. if test -d /usr/nec; then
  12456. lt_prog_compiler_pic_CXX=-Kconform_pic
  12457. fi
  12458. ;;
  12459. hpux*)
  12460. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  12461. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  12462. # sets the default TLS model and affects inlining.
  12463. case $host_cpu in
  12464. hppa*64*)
  12465. ;;
  12466. *)
  12467. lt_prog_compiler_pic_CXX='-fPIC'
  12468. ;;
  12469. esac
  12470. ;;
  12471. *qnx* | *nto*)
  12472. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12473. # it will coredump.
  12474. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12475. ;;
  12476. *)
  12477. lt_prog_compiler_pic_CXX='-fPIC'
  12478. ;;
  12479. esac
  12480. else
  12481. case $host_os in
  12482. aix[4-9]*)
  12483. # All AIX code is PIC.
  12484. if test "$host_cpu" = ia64; then
  12485. # AIX 5 now supports IA64 processor
  12486. lt_prog_compiler_static_CXX='-Bstatic'
  12487. else
  12488. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  12489. fi
  12490. ;;
  12491. chorus*)
  12492. case $cc_basename in
  12493. cxch68*)
  12494. # Green Hills C++ Compiler
  12495. # _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"
  12496. ;;
  12497. esac
  12498. ;;
  12499. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12500. # This hack is so that the source file can tell whether it is being
  12501. # built for inclusion in a dll (and should export symbols for example).
  12502. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12503. ;;
  12504. dgux*)
  12505. case $cc_basename in
  12506. ec++*)
  12507. lt_prog_compiler_pic_CXX='-KPIC'
  12508. ;;
  12509. ghcx*)
  12510. # Green Hills C++ Compiler
  12511. lt_prog_compiler_pic_CXX='-pic'
  12512. ;;
  12513. *)
  12514. ;;
  12515. esac
  12516. ;;
  12517. freebsd* | dragonfly*)
  12518. # FreeBSD uses GNU C++
  12519. ;;
  12520. hpux9* | hpux10* | hpux11*)
  12521. case $cc_basename in
  12522. CC*)
  12523. lt_prog_compiler_wl_CXX='-Wl,'
  12524. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12525. if test "$host_cpu" != ia64; then
  12526. lt_prog_compiler_pic_CXX='+Z'
  12527. fi
  12528. ;;
  12529. aCC*)
  12530. lt_prog_compiler_wl_CXX='-Wl,'
  12531. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12532. case $host_cpu in
  12533. hppa*64*|ia64*)
  12534. # +Z the default
  12535. ;;
  12536. *)
  12537. lt_prog_compiler_pic_CXX='+Z'
  12538. ;;
  12539. esac
  12540. ;;
  12541. *)
  12542. ;;
  12543. esac
  12544. ;;
  12545. interix*)
  12546. # This is c89, which is MS Visual C++ (no shared libs)
  12547. # Anyone wants to do a port?
  12548. ;;
  12549. irix5* | irix6* | nonstopux*)
  12550. case $cc_basename in
  12551. CC*)
  12552. lt_prog_compiler_wl_CXX='-Wl,'
  12553. lt_prog_compiler_static_CXX='-non_shared'
  12554. # CC pic flag -KPIC is the default.
  12555. ;;
  12556. *)
  12557. ;;
  12558. esac
  12559. ;;
  12560. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  12561. case $cc_basename in
  12562. KCC*)
  12563. # KAI C++ Compiler
  12564. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12565. lt_prog_compiler_pic_CXX='-fPIC'
  12566. ;;
  12567. ecpc* )
  12568. # old Intel C++ for x86_64 which still supported -KPIC.
  12569. lt_prog_compiler_wl_CXX='-Wl,'
  12570. lt_prog_compiler_pic_CXX='-KPIC'
  12571. lt_prog_compiler_static_CXX='-static'
  12572. ;;
  12573. icpc* )
  12574. # Intel C++, used to be incompatible with GCC.
  12575. # ICC 10 doesn't accept -KPIC any more.
  12576. lt_prog_compiler_wl_CXX='-Wl,'
  12577. lt_prog_compiler_pic_CXX='-fPIC'
  12578. lt_prog_compiler_static_CXX='-static'
  12579. ;;
  12580. pgCC* | pgcpp*)
  12581. # Portland Group C++ compiler
  12582. lt_prog_compiler_wl_CXX='-Wl,'
  12583. lt_prog_compiler_pic_CXX='-fpic'
  12584. lt_prog_compiler_static_CXX='-Bstatic'
  12585. ;;
  12586. cxx*)
  12587. # Compaq C++
  12588. # Make sure the PIC flag is empty. It appears that all Alpha
  12589. # Linux and Compaq Tru64 Unix objects are PIC.
  12590. lt_prog_compiler_pic_CXX=
  12591. lt_prog_compiler_static_CXX='-non_shared'
  12592. ;;
  12593. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  12594. # IBM XL 8.0, 9.0 on PPC and BlueGene
  12595. lt_prog_compiler_wl_CXX='-Wl,'
  12596. lt_prog_compiler_pic_CXX='-qpic'
  12597. lt_prog_compiler_static_CXX='-qstaticlink'
  12598. ;;
  12599. *)
  12600. case `$CC -V 2>&1 | sed 5q` in
  12601. *Sun\ C*)
  12602. # Sun C++ 5.9
  12603. lt_prog_compiler_pic_CXX='-KPIC'
  12604. lt_prog_compiler_static_CXX='-Bstatic'
  12605. lt_prog_compiler_wl_CXX='-Qoption ld '
  12606. ;;
  12607. esac
  12608. ;;
  12609. esac
  12610. ;;
  12611. lynxos*)
  12612. ;;
  12613. m88k*)
  12614. ;;
  12615. mvs*)
  12616. case $cc_basename in
  12617. cxx*)
  12618. lt_prog_compiler_pic_CXX='-W c,exportall'
  12619. ;;
  12620. *)
  12621. ;;
  12622. esac
  12623. ;;
  12624. netbsd*)
  12625. ;;
  12626. *qnx* | *nto*)
  12627. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12628. # it will coredump.
  12629. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12630. ;;
  12631. osf3* | osf4* | osf5*)
  12632. case $cc_basename in
  12633. KCC*)
  12634. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12635. ;;
  12636. RCC*)
  12637. # Rational C++ 2.4.1
  12638. lt_prog_compiler_pic_CXX='-pic'
  12639. ;;
  12640. cxx*)
  12641. # Digital/Compaq C++
  12642. lt_prog_compiler_wl_CXX='-Wl,'
  12643. # Make sure the PIC flag is empty. It appears that all Alpha
  12644. # Linux and Compaq Tru64 Unix objects are PIC.
  12645. lt_prog_compiler_pic_CXX=
  12646. lt_prog_compiler_static_CXX='-non_shared'
  12647. ;;
  12648. *)
  12649. ;;
  12650. esac
  12651. ;;
  12652. psos*)
  12653. ;;
  12654. solaris*)
  12655. case $cc_basename in
  12656. CC* | sunCC*)
  12657. # Sun C++ 4.2, 5.x and Centerline C++
  12658. lt_prog_compiler_pic_CXX='-KPIC'
  12659. lt_prog_compiler_static_CXX='-Bstatic'
  12660. lt_prog_compiler_wl_CXX='-Qoption ld '
  12661. ;;
  12662. gcx*)
  12663. # Green Hills C++ Compiler
  12664. lt_prog_compiler_pic_CXX='-PIC'
  12665. ;;
  12666. *)
  12667. ;;
  12668. esac
  12669. ;;
  12670. sunos4*)
  12671. case $cc_basename in
  12672. CC*)
  12673. # Sun C++ 4.x
  12674. lt_prog_compiler_pic_CXX='-pic'
  12675. lt_prog_compiler_static_CXX='-Bstatic'
  12676. ;;
  12677. lcc*)
  12678. # Lucid
  12679. lt_prog_compiler_pic_CXX='-pic'
  12680. ;;
  12681. *)
  12682. ;;
  12683. esac
  12684. ;;
  12685. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  12686. case $cc_basename in
  12687. CC*)
  12688. lt_prog_compiler_wl_CXX='-Wl,'
  12689. lt_prog_compiler_pic_CXX='-KPIC'
  12690. lt_prog_compiler_static_CXX='-Bstatic'
  12691. ;;
  12692. esac
  12693. ;;
  12694. tandem*)
  12695. case $cc_basename in
  12696. NCC*)
  12697. # NonStop-UX NCC 3.20
  12698. lt_prog_compiler_pic_CXX='-KPIC'
  12699. ;;
  12700. *)
  12701. ;;
  12702. esac
  12703. ;;
  12704. vxworks*)
  12705. ;;
  12706. *)
  12707. lt_prog_compiler_can_build_shared_CXX=no
  12708. ;;
  12709. esac
  12710. fi
  12711. case $host_os in
  12712. # For platforms which do not support PIC, -DPIC is meaningless:
  12713. *djgpp*)
  12714. lt_prog_compiler_pic_CXX=
  12715. ;;
  12716. *)
  12717. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  12718. ;;
  12719. esac
  12720. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  12721. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  12722. if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
  12723. $as_echo_n "(cached) " >&6
  12724. else
  12725. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  12726. fi
  12727. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  12728. $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
  12729. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  12730. #
  12731. # Check to make sure the PIC flag actually works.
  12732. #
  12733. if test -n "$lt_prog_compiler_pic_CXX"; then
  12734. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  12735. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  12736. if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  12737. $as_echo_n "(cached) " >&6
  12738. else
  12739. lt_cv_prog_compiler_pic_works_CXX=no
  12740. ac_outfile=conftest.$ac_objext
  12741. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12742. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  12743. # Insert the option either (1) after the last *FLAGS variable, or
  12744. # (2) before a word containing "conftest.", or (3) at the end.
  12745. # Note that $ac_compile itself does not contain backslashes and begins
  12746. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12747. # The option is referenced via a variable to avoid confusing sed.
  12748. lt_compile=`echo "$ac_compile" | $SED \
  12749. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12750. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12751. -e 's:$: $lt_compiler_flag:'`
  12752. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12753. (eval "$lt_compile" 2>conftest.err)
  12754. ac_status=$?
  12755. cat conftest.err >&5
  12756. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12757. if (exit $ac_status) && test -s "$ac_outfile"; then
  12758. # The compiler can only warn and ignore the option if not recognized
  12759. # So say no if there are warnings other than the usual output.
  12760. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  12761. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12762. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  12763. lt_cv_prog_compiler_pic_works_CXX=yes
  12764. fi
  12765. fi
  12766. $RM conftest*
  12767. fi
  12768. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  12769. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  12770. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  12771. case $lt_prog_compiler_pic_CXX in
  12772. "" | " "*) ;;
  12773. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  12774. esac
  12775. else
  12776. lt_prog_compiler_pic_CXX=
  12777. lt_prog_compiler_can_build_shared_CXX=no
  12778. fi
  12779. fi
  12780. #
  12781. # Check to make sure the static flag actually works.
  12782. #
  12783. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  12784. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  12785. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  12786. if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  12787. $as_echo_n "(cached) " >&6
  12788. else
  12789. lt_cv_prog_compiler_static_works_CXX=no
  12790. save_LDFLAGS="$LDFLAGS"
  12791. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  12792. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  12793. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  12794. # The linker can only warn and ignore the option if not recognized
  12795. # So say no if there are warnings
  12796. if test -s conftest.err; then
  12797. # Append any errors to the config.log.
  12798. cat conftest.err 1>&5
  12799. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  12800. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12801. if diff conftest.exp conftest.er2 >/dev/null; then
  12802. lt_cv_prog_compiler_static_works_CXX=yes
  12803. fi
  12804. else
  12805. lt_cv_prog_compiler_static_works_CXX=yes
  12806. fi
  12807. fi
  12808. $RM -r conftest*
  12809. LDFLAGS="$save_LDFLAGS"
  12810. fi
  12811. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  12812. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  12813. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  12814. :
  12815. else
  12816. lt_prog_compiler_static_CXX=
  12817. fi
  12818. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12819. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12820. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12821. $as_echo_n "(cached) " >&6
  12822. else
  12823. lt_cv_prog_compiler_c_o_CXX=no
  12824. $RM -r conftest 2>/dev/null
  12825. mkdir conftest
  12826. cd conftest
  12827. mkdir out
  12828. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12829. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12830. # Insert the option either (1) after the last *FLAGS variable, or
  12831. # (2) before a word containing "conftest.", or (3) at the end.
  12832. # Note that $ac_compile itself does not contain backslashes and begins
  12833. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12834. lt_compile=`echo "$ac_compile" | $SED \
  12835. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12836. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12837. -e 's:$: $lt_compiler_flag:'`
  12838. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12839. (eval "$lt_compile" 2>out/conftest.err)
  12840. ac_status=$?
  12841. cat out/conftest.err >&5
  12842. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12843. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12844. then
  12845. # The compiler can only warn and ignore the option if not recognized
  12846. # So say no if there are warnings
  12847. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12848. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12849. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12850. lt_cv_prog_compiler_c_o_CXX=yes
  12851. fi
  12852. fi
  12853. chmod u+w . 2>&5
  12854. $RM conftest*
  12855. # SGI C++ compiler will create directory out/ii_files/ for
  12856. # template instantiation
  12857. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12858. $RM out/* && rmdir out
  12859. cd ..
  12860. $RM -r conftest
  12861. $RM conftest*
  12862. fi
  12863. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12864. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12865. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12866. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12867. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12868. $as_echo_n "(cached) " >&6
  12869. else
  12870. lt_cv_prog_compiler_c_o_CXX=no
  12871. $RM -r conftest 2>/dev/null
  12872. mkdir conftest
  12873. cd conftest
  12874. mkdir out
  12875. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12876. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12877. # Insert the option either (1) after the last *FLAGS variable, or
  12878. # (2) before a word containing "conftest.", or (3) at the end.
  12879. # Note that $ac_compile itself does not contain backslashes and begins
  12880. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12881. lt_compile=`echo "$ac_compile" | $SED \
  12882. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12883. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12884. -e 's:$: $lt_compiler_flag:'`
  12885. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12886. (eval "$lt_compile" 2>out/conftest.err)
  12887. ac_status=$?
  12888. cat out/conftest.err >&5
  12889. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12890. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12891. then
  12892. # The compiler can only warn and ignore the option if not recognized
  12893. # So say no if there are warnings
  12894. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12895. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12896. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12897. lt_cv_prog_compiler_c_o_CXX=yes
  12898. fi
  12899. fi
  12900. chmod u+w . 2>&5
  12901. $RM conftest*
  12902. # SGI C++ compiler will create directory out/ii_files/ for
  12903. # template instantiation
  12904. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12905. $RM out/* && rmdir out
  12906. cd ..
  12907. $RM -r conftest
  12908. $RM conftest*
  12909. fi
  12910. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12911. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12912. hard_links="nottested"
  12913. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  12914. # do not overwrite the value of need_locks provided by the user
  12915. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  12916. $as_echo_n "checking if we can lock with hard links... " >&6; }
  12917. hard_links=yes
  12918. $RM conftest*
  12919. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12920. touch conftest.a
  12921. ln conftest.a conftest.b 2>&5 || hard_links=no
  12922. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12923. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  12924. $as_echo "$hard_links" >&6; }
  12925. if test "$hard_links" = no; then
  12926. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  12927. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  12928. need_locks=warn
  12929. fi
  12930. else
  12931. need_locks=no
  12932. fi
  12933. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12934. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12935. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12936. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  12937. case $host_os in
  12938. aix[4-9]*)
  12939. # If we're using GNU nm, then we don't want the "-C" option.
  12940. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  12941. # Also, AIX nm treats weak defined symbols like other global defined
  12942. # symbols, whereas GNU nm marks them as "W".
  12943. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  12944. export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  12945. else
  12946. 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'
  12947. fi
  12948. ;;
  12949. pw32*)
  12950. export_symbols_cmds_CXX="$ltdll_cmds"
  12951. ;;
  12952. cygwin* | mingw* | cegcc*)
  12953. case $cc_basename in
  12954. cl*)
  12955. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  12956. ;;
  12957. *)
  12958. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
  12959. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  12960. ;;
  12961. esac
  12962. ;;
  12963. *)
  12964. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12965. ;;
  12966. esac
  12967. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12968. $as_echo "$ld_shlibs_CXX" >&6; }
  12969. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12970. with_gnu_ld_CXX=$with_gnu_ld
  12971. #
  12972. # Do we need to explicitly link libc?
  12973. #
  12974. case "x$archive_cmds_need_lc_CXX" in
  12975. x|xyes)
  12976. # Assume -lc should be added
  12977. archive_cmds_need_lc_CXX=yes
  12978. if test "$enable_shared" = yes && test "$GCC" = yes; then
  12979. case $archive_cmds_CXX in
  12980. *'~'*)
  12981. # FIXME: we may have to deal with multi-command sequences.
  12982. ;;
  12983. '$CC '*)
  12984. # Test whether the compiler implicitly links with -lc since on some
  12985. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  12986. # to ld, don't add -lc before -lgcc.
  12987. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  12988. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  12989. if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  12990. $as_echo_n "(cached) " >&6
  12991. else
  12992. $RM conftest*
  12993. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12994. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12995. (eval $ac_compile) 2>&5
  12996. ac_status=$?
  12997. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12998. test $ac_status = 0; } 2>conftest.err; then
  12999. soname=conftest
  13000. lib=conftest
  13001. libobjs=conftest.$ac_objext
  13002. deplibs=
  13003. wl=$lt_prog_compiler_wl_CXX
  13004. pic_flag=$lt_prog_compiler_pic_CXX
  13005. compiler_flags=-v
  13006. linker_flags=-v
  13007. verstring=
  13008. output_objdir=.
  13009. libname=conftest
  13010. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  13011. allow_undefined_flag_CXX=
  13012. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  13013. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  13014. ac_status=$?
  13015. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13016. test $ac_status = 0; }
  13017. then
  13018. lt_cv_archive_cmds_need_lc_CXX=no
  13019. else
  13020. lt_cv_archive_cmds_need_lc_CXX=yes
  13021. fi
  13022. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  13023. else
  13024. cat conftest.err 1>&5
  13025. fi
  13026. $RM conftest*
  13027. fi
  13028. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  13029. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  13030. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  13031. ;;
  13032. esac
  13033. fi
  13034. ;;
  13035. esac
  13036. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  13037. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  13038. library_names_spec=
  13039. libname_spec='lib$name'
  13040. soname_spec=
  13041. shrext_cmds=".so"
  13042. postinstall_cmds=
  13043. postuninstall_cmds=
  13044. finish_cmds=
  13045. finish_eval=
  13046. shlibpath_var=
  13047. shlibpath_overrides_runpath=unknown
  13048. version_type=none
  13049. dynamic_linker="$host_os ld.so"
  13050. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  13051. need_lib_prefix=unknown
  13052. hardcode_into_libs=no
  13053. # when you set need_version to no, make sure it does not cause -set_version
  13054. # flags to be left without arguments
  13055. need_version=unknown
  13056. case $host_os in
  13057. aix3*)
  13058. version_type=linux # correct to gnu/linux during the next big refactor
  13059. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  13060. shlibpath_var=LIBPATH
  13061. # AIX 3 has no versioning support, so we append a major version to the name.
  13062. soname_spec='${libname}${release}${shared_ext}$major'
  13063. ;;
  13064. aix[4-9]*)
  13065. version_type=linux # correct to gnu/linux during the next big refactor
  13066. need_lib_prefix=no
  13067. need_version=no
  13068. hardcode_into_libs=yes
  13069. if test "$host_cpu" = ia64; then
  13070. # AIX 5 supports IA64
  13071. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  13072. shlibpath_var=LD_LIBRARY_PATH
  13073. else
  13074. # With GCC up to 2.95.x, collect2 would create an import file
  13075. # for dependence libraries. The import file would start with
  13076. # the line `#! .'. This would cause the generated library to
  13077. # depend on `.', always an invalid library. This was fixed in
  13078. # development snapshots of GCC prior to 3.0.
  13079. case $host_os in
  13080. aix4 | aix4.[01] | aix4.[01].*)
  13081. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  13082. echo ' yes '
  13083. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  13084. :
  13085. else
  13086. can_build_shared=no
  13087. fi
  13088. ;;
  13089. esac
  13090. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  13091. # soname into executable. Probably we can add versioning support to
  13092. # collect2, so additional links can be useful in future.
  13093. if test "$aix_use_runtimelinking" = yes; then
  13094. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  13095. # instead of lib<name>.a to let people know that these are not
  13096. # typical AIX shared libraries.
  13097. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13098. else
  13099. # We preserve .a as extension for shared libraries through AIX4.2
  13100. # and later when we are not doing run time linking.
  13101. library_names_spec='${libname}${release}.a $libname.a'
  13102. soname_spec='${libname}${release}${shared_ext}$major'
  13103. fi
  13104. shlibpath_var=LIBPATH
  13105. fi
  13106. ;;
  13107. amigaos*)
  13108. case $host_cpu in
  13109. powerpc)
  13110. # Since July 2007 AmigaOS4 officially supports .so libraries.
  13111. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  13112. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13113. ;;
  13114. m68k)
  13115. library_names_spec='$libname.ixlibrary $libname.a'
  13116. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  13117. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
  13118. ;;
  13119. esac
  13120. ;;
  13121. beos*)
  13122. library_names_spec='${libname}${shared_ext}'
  13123. dynamic_linker="$host_os ld.so"
  13124. shlibpath_var=LIBRARY_PATH
  13125. ;;
  13126. bsdi[45]*)
  13127. version_type=linux # correct to gnu/linux during the next big refactor
  13128. need_version=no
  13129. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13130. soname_spec='${libname}${release}${shared_ext}$major'
  13131. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  13132. shlibpath_var=LD_LIBRARY_PATH
  13133. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  13134. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  13135. # the default ld.so.conf also contains /usr/contrib/lib and
  13136. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  13137. # libtool to hard-code these into programs
  13138. ;;
  13139. cygwin* | mingw* | pw32* | cegcc*)
  13140. version_type=windows
  13141. shrext_cmds=".dll"
  13142. need_version=no
  13143. need_lib_prefix=no
  13144. case $GCC,$cc_basename in
  13145. yes,*)
  13146. # gcc
  13147. library_names_spec='$libname.dll.a'
  13148. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  13149. postinstall_cmds='base_file=`basename \${file}`~
  13150. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  13151. dldir=$destdir/`dirname \$dlpath`~
  13152. test -d \$dldir || mkdir -p \$dldir~
  13153. $install_prog $dir/$dlname \$dldir/$dlname~
  13154. chmod a+x \$dldir/$dlname~
  13155. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  13156. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  13157. fi'
  13158. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  13159. dlpath=$dir/\$dldll~
  13160. $RM \$dlpath'
  13161. shlibpath_overrides_runpath=yes
  13162. case $host_os in
  13163. cygwin*)
  13164. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  13165. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13166. ;;
  13167. mingw* | cegcc*)
  13168. # MinGW DLLs use traditional 'lib' prefix
  13169. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13170. ;;
  13171. pw32*)
  13172. # pw32 DLLs use 'pw' prefix rather than 'lib'
  13173. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13174. ;;
  13175. esac
  13176. dynamic_linker='Win32 ld.exe'
  13177. ;;
  13178. *,cl*)
  13179. # Native MSVC
  13180. libname_spec='$name'
  13181. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13182. library_names_spec='${libname}.dll.lib'
  13183. case $build_os in
  13184. mingw*)
  13185. sys_lib_search_path_spec=
  13186. lt_save_ifs=$IFS
  13187. IFS=';'
  13188. for lt_path in $LIB
  13189. do
  13190. IFS=$lt_save_ifs
  13191. # Let DOS variable expansion print the short 8.3 style file name.
  13192. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  13193. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  13194. done
  13195. IFS=$lt_save_ifs
  13196. # Convert to MSYS style.
  13197. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  13198. ;;
  13199. cygwin*)
  13200. # Convert to unix form, then to dos form, then back to unix form
  13201. # but this time dos style (no spaces!) so that the unix form looks
  13202. # like /cygdrive/c/PROGRA~1:/cygdr...
  13203. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  13204. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  13205. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13206. ;;
  13207. *)
  13208. sys_lib_search_path_spec="$LIB"
  13209. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  13210. # It is most probably a Windows format PATH.
  13211. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  13212. else
  13213. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13214. fi
  13215. # FIXME: find the short name or the path components, as spaces are
  13216. # common. (e.g. "Program Files" -> "PROGRA~1")
  13217. ;;
  13218. esac
  13219. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  13220. postinstall_cmds='base_file=`basename \${file}`~
  13221. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  13222. dldir=$destdir/`dirname \$dlpath`~
  13223. test -d \$dldir || mkdir -p \$dldir~
  13224. $install_prog $dir/$dlname \$dldir/$dlname'
  13225. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  13226. dlpath=$dir/\$dldll~
  13227. $RM \$dlpath'
  13228. shlibpath_overrides_runpath=yes
  13229. dynamic_linker='Win32 link.exe'
  13230. ;;
  13231. *)
  13232. # Assume MSVC wrapper
  13233. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  13234. dynamic_linker='Win32 ld.exe'
  13235. ;;
  13236. esac
  13237. # FIXME: first we should search . and the directory the executable is in
  13238. shlibpath_var=PATH
  13239. ;;
  13240. darwin* | rhapsody*)
  13241. dynamic_linker="$host_os dyld"
  13242. version_type=darwin
  13243. need_lib_prefix=no
  13244. need_version=no
  13245. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  13246. soname_spec='${libname}${release}${major}$shared_ext'
  13247. shlibpath_overrides_runpath=yes
  13248. shlibpath_var=DYLD_LIBRARY_PATH
  13249. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  13250. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  13251. ;;
  13252. dgux*)
  13253. version_type=linux # correct to gnu/linux during the next big refactor
  13254. need_lib_prefix=no
  13255. need_version=no
  13256. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  13257. soname_spec='${libname}${release}${shared_ext}$major'
  13258. shlibpath_var=LD_LIBRARY_PATH
  13259. ;;
  13260. freebsd* | dragonfly*)
  13261. # DragonFly does not have aout. When/if they implement a new
  13262. # versioning mechanism, adjust this.
  13263. if test -x /usr/bin/objformat; then
  13264. objformat=`/usr/bin/objformat`
  13265. else
  13266. case $host_os in
  13267. freebsd[23].*) objformat=aout ;;
  13268. *) objformat=elf ;;
  13269. esac
  13270. fi
  13271. version_type=freebsd-$objformat
  13272. case $version_type in
  13273. freebsd-elf*)
  13274. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13275. need_version=no
  13276. need_lib_prefix=no
  13277. ;;
  13278. freebsd-*)
  13279. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  13280. need_version=yes
  13281. ;;
  13282. esac
  13283. shlibpath_var=LD_LIBRARY_PATH
  13284. case $host_os in
  13285. freebsd2.*)
  13286. shlibpath_overrides_runpath=yes
  13287. ;;
  13288. freebsd3.[01]* | freebsdelf3.[01]*)
  13289. shlibpath_overrides_runpath=yes
  13290. hardcode_into_libs=yes
  13291. ;;
  13292. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  13293. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  13294. shlibpath_overrides_runpath=no
  13295. hardcode_into_libs=yes
  13296. ;;
  13297. *) # from 4.6 on, and DragonFly
  13298. shlibpath_overrides_runpath=yes
  13299. hardcode_into_libs=yes
  13300. ;;
  13301. esac
  13302. ;;
  13303. gnu*)
  13304. version_type=linux # correct to gnu/linux during the next big refactor
  13305. need_lib_prefix=no
  13306. need_version=no
  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. shlibpath_var=LD_LIBRARY_PATH
  13310. shlibpath_overrides_runpath=no
  13311. hardcode_into_libs=yes
  13312. ;;
  13313. haiku*)
  13314. version_type=linux # correct to gnu/linux during the next big refactor
  13315. need_lib_prefix=no
  13316. need_version=no
  13317. dynamic_linker="$host_os runtime_loader"
  13318. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  13319. soname_spec='${libname}${release}${shared_ext}$major'
  13320. shlibpath_var=LIBRARY_PATH
  13321. shlibpath_overrides_runpath=yes
  13322. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  13323. hardcode_into_libs=yes
  13324. ;;
  13325. hpux9* | hpux10* | hpux11*)
  13326. # Give a soname corresponding to the major version so that dld.sl refuses to
  13327. # link against other versions.
  13328. version_type=sunos
  13329. need_lib_prefix=no
  13330. need_version=no
  13331. case $host_cpu in
  13332. ia64*)
  13333. shrext_cmds='.so'
  13334. hardcode_into_libs=yes
  13335. dynamic_linker="$host_os dld.so"
  13336. shlibpath_var=LD_LIBRARY_PATH
  13337. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13338. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13339. soname_spec='${libname}${release}${shared_ext}$major'
  13340. if test "X$HPUX_IA64_MODE" = X32; then
  13341. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  13342. else
  13343. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  13344. fi
  13345. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13346. ;;
  13347. hppa*64*)
  13348. shrext_cmds='.sl'
  13349. hardcode_into_libs=yes
  13350. dynamic_linker="$host_os dld.sl"
  13351. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  13352. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13353. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13354. soname_spec='${libname}${release}${shared_ext}$major'
  13355. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  13356. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13357. ;;
  13358. *)
  13359. shrext_cmds='.sl'
  13360. dynamic_linker="$host_os dld.sl"
  13361. shlibpath_var=SHLIB_PATH
  13362. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  13363. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13364. soname_spec='${libname}${release}${shared_ext}$major'
  13365. ;;
  13366. esac
  13367. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  13368. postinstall_cmds='chmod 555 $lib'
  13369. # or fails outright, so override atomically:
  13370. install_override_mode=555
  13371. ;;
  13372. interix[3-9]*)
  13373. version_type=linux # correct to gnu/linux during the next big refactor
  13374. need_lib_prefix=no
  13375. need_version=no
  13376. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13377. soname_spec='${libname}${release}${shared_ext}$major'
  13378. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  13379. shlibpath_var=LD_LIBRARY_PATH
  13380. shlibpath_overrides_runpath=no
  13381. hardcode_into_libs=yes
  13382. ;;
  13383. irix5* | irix6* | nonstopux*)
  13384. case $host_os in
  13385. nonstopux*) version_type=nonstopux ;;
  13386. *)
  13387. if test "$lt_cv_prog_gnu_ld" = yes; then
  13388. version_type=linux # correct to gnu/linux during the next big refactor
  13389. else
  13390. version_type=irix
  13391. fi ;;
  13392. esac
  13393. need_lib_prefix=no
  13394. need_version=no
  13395. soname_spec='${libname}${release}${shared_ext}$major'
  13396. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  13397. case $host_os in
  13398. irix5* | nonstopux*)
  13399. libsuff= shlibsuff=
  13400. ;;
  13401. *)
  13402. case $LD in # libtool.m4 will add one of these switches to LD
  13403. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  13404. libsuff= shlibsuff= libmagic=32-bit;;
  13405. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  13406. libsuff=32 shlibsuff=N32 libmagic=N32;;
  13407. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  13408. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  13409. *) libsuff= shlibsuff= libmagic=never-match;;
  13410. esac
  13411. ;;
  13412. esac
  13413. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  13414. shlibpath_overrides_runpath=no
  13415. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  13416. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  13417. hardcode_into_libs=yes
  13418. ;;
  13419. # No shared lib support for Linux oldld, aout, or coff.
  13420. linux*oldld* | linux*aout* | linux*coff*)
  13421. dynamic_linker=no
  13422. ;;
  13423. # This must be glibc/ELF.
  13424. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  13425. version_type=linux # correct to gnu/linux during the next big refactor
  13426. need_lib_prefix=no
  13427. need_version=no
  13428. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13429. soname_spec='${libname}${release}${shared_ext}$major'
  13430. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  13431. shlibpath_var=LD_LIBRARY_PATH
  13432. shlibpath_overrides_runpath=no
  13433. # Some binutils ld are patched to set DT_RUNPATH
  13434. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  13435. $as_echo_n "(cached) " >&6
  13436. else
  13437. lt_cv_shlibpath_overrides_runpath=no
  13438. save_LDFLAGS=$LDFLAGS
  13439. save_libdir=$libdir
  13440. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  13441. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  13442. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13443. /* end confdefs.h. */
  13444. int
  13445. main ()
  13446. {
  13447. ;
  13448. return 0;
  13449. }
  13450. _ACEOF
  13451. if ac_fn_cxx_try_link "$LINENO"; then :
  13452. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  13453. lt_cv_shlibpath_overrides_runpath=yes
  13454. fi
  13455. fi
  13456. rm -f core conftest.err conftest.$ac_objext \
  13457. conftest$ac_exeext conftest.$ac_ext
  13458. LDFLAGS=$save_LDFLAGS
  13459. libdir=$save_libdir
  13460. fi
  13461. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  13462. # This implies no fast_install, which is unacceptable.
  13463. # Some rework will be needed to allow for fast_install
  13464. # before this can be enabled.
  13465. hardcode_into_libs=yes
  13466. # Add ABI-specific directories to the system library path.
  13467. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  13468. # Append ld.so.conf contents to the search path
  13469. if test -f /etc/ld.so.conf; then
  13470. 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;s/"//g;/^$/d' | tr '\n' ' '`
  13471. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  13472. fi
  13473. # We used to test for /lib/ld.so.1 and disable shared libraries on
  13474. # powerpc, because MkLinux only supported shared libraries with the
  13475. # GNU dynamic linker. Since this was broken with cross compilers,
  13476. # most powerpc-linux boxes support dynamic linking these days and
  13477. # people can always --disable-shared, the test was removed, and we
  13478. # assume the GNU/Linux dynamic linker is in use.
  13479. dynamic_linker='GNU/Linux ld.so'
  13480. ;;
  13481. netbsd*)
  13482. version_type=sunos
  13483. need_lib_prefix=no
  13484. need_version=no
  13485. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13486. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13487. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13488. dynamic_linker='NetBSD (a.out) ld.so'
  13489. else
  13490. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13491. soname_spec='${libname}${release}${shared_ext}$major'
  13492. dynamic_linker='NetBSD ld.elf_so'
  13493. fi
  13494. shlibpath_var=LD_LIBRARY_PATH
  13495. shlibpath_overrides_runpath=yes
  13496. hardcode_into_libs=yes
  13497. ;;
  13498. newsos6)
  13499. version_type=linux # correct to gnu/linux during the next big refactor
  13500. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13501. shlibpath_var=LD_LIBRARY_PATH
  13502. shlibpath_overrides_runpath=yes
  13503. ;;
  13504. *nto* | *qnx*)
  13505. version_type=qnx
  13506. need_lib_prefix=no
  13507. need_version=no
  13508. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13509. soname_spec='${libname}${release}${shared_ext}$major'
  13510. shlibpath_var=LD_LIBRARY_PATH
  13511. shlibpath_overrides_runpath=no
  13512. hardcode_into_libs=yes
  13513. dynamic_linker='ldqnx.so'
  13514. ;;
  13515. openbsd*)
  13516. version_type=sunos
  13517. sys_lib_dlsearch_path_spec="/usr/lib"
  13518. need_lib_prefix=no
  13519. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  13520. case $host_os in
  13521. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  13522. *) need_version=no ;;
  13523. esac
  13524. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13525. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13526. shlibpath_var=LD_LIBRARY_PATH
  13527. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  13528. case $host_os in
  13529. openbsd2.[89] | openbsd2.[89].*)
  13530. shlibpath_overrides_runpath=no
  13531. ;;
  13532. *)
  13533. shlibpath_overrides_runpath=yes
  13534. ;;
  13535. esac
  13536. else
  13537. shlibpath_overrides_runpath=yes
  13538. fi
  13539. ;;
  13540. os2*)
  13541. libname_spec='$name'
  13542. shrext_cmds=".dll"
  13543. need_lib_prefix=no
  13544. library_names_spec='$libname${shared_ext} $libname.a'
  13545. dynamic_linker='OS/2 ld.exe'
  13546. shlibpath_var=LIBPATH
  13547. ;;
  13548. osf3* | osf4* | osf5*)
  13549. version_type=osf
  13550. need_lib_prefix=no
  13551. need_version=no
  13552. soname_spec='${libname}${release}${shared_ext}$major'
  13553. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13554. shlibpath_var=LD_LIBRARY_PATH
  13555. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  13556. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  13557. ;;
  13558. rdos*)
  13559. dynamic_linker=no
  13560. ;;
  13561. solaris*)
  13562. version_type=linux # correct to gnu/linux during the next big refactor
  13563. need_lib_prefix=no
  13564. need_version=no
  13565. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13566. soname_spec='${libname}${release}${shared_ext}$major'
  13567. shlibpath_var=LD_LIBRARY_PATH
  13568. shlibpath_overrides_runpath=yes
  13569. hardcode_into_libs=yes
  13570. # ldd complains unless libraries are executable
  13571. postinstall_cmds='chmod +x $lib'
  13572. ;;
  13573. sunos4*)
  13574. version_type=sunos
  13575. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13576. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  13577. shlibpath_var=LD_LIBRARY_PATH
  13578. shlibpath_overrides_runpath=yes
  13579. if test "$with_gnu_ld" = yes; then
  13580. need_lib_prefix=no
  13581. fi
  13582. need_version=yes
  13583. ;;
  13584. sysv4 | sysv4.3*)
  13585. version_type=linux # correct to gnu/linux during the next big refactor
  13586. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13587. soname_spec='${libname}${release}${shared_ext}$major'
  13588. shlibpath_var=LD_LIBRARY_PATH
  13589. case $host_vendor in
  13590. sni)
  13591. shlibpath_overrides_runpath=no
  13592. need_lib_prefix=no
  13593. runpath_var=LD_RUN_PATH
  13594. ;;
  13595. siemens)
  13596. need_lib_prefix=no
  13597. ;;
  13598. motorola)
  13599. need_lib_prefix=no
  13600. need_version=no
  13601. shlibpath_overrides_runpath=no
  13602. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  13603. ;;
  13604. esac
  13605. ;;
  13606. sysv4*MP*)
  13607. if test -d /usr/nec ;then
  13608. version_type=linux # correct to gnu/linux during the next big refactor
  13609. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  13610. soname_spec='$libname${shared_ext}.$major'
  13611. shlibpath_var=LD_LIBRARY_PATH
  13612. fi
  13613. ;;
  13614. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  13615. version_type=freebsd-elf
  13616. need_lib_prefix=no
  13617. need_version=no
  13618. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13619. soname_spec='${libname}${release}${shared_ext}$major'
  13620. shlibpath_var=LD_LIBRARY_PATH
  13621. shlibpath_overrides_runpath=yes
  13622. hardcode_into_libs=yes
  13623. if test "$with_gnu_ld" = yes; then
  13624. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  13625. else
  13626. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  13627. case $host_os in
  13628. sco3.2v5*)
  13629. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  13630. ;;
  13631. esac
  13632. fi
  13633. sys_lib_dlsearch_path_spec='/usr/lib'
  13634. ;;
  13635. tpf*)
  13636. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  13637. version_type=linux # correct to gnu/linux during the next big refactor
  13638. need_lib_prefix=no
  13639. need_version=no
  13640. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13641. shlibpath_var=LD_LIBRARY_PATH
  13642. shlibpath_overrides_runpath=no
  13643. hardcode_into_libs=yes
  13644. ;;
  13645. uts4*)
  13646. version_type=linux # correct to gnu/linux during the next big refactor
  13647. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13648. soname_spec='${libname}${release}${shared_ext}$major'
  13649. shlibpath_var=LD_LIBRARY_PATH
  13650. ;;
  13651. *)
  13652. dynamic_linker=no
  13653. ;;
  13654. esac
  13655. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  13656. $as_echo "$dynamic_linker" >&6; }
  13657. test "$dynamic_linker" = no && can_build_shared=no
  13658. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  13659. if test "$GCC" = yes; then
  13660. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  13661. fi
  13662. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  13663. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  13664. fi
  13665. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  13666. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  13667. fi
  13668. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  13669. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  13670. hardcode_action_CXX=
  13671. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  13672. test -n "$runpath_var_CXX" ||
  13673. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  13674. # We can hardcode non-existent directories.
  13675. if test "$hardcode_direct_CXX" != no &&
  13676. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  13677. # have to relink, otherwise we might link with an installed library
  13678. # when we should be linking with a yet-to-be-installed one
  13679. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  13680. test "$hardcode_minus_L_CXX" != no; then
  13681. # Linking always hardcodes the temporary library directory.
  13682. hardcode_action_CXX=relink
  13683. else
  13684. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  13685. hardcode_action_CXX=immediate
  13686. fi
  13687. else
  13688. # We cannot hardcode anything, or else we can only hardcode existing
  13689. # directories.
  13690. hardcode_action_CXX=unsupported
  13691. fi
  13692. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  13693. $as_echo "$hardcode_action_CXX" >&6; }
  13694. if test "$hardcode_action_CXX" = relink ||
  13695. test "$inherit_rpath_CXX" = yes; then
  13696. # Fast installation is not supported
  13697. enable_fast_install=no
  13698. elif test "$shlibpath_overrides_runpath" = yes ||
  13699. test "$enable_shared" = no; then
  13700. # Fast installation is not necessary
  13701. enable_fast_install=needless
  13702. fi
  13703. fi # test -n "$compiler"
  13704. CC=$lt_save_CC
  13705. CFLAGS=$lt_save_CFLAGS
  13706. LDCXX=$LD
  13707. LD=$lt_save_LD
  13708. GCC=$lt_save_GCC
  13709. with_gnu_ld=$lt_save_with_gnu_ld
  13710. lt_cv_path_LDCXX=$lt_cv_path_LD
  13711. lt_cv_path_LD=$lt_save_path_LD
  13712. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  13713. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  13714. fi # test "$_lt_caught_CXX_error" != yes
  13715. ac_ext=c
  13716. ac_cpp='$CPP $CPPFLAGS'
  13717. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13718. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13719. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13720. ac_config_commands="$ac_config_commands libtool"
  13721. # Only expand once:
  13722. # Checks for header files.
  13723. ac_header_dirent=no
  13724. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  13725. as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  13726. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
  13727. $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
  13728. if eval \${$as_ac_Header+:} false; then :
  13729. $as_echo_n "(cached) " >&6
  13730. else
  13731. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13732. /* end confdefs.h. */
  13733. #include <sys/types.h>
  13734. #include <$ac_hdr>
  13735. int
  13736. main ()
  13737. {
  13738. if ((DIR *) 0)
  13739. return 0;
  13740. ;
  13741. return 0;
  13742. }
  13743. _ACEOF
  13744. if ac_fn_c_try_compile "$LINENO"; then :
  13745. eval "$as_ac_Header=yes"
  13746. else
  13747. eval "$as_ac_Header=no"
  13748. fi
  13749. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13750. fi
  13751. eval ac_res=\$$as_ac_Header
  13752. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  13753. $as_echo "$ac_res" >&6; }
  13754. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  13755. cat >>confdefs.h <<_ACEOF
  13756. #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  13757. _ACEOF
  13758. ac_header_dirent=$ac_hdr; break
  13759. fi
  13760. done
  13761. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  13762. if test $ac_header_dirent = dirent.h; then
  13763. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
  13764. $as_echo_n "checking for library containing opendir... " >&6; }
  13765. if ${ac_cv_search_opendir+:} false; then :
  13766. $as_echo_n "(cached) " >&6
  13767. else
  13768. ac_func_search_save_LIBS=$LIBS
  13769. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13770. /* end confdefs.h. */
  13771. /* Override any GCC internal prototype to avoid an error.
  13772. Use char because int might match the return type of a GCC
  13773. builtin and then its argument prototype would still apply. */
  13774. #ifdef __cplusplus
  13775. extern "C"
  13776. #endif
  13777. char opendir ();
  13778. int
  13779. main ()
  13780. {
  13781. return opendir ();
  13782. ;
  13783. return 0;
  13784. }
  13785. _ACEOF
  13786. for ac_lib in '' dir; do
  13787. if test -z "$ac_lib"; then
  13788. ac_res="none required"
  13789. else
  13790. ac_res=-l$ac_lib
  13791. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  13792. fi
  13793. if ac_fn_c_try_link "$LINENO"; then :
  13794. ac_cv_search_opendir=$ac_res
  13795. fi
  13796. rm -f core conftest.err conftest.$ac_objext \
  13797. conftest$ac_exeext
  13798. if ${ac_cv_search_opendir+:} false; then :
  13799. break
  13800. fi
  13801. done
  13802. if ${ac_cv_search_opendir+:} false; then :
  13803. else
  13804. ac_cv_search_opendir=no
  13805. fi
  13806. rm conftest.$ac_ext
  13807. LIBS=$ac_func_search_save_LIBS
  13808. fi
  13809. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
  13810. $as_echo "$ac_cv_search_opendir" >&6; }
  13811. ac_res=$ac_cv_search_opendir
  13812. if test "$ac_res" != no; then :
  13813. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  13814. fi
  13815. else
  13816. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
  13817. $as_echo_n "checking for library containing opendir... " >&6; }
  13818. if ${ac_cv_search_opendir+:} false; then :
  13819. $as_echo_n "(cached) " >&6
  13820. else
  13821. ac_func_search_save_LIBS=$LIBS
  13822. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13823. /* end confdefs.h. */
  13824. /* Override any GCC internal prototype to avoid an error.
  13825. Use char because int might match the return type of a GCC
  13826. builtin and then its argument prototype would still apply. */
  13827. #ifdef __cplusplus
  13828. extern "C"
  13829. #endif
  13830. char opendir ();
  13831. int
  13832. main ()
  13833. {
  13834. return opendir ();
  13835. ;
  13836. return 0;
  13837. }
  13838. _ACEOF
  13839. for ac_lib in '' x; do
  13840. if test -z "$ac_lib"; then
  13841. ac_res="none required"
  13842. else
  13843. ac_res=-l$ac_lib
  13844. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  13845. fi
  13846. if ac_fn_c_try_link "$LINENO"; then :
  13847. ac_cv_search_opendir=$ac_res
  13848. fi
  13849. rm -f core conftest.err conftest.$ac_objext \
  13850. conftest$ac_exeext
  13851. if ${ac_cv_search_opendir+:} false; then :
  13852. break
  13853. fi
  13854. done
  13855. if ${ac_cv_search_opendir+:} false; then :
  13856. else
  13857. ac_cv_search_opendir=no
  13858. fi
  13859. rm conftest.$ac_ext
  13860. LIBS=$ac_func_search_save_LIBS
  13861. fi
  13862. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
  13863. $as_echo "$ac_cv_search_opendir" >&6; }
  13864. ac_res=$ac_cv_search_opendir
  13865. if test "$ac_res" != no; then :
  13866. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  13867. fi
  13868. fi
  13869. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  13870. $as_echo_n "checking for ANSI C header files... " >&6; }
  13871. if ${ac_cv_header_stdc+:} false; then :
  13872. $as_echo_n "(cached) " >&6
  13873. else
  13874. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13875. /* end confdefs.h. */
  13876. #include <stdlib.h>
  13877. #include <stdarg.h>
  13878. #include <string.h>
  13879. #include <float.h>
  13880. int
  13881. main ()
  13882. {
  13883. ;
  13884. return 0;
  13885. }
  13886. _ACEOF
  13887. if ac_fn_c_try_compile "$LINENO"; then :
  13888. ac_cv_header_stdc=yes
  13889. else
  13890. ac_cv_header_stdc=no
  13891. fi
  13892. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13893. if test $ac_cv_header_stdc = yes; then
  13894. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  13895. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13896. /* end confdefs.h. */
  13897. #include <string.h>
  13898. _ACEOF
  13899. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13900. $EGREP "memchr" >/dev/null 2>&1; then :
  13901. else
  13902. ac_cv_header_stdc=no
  13903. fi
  13904. rm -f conftest*
  13905. fi
  13906. if test $ac_cv_header_stdc = yes; then
  13907. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  13908. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13909. /* end confdefs.h. */
  13910. #include <stdlib.h>
  13911. _ACEOF
  13912. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13913. $EGREP "free" >/dev/null 2>&1; then :
  13914. else
  13915. ac_cv_header_stdc=no
  13916. fi
  13917. rm -f conftest*
  13918. fi
  13919. if test $ac_cv_header_stdc = yes; then
  13920. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  13921. if test "$cross_compiling" = yes; then :
  13922. :
  13923. else
  13924. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13925. /* end confdefs.h. */
  13926. #include <ctype.h>
  13927. #include <stdlib.h>
  13928. #if ((' ' & 0x0FF) == 0x020)
  13929. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  13930. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  13931. #else
  13932. # define ISLOWER(c) \
  13933. (('a' <= (c) && (c) <= 'i') \
  13934. || ('j' <= (c) && (c) <= 'r') \
  13935. || ('s' <= (c) && (c) <= 'z'))
  13936. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  13937. #endif
  13938. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  13939. int
  13940. main ()
  13941. {
  13942. int i;
  13943. for (i = 0; i < 256; i++)
  13944. if (XOR (islower (i), ISLOWER (i))
  13945. || toupper (i) != TOUPPER (i))
  13946. return 2;
  13947. return 0;
  13948. }
  13949. _ACEOF
  13950. if ac_fn_c_try_run "$LINENO"; then :
  13951. else
  13952. ac_cv_header_stdc=no
  13953. fi
  13954. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13955. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13956. fi
  13957. fi
  13958. fi
  13959. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  13960. $as_echo "$ac_cv_header_stdc" >&6; }
  13961. if test $ac_cv_header_stdc = yes; then
  13962. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  13963. fi
  13964. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
  13965. $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
  13966. if ${ac_cv_header_sys_wait_h+:} false; then :
  13967. $as_echo_n "(cached) " >&6
  13968. else
  13969. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13970. /* end confdefs.h. */
  13971. #include <sys/types.h>
  13972. #include <sys/wait.h>
  13973. #ifndef WEXITSTATUS
  13974. # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
  13975. #endif
  13976. #ifndef WIFEXITED
  13977. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  13978. #endif
  13979. int
  13980. main ()
  13981. {
  13982. int s;
  13983. wait (&s);
  13984. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  13985. ;
  13986. return 0;
  13987. }
  13988. _ACEOF
  13989. if ac_fn_c_try_compile "$LINENO"; then :
  13990. ac_cv_header_sys_wait_h=yes
  13991. else
  13992. ac_cv_header_sys_wait_h=no
  13993. fi
  13994. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13995. fi
  13996. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
  13997. $as_echo "$ac_cv_header_sys_wait_h" >&6; }
  13998. if test $ac_cv_header_sys_wait_h = yes; then
  13999. $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
  14000. fi
  14001. 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 mntent.h
  14002. do :
  14003. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  14004. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  14005. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  14006. cat >>confdefs.h <<_ACEOF
  14007. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  14008. _ACEOF
  14009. fi
  14010. done
  14011. # Checks for typedefs, structures, and compiler characteristics.
  14012. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
  14013. $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
  14014. if ${ac_cv_header_stat_broken+:} false; then :
  14015. $as_echo_n "(cached) " >&6
  14016. else
  14017. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14018. /* end confdefs.h. */
  14019. #include <sys/types.h>
  14020. #include <sys/stat.h>
  14021. #if defined S_ISBLK && defined S_IFDIR
  14022. extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
  14023. #endif
  14024. #if defined S_ISBLK && defined S_IFCHR
  14025. extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
  14026. #endif
  14027. #if defined S_ISLNK && defined S_IFREG
  14028. extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
  14029. #endif
  14030. #if defined S_ISSOCK && defined S_IFREG
  14031. extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
  14032. #endif
  14033. _ACEOF
  14034. if ac_fn_c_try_compile "$LINENO"; then :
  14035. ac_cv_header_stat_broken=no
  14036. else
  14037. ac_cv_header_stat_broken=yes
  14038. fi
  14039. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14040. fi
  14041. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
  14042. $as_echo "$ac_cv_header_stat_broken" >&6; }
  14043. if test $ac_cv_header_stat_broken = yes; then
  14044. $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
  14045. fi
  14046. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  14047. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  14048. if ${ac_cv_c_const+:} false; then :
  14049. $as_echo_n "(cached) " >&6
  14050. else
  14051. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14052. /* end confdefs.h. */
  14053. int
  14054. main ()
  14055. {
  14056. #ifndef __cplusplus
  14057. /* Ultrix mips cc rejects this sort of thing. */
  14058. typedef int charset[2];
  14059. const charset cs = { 0, 0 };
  14060. /* SunOS 4.1.1 cc rejects this. */
  14061. char const *const *pcpcc;
  14062. char **ppc;
  14063. /* NEC SVR4.0.2 mips cc rejects this. */
  14064. struct point {int x, y;};
  14065. static struct point const zero = {0,0};
  14066. /* AIX XL C 1.02.0.0 rejects this.
  14067. It does not let you subtract one const X* pointer from another in
  14068. an arm of an if-expression whose if-part is not a constant
  14069. expression */
  14070. const char *g = "string";
  14071. pcpcc = &g + (g ? g-g : 0);
  14072. /* HPUX 7.0 cc rejects these. */
  14073. ++pcpcc;
  14074. ppc = (char**) pcpcc;
  14075. pcpcc = (char const *const *) ppc;
  14076. { /* SCO 3.2v4 cc rejects this sort of thing. */
  14077. char tx;
  14078. char *t = &tx;
  14079. char const *s = 0 ? (char *) 0 : (char const *) 0;
  14080. *t++ = 0;
  14081. if (s) return 0;
  14082. }
  14083. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  14084. int x[] = {25, 17};
  14085. const int *foo = &x[0];
  14086. ++foo;
  14087. }
  14088. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  14089. typedef const int *iptr;
  14090. iptr p = 0;
  14091. ++p;
  14092. }
  14093. { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
  14094. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  14095. struct s { int j; const int *ap[3]; } bx;
  14096. struct s *b = &bx; b->j = 5;
  14097. }
  14098. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  14099. const int foo = 10;
  14100. if (!foo) return 0;
  14101. }
  14102. return !cs[0] && !zero.x;
  14103. #endif
  14104. ;
  14105. return 0;
  14106. }
  14107. _ACEOF
  14108. if ac_fn_c_try_compile "$LINENO"; then :
  14109. ac_cv_c_const=yes
  14110. else
  14111. ac_cv_c_const=no
  14112. fi
  14113. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14114. fi
  14115. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  14116. $as_echo "$ac_cv_c_const" >&6; }
  14117. if test $ac_cv_c_const = no; then
  14118. $as_echo "#define const /**/" >>confdefs.h
  14119. fi
  14120. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
  14121. $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
  14122. if ${ac_cv_header_stdbool_h+:} false; then :
  14123. $as_echo_n "(cached) " >&6
  14124. else
  14125. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14126. /* end confdefs.h. */
  14127. #include <stdbool.h>
  14128. #ifndef bool
  14129. "error: bool is not defined"
  14130. #endif
  14131. #ifndef false
  14132. "error: false is not defined"
  14133. #endif
  14134. #if false
  14135. "error: false is not 0"
  14136. #endif
  14137. #ifndef true
  14138. "error: true is not defined"
  14139. #endif
  14140. #if true != 1
  14141. "error: true is not 1"
  14142. #endif
  14143. #ifndef __bool_true_false_are_defined
  14144. "error: __bool_true_false_are_defined is not defined"
  14145. #endif
  14146. struct s { _Bool s: 1; _Bool t; } s;
  14147. char a[true == 1 ? 1 : -1];
  14148. char b[false == 0 ? 1 : -1];
  14149. char c[__bool_true_false_are_defined == 1 ? 1 : -1];
  14150. char d[(bool) 0.5 == true ? 1 : -1];
  14151. /* See body of main program for 'e'. */
  14152. char f[(_Bool) 0.0 == false ? 1 : -1];
  14153. char g[true];
  14154. char h[sizeof (_Bool)];
  14155. char i[sizeof s.t];
  14156. enum { j = false, k = true, l = false * true, m = true * 256 };
  14157. /* The following fails for
  14158. HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
  14159. _Bool n[m];
  14160. char o[sizeof n == m * sizeof n[0] ? 1 : -1];
  14161. char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
  14162. /* Catch a bug in an HP-UX C compiler. See
  14163. http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
  14164. http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
  14165. */
  14166. _Bool q = true;
  14167. _Bool *pq = &q;
  14168. int
  14169. main ()
  14170. {
  14171. bool e = &s;
  14172. *pq |= q;
  14173. *pq |= ! q;
  14174. /* Refer to every declared value, to avoid compiler optimizations. */
  14175. return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
  14176. + !m + !n + !o + !p + !q + !pq);
  14177. ;
  14178. return 0;
  14179. }
  14180. _ACEOF
  14181. if ac_fn_c_try_compile "$LINENO"; then :
  14182. ac_cv_header_stdbool_h=yes
  14183. else
  14184. ac_cv_header_stdbool_h=no
  14185. fi
  14186. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14187. fi
  14188. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
  14189. $as_echo "$ac_cv_header_stdbool_h" >&6; }
  14190. ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
  14191. if test "x$ac_cv_type__Bool" = xyes; then :
  14192. cat >>confdefs.h <<_ACEOF
  14193. #define HAVE__BOOL 1
  14194. _ACEOF
  14195. fi
  14196. if test $ac_cv_header_stdbool_h = yes; then
  14197. $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
  14198. fi
  14199. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
  14200. $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
  14201. if ${ac_cv_type_uid_t+:} false; then :
  14202. $as_echo_n "(cached) " >&6
  14203. else
  14204. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14205. /* end confdefs.h. */
  14206. #include <sys/types.h>
  14207. _ACEOF
  14208. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14209. $EGREP "uid_t" >/dev/null 2>&1; then :
  14210. ac_cv_type_uid_t=yes
  14211. else
  14212. ac_cv_type_uid_t=no
  14213. fi
  14214. rm -f conftest*
  14215. fi
  14216. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
  14217. $as_echo "$ac_cv_type_uid_t" >&6; }
  14218. if test $ac_cv_type_uid_t = no; then
  14219. $as_echo "#define uid_t int" >>confdefs.h
  14220. $as_echo "#define gid_t int" >>confdefs.h
  14221. fi
  14222. ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
  14223. if test "x$ac_cv_type_pid_t" = xyes; then :
  14224. else
  14225. cat >>confdefs.h <<_ACEOF
  14226. #define pid_t int
  14227. _ACEOF
  14228. fi
  14229. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  14230. if test "x$ac_cv_type_size_t" = xyes; then :
  14231. else
  14232. cat >>confdefs.h <<_ACEOF
  14233. #define size_t unsigned int
  14234. _ACEOF
  14235. fi
  14236. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
  14237. $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
  14238. if ${ac_cv_header_time+:} false; then :
  14239. $as_echo_n "(cached) " >&6
  14240. else
  14241. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14242. /* end confdefs.h. */
  14243. #include <sys/types.h>
  14244. #include <sys/time.h>
  14245. #include <time.h>
  14246. int
  14247. main ()
  14248. {
  14249. if ((struct tm *) 0)
  14250. return 0;
  14251. ;
  14252. return 0;
  14253. }
  14254. _ACEOF
  14255. if ac_fn_c_try_compile "$LINENO"; then :
  14256. ac_cv_header_time=yes
  14257. else
  14258. ac_cv_header_time=no
  14259. fi
  14260. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14261. fi
  14262. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
  14263. $as_echo "$ac_cv_header_time" >&6; }
  14264. if test $ac_cv_header_time = yes; then
  14265. $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
  14266. fi
  14267. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
  14268. $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
  14269. if ${ac_cv_struct_tm+:} false; then :
  14270. $as_echo_n "(cached) " >&6
  14271. else
  14272. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14273. /* end confdefs.h. */
  14274. #include <sys/types.h>
  14275. #include <time.h>
  14276. int
  14277. main ()
  14278. {
  14279. struct tm tm;
  14280. int *p = &tm.tm_sec;
  14281. return !p;
  14282. ;
  14283. return 0;
  14284. }
  14285. _ACEOF
  14286. if ac_fn_c_try_compile "$LINENO"; then :
  14287. ac_cv_struct_tm=time.h
  14288. else
  14289. ac_cv_struct_tm=sys/time.h
  14290. fi
  14291. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14292. fi
  14293. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
  14294. $as_echo "$ac_cv_struct_tm" >&6; }
  14295. if test $ac_cv_struct_tm = sys/time.h; then
  14296. $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
  14297. fi
  14298. # Checks for library functions.
  14299. for ac_header in unistd.h
  14300. do :
  14301. ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
  14302. if test "x$ac_cv_header_unistd_h" = xyes; then :
  14303. cat >>confdefs.h <<_ACEOF
  14304. #define HAVE_UNISTD_H 1
  14305. _ACEOF
  14306. fi
  14307. done
  14308. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5
  14309. $as_echo_n "checking for working chown... " >&6; }
  14310. if ${ac_cv_func_chown_works+:} false; then :
  14311. $as_echo_n "(cached) " >&6
  14312. else
  14313. if test "$cross_compiling" = yes; then :
  14314. ac_cv_func_chown_works=no
  14315. else
  14316. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14317. /* end confdefs.h. */
  14318. $ac_includes_default
  14319. #include <fcntl.h>
  14320. int
  14321. main ()
  14322. {
  14323. char *f = "conftest.chown";
  14324. struct stat before, after;
  14325. if (creat (f, 0600) < 0)
  14326. return 1;
  14327. if (stat (f, &before) < 0)
  14328. return 1;
  14329. if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
  14330. return 1;
  14331. if (stat (f, &after) < 0)
  14332. return 1;
  14333. return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
  14334. ;
  14335. return 0;
  14336. }
  14337. _ACEOF
  14338. if ac_fn_c_try_run "$LINENO"; then :
  14339. ac_cv_func_chown_works=yes
  14340. else
  14341. ac_cv_func_chown_works=no
  14342. fi
  14343. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14344. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14345. fi
  14346. rm -f conftest.chown
  14347. fi
  14348. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5
  14349. $as_echo "$ac_cv_func_chown_works" >&6; }
  14350. if test $ac_cv_func_chown_works = yes; then
  14351. $as_echo "#define HAVE_CHOWN 1" >>confdefs.h
  14352. fi
  14353. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
  14354. $as_echo_n "checking whether closedir returns void... " >&6; }
  14355. if ${ac_cv_func_closedir_void+:} false; then :
  14356. $as_echo_n "(cached) " >&6
  14357. else
  14358. if test "$cross_compiling" = yes; then :
  14359. ac_cv_func_closedir_void=yes
  14360. else
  14361. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14362. /* end confdefs.h. */
  14363. $ac_includes_default
  14364. #include <$ac_header_dirent>
  14365. #ifndef __cplusplus
  14366. int closedir ();
  14367. #endif
  14368. int
  14369. main ()
  14370. {
  14371. return closedir (opendir (".")) != 0;
  14372. ;
  14373. return 0;
  14374. }
  14375. _ACEOF
  14376. if ac_fn_c_try_run "$LINENO"; then :
  14377. ac_cv_func_closedir_void=no
  14378. else
  14379. ac_cv_func_closedir_void=yes
  14380. fi
  14381. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14382. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14383. fi
  14384. fi
  14385. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
  14386. $as_echo "$ac_cv_func_closedir_void" >&6; }
  14387. if test $ac_cv_func_closedir_void = yes; then
  14388. $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
  14389. fi
  14390. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
  14391. $as_echo_n "checking for error_at_line... " >&6; }
  14392. if ${ac_cv_lib_error_at_line+:} false; then :
  14393. $as_echo_n "(cached) " >&6
  14394. else
  14395. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14396. /* end confdefs.h. */
  14397. #include <error.h>
  14398. int
  14399. main ()
  14400. {
  14401. error_at_line (0, 0, "", 0, "an error occurred");
  14402. ;
  14403. return 0;
  14404. }
  14405. _ACEOF
  14406. if ac_fn_c_try_link "$LINENO"; then :
  14407. ac_cv_lib_error_at_line=yes
  14408. else
  14409. ac_cv_lib_error_at_line=no
  14410. fi
  14411. rm -f core conftest.err conftest.$ac_objext \
  14412. conftest$ac_exeext conftest.$ac_ext
  14413. fi
  14414. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
  14415. $as_echo "$ac_cv_lib_error_at_line" >&6; }
  14416. if test $ac_cv_lib_error_at_line = no; then
  14417. case " $LIBOBJS " in
  14418. *" error.$ac_objext "* ) ;;
  14419. *) LIBOBJS="$LIBOBJS error.$ac_objext"
  14420. ;;
  14421. esac
  14422. fi
  14423. for ac_header in vfork.h
  14424. do :
  14425. ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
  14426. if test "x$ac_cv_header_vfork_h" = xyes; then :
  14427. cat >>confdefs.h <<_ACEOF
  14428. #define HAVE_VFORK_H 1
  14429. _ACEOF
  14430. fi
  14431. done
  14432. for ac_func in fork vfork
  14433. do :
  14434. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14435. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14436. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14437. cat >>confdefs.h <<_ACEOF
  14438. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14439. _ACEOF
  14440. fi
  14441. done
  14442. if test "x$ac_cv_func_fork" = xyes; then
  14443. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
  14444. $as_echo_n "checking for working fork... " >&6; }
  14445. if ${ac_cv_func_fork_works+:} false; then :
  14446. $as_echo_n "(cached) " >&6
  14447. else
  14448. if test "$cross_compiling" = yes; then :
  14449. ac_cv_func_fork_works=cross
  14450. else
  14451. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14452. /* end confdefs.h. */
  14453. $ac_includes_default
  14454. int
  14455. main ()
  14456. {
  14457. /* By Ruediger Kuhlmann. */
  14458. return fork () < 0;
  14459. ;
  14460. return 0;
  14461. }
  14462. _ACEOF
  14463. if ac_fn_c_try_run "$LINENO"; then :
  14464. ac_cv_func_fork_works=yes
  14465. else
  14466. ac_cv_func_fork_works=no
  14467. fi
  14468. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14469. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14470. fi
  14471. fi
  14472. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
  14473. $as_echo "$ac_cv_func_fork_works" >&6; }
  14474. else
  14475. ac_cv_func_fork_works=$ac_cv_func_fork
  14476. fi
  14477. if test "x$ac_cv_func_fork_works" = xcross; then
  14478. case $host in
  14479. *-*-amigaos* | *-*-msdosdjgpp*)
  14480. # Override, as these systems have only a dummy fork() stub
  14481. ac_cv_func_fork_works=no
  14482. ;;
  14483. *)
  14484. ac_cv_func_fork_works=yes
  14485. ;;
  14486. esac
  14487. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  14488. $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  14489. fi
  14490. ac_cv_func_vfork_works=$ac_cv_func_vfork
  14491. if test "x$ac_cv_func_vfork" = xyes; then
  14492. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
  14493. $as_echo_n "checking for working vfork... " >&6; }
  14494. if ${ac_cv_func_vfork_works+:} false; then :
  14495. $as_echo_n "(cached) " >&6
  14496. else
  14497. if test "$cross_compiling" = yes; then :
  14498. ac_cv_func_vfork_works=cross
  14499. else
  14500. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14501. /* end confdefs.h. */
  14502. /* Thanks to Paul Eggert for this test. */
  14503. $ac_includes_default
  14504. #include <sys/wait.h>
  14505. #ifdef HAVE_VFORK_H
  14506. # include <vfork.h>
  14507. #endif
  14508. /* On some sparc systems, changes by the child to local and incoming
  14509. argument registers are propagated back to the parent. The compiler
  14510. is told about this with #include <vfork.h>, but some compilers
  14511. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  14512. static variable whose address is put into a register that is
  14513. clobbered by the vfork. */
  14514. static void
  14515. #ifdef __cplusplus
  14516. sparc_address_test (int arg)
  14517. # else
  14518. sparc_address_test (arg) int arg;
  14519. #endif
  14520. {
  14521. static pid_t child;
  14522. if (!child) {
  14523. child = vfork ();
  14524. if (child < 0) {
  14525. perror ("vfork");
  14526. _exit(2);
  14527. }
  14528. if (!child) {
  14529. arg = getpid();
  14530. write(-1, "", 0);
  14531. _exit (arg);
  14532. }
  14533. }
  14534. }
  14535. int
  14536. main ()
  14537. {
  14538. pid_t parent = getpid ();
  14539. pid_t child;
  14540. sparc_address_test (0);
  14541. child = vfork ();
  14542. if (child == 0) {
  14543. /* Here is another test for sparc vfork register problems. This
  14544. test uses lots of local variables, at least as many local
  14545. variables as main has allocated so far including compiler
  14546. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  14547. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  14548. reuse the register of parent for one of the local variables,
  14549. since it will think that parent can't possibly be used any more
  14550. in this routine. Assigning to the local variable will thus
  14551. munge parent in the parent process. */
  14552. pid_t
  14553. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  14554. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  14555. /* Convince the compiler that p..p7 are live; otherwise, it might
  14556. use the same hardware register for all 8 local variables. */
  14557. if (p != p1 || p != p2 || p != p3 || p != p4
  14558. || p != p5 || p != p6 || p != p7)
  14559. _exit(1);
  14560. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  14561. from child file descriptors. If the child closes a descriptor
  14562. before it execs or exits, this munges the parent's descriptor
  14563. as well. Test for this by closing stdout in the child. */
  14564. _exit(close(fileno(stdout)) != 0);
  14565. } else {
  14566. int status;
  14567. struct stat st;
  14568. while (wait(&status) != child)
  14569. ;
  14570. return (
  14571. /* Was there some problem with vforking? */
  14572. child < 0
  14573. /* Did the child fail? (This shouldn't happen.) */
  14574. || status
  14575. /* Did the vfork/compiler bug occur? */
  14576. || parent != getpid()
  14577. /* Did the file descriptor bug occur? */
  14578. || fstat(fileno(stdout), &st) != 0
  14579. );
  14580. }
  14581. }
  14582. _ACEOF
  14583. if ac_fn_c_try_run "$LINENO"; then :
  14584. ac_cv_func_vfork_works=yes
  14585. else
  14586. ac_cv_func_vfork_works=no
  14587. fi
  14588. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14589. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14590. fi
  14591. fi
  14592. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
  14593. $as_echo "$ac_cv_func_vfork_works" >&6; }
  14594. fi;
  14595. if test "x$ac_cv_func_fork_works" = xcross; then
  14596. ac_cv_func_vfork_works=$ac_cv_func_vfork
  14597. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  14598. $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  14599. fi
  14600. if test "x$ac_cv_func_vfork_works" = xyes; then
  14601. $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
  14602. else
  14603. $as_echo "#define vfork fork" >>confdefs.h
  14604. fi
  14605. if test "x$ac_cv_func_fork_works" = xyes; then
  14606. $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
  14607. fi
  14608. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
  14609. $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
  14610. if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
  14611. $as_echo_n "(cached) " >&6
  14612. else
  14613. rm -f conftest.sym conftest.file
  14614. echo >conftest.file
  14615. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  14616. if test "$cross_compiling" = yes; then :
  14617. ac_cv_func_lstat_dereferences_slashed_symlink=no
  14618. else
  14619. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14620. /* end confdefs.h. */
  14621. $ac_includes_default
  14622. int
  14623. main ()
  14624. {
  14625. struct stat sbuf;
  14626. /* Linux will dereference the symlink and fail, as required by POSIX.
  14627. That is better in the sense that it means we will not
  14628. have to compile and use the lstat wrapper. */
  14629. return lstat ("conftest.sym/", &sbuf) == 0;
  14630. ;
  14631. return 0;
  14632. }
  14633. _ACEOF
  14634. if ac_fn_c_try_run "$LINENO"; then :
  14635. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  14636. else
  14637. ac_cv_func_lstat_dereferences_slashed_symlink=no
  14638. fi
  14639. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14640. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14641. fi
  14642. else
  14643. # If the `ln -s' command failed, then we probably don't even
  14644. # have an lstat function.
  14645. ac_cv_func_lstat_dereferences_slashed_symlink=no
  14646. fi
  14647. rm -f conftest.sym conftest.file
  14648. fi
  14649. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  14650. $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  14651. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  14652. cat >>confdefs.h <<_ACEOF
  14653. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  14654. _ACEOF
  14655. if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
  14656. case " $LIBOBJS " in
  14657. *" lstat.$ac_objext "* ) ;;
  14658. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  14659. ;;
  14660. esac
  14661. fi
  14662. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat accepts an empty string" >&5
  14663. $as_echo_n "checking whether lstat accepts an empty string... " >&6; }
  14664. if ${ac_cv_func_lstat_empty_string_bug+:} false; then :
  14665. $as_echo_n "(cached) " >&6
  14666. else
  14667. if test "$cross_compiling" = yes; then :
  14668. ac_cv_func_lstat_empty_string_bug=yes
  14669. else
  14670. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14671. /* end confdefs.h. */
  14672. $ac_includes_default
  14673. int
  14674. main ()
  14675. {
  14676. struct stat sbuf;
  14677. return lstat ("", &sbuf) == 0;
  14678. ;
  14679. return 0;
  14680. }
  14681. _ACEOF
  14682. if ac_fn_c_try_run "$LINENO"; then :
  14683. ac_cv_func_lstat_empty_string_bug=no
  14684. else
  14685. ac_cv_func_lstat_empty_string_bug=yes
  14686. fi
  14687. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14688. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14689. fi
  14690. fi
  14691. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_empty_string_bug" >&5
  14692. $as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
  14693. if test $ac_cv_func_lstat_empty_string_bug = yes; then
  14694. case " $LIBOBJS " in
  14695. *" lstat.$ac_objext "* ) ;;
  14696. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  14697. ;;
  14698. esac
  14699. cat >>confdefs.h <<_ACEOF
  14700. #define HAVE_LSTAT_EMPTY_STRING_BUG 1
  14701. _ACEOF
  14702. fi
  14703. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
  14704. $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
  14705. if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
  14706. $as_echo_n "(cached) " >&6
  14707. else
  14708. rm -f conftest.sym conftest.file
  14709. echo >conftest.file
  14710. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  14711. if test "$cross_compiling" = yes; then :
  14712. ac_cv_func_lstat_dereferences_slashed_symlink=no
  14713. else
  14714. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14715. /* end confdefs.h. */
  14716. $ac_includes_default
  14717. int
  14718. main ()
  14719. {
  14720. struct stat sbuf;
  14721. /* Linux will dereference the symlink and fail, as required by POSIX.
  14722. That is better in the sense that it means we will not
  14723. have to compile and use the lstat wrapper. */
  14724. return lstat ("conftest.sym/", &sbuf) == 0;
  14725. ;
  14726. return 0;
  14727. }
  14728. _ACEOF
  14729. if ac_fn_c_try_run "$LINENO"; then :
  14730. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  14731. else
  14732. ac_cv_func_lstat_dereferences_slashed_symlink=no
  14733. fi
  14734. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14735. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14736. fi
  14737. else
  14738. # If the `ln -s' command failed, then we probably don't even
  14739. # have an lstat function.
  14740. ac_cv_func_lstat_dereferences_slashed_symlink=no
  14741. fi
  14742. rm -f conftest.sym conftest.file
  14743. fi
  14744. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  14745. $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  14746. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  14747. cat >>confdefs.h <<_ACEOF
  14748. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  14749. _ACEOF
  14750. if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
  14751. case " $LIBOBJS " in
  14752. *" lstat.$ac_objext "* ) ;;
  14753. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  14754. ;;
  14755. esac
  14756. fi
  14757. for ac_header in stdlib.h
  14758. do :
  14759. ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
  14760. if test "x$ac_cv_header_stdlib_h" = xyes; then :
  14761. cat >>confdefs.h <<_ACEOF
  14762. #define HAVE_STDLIB_H 1
  14763. _ACEOF
  14764. fi
  14765. done
  14766. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
  14767. $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
  14768. if ${ac_cv_func_malloc_0_nonnull+:} false; then :
  14769. $as_echo_n "(cached) " >&6
  14770. else
  14771. if test "$cross_compiling" = yes; then :
  14772. ac_cv_func_malloc_0_nonnull=no
  14773. else
  14774. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14775. /* end confdefs.h. */
  14776. #if defined STDC_HEADERS || defined HAVE_STDLIB_H
  14777. # include <stdlib.h>
  14778. #else
  14779. char *malloc ();
  14780. #endif
  14781. int
  14782. main ()
  14783. {
  14784. return ! malloc (0);
  14785. ;
  14786. return 0;
  14787. }
  14788. _ACEOF
  14789. if ac_fn_c_try_run "$LINENO"; then :
  14790. ac_cv_func_malloc_0_nonnull=yes
  14791. else
  14792. ac_cv_func_malloc_0_nonnull=no
  14793. fi
  14794. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14795. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14796. fi
  14797. fi
  14798. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
  14799. $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
  14800. if test $ac_cv_func_malloc_0_nonnull = yes; then :
  14801. $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
  14802. else
  14803. $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
  14804. case " $LIBOBJS " in
  14805. *" malloc.$ac_objext "* ) ;;
  14806. *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
  14807. ;;
  14808. esac
  14809. $as_echo "#define malloc rpl_malloc" >>confdefs.h
  14810. fi
  14811. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
  14812. $as_echo_n "checking for working memcmp... " >&6; }
  14813. if ${ac_cv_func_memcmp_working+:} false; then :
  14814. $as_echo_n "(cached) " >&6
  14815. else
  14816. if test "$cross_compiling" = yes; then :
  14817. ac_cv_func_memcmp_working=no
  14818. else
  14819. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14820. /* end confdefs.h. */
  14821. $ac_includes_default
  14822. int
  14823. main ()
  14824. {
  14825. /* Some versions of memcmp are not 8-bit clean. */
  14826. char c0 = '\100', c1 = '\200', c2 = '\201';
  14827. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  14828. return 1;
  14829. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  14830. or more and with at least one buffer not starting on a 4-byte boundary.
  14831. William Lewis provided this test program. */
  14832. {
  14833. char foo[21];
  14834. char bar[21];
  14835. int i;
  14836. for (i = 0; i < 4; i++)
  14837. {
  14838. char *a = foo + i;
  14839. char *b = bar + i;
  14840. strcpy (a, "--------01111111");
  14841. strcpy (b, "--------10000000");
  14842. if (memcmp (a, b, 16) >= 0)
  14843. return 1;
  14844. }
  14845. return 0;
  14846. }
  14847. ;
  14848. return 0;
  14849. }
  14850. _ACEOF
  14851. if ac_fn_c_try_run "$LINENO"; then :
  14852. ac_cv_func_memcmp_working=yes
  14853. else
  14854. ac_cv_func_memcmp_working=no
  14855. fi
  14856. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14857. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14858. fi
  14859. fi
  14860. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
  14861. $as_echo "$ac_cv_func_memcmp_working" >&6; }
  14862. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  14863. *" memcmp.$ac_objext "* ) ;;
  14864. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  14865. ;;
  14866. esac
  14867. for ac_header in $ac_header_list
  14868. do :
  14869. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  14870. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  14871. "
  14872. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  14873. cat >>confdefs.h <<_ACEOF
  14874. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  14875. _ACEOF
  14876. fi
  14877. done
  14878. for ac_func in getpagesize
  14879. do :
  14880. ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
  14881. if test "x$ac_cv_func_getpagesize" = xyes; then :
  14882. cat >>confdefs.h <<_ACEOF
  14883. #define HAVE_GETPAGESIZE 1
  14884. _ACEOF
  14885. fi
  14886. done
  14887. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
  14888. $as_echo_n "checking for working mmap... " >&6; }
  14889. if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
  14890. $as_echo_n "(cached) " >&6
  14891. else
  14892. if test "$cross_compiling" = yes; then :
  14893. ac_cv_func_mmap_fixed_mapped=no
  14894. else
  14895. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14896. /* end confdefs.h. */
  14897. $ac_includes_default
  14898. /* malloc might have been renamed as rpl_malloc. */
  14899. #undef malloc
  14900. /* Thanks to Mike Haertel and Jim Avera for this test.
  14901. Here is a matrix of mmap possibilities:
  14902. mmap private not fixed
  14903. mmap private fixed at somewhere currently unmapped
  14904. mmap private fixed at somewhere already mapped
  14905. mmap shared not fixed
  14906. mmap shared fixed at somewhere currently unmapped
  14907. mmap shared fixed at somewhere already mapped
  14908. For private mappings, we should verify that changes cannot be read()
  14909. back from the file, nor mmap's back from the file at a different
  14910. address. (There have been systems where private was not correctly
  14911. implemented like the infamous i386 svr4.0, and systems where the
  14912. VM page cache was not coherent with the file system buffer cache
  14913. like early versions of FreeBSD and possibly contemporary NetBSD.)
  14914. For shared mappings, we should conversely verify that changes get
  14915. propagated back to all the places they're supposed to be.
  14916. Grep wants private fixed already mapped.
  14917. The main things grep needs to know about mmap are:
  14918. * does it exist and is it safe to write into the mmap'd area
  14919. * how to use it (BSD variants) */
  14920. #include <fcntl.h>
  14921. #include <sys/mman.h>
  14922. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  14923. char *malloc ();
  14924. #endif
  14925. /* This mess was copied from the GNU getpagesize.h. */
  14926. #ifndef HAVE_GETPAGESIZE
  14927. # ifdef _SC_PAGESIZE
  14928. # define getpagesize() sysconf(_SC_PAGESIZE)
  14929. # else /* no _SC_PAGESIZE */
  14930. # ifdef HAVE_SYS_PARAM_H
  14931. # include <sys/param.h>
  14932. # ifdef EXEC_PAGESIZE
  14933. # define getpagesize() EXEC_PAGESIZE
  14934. # else /* no EXEC_PAGESIZE */
  14935. # ifdef NBPG
  14936. # define getpagesize() NBPG * CLSIZE
  14937. # ifndef CLSIZE
  14938. # define CLSIZE 1
  14939. # endif /* no CLSIZE */
  14940. # else /* no NBPG */
  14941. # ifdef NBPC
  14942. # define getpagesize() NBPC
  14943. # else /* no NBPC */
  14944. # ifdef PAGESIZE
  14945. # define getpagesize() PAGESIZE
  14946. # endif /* PAGESIZE */
  14947. # endif /* no NBPC */
  14948. # endif /* no NBPG */
  14949. # endif /* no EXEC_PAGESIZE */
  14950. # else /* no HAVE_SYS_PARAM_H */
  14951. # define getpagesize() 8192 /* punt totally */
  14952. # endif /* no HAVE_SYS_PARAM_H */
  14953. # endif /* no _SC_PAGESIZE */
  14954. #endif /* no HAVE_GETPAGESIZE */
  14955. int
  14956. main ()
  14957. {
  14958. char *data, *data2, *data3;
  14959. const char *cdata2;
  14960. int i, pagesize;
  14961. int fd, fd2;
  14962. pagesize = getpagesize ();
  14963. /* First, make a file with some known garbage in it. */
  14964. data = (char *) malloc (pagesize);
  14965. if (!data)
  14966. return 1;
  14967. for (i = 0; i < pagesize; ++i)
  14968. *(data + i) = rand ();
  14969. umask (0);
  14970. fd = creat ("conftest.mmap", 0600);
  14971. if (fd < 0)
  14972. return 2;
  14973. if (write (fd, data, pagesize) != pagesize)
  14974. return 3;
  14975. close (fd);
  14976. /* Next, check that the tail of a page is zero-filled. File must have
  14977. non-zero length, otherwise we risk SIGBUS for entire page. */
  14978. fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
  14979. if (fd2 < 0)
  14980. return 4;
  14981. cdata2 = "";
  14982. if (write (fd2, cdata2, 1) != 1)
  14983. return 5;
  14984. data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
  14985. if (data2 == MAP_FAILED)
  14986. return 6;
  14987. for (i = 0; i < pagesize; ++i)
  14988. if (*(data2 + i))
  14989. return 7;
  14990. close (fd2);
  14991. if (munmap (data2, pagesize))
  14992. return 8;
  14993. /* Next, try to mmap the file at a fixed address which already has
  14994. something else allocated at it. If we can, also make sure that
  14995. we see the same garbage. */
  14996. fd = open ("conftest.mmap", O_RDWR);
  14997. if (fd < 0)
  14998. return 9;
  14999. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  15000. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  15001. return 10;
  15002. for (i = 0; i < pagesize; ++i)
  15003. if (*(data + i) != *(data2 + i))
  15004. return 11;
  15005. /* Finally, make sure that changes to the mapped area do not
  15006. percolate back to the file as seen by read(). (This is a bug on
  15007. some variants of i386 svr4.0.) */
  15008. for (i = 0; i < pagesize; ++i)
  15009. *(data2 + i) = *(data2 + i) + 1;
  15010. data3 = (char *) malloc (pagesize);
  15011. if (!data3)
  15012. return 12;
  15013. if (read (fd, data3, pagesize) != pagesize)
  15014. return 13;
  15015. for (i = 0; i < pagesize; ++i)
  15016. if (*(data + i) != *(data3 + i))
  15017. return 14;
  15018. close (fd);
  15019. return 0;
  15020. }
  15021. _ACEOF
  15022. if ac_fn_c_try_run "$LINENO"; then :
  15023. ac_cv_func_mmap_fixed_mapped=yes
  15024. else
  15025. ac_cv_func_mmap_fixed_mapped=no
  15026. fi
  15027. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15028. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15029. fi
  15030. fi
  15031. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
  15032. $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
  15033. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  15034. $as_echo "#define HAVE_MMAP 1" >>confdefs.h
  15035. fi
  15036. rm -f conftest.mmap conftest.txt
  15037. { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
  15038. $as_echo_n "checking return type of signal handlers... " >&6; }
  15039. if ${ac_cv_type_signal+:} false; then :
  15040. $as_echo_n "(cached) " >&6
  15041. else
  15042. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15043. /* end confdefs.h. */
  15044. #include <sys/types.h>
  15045. #include <signal.h>
  15046. int
  15047. main ()
  15048. {
  15049. return *(signal (0, 0)) (0) == 1;
  15050. ;
  15051. return 0;
  15052. }
  15053. _ACEOF
  15054. if ac_fn_c_try_compile "$LINENO"; then :
  15055. ac_cv_type_signal=int
  15056. else
  15057. ac_cv_type_signal=void
  15058. fi
  15059. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15060. fi
  15061. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
  15062. $as_echo "$ac_cv_type_signal" >&6; }
  15063. cat >>confdefs.h <<_ACEOF
  15064. #define RETSIGTYPE $ac_cv_type_signal
  15065. _ACEOF
  15066. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
  15067. $as_echo_n "checking whether stat accepts an empty string... " >&6; }
  15068. if ${ac_cv_func_stat_empty_string_bug+:} false; then :
  15069. $as_echo_n "(cached) " >&6
  15070. else
  15071. if test "$cross_compiling" = yes; then :
  15072. ac_cv_func_stat_empty_string_bug=yes
  15073. else
  15074. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15075. /* end confdefs.h. */
  15076. $ac_includes_default
  15077. int
  15078. main ()
  15079. {
  15080. struct stat sbuf;
  15081. return stat ("", &sbuf) == 0;
  15082. ;
  15083. return 0;
  15084. }
  15085. _ACEOF
  15086. if ac_fn_c_try_run "$LINENO"; then :
  15087. ac_cv_func_stat_empty_string_bug=no
  15088. else
  15089. ac_cv_func_stat_empty_string_bug=yes
  15090. fi
  15091. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15092. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15093. fi
  15094. fi
  15095. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
  15096. $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
  15097. if test $ac_cv_func_stat_empty_string_bug = yes; then
  15098. case " $LIBOBJS " in
  15099. *" stat.$ac_objext "* ) ;;
  15100. *) LIBOBJS="$LIBOBJS stat.$ac_objext"
  15101. ;;
  15102. esac
  15103. cat >>confdefs.h <<_ACEOF
  15104. #define HAVE_STAT_EMPTY_STRING_BUG 1
  15105. _ACEOF
  15106. fi
  15107. ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
  15108. if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
  15109. ac_have_decl=1
  15110. else
  15111. ac_have_decl=0
  15112. fi
  15113. cat >>confdefs.h <<_ACEOF
  15114. #define HAVE_DECL_STRERROR_R $ac_have_decl
  15115. _ACEOF
  15116. for ac_func in strerror_r
  15117. do :
  15118. ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
  15119. if test "x$ac_cv_func_strerror_r" = xyes; then :
  15120. cat >>confdefs.h <<_ACEOF
  15121. #define HAVE_STRERROR_R 1
  15122. _ACEOF
  15123. fi
  15124. done
  15125. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
  15126. $as_echo_n "checking whether strerror_r returns char *... " >&6; }
  15127. if ${ac_cv_func_strerror_r_char_p+:} false; then :
  15128. $as_echo_n "(cached) " >&6
  15129. else
  15130. ac_cv_func_strerror_r_char_p=no
  15131. if test $ac_cv_have_decl_strerror_r = yes; then
  15132. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15133. /* end confdefs.h. */
  15134. $ac_includes_default
  15135. int
  15136. main ()
  15137. {
  15138. char buf[100];
  15139. char x = *strerror_r (0, buf, sizeof buf);
  15140. char *p = strerror_r (0, buf, sizeof buf);
  15141. return !p || x;
  15142. ;
  15143. return 0;
  15144. }
  15145. _ACEOF
  15146. if ac_fn_c_try_compile "$LINENO"; then :
  15147. ac_cv_func_strerror_r_char_p=yes
  15148. fi
  15149. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15150. else
  15151. # strerror_r is not declared. Choose between
  15152. # systems that have relatively inaccessible declarations for the
  15153. # function. BeOS and DEC UNIX 4.0 fall in this category, but the
  15154. # former has a strerror_r that returns char*, while the latter
  15155. # has a strerror_r that returns `int'.
  15156. # This test should segfault on the DEC system.
  15157. if test "$cross_compiling" = yes; then :
  15158. :
  15159. else
  15160. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15161. /* end confdefs.h. */
  15162. $ac_includes_default
  15163. extern char *strerror_r ();
  15164. int
  15165. main ()
  15166. {
  15167. char buf[100];
  15168. char x = *strerror_r (0, buf, sizeof buf);
  15169. return ! isalpha (x);
  15170. ;
  15171. return 0;
  15172. }
  15173. _ACEOF
  15174. if ac_fn_c_try_run "$LINENO"; then :
  15175. ac_cv_func_strerror_r_char_p=yes
  15176. fi
  15177. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15178. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15179. fi
  15180. fi
  15181. fi
  15182. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
  15183. $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
  15184. if test $ac_cv_func_strerror_r_char_p = yes; then
  15185. $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
  15186. fi
  15187. for ac_func in strftime
  15188. do :
  15189. ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
  15190. if test "x$ac_cv_func_strftime" = xyes; then :
  15191. cat >>confdefs.h <<_ACEOF
  15192. #define HAVE_STRFTIME 1
  15193. _ACEOF
  15194. else
  15195. # strftime is in -lintl on SCO UNIX.
  15196. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
  15197. $as_echo_n "checking for strftime in -lintl... " >&6; }
  15198. if ${ac_cv_lib_intl_strftime+:} false; then :
  15199. $as_echo_n "(cached) " >&6
  15200. else
  15201. ac_check_lib_save_LIBS=$LIBS
  15202. LIBS="-lintl $LIBS"
  15203. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15204. /* end confdefs.h. */
  15205. /* Override any GCC internal prototype to avoid an error.
  15206. Use char because int might match the return type of a GCC
  15207. builtin and then its argument prototype would still apply. */
  15208. #ifdef __cplusplus
  15209. extern "C"
  15210. #endif
  15211. char strftime ();
  15212. int
  15213. main ()
  15214. {
  15215. return strftime ();
  15216. ;
  15217. return 0;
  15218. }
  15219. _ACEOF
  15220. if ac_fn_c_try_link "$LINENO"; then :
  15221. ac_cv_lib_intl_strftime=yes
  15222. else
  15223. ac_cv_lib_intl_strftime=no
  15224. fi
  15225. rm -f core conftest.err conftest.$ac_objext \
  15226. conftest$ac_exeext conftest.$ac_ext
  15227. LIBS=$ac_check_lib_save_LIBS
  15228. fi
  15229. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
  15230. $as_echo "$ac_cv_lib_intl_strftime" >&6; }
  15231. if test "x$ac_cv_lib_intl_strftime" = xyes; then :
  15232. $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
  15233. LIBS="-lintl $LIBS"
  15234. fi
  15235. fi
  15236. done
  15237. for ac_func in vprintf
  15238. do :
  15239. ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
  15240. if test "x$ac_cv_func_vprintf" = xyes; then :
  15241. cat >>confdefs.h <<_ACEOF
  15242. #define HAVE_VPRINTF 1
  15243. _ACEOF
  15244. ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
  15245. if test "x$ac_cv_func__doprnt" = xyes; then :
  15246. $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
  15247. fi
  15248. fi
  15249. done
  15250. 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
  15251. do :
  15252. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  15253. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  15254. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  15255. cat >>confdefs.h <<_ACEOF
  15256. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  15257. _ACEOF
  15258. fi
  15259. done
  15260. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-debug" >&5
  15261. $as_echo_n "checking for --enable-debug... " >&6; }
  15262. # Check whether --enable-debug was given.
  15263. if test "${enable_debug+set}" = set; then :
  15264. enableval=$enable_debug;
  15265. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15266. $as_echo "yes" >&6; }
  15267. debug_defs="-DDEBUG -DMCC_DEBUG"
  15268. else
  15269. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15270. $as_echo "no" >&6; }
  15271. debug_defs=""
  15272. fi
  15273. # Used for legacy style packaging where we bundle all of the dependencies.
  15274. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-bundle" >&5
  15275. $as_echo_n "checking for --enable-bundle... " >&6; }
  15276. # Check whether --enable-bundle was given.
  15277. if test "${enable_bundle+set}" = set; then :
  15278. enableval=$enable_bundle;
  15279. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15280. $as_echo "yes" >&6; }
  15281. bundle="1";
  15282. else
  15283. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15284. $as_echo "no" >&6; }
  15285. bundle="";
  15286. fi
  15287. if test "$bundle" = "1"; then
  15288. BUNDLE_TRUE=
  15289. BUNDLE_FALSE='#'
  15290. else
  15291. BUNDLE_TRUE='#'
  15292. BUNDLE_FALSE=
  15293. fi
  15294. # these enables are for optional or experimental features
  15295. if test -z "$enable_pam_passthru" ; then
  15296. enable_pam_passthru=yes # if not set on cmdline, set default
  15297. fi
  15298. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-pam-passthru" >&5
  15299. $as_echo_n "checking for --enable-pam-passthru... " >&6; }
  15300. # Check whether --enable-pam-passthru was given.
  15301. if test "${enable_pam_passthru+set}" = set; then :
  15302. enableval=$enable_pam_passthru;
  15303. fi
  15304. if test "$enable_pam_passthru" = yes ; then
  15305. # check for pam header file used by plugins/pass_passthru/pam_ptimpl.c
  15306. ac_fn_c_check_header_mongrel "$LINENO" "security/pam_appl.h" "ac_cv_header_security_pam_appl_h" "$ac_includes_default"
  15307. if test "x$ac_cv_header_security_pam_appl_h" = xyes; then :
  15308. else
  15309. as_fn_error $? "Missing header file security/pam_appl.h" "$LINENO" 5
  15310. fi
  15311. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15312. $as_echo "yes" >&6; }
  15313. $as_echo "#define ENABLE_PAM_PASSTHRU 1" >>confdefs.h
  15314. else
  15315. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15316. $as_echo "no" >&6; }
  15317. fi
  15318. if test "$enable_pam_passthru" = "yes"; then
  15319. enable_pam_passthru_TRUE=
  15320. enable_pam_passthru_FALSE='#'
  15321. else
  15322. enable_pam_passthru_TRUE='#'
  15323. enable_pam_passthru_FALSE=
  15324. fi
  15325. if test -z "$enable_dna" ; then
  15326. enable_dna=yes # if not set on cmdline, set default
  15327. fi
  15328. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-dna" >&5
  15329. $as_echo_n "checking for --enable-dna... " >&6; }
  15330. # Check whether --enable-dna was given.
  15331. if test "${enable_dna+set}" = set; then :
  15332. enableval=$enable_dna;
  15333. fi
  15334. if test "$enable_dna" = yes ; then
  15335. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15336. $as_echo "yes" >&6; }
  15337. $as_echo "#define ENABLE_DNA 1" >>confdefs.h
  15338. else
  15339. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15340. $as_echo "no" >&6; }
  15341. fi
  15342. if test "$enable_dna" = "yes"; then
  15343. enable_dna_TRUE=
  15344. enable_dna_FALSE='#'
  15345. else
  15346. enable_dna_TRUE='#'
  15347. enable_dna_FALSE=
  15348. fi
  15349. if test -z "$enable_ldapi" ; then
  15350. enable_ldapi=yes # if not set on cmdline, set default
  15351. fi
  15352. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-ldapi" >&5
  15353. $as_echo_n "checking for --enable-ldapi... " >&6; }
  15354. # Check whether --enable-ldapi was given.
  15355. if test "${enable_ldapi+set}" = set; then :
  15356. enableval=$enable_ldapi;
  15357. fi
  15358. if test "$enable_ldapi" = yes ; then
  15359. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15360. $as_echo "yes" >&6; }
  15361. $as_echo "#define ENABLE_LDAPI 1" >>confdefs.h
  15362. else
  15363. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15364. $as_echo "no" >&6; }
  15365. fi
  15366. if test "$enable_ldapi" = "yes"; then
  15367. enable_ldapi_TRUE=
  15368. enable_ldapi_FALSE='#'
  15369. else
  15370. enable_ldapi_TRUE='#'
  15371. enable_ldapi_FALSE=
  15372. fi
  15373. if test -z "$enable_autobind" ; then
  15374. enable_autobind=no # if not set on cmdline, set default
  15375. fi
  15376. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-autobind" >&5
  15377. $as_echo_n "checking for --enable-autobind... " >&6; }
  15378. # Check whether --enable-autobind was given.
  15379. if test "${enable_autobind+set}" = set; then :
  15380. enableval=$enable_autobind;
  15381. fi
  15382. if test "$enable_ldapi" = yes -a "$enable_autobind" = yes ; then
  15383. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15384. $as_echo "yes" >&6; }
  15385. $as_echo "#define ENABLE_AUTOBIND 1" >>confdefs.h
  15386. else
  15387. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15388. $as_echo "no" >&6; }
  15389. fi
  15390. if test "$enable_autobind" = "yes"; then
  15391. enable_autobind_TRUE=
  15392. enable_autobind_FALSE='#'
  15393. else
  15394. enable_autobind_TRUE='#'
  15395. enable_autobind_FALSE=
  15396. fi
  15397. if test -z "$enable_auto_dn_suffix" ; then
  15398. enable_auto_dn_suffix=no # if not set on cmdline, set default
  15399. fi
  15400. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-auto-dn-suffix" >&5
  15401. $as_echo_n "checking for --enable-auto-dn-suffix... " >&6; }
  15402. # Check whether --enable-autobind was given.
  15403. if test "${enable_autobind+set}" = set; then :
  15404. enableval=$enable_autobind;
  15405. fi
  15406. if test "$enable_ldapi" = yes -a "$enable_autobind" = yes -a "$enable_auto_dn_suffix" = "yes"; then
  15407. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15408. $as_echo "yes" >&6; }
  15409. $as_echo "#define ENABLE_AUTO_DN_SUFFIX 1" >>confdefs.h
  15410. else
  15411. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15412. $as_echo "no" >&6; }
  15413. fi
  15414. if test "$enable_auto_dn_suffix" = "yes"; then
  15415. enable_auto_dn_suffix_TRUE=
  15416. enable_auto_dn_suffix_FALSE='#'
  15417. else
  15418. enable_auto_dn_suffix_TRUE='#'
  15419. enable_auto_dn_suffix_FALSE=
  15420. fi
  15421. if test -z "$enable_bitwise" ; then
  15422. enable_bitwise=yes # if not set on cmdline, set default
  15423. fi
  15424. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-bitwise" >&5
  15425. $as_echo_n "checking for --enable-bitwise... " >&6; }
  15426. # Check whether --enable-bitwise was given.
  15427. if test "${enable_bitwise+set}" = set; then :
  15428. enableval=$enable_bitwise;
  15429. fi
  15430. if test "$enable_bitwise" = yes ; then
  15431. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15432. $as_echo "yes" >&6; }
  15433. $as_echo "#define ENABLE_BITWISE 1" >>confdefs.h
  15434. else
  15435. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15436. $as_echo "no" >&6; }
  15437. fi
  15438. if test "$enable_bitwise" = "yes"; then
  15439. enable_bitwise_TRUE=
  15440. enable_bitwise_FALSE='#'
  15441. else
  15442. enable_bitwise_TRUE='#'
  15443. enable_bitwise_FALSE=
  15444. fi
  15445. if test -z "$enable_presence" ; then
  15446. enable_presence=no # if not set on cmdline, set default
  15447. fi
  15448. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-presence" >&5
  15449. $as_echo_n "checking for --enable-presence... " >&6; }
  15450. # Check whether --enable-presence was given.
  15451. if test "${enable_presence+set}" = set; then :
  15452. enableval=$enable_presence;
  15453. fi
  15454. if test "$enable_presence" = yes ; then
  15455. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15456. $as_echo "yes" >&6; }
  15457. $as_echo "#define ENABLE_PRESENCE 1" >>confdefs.h
  15458. else
  15459. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15460. $as_echo "no" >&6; }
  15461. fi
  15462. if test "$enable_presence" = "yes"; then
  15463. enable_presence_TRUE=
  15464. enable_presence_FALSE='#'
  15465. else
  15466. enable_presence_TRUE='#'
  15467. enable_presence_FALSE=
  15468. fi
  15469. if test -z "$enable_acctpolicy" ; then
  15470. enable_acctpolicy=yes # if not set on cmdline, set default
  15471. fi
  15472. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-acctpolicy" >&5
  15473. $as_echo_n "checking for --enable-acctpolicy... " >&6; }
  15474. # Check whether --enable-acctpolicy was given.
  15475. if test "${enable_acctpolicy+set}" = set; then :
  15476. enableval=$enable_acctpolicy;
  15477. fi
  15478. if test "$enable_acctpolicy" = yes ; then
  15479. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15480. $as_echo "yes" >&6; }
  15481. $as_echo "#define ENABLE_ACCTPOLICY 1" >>confdefs.h
  15482. else
  15483. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15484. $as_echo "no" >&6; }
  15485. fi
  15486. if test "$enable_acctpolicy" = "yes"; then
  15487. enable_acctpolicy_TRUE=
  15488. enable_acctpolicy_FALSE='#'
  15489. else
  15490. enable_acctpolicy_TRUE='#'
  15491. enable_acctpolicy_FALSE=
  15492. fi
  15493. if test -z "$enable_posix_winsync" ; then
  15494. enable_posix_winsync=yes # if not set on cmdline, set default
  15495. fi
  15496. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-posix-winsync" >&5
  15497. $as_echo_n "checking for --enable-posix-winsync... " >&6; }
  15498. # Check whether --enable-posix_winsync was given.
  15499. if test "${enable_posix_winsync+set}" = set; then :
  15500. enableval=$enable_posix_winsync;
  15501. fi
  15502. if test "$enable_posix_winsync" = yes ; then
  15503. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15504. $as_echo "yes" >&6; }
  15505. $as_echo "#define ENABLE_POSIX_WINSYNC 1" >>confdefs.h
  15506. else
  15507. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15508. $as_echo "no" >&6; }
  15509. fi
  15510. if test "$enable_posix_winsync" = "yes"; then
  15511. enable_posix_winsync_TRUE=
  15512. enable_posix_winsync_FALSE='#'
  15513. else
  15514. enable_posix_winsync_TRUE='#'
  15515. enable_posix_winsync_FALSE=
  15516. fi
  15517. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-nunc-stans" >&5
  15518. $as_echo_n "checking for --enable-nunc-stans... " >&6; }
  15519. # Check whether --enable-nunc_stans was given.
  15520. if test "${enable_nunc_stans+set}" = set; then :
  15521. enableval=$enable_nunc_stans;
  15522. fi
  15523. if test "$enable_nunc_stans" = yes ; then
  15524. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15525. $as_echo "yes" >&6; }
  15526. $as_echo "#define ENABLE_NUNC_STANS 1" >>confdefs.h
  15527. else
  15528. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15529. $as_echo "no" >&6; }
  15530. fi
  15531. if test "$enable_nunc_stans" = "yes"; then
  15532. enable_nunc_stans_TRUE=
  15533. enable_nunc_stans_FALSE='#'
  15534. else
  15535. enable_nunc_stans_TRUE='#'
  15536. enable_nunc_stans_FALSE=
  15537. fi
  15538. # the default prefix - override with --prefix or --with-fhs
  15539. # BEGIN COPYRIGHT BLOCK
  15540. # Copyright (C) 2006 Red Hat, Inc.
  15541. # All rights reserved.
  15542. #
  15543. # License: GPL (version 3 or any later version).
  15544. # See LICENSE for details.
  15545. # END COPYRIGHT BLOCK
  15546. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FHS..." >&5
  15547. $as_echo "$as_me: checking for FHS..." >&6;}
  15548. # check for --with-fhs
  15549. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-fhs" >&5
  15550. $as_echo_n "checking for --with-fhs... " >&6; }
  15551. # Check whether --with-fhs was given.
  15552. if test "${with_fhs+set}" = set; then :
  15553. withval=$with_fhs;
  15554. with_fhs=yes
  15555. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15556. $as_echo "yes" >&6; }
  15557. else
  15558. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15559. $as_echo "no" >&6; }
  15560. fi
  15561. if test "$with_fhs" = "yes"; then
  15562. $as_echo "#define IS_FHS 1" >>confdefs.h
  15563. fi
  15564. # check for --with-fhs-opt
  15565. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-fhs-opt" >&5
  15566. $as_echo_n "checking for --with-fhs-opt... " >&6; }
  15567. # Check whether --with-fhs-opt was given.
  15568. if test "${with_fhs_opt+set}" = set; then :
  15569. withval=$with_fhs_opt;
  15570. with_fhs_opt=yes
  15571. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15572. $as_echo "yes" >&6; }
  15573. else
  15574. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15575. $as_echo "no" >&6; }
  15576. fi
  15577. if test "$with_fhs_opt" = "yes"; then
  15578. $as_echo "#define IS_FHS_OPT 1" >>confdefs.h
  15579. fi
  15580. if test "$with_fhs" = "yes" -a "$with_fhs_opt" = "yes"; then
  15581. as_fn_error $? "Can't set both --with-fhs and --with-fhs-opt. Please only use one of these options." "$LINENO" 5
  15582. fi
  15583. localrundir='/run'
  15584. # installation paths - by default, we store everything
  15585. # under the prefix. The with-fhs option will use /usr,
  15586. # /etc, and /var. The with-fhs-opt option will use the
  15587. # prefix, but it's sysconfdir and localstatedir will be
  15588. # /etc/opt, and /var/opt.
  15589. if test "$with_fhs_opt" = "yes"; then
  15590. # Override sysconfdir and localstatedir if FHS optional
  15591. # package was requested.
  15592. sysconfdir='/etc/opt'
  15593. localstatedir='/var/opt'
  15594. localrundir='/var/opt/run'
  15595. # relative to datadir
  15596. sampledatadir=/data
  15597. # relative to datadir
  15598. scripttemplatedir=/script-templates
  15599. # relative to datadir
  15600. updatedir=/updates
  15601. # relative to libdir
  15602. serverdir=
  15603. # relative to includedir
  15604. serverincdir=
  15605. # relative to libdir
  15606. serverplugindir=/plugins
  15607. # relative to datadir
  15608. infdir=/inf
  15609. # relative to datadir
  15610. mibdir=/mibs
  15611. # location of property/resource files, relative to datadir
  15612. propertydir=/properties
  15613. # relative to libdir
  15614. perldir=/perl
  15615. # relative to libdir
  15616. pythondir=/python
  15617. else
  15618. if test "$with_fhs" = "yes"; then
  15619. ac_default_prefix=/usr
  15620. prefix=$ac_default_prefix
  15621. exec_prefix=$prefix
  15622. sysconfdir='/etc'
  15623. localstatedir='/var'
  15624. localrundir='/run'
  15625. fi
  15626. # relative to datadir
  15627. sampledatadir=/$PACKAGE_NAME/data
  15628. # relative to datadir
  15629. scripttemplatedir=/$PACKAGE_NAME/script-templates
  15630. # relative to datadir
  15631. updatedir=/$PACKAGE_NAME/updates
  15632. # relative to libdir
  15633. serverdir=/$PACKAGE_NAME
  15634. # relative to includedir
  15635. serverincdir=/$PACKAGE_NAME
  15636. # relative to libdir
  15637. serverplugindir=/$PACKAGE_NAME/plugins
  15638. # relative to datadir
  15639. infdir=/$PACKAGE_NAME/inf
  15640. # relative to datadir
  15641. mibdir=/$PACKAGE_NAME/mibs
  15642. # location of property/resource files, relative to datadir
  15643. propertydir=/$PACKAGE_NAME/properties
  15644. # relative to libdir
  15645. perldir=/$PACKAGE_NAME/perl
  15646. # relative to libdir
  15647. pythondir=/$PACKAGE_NAME/python
  15648. fi
  15649. # if mandir is the default value, override it
  15650. # otherwise, the user must have set it - just use it
  15651. if test X"$mandir" = X'${prefix}/man' ; then
  15652. mandir='$(datadir)/man'
  15653. fi
  15654. # Shared paths for all layouts
  15655. # relative to sysconfdir
  15656. configdir=/$PACKAGE_NAME/config
  15657. # relative to sysconfdir
  15658. schemadir=/$PACKAGE_NAME/schema
  15659. # default user, group
  15660. defaultuser=dirsrv
  15661. defaultgroup=dirsrv
  15662. if test -z "$with_tmpfiles_d" ; then
  15663. if test -d $sysconfdir/tmpfiles.d ; then
  15664. with_tmpfiles_d='$(sysconfdir)/tmpfiles.d'
  15665. fi
  15666. fi
  15667. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-tmpfiles-d" >&5
  15668. $as_echo_n "checking for --with-tmpfiles-d... " >&6; }
  15669. # Check whether --with-tmpfiles-d was given.
  15670. if test "${with_tmpfiles_d+set}" = set; then :
  15671. withval=$with_tmpfiles_d;
  15672. fi
  15673. if test "$with_tmpfiles_d" = yes ; then
  15674. as_fn_error $? "You must specify --with-tmpfiles-d=/full/path/to/tmpfiles.d directory" "$LINENO" 5
  15675. elif test "$with_tmpfiles_d" = no ; then
  15676. with_tmpfiles_d=
  15677. else
  15678. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tmpfiles_d" >&5
  15679. $as_echo "$with_tmpfiles_d" >&6; }
  15680. fi
  15681. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  15682. if test -n "$ac_tool_prefix"; then
  15683. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  15684. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  15685. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15686. $as_echo_n "checking for $ac_word... " >&6; }
  15687. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  15688. $as_echo_n "(cached) " >&6
  15689. else
  15690. case $PKG_CONFIG in
  15691. [\\/]* | ?:[\\/]*)
  15692. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  15693. ;;
  15694. *)
  15695. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15696. for as_dir in $PATH
  15697. do
  15698. IFS=$as_save_IFS
  15699. test -z "$as_dir" && as_dir=.
  15700. for ac_exec_ext in '' $ac_executable_extensions; do
  15701. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15702. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  15703. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15704. break 2
  15705. fi
  15706. done
  15707. done
  15708. IFS=$as_save_IFS
  15709. ;;
  15710. esac
  15711. fi
  15712. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  15713. if test -n "$PKG_CONFIG"; then
  15714. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  15715. $as_echo "$PKG_CONFIG" >&6; }
  15716. else
  15717. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15718. $as_echo "no" >&6; }
  15719. fi
  15720. fi
  15721. if test -z "$ac_cv_path_PKG_CONFIG"; then
  15722. ac_pt_PKG_CONFIG=$PKG_CONFIG
  15723. # Extract the first word of "pkg-config", so it can be a program name with args.
  15724. set dummy pkg-config; ac_word=$2
  15725. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15726. $as_echo_n "checking for $ac_word... " >&6; }
  15727. if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
  15728. $as_echo_n "(cached) " >&6
  15729. else
  15730. case $ac_pt_PKG_CONFIG in
  15731. [\\/]* | ?:[\\/]*)
  15732. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  15733. ;;
  15734. *)
  15735. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15736. for as_dir in $PATH
  15737. do
  15738. IFS=$as_save_IFS
  15739. test -z "$as_dir" && as_dir=.
  15740. for ac_exec_ext in '' $ac_executable_extensions; do
  15741. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15742. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  15743. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15744. break 2
  15745. fi
  15746. done
  15747. done
  15748. IFS=$as_save_IFS
  15749. ;;
  15750. esac
  15751. fi
  15752. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  15753. if test -n "$ac_pt_PKG_CONFIG"; then
  15754. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  15755. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  15756. else
  15757. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15758. $as_echo "no" >&6; }
  15759. fi
  15760. if test "x$ac_pt_PKG_CONFIG" = x; then
  15761. PKG_CONFIG=""
  15762. else
  15763. case $cross_compiling:$ac_tool_warned in
  15764. yes:)
  15765. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  15766. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  15767. ac_tool_warned=yes ;;
  15768. esac
  15769. PKG_CONFIG=$ac_pt_PKG_CONFIG
  15770. fi
  15771. else
  15772. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  15773. fi
  15774. fi
  15775. if test -n "$PKG_CONFIG"; then
  15776. _pkg_min_version=0.9.0
  15777. { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  15778. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  15779. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  15780. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15781. $as_echo "yes" >&6; }
  15782. else
  15783. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15784. $as_echo "no" >&6; }
  15785. PKG_CONFIG=""
  15786. fi
  15787. fi
  15788. if test -n "$PKG_CONFIG" ; then
  15789. default_systemdsystemunitdir=`$PKG_CONFIG --variable=systemdsystemunitdir systemd`
  15790. default_systemdsystemconfdir=`$PKG_CONFIG --variable=systemdsystemconfdir systemd`
  15791. fi
  15792. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-perldir" >&5
  15793. $as_echo_n "checking for --with-perldir... " >&6; }
  15794. # Check whether --with-perldir was given.
  15795. if test "${with_perldir+set}" = set; then :
  15796. withval=$with_perldir;
  15797. fi
  15798. if test -n "$with_perldir"; then
  15799. if test "$with_perldir" = yes ; then
  15800. as_fn_error $? "You must specify --with-perldir=/full/path/to/perl" "$LINENO" 5
  15801. elif test "$with_perldir" = no ; then
  15802. with_perldir=
  15803. else
  15804. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_perldir" >&5
  15805. $as_echo "$with_perldir" >&6; }
  15806. fi
  15807. else
  15808. with_perldir=
  15809. fi
  15810. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pythondir" >&5
  15811. $as_echo_n "checking for --with-pythondir... " >&6; }
  15812. # Check whether --with-pythondir was given.
  15813. if test "${with_pythondir+set}" = set; then :
  15814. withval=$with_pythondir;
  15815. fi
  15816. if test -n "$with_pythondir"; then
  15817. if test "$with_pythondir" = yes ; then
  15818. as_fn_error $? "You must specify --with-pythondir=/full/path/to/python" "$LINENO" 5
  15819. elif test "$with_pythondir" = no ; then
  15820. with_pythondir=
  15821. else
  15822. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_pythondir" >&5
  15823. $as_echo "$with_pythondir" >&6; }
  15824. fi
  15825. else
  15826. with_pythondir=
  15827. fi
  15828. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-systemdsystemunitdir" >&5
  15829. $as_echo_n "checking for --with-systemdsystemunitdir... " >&6; }
  15830. # Check whether --with-systemdsystemunitdir was given.
  15831. if test "${with_systemdsystemunitdir+set}" = set; then :
  15832. withval=$with_systemdsystemunitdir;
  15833. fi
  15834. if test "$with_systemdsystemunitdir" = yes ; then
  15835. if test -n "$default_systemdsystemunitdir" ; then
  15836. with_systemdsystemunitdir=$default_systemdsystemunitdir
  15837. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_systemdsystemunitdir" >&5
  15838. $as_echo "$with_systemdsystemunitdir" >&6; }
  15839. else
  15840. as_fn_error $? "You must specify --with-systemdsystemconfdir=/full/path/to/systemd/system directory" "$LINENO" 5
  15841. fi
  15842. elif test "$with_systemdsystemunitdir" = no ; then
  15843. with_systemdsystemunitdir=
  15844. else
  15845. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_systemdsystemunitdir" >&5
  15846. $as_echo "$with_systemdsystemunitdir" >&6; }
  15847. fi
  15848. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-systemdsystemconfdir" >&5
  15849. $as_echo_n "checking for --with-systemdsystemconfdir... " >&6; }
  15850. # Check whether --with-systemdsystemconfdir was given.
  15851. if test "${with_systemdsystemconfdir+set}" = set; then :
  15852. withval=$with_systemdsystemconfdir;
  15853. fi
  15854. if test "$with_systemdsystemconfdir" = yes ; then
  15855. if test -n "$default_systemdsystemconfdir" ; then
  15856. with_systemdsystemconfdir=$default_systemdsystemconfdir
  15857. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_systemdsystemconfdir" >&5
  15858. $as_echo "$with_systemdsystemconfdir" >&6; }
  15859. else
  15860. as_fn_error $? "You must specify --with-systemdsystemconfdir=/full/path/to/systemd/system directory" "$LINENO" 5
  15861. fi
  15862. elif test "$with_systemdsystemconfdir" = no ; then
  15863. with_systemdsystemconfdir=
  15864. else
  15865. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_systemdsystemconfdir" >&5
  15866. $as_echo "$with_systemdsystemconfdir" >&6; }
  15867. fi
  15868. if test -n "$with_systemdsystemunitdir" -o -n "$with_systemdsystemconfdir" ; then
  15869. if test -z "$with_systemdgroupname" ; then
  15870. with_systemdgroupname=$PACKAGE_NAME.target
  15871. fi
  15872. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-systemdgroupname" >&5
  15873. $as_echo_n "checking for --with-systemdgroupname... " >&6; }
  15874. # Check whether --with-systemdgroupname was given.
  15875. if test "${with_systemdgroupname+set}" = set; then :
  15876. withval=$with_systemdgroupname;
  15877. fi
  15878. if test "$with_systemdgroupname" = yes ; then
  15879. as_fn_error $? "You must specify --with-systemdgroupname=name.of.group" "$LINENO" 5
  15880. elif test "$with_systemdgroupname" = no ; then
  15881. as_fn_error $? "You must specify --with-systemdgroupname=name.of.group" "$LINENO" 5
  15882. else
  15883. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_systemdgroupname" >&5
  15884. $as_echo "$with_systemdgroupname" >&6; }
  15885. fi
  15886. fi
  15887. # check for --with-instconfigdir
  15888. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-instconfigdir" >&5
  15889. $as_echo_n "checking for --with-instconfigdir... " >&6; }
  15890. # Check whether --with-instconfigdir was given.
  15891. if test "${with_instconfigdir+set}" = set; then :
  15892. withval=$with_instconfigdir;
  15893. if test $withval = yes ; then
  15894. as_fn_error $? "Please specify a full path with --with-instconfigdir" "$LINENO" 5
  15895. fi
  15896. instconfigdir="$withval"
  15897. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
  15898. $as_echo "$withval" >&6; }
  15899. else
  15900. instconfigdir='$(sysconfdir)/$(PACKAGE_NAME)'
  15901. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15902. $as_echo "no" >&6; }
  15903. fi
  15904. # WINNT should be true if building on Windows system not using
  15905. # cygnus, mingw, or the like and using cmd.exe as the shell
  15906. if false; then
  15907. WINNT_TRUE=
  15908. WINNT_FALSE='#'
  15909. else
  15910. WINNT_TRUE='#'
  15911. WINNT_FALSE=
  15912. fi
  15913. # Deal with platform dependent defines
  15914. # initdir is the location for the SysV init scripts - very heavily platform
  15915. # dependent and not specified in fhs or lsb
  15916. # and not used if systemd is used
  15917. initdir='$(sysconfdir)/rc.d'
  15918. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-initddir" >&5
  15919. $as_echo_n "checking for --with-initddir... " >&6; }
  15920. # Check whether --with-initddir was given.
  15921. if test "${with_initddir+set}" = set; then :
  15922. withval=$with_initddir;
  15923. if test "$withval" = yes -o "$withval" = no ; then
  15924. as_fn_error $? "Please specify a full path with --with-initddir" "$LINENO" 5
  15925. fi
  15926. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
  15927. $as_echo "$withval" >&6; }
  15928. else
  15929. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15930. $as_echo "no" >&6; }
  15931. fi
  15932. # on most platforms, we will just use perl from PATH
  15933. # On some platforms, we cannot. Why not just use any old
  15934. # perl? Because of perldap. We use a perldap that is
  15935. # compiled to either 32bit or 64bit, so we must use a native
  15936. # perl binary compiled with the same bitsize. On Solaris
  15937. # and HP-UX, /usr/bin/perl is 32 bit, so we cannot use
  15938. # those with our 64 bit compiled product.
  15939. if test -n "$with_perldir"; then
  15940. perlexec="$with_perldir/perl"
  15941. else
  15942. perlexec='/usr/bin/env perl'
  15943. fi
  15944. # we use stty in perl scripts to disable password echo
  15945. # this doesn't work unless the full absolute path of the
  15946. # stty command is used e.g. system("stty -echo") does not
  15947. # work but system("/bin/stty -echo") does work
  15948. # since the path of stty may not be the same on all
  15949. # platforms, we set the default here to /bin/stty and
  15950. # allow that value to be overridden in the platform
  15951. # specific section below
  15952. sttyexec=/bin/stty
  15953. case $host in
  15954. *-*-linux*)
  15955. $as_echo "#define Linux 1" >>confdefs.h
  15956. $as_echo "#define LINUX 1" >>confdefs.h
  15957. $as_echo "#define LINUX2_0 1" >>confdefs.h
  15958. $as_echo "#define LINUX2_2 1" >>confdefs.h
  15959. $as_echo "#define LINUX2_4 1" >>confdefs.h
  15960. $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
  15961. platform="linux"
  15962. initdir='$(sysconfdir)/rc.d/init.d'
  15963. # do arch specific linux stuff here
  15964. case $host in
  15965. i*86-*-linux*)
  15966. $as_echo "#define CPU_x86 /**/" >>confdefs.h
  15967. $as_echo "#define ATOMIC_64BIT_OPERATIONS 1" >>confdefs.h
  15968. ;;
  15969. x86_64-*-linux*)
  15970. $as_echo "#define CPU_x86_64 /**/" >>confdefs.h
  15971. $as_echo "#define ATOMIC_64BIT_OPERATIONS 1" >>confdefs.h
  15972. ;;
  15973. aarch64-*-linux*)
  15974. $as_echo "#define CPU_arm /**/" >>confdefs.h
  15975. ;;
  15976. arm*-linux*)
  15977. $as_echo "#define CPU_arm /**/" >>confdefs.h
  15978. ;;
  15979. esac
  15980. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC provided 64-bit atomic bool cas function ..." >&5
  15981. $as_echo_n "checking for GCC provided 64-bit atomic bool cas function ...... " >&6; }
  15982. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15983. /* end confdefs.h. */
  15984. int
  15985. main ()
  15986. {
  15987. long long ptrval = 0, val = 0, newval = 1; (void)__sync_bool_compare_and_swap_8(&ptrval, val, newval);
  15988. ;
  15989. return 0;
  15990. }
  15991. _ACEOF
  15992. if ac_fn_c_try_link "$LINENO"; then :
  15993. $as_echo "#define HAVE_64BIT_ATOMIC_CAS_FUNC 1" >>confdefs.h
  15994. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15995. $as_echo "yes" >&6; }
  15996. else
  15997. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15998. $as_echo "no" >&6; }
  15999. fi
  16000. rm -f core conftest.err conftest.$ac_objext \
  16001. conftest$ac_exeext conftest.$ac_ext
  16002. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC provided 64-bit atomic ops functions ..." >&5
  16003. $as_echo_n "checking for GCC provided 64-bit atomic ops functions ...... " >&6; }
  16004. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16005. /* end confdefs.h. */
  16006. int
  16007. main ()
  16008. {
  16009. long long ptrval = 0, val = 0; (void)__sync_add_and_fetch_8(&ptrval, val);
  16010. ;
  16011. return 0;
  16012. }
  16013. _ACEOF
  16014. if ac_fn_c_try_link "$LINENO"; then :
  16015. $as_echo "#define HAVE_64BIT_ATOMIC_OP_FUNCS 1" >>confdefs.h
  16016. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16017. $as_echo "yes" >&6; }
  16018. else
  16019. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16020. $as_echo "no" >&6; }
  16021. fi
  16022. rm -f core conftest.err conftest.$ac_objext \
  16023. conftest$ac_exeext conftest.$ac_ext
  16024. # some programs use the native thread library directly
  16025. THREADLIB=-lpthread
  16026. THREADLIB=$THREADLIB
  16027. LIBCRYPT=-lcrypt
  16028. LIBCRYPT=$LIBCRYPT
  16029. $as_echo "#define USE_POSIX_RWLOCKS 1" >>confdefs.h
  16030. ;;
  16031. ia64-hp-hpux*)
  16032. $as_echo "#define hpux 1" >>confdefs.h
  16033. $as_echo "#define HPUX 1" >>confdefs.h
  16034. $as_echo "#define HPUX11 1" >>confdefs.h
  16035. $as_echo "#define HPUX11_23 1" >>confdefs.h
  16036. $as_echo "#define CPU_ia64 /**/" >>confdefs.h
  16037. $as_echo "#define OS_hpux 1" >>confdefs.h
  16038. $as_echo "#define _POSIX_C_SOURCE 199506L" >>confdefs.h
  16039. $as_echo "#define _HPUX_SOURCE 1" >>confdefs.h
  16040. $as_echo "#define _INCLUDE_STDC__SOURCE_199901 1" >>confdefs.h
  16041. # assume 64 bit
  16042. perlexec='/opt/perl_64/bin/perl'
  16043. platform="hpux"
  16044. initconfigdir="/$PACKAGE_NAME/config"
  16045. # HPUX doesn't use /etc for this
  16046. initdir=/init.d
  16047. ;;
  16048. hppa*-hp-hpux*)
  16049. $as_echo "#define hpux 1" >>confdefs.h
  16050. $as_echo "#define HPUX 1" >>confdefs.h
  16051. $as_echo "#define HPUX11 1" >>confdefs.h
  16052. $as_echo "#define HPUX11_11 1" >>confdefs.h
  16053. $as_echo "#define CPU_hppa /**/" >>confdefs.h
  16054. $as_echo "#define OS_hpux 1" >>confdefs.h
  16055. $as_echo "#define _POSIX_C_SOURCE 199506L" >>confdefs.h
  16056. $as_echo "#define _HPUX_SOURCE 1" >>confdefs.h
  16057. $as_echo "#define _INCLUDE_STDC__SOURCE_199901 1" >>confdefs.h
  16058. $as_echo "#define ATOMIC_64BIT_OPERATIONS 1" >>confdefs.h
  16059. # assume 64 bit
  16060. initconfigdir="/$PACKAGE_NAME/config"
  16061. perlexec='/opt/perl_64/bin/perl'
  16062. platform="hpux"
  16063. # HPUX doesn't use /etc for this
  16064. initdir=/init.d
  16065. ;;
  16066. *-*-solaris*)
  16067. $as_echo "#define SVR4 1" >>confdefs.h
  16068. $as_echo "#define __svr4 1" >>confdefs.h
  16069. $as_echo "#define __svr4__ 1" >>confdefs.h
  16070. $as_echo "#define _SVID_GETTOD 1" >>confdefs.h
  16071. $as_echo "#define SOLARIS 1" >>confdefs.h
  16072. $as_echo "#define OS_solaris 1" >>confdefs.h
  16073. $as_echo "#define sunos5 1" >>confdefs.h
  16074. $as_echo "#define OSVERSION 509" >>confdefs.h
  16075. $as_echo "#define _REENTRANT 1" >>confdefs.h
  16076. $as_echo "#define NO_DOMAINNAME 1" >>confdefs.h
  16077. LIBSOCKET=-lsocket
  16078. LIBSOCKET=$LIBSOCKET
  16079. LIBNSL=-lnsl
  16080. LIBNSL=$LIBNSL
  16081. LIBDL=-ldl
  16082. LIBDL=$LIBDL
  16083. LIBCSTD=-lCstd
  16084. LIBCSTD=$LIBCSTD
  16085. LIBCRUN=-lCrun
  16086. LIBCRUN=$LIBCRUN
  16087. platform="solaris"
  16088. initdir='$(sysconfdir)/init.d'
  16089. case $host in
  16090. i?86-*-solaris2.1[0-9]*)
  16091. $as_echo "#define HAVE_GETPEERUCRED 1" >>confdefs.h
  16092. ;;
  16093. sparc-*-solaris*)
  16094. $as_echo "#define ATOMIC_64BIT_OPERATIONS 1" >>confdefs.h
  16095. $as_echo "#define CPU_sparc /**/" >>confdefs.h
  16096. TARGET='SPARC'
  16097. ;;
  16098. esac
  16099. ;;
  16100. *)
  16101. platform=""
  16102. ;;
  16103. esac
  16104. # cmd line overrides default setting above
  16105. if test -n "$with_initddir" ; then
  16106. initdir="$with_initddir"
  16107. fi
  16108. # sysv init scripts not used when systemd is used
  16109. # set default initconfigdir if not already set
  16110. # value will be set so as to be relative to $(sysconfdir)
  16111. if test -z "$initconfigdir" ; then
  16112. if test -d /etc/sysconfig ; then
  16113. initconfigdir=/sysconfig
  16114. elif test -d /etc/default ; then
  16115. initconfigdir=/default
  16116. else
  16117. initconfigdir="/$PACKAGE_NAME/config"
  16118. fi
  16119. fi
  16120. if test "$platform" = "hpux"; then
  16121. HPUX_TRUE=
  16122. HPUX_FALSE='#'
  16123. else
  16124. HPUX_TRUE='#'
  16125. HPUX_FALSE=
  16126. fi
  16127. if test "$platform" = "solaris"; then
  16128. SOLARIS_TRUE=
  16129. SOLARIS_FALSE='#'
  16130. else
  16131. SOLARIS_TRUE='#'
  16132. SOLARIS_FALSE=
  16133. fi
  16134. if test -n "$with_systemdsystemunitdir" -o -n "$with_systemdsystemconfdir"; then
  16135. SYSTEMD_TRUE=
  16136. SYSTEMD_FALSE='#'
  16137. else
  16138. SYSTEMD_TRUE='#'
  16139. SYSTEMD_FALSE=
  16140. fi
  16141. # Check for library dependencies
  16142. # BEGIN COPYRIGHT BLOCK
  16143. # Copyright (C) 2007 Red Hat, Inc.
  16144. # All rights reserved.
  16145. #
  16146. # License: GPL (version 3 or any later version).
  16147. # See LICENSE for details.
  16148. # END COPYRIGHT BLOCK
  16149. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NSPR..." >&5
  16150. $as_echo "$as_me: checking for NSPR..." >&6;}
  16151. # check for --with-nspr
  16152. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-nspr" >&5
  16153. $as_echo_n "checking for --with-nspr... " >&6; }
  16154. # Check whether --with-nspr was given.
  16155. if test "${with_nspr+set}" = set; then :
  16156. withval=$with_nspr;
  16157. if test "$withval" = "yes"
  16158. then
  16159. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16160. $as_echo "yes" >&6; }
  16161. elif test "$withval" = "no"
  16162. then
  16163. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16164. $as_echo "no" >&6; }
  16165. as_fn_error $? "NSPR is required." "$LINENO" 5
  16166. elif test -e "$withval"/include/nspr.h -a -d "$withval"/lib
  16167. then
  16168. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16169. $as_echo "using $withval" >&6; }
  16170. NSPRDIR=$withval
  16171. nspr_inc="-I$NSPRDIR/include"
  16172. nspr_lib="-L$NSPRDIR/lib"
  16173. nspr_libdir="$NSPRDIR/lib"
  16174. else
  16175. echo
  16176. as_fn_error $? "$withval not found" "$LINENO" 5
  16177. fi
  16178. else
  16179. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16180. $as_echo "yes" >&6; }
  16181. fi
  16182. # check for --with-nspr-inc
  16183. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-nspr-inc" >&5
  16184. $as_echo_n "checking for --with-nspr-inc... " >&6; }
  16185. # Check whether --with-nspr-inc was given.
  16186. if test "${with_nspr_inc+set}" = set; then :
  16187. withval=$with_nspr_inc;
  16188. if test -e "$withval"/nspr.h
  16189. then
  16190. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16191. $as_echo "using $withval" >&6; }
  16192. nspr_inc="-I$withval"
  16193. else
  16194. echo
  16195. as_fn_error $? "$withval not found" "$LINENO" 5
  16196. fi
  16197. else
  16198. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16199. $as_echo "no" >&6; }
  16200. fi
  16201. # check for --with-nspr-lib
  16202. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-nspr-lib" >&5
  16203. $as_echo_n "checking for --with-nspr-lib... " >&6; }
  16204. # Check whether --with-nspr-lib was given.
  16205. if test "${with_nspr_lib+set}" = set; then :
  16206. withval=$with_nspr_lib;
  16207. if test -d "$withval"
  16208. then
  16209. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16210. $as_echo "using $withval" >&6; }
  16211. nspr_lib="-L$withval"
  16212. nspr_libdir="$withval"
  16213. else
  16214. echo
  16215. as_fn_error $? "$withval not found" "$LINENO" 5
  16216. fi
  16217. else
  16218. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16219. $as_echo "no" >&6; }
  16220. fi
  16221. # if NSPR is not found yet, try pkg-config
  16222. # last resort
  16223. if test -z "$nspr_inc" -o -z "$nspr_lib" -o -z "$nspr_libdir"; then
  16224. # Extract the first word of "pkg-config", so it can be a program name with args.
  16225. set dummy pkg-config; ac_word=$2
  16226. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16227. $as_echo_n "checking for $ac_word... " >&6; }
  16228. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  16229. $as_echo_n "(cached) " >&6
  16230. else
  16231. case $PKG_CONFIG in
  16232. [\\/]* | ?:[\\/]*)
  16233. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  16234. ;;
  16235. *)
  16236. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16237. for as_dir in $PATH
  16238. do
  16239. IFS=$as_save_IFS
  16240. test -z "$as_dir" && as_dir=.
  16241. for ac_exec_ext in '' $ac_executable_extensions; do
  16242. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16243. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  16244. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16245. break 2
  16246. fi
  16247. done
  16248. done
  16249. IFS=$as_save_IFS
  16250. ;;
  16251. esac
  16252. fi
  16253. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  16254. if test -n "$PKG_CONFIG"; then
  16255. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  16256. $as_echo "$PKG_CONFIG" >&6; }
  16257. else
  16258. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16259. $as_echo "no" >&6; }
  16260. fi
  16261. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nspr with pkg-config" >&5
  16262. $as_echo_n "checking for nspr with pkg-config... " >&6; }
  16263. if test -n "$PKG_CONFIG"; then
  16264. if $PKG_CONFIG --exists nspr; then
  16265. nspr_inc=`$PKG_CONFIG --cflags-only-I nspr`
  16266. nspr_lib=`$PKG_CONFIG --libs-only-L nspr`
  16267. nspr_libdir=`$PKG_CONFIG --libs-only-L nspr | sed -e s/-L// | sed -e s/\ .*$//`
  16268. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using system NSPR" >&5
  16269. $as_echo "using system NSPR" >&6; }
  16270. elif $PKG_CONFIG --exists dirsec-nspr; then
  16271. nspr_inc=`$PKG_CONFIG --cflags-only-I dirsec-nspr`
  16272. nspr_lib=`$PKG_CONFIG --libs-only-L dirsec-nspr`
  16273. nspr_libdir=`$PKG_CONFIG --libs-only-L dirsec-nspr | sed -e s/-L// | sed -e s/\ .*$//`
  16274. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using system dirsec NSPR" >&5
  16275. $as_echo "using system dirsec NSPR" >&6; }
  16276. else
  16277. as_fn_error $? "NSPR not found, specify with --with-nspr." "$LINENO" 5
  16278. fi
  16279. fi
  16280. fi
  16281. # BEGIN COPYRIGHT BLOCK
  16282. # Copyright (C) 2007 Red Hat, Inc.
  16283. # All rights reserved.
  16284. #
  16285. # License: GPL (version 3 or any later version).
  16286. # See LICENSE for details.
  16287. # END COPYRIGHT BLOCK
  16288. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NSS..." >&5
  16289. $as_echo "$as_me: checking for NSS..." >&6;}
  16290. # check for --with-nss
  16291. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-nss" >&5
  16292. $as_echo_n "checking for --with-nss... " >&6; }
  16293. # Check whether --with-nss was given.
  16294. if test "${with_nss+set}" = set; then :
  16295. withval=$with_nss;
  16296. if test "$withval" = "yes"
  16297. then
  16298. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16299. $as_echo "yes" >&6; }
  16300. elif test "$withval" = "no"
  16301. then
  16302. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16303. $as_echo "no" >&6; }
  16304. as_fn_error $? "NSS is required." "$LINENO" 5
  16305. elif test -e "$withval"/include/nss.h -a -d "$withval"/lib
  16306. then
  16307. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16308. $as_echo "using $withval" >&6; }
  16309. NSSDIR=$withval
  16310. nss_inc="-I$NSSDIR/include"
  16311. nss_lib="-L$NSSDIR/lib"
  16312. nss_libdir="$NSSDIR/lib"
  16313. else
  16314. echo
  16315. as_fn_error $? "$withval not found" "$LINENO" 5
  16316. fi
  16317. else
  16318. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16319. $as_echo "yes" >&6; }
  16320. fi
  16321. # check for --with-nss-inc
  16322. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-nss-inc" >&5
  16323. $as_echo_n "checking for --with-nss-inc... " >&6; }
  16324. # Check whether --with-nss-inc was given.
  16325. if test "${with_nss_inc+set}" = set; then :
  16326. withval=$with_nss_inc;
  16327. if test -e "$withval"/nss.h
  16328. then
  16329. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16330. $as_echo "using $withval" >&6; }
  16331. nss_inc="-I$withval"
  16332. else
  16333. echo
  16334. as_fn_error $? "$withval not found" "$LINENO" 5
  16335. fi
  16336. else
  16337. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16338. $as_echo "no" >&6; }
  16339. fi
  16340. # check for --with-nss-lib
  16341. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-nss-lib" >&5
  16342. $as_echo_n "checking for --with-nss-lib... " >&6; }
  16343. # Check whether --with-nss-lib was given.
  16344. if test "${with_nss_lib+set}" = set; then :
  16345. withval=$with_nss_lib;
  16346. if test -d "$withval"
  16347. then
  16348. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16349. $as_echo "using $withval" >&6; }
  16350. nss_lib="-L$withval"
  16351. nss_libdir="$withval"
  16352. else
  16353. echo
  16354. as_fn_error $? "$withval not found" "$LINENO" 5
  16355. fi
  16356. else
  16357. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16358. $as_echo "no" >&6; }
  16359. fi
  16360. # if NSS is not found yet, try pkg-config
  16361. # last resort
  16362. if test -z "$nss_inc" -o -z "$nss_lib" -o -z "$nss_libdir"; then
  16363. # Extract the first word of "pkg-config", so it can be a program name with args.
  16364. set dummy pkg-config; ac_word=$2
  16365. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16366. $as_echo_n "checking for $ac_word... " >&6; }
  16367. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  16368. $as_echo_n "(cached) " >&6
  16369. else
  16370. case $PKG_CONFIG in
  16371. [\\/]* | ?:[\\/]*)
  16372. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  16373. ;;
  16374. *)
  16375. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16376. for as_dir in $PATH
  16377. do
  16378. IFS=$as_save_IFS
  16379. test -z "$as_dir" && as_dir=.
  16380. for ac_exec_ext in '' $ac_executable_extensions; do
  16381. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16382. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  16383. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16384. break 2
  16385. fi
  16386. done
  16387. done
  16388. IFS=$as_save_IFS
  16389. ;;
  16390. esac
  16391. fi
  16392. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  16393. if test -n "$PKG_CONFIG"; then
  16394. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  16395. $as_echo "$PKG_CONFIG" >&6; }
  16396. else
  16397. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16398. $as_echo "no" >&6; }
  16399. fi
  16400. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nss with pkg-config" >&5
  16401. $as_echo_n "checking for nss with pkg-config... " >&6; }
  16402. if test -n "$PKG_CONFIG"; then
  16403. if $PKG_CONFIG --exists nss; then
  16404. nss_inc=`$PKG_CONFIG --cflags-only-I nss`
  16405. nss_lib=`$PKG_CONFIG --libs-only-L nss`
  16406. nss_libdir=`$PKG_CONFIG --libs-only-L nss | sed -e s/-L// | sed -e s/\ .*$//`
  16407. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using system NSS" >&5
  16408. $as_echo "using system NSS" >&6; }
  16409. elif $PKG_CONFIG --exists dirsec-nss; then
  16410. nss_inc=`$PKG_CONFIG --cflags-only-I dirsec-nss`
  16411. nss_lib=`$PKG_CONFIG --libs-only-L dirsec-nss`
  16412. nss_libdir=`$PKG_CONFIG --libs-only-L dirsec-nss | sed -e s/-L// | sed -e s/\ .*$//`
  16413. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using system dirsec NSS" >&5
  16414. $as_echo "using system dirsec NSS" >&6; }
  16415. else
  16416. as_fn_error $? "NSS not found, specify with --with-nss." "$LINENO" 5
  16417. fi
  16418. fi
  16419. fi
  16420. # BEGIN COPYRIGHT BLOCK
  16421. # Copyright (C) 2009 Red Hat, Inc.
  16422. # All rights reserved.
  16423. #
  16424. # License: GPL (version 3 or any later version).
  16425. # See LICENSE for details.
  16426. # END COPYRIGHT BLOCK
  16427. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenLDAP..." >&5
  16428. $as_echo "$as_me: checking for OpenLDAP..." >&6;}
  16429. # check for --with-openldap
  16430. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-openldap" >&5
  16431. $as_echo_n "checking for --with-openldap... " >&6; }
  16432. # Check whether --with-openldap was given.
  16433. if test "${with_openldap+set}" = set; then :
  16434. withval=$with_openldap;
  16435. if test "$withval" = yes
  16436. then
  16437. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using system OpenLDAP" >&5
  16438. $as_echo "using system OpenLDAP" >&6; }
  16439. elif test "$withval" = no
  16440. then
  16441. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16442. $as_echo "no" >&6; }
  16443. elif test -e "$withval"/include/ldap.h -a -d "$withval"/lib
  16444. then
  16445. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16446. $as_echo "using $withval" >&6; }
  16447. OPENLDAPDIR=$withval
  16448. openldap_incdir="$OPENLDAPDIR/include"
  16449. openldap_inc="-I$openldap_incdir"
  16450. openldap_lib="-L$OPENLDAPDIR/lib"
  16451. openldap_libdir="$OPENLDAPDIR/lib"
  16452. openldap_bindir="$OPENLDAPDIR/bin"
  16453. with_openldap=yes
  16454. else
  16455. echo
  16456. as_fn_error $? "$withval not found" "$LINENO" 5
  16457. fi
  16458. else
  16459. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16460. $as_echo "no" >&6; }
  16461. fi
  16462. # check for --with-openldap-inc
  16463. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-openldap-inc" >&5
  16464. $as_echo_n "checking for --with-openldap-inc... " >&6; }
  16465. # Check whether --with-openldap-inc was given.
  16466. if test "${with_openldap_inc+set}" = set; then :
  16467. withval=$with_openldap_inc;
  16468. if test -e "$withval"/ldap.h
  16469. then
  16470. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16471. $as_echo "using $withval" >&6; }
  16472. openldap_incdir="$withval"
  16473. openldap_inc="-I$withval"
  16474. with_openldap=yes
  16475. else
  16476. echo
  16477. as_fn_error $? "$withval not found" "$LINENO" 5
  16478. fi
  16479. else
  16480. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16481. $as_echo "no" >&6; }
  16482. fi
  16483. # check for --with-openldap-lib
  16484. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-openldap-lib" >&5
  16485. $as_echo_n "checking for --with-openldap-lib... " >&6; }
  16486. # Check whether --with-openldap-lib was given.
  16487. if test "${with_openldap_lib+set}" = set; then :
  16488. withval=$with_openldap_lib;
  16489. if test -d "$withval"
  16490. then
  16491. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16492. $as_echo "using $withval" >&6; }
  16493. openldap_lib="-L$withval"
  16494. openldap_libdir="$withval"
  16495. with_openldap=yes
  16496. else
  16497. echo
  16498. as_fn_error $? "$withval not found" "$LINENO" 5
  16499. fi
  16500. else
  16501. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16502. $as_echo "no" >&6; }
  16503. fi
  16504. # check for --with-openldap-bin
  16505. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-openldap-bin" >&5
  16506. $as_echo_n "checking for --with-openldap-bin... " >&6; }
  16507. # Check whether --with-openldap-bin was given.
  16508. if test "${with_openldap_bin+set}" = set; then :
  16509. withval=$with_openldap_bin;
  16510. if test -d "$withval"
  16511. then
  16512. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16513. $as_echo "using $withval" >&6; }
  16514. openldap_bindir="$withval"
  16515. with_openldap=yes
  16516. else
  16517. echo
  16518. as_fn_error $? "$withval not found" "$LINENO" 5
  16519. fi
  16520. else
  16521. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16522. $as_echo "no" >&6; }
  16523. fi
  16524. # if OPENLDAP is not found yet, try pkg-config
  16525. if test "$with_openldap" = yes ; then # user wants to use openldap, but didn't specify paths
  16526. if test -z "$openldap_inc" -o -z "$openldap_lib" -o -z "$openldap_libdir" -o -z "$openldap_bindir"; then
  16527. # Extract the first word of "pkg-config", so it can be a program name with args.
  16528. set dummy pkg-config; ac_word=$2
  16529. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16530. $as_echo_n "checking for $ac_word... " >&6; }
  16531. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  16532. $as_echo_n "(cached) " >&6
  16533. else
  16534. case $PKG_CONFIG in
  16535. [\\/]* | ?:[\\/]*)
  16536. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  16537. ;;
  16538. *)
  16539. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16540. for as_dir in $PATH
  16541. do
  16542. IFS=$as_save_IFS
  16543. test -z "$as_dir" && as_dir=.
  16544. for ac_exec_ext in '' $ac_executable_extensions; do
  16545. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16546. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  16547. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16548. break 2
  16549. fi
  16550. done
  16551. done
  16552. IFS=$as_save_IFS
  16553. ;;
  16554. esac
  16555. fi
  16556. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  16557. if test -n "$PKG_CONFIG"; then
  16558. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  16559. $as_echo "$PKG_CONFIG" >&6; }
  16560. else
  16561. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16562. $as_echo "no" >&6; }
  16563. fi
  16564. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenLDAP with pkg-config" >&5
  16565. $as_echo_n "checking for OpenLDAP with pkg-config... " >&6; }
  16566. if test -n "$PKG_CONFIG" && $PKG_CONFIG --exists openldap; then
  16567. openldap_inc=`$PKG_CONFIG --cflags-only-I openldap`
  16568. openldap_lib=`$PKG_CONFIG --libs-only-L openldap`
  16569. openldap_libdir=`$PKG_CONFIG --libs-only-L openldap | sed -e s/-L// | sed -e s/\ .*$//`
  16570. openldap_bindir=`$PKG_CONFIG --variable=bindir openldap`
  16571. openldap_incdir=`$PKG_CONFIG --variable=includedir openldap`
  16572. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using system OpenLDAP from pkg-config" >&5
  16573. $as_echo "using system OpenLDAP from pkg-config" >&6; }
  16574. else
  16575. openldap_incdir="/usr/include"
  16576. openldap_inc="-I$openldap_incdir"
  16577. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no OpenLDAP pkg-config files" >&5
  16578. $as_echo "no OpenLDAP pkg-config files" >&6; }
  16579. fi
  16580. fi
  16581. fi
  16582. if test "$with_openldap" = yes ; then
  16583. save_cppflags="$CPPFLAGS"
  16584. CPPFLAGS="$openldap_inc $nss_inc $nspr_inc"
  16585. ac_fn_c_check_header_mongrel "$LINENO" "ldap_features.h" "ac_cv_header_ldap_features_h" "$ac_includes_default"
  16586. if test "x$ac_cv_header_ldap_features_h" = xyes; then :
  16587. else
  16588. as_fn_error $? "specified with-openldap but ldap_features.h not found" "$LINENO" 5
  16589. fi
  16590. ol_ver_maj=`grep LDAP_VENDOR_VERSION_MAJOR $openldap_incdir/ldap_features.h | awk '{print $3}'`
  16591. ol_ver_min=`grep LDAP_VENDOR_VERSION_MINOR $openldap_incdir/ldap_features.h | awk '{print $3}'`
  16592. ol_ver_pat=`grep LDAP_VENDOR_VERSION_PATCH $openldap_incdir/ldap_features.h | awk '{print $3}'`
  16593. ol_libver="-${ol_ver_maj}.${ol_ver_min}"
  16594. save_ldflags="$LDFLAGS"
  16595. LDFLAGS="$openldap_lib $LDFLAGS"
  16596. as_ac_Lib=`$as_echo "ac_cv_lib_ldap$ol_libver''_ldap_initialize" | $as_tr_sh`
  16597. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_initialize in -lldap$ol_libver" >&5
  16598. $as_echo_n "checking for ldap_initialize in -lldap$ol_libver... " >&6; }
  16599. if eval \${$as_ac_Lib+:} false; then :
  16600. $as_echo_n "(cached) " >&6
  16601. else
  16602. ac_check_lib_save_LIBS=$LIBS
  16603. LIBS="-lldap$ol_libver $LIBS"
  16604. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16605. /* end confdefs.h. */
  16606. /* Override any GCC internal prototype to avoid an error.
  16607. Use char because int might match the return type of a GCC
  16608. builtin and then its argument prototype would still apply. */
  16609. #ifdef __cplusplus
  16610. extern "C"
  16611. #endif
  16612. char ldap_initialize ();
  16613. int
  16614. main ()
  16615. {
  16616. return ldap_initialize ();
  16617. ;
  16618. return 0;
  16619. }
  16620. _ACEOF
  16621. if ac_fn_c_try_link "$LINENO"; then :
  16622. eval "$as_ac_Lib=yes"
  16623. else
  16624. eval "$as_ac_Lib=no"
  16625. fi
  16626. rm -f core conftest.err conftest.$ac_objext \
  16627. conftest$ac_exeext conftest.$ac_ext
  16628. LIBS=$ac_check_lib_save_LIBS
  16629. fi
  16630. eval ac_res=\$$as_ac_Lib
  16631. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  16632. $as_echo "$ac_res" >&6; }
  16633. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  16634. have_ldap_lib=1
  16635. fi
  16636. if test -z "$have_ldap_lib" ; then
  16637. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_initialize in -lldap" >&5
  16638. $as_echo_n "checking for ldap_initialize in -lldap... " >&6; }
  16639. if ${ac_cv_lib_ldap_ldap_initialize+:} false; then :
  16640. $as_echo_n "(cached) " >&6
  16641. else
  16642. ac_check_lib_save_LIBS=$LIBS
  16643. LIBS="-lldap $LIBS"
  16644. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16645. /* end confdefs.h. */
  16646. /* Override any GCC internal prototype to avoid an error.
  16647. Use char because int might match the return type of a GCC
  16648. builtin and then its argument prototype would still apply. */
  16649. #ifdef __cplusplus
  16650. extern "C"
  16651. #endif
  16652. char ldap_initialize ();
  16653. int
  16654. main ()
  16655. {
  16656. return ldap_initialize ();
  16657. ;
  16658. return 0;
  16659. }
  16660. _ACEOF
  16661. if ac_fn_c_try_link "$LINENO"; then :
  16662. ac_cv_lib_ldap_ldap_initialize=yes
  16663. else
  16664. ac_cv_lib_ldap_ldap_initialize=no
  16665. fi
  16666. rm -f core conftest.err conftest.$ac_objext \
  16667. conftest$ac_exeext conftest.$ac_ext
  16668. LIBS=$ac_check_lib_save_LIBS
  16669. fi
  16670. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_ldap_initialize" >&5
  16671. $as_echo "$ac_cv_lib_ldap_ldap_initialize" >&6; }
  16672. if test "x$ac_cv_lib_ldap_ldap_initialize" = xyes; then :
  16673. unset ol_libver
  16674. else
  16675. as_fn_error $? "specified with-openldap but libldap not found" "$LINENO" 5
  16676. fi
  16677. fi
  16678. as_ac_Lib=`$as_echo "ac_cv_lib_ldap$ol_libver''_ldap_url_parse_ext" | $as_tr_sh`
  16679. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_url_parse_ext in -lldap$ol_libver" >&5
  16680. $as_echo_n "checking for ldap_url_parse_ext in -lldap$ol_libver... " >&6; }
  16681. if eval \${$as_ac_Lib+:} false; then :
  16682. $as_echo_n "(cached) " >&6
  16683. else
  16684. ac_check_lib_save_LIBS=$LIBS
  16685. LIBS="-lldap$ol_libver $LIBS"
  16686. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16687. /* end confdefs.h. */
  16688. /* Override any GCC internal prototype to avoid an error.
  16689. Use char because int might match the return type of a GCC
  16690. builtin and then its argument prototype would still apply. */
  16691. #ifdef __cplusplus
  16692. extern "C"
  16693. #endif
  16694. char ldap_url_parse_ext ();
  16695. int
  16696. main ()
  16697. {
  16698. return ldap_url_parse_ext ();
  16699. ;
  16700. return 0;
  16701. }
  16702. _ACEOF
  16703. if ac_fn_c_try_link "$LINENO"; then :
  16704. eval "$as_ac_Lib=yes"
  16705. else
  16706. eval "$as_ac_Lib=no"
  16707. fi
  16708. rm -f core conftest.err conftest.$ac_objext \
  16709. conftest$ac_exeext conftest.$ac_ext
  16710. LIBS=$ac_check_lib_save_LIBS
  16711. fi
  16712. eval ac_res=\$$as_ac_Lib
  16713. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  16714. $as_echo "$ac_res" >&6; }
  16715. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  16716. $as_echo "#define HAVE_LDAP_URL_PARSE_EXT 1" >>confdefs.h
  16717. fi
  16718. ldap_lib_ldif=""
  16719. LDFLAGS="$LDFLAGS -lldap$ol_libver"
  16720. as_ac_Lib=`$as_echo "ac_cv_lib_ldif$ol_libver''__init" | $as_tr_sh`
  16721. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _init in -lldif$ol_libver" >&5
  16722. $as_echo_n "checking for _init in -lldif$ol_libver... " >&6; }
  16723. if eval \${$as_ac_Lib+:} false; then :
  16724. $as_echo_n "(cached) " >&6
  16725. else
  16726. ac_check_lib_save_LIBS=$LIBS
  16727. LIBS="-lldif$ol_libver $LIBS"
  16728. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16729. /* end confdefs.h. */
  16730. /* Override any GCC internal prototype to avoid an error.
  16731. Use char because int might match the return type of a GCC
  16732. builtin and then its argument prototype would still apply. */
  16733. #ifdef __cplusplus
  16734. extern "C"
  16735. #endif
  16736. char _init ();
  16737. int
  16738. main ()
  16739. {
  16740. return _init ();
  16741. ;
  16742. return 0;
  16743. }
  16744. _ACEOF
  16745. if ac_fn_c_try_link "$LINENO"; then :
  16746. eval "$as_ac_Lib=yes"
  16747. else
  16748. eval "$as_ac_Lib=no"
  16749. fi
  16750. rm -f core conftest.err conftest.$ac_objext \
  16751. conftest$ac_exeext conftest.$ac_ext
  16752. LIBS=$ac_check_lib_save_LIBS
  16753. fi
  16754. eval ac_res=\$$as_ac_Lib
  16755. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  16756. $as_echo "$ac_res" >&6; }
  16757. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  16758. ldap_lib_ldif=-lldif$ol_libver
  16759. else
  16760. ldap_lib_ldif=
  16761. fi
  16762. LDFLAGS="$save_ldflags"
  16763. CPPFLAGS="$save_cppflags"
  16764. $as_echo "#define USE_OPENLDAP 1" >>confdefs.h
  16765. # where to find ldapsearch, et. al.
  16766. ldaptool_bindir=$openldap_bindir
  16767. # default options to pass to the tools
  16768. # use -x because all of our scripts use simple bind
  16769. ldaptool_opts=-x
  16770. # get plain output from ldapsearch - no version, no comments
  16771. plainldif_opts=-LLL
  16772. fi
  16773. # BEGIN COPYRIGHT BLOCK
  16774. # Copyright (C) 2007 Red Hat, Inc.
  16775. # All rights reserved.
  16776. #
  16777. # License: GPL (version 3 or any later version).
  16778. # See LICENSE for details.
  16779. # END COPYRIGHT BLOCK
  16780. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mozilla LDAPSDK..." >&5
  16781. $as_echo "$as_me: checking for Mozilla LDAPSDK..." >&6;}
  16782. # check for --with-ldapsdk
  16783. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-ldapsdk" >&5
  16784. $as_echo_n "checking for --with-ldapsdk... " >&6; }
  16785. # Check whether --with-ldapsdk was given.
  16786. if test "${with_ldapsdk+set}" = set; then :
  16787. withval=$with_ldapsdk;
  16788. if test "$withval" = yes
  16789. then
  16790. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16791. $as_echo "yes" >&6; }
  16792. elif test "$withval" = no
  16793. then
  16794. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16795. $as_echo "no" >&6; }
  16796. elif test -e "$withval"/include/ldap.h -a -d "$withval"/lib
  16797. then
  16798. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16799. $as_echo "using $withval" >&6; }
  16800. LDAPSDKDIR=$withval
  16801. ldapsdk_inc="-I$LDAPSDKDIR/include"
  16802. ldapsdk_lib="-L$LDAPSDKDIR/lib"
  16803. ldapsdk_libdir="$LDAPSDKDIR/lib"
  16804. ldapsdk_bindir="$LDAPSDKDIR/bin"
  16805. with_ldapsdk=yes
  16806. else
  16807. echo
  16808. as_fn_error $? "$withval not found" "$LINENO" 5
  16809. fi
  16810. if test "$with_ldapsdk" = yes -a "$with_openldap" = yes
  16811. then
  16812. as_fn_error $? "Cannot use both LDAPSDK and OpenLDAP." "$LINENO" 5
  16813. fi
  16814. if test "$with_ldapsdk" != yes -a "$with_openldap" != yes
  16815. then
  16816. as_fn_error $? "Either LDAPSDK or OpenLDAP must be used." "$LINENO" 5
  16817. fi
  16818. else
  16819. if test "$with_openldap" = yes
  16820. then
  16821. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16822. $as_echo "no" >&6; }
  16823. else
  16824. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16825. $as_echo "yes" >&6; }
  16826. with_ldapsdk=yes
  16827. fi
  16828. fi
  16829. # check for --with-ldapsdk-inc
  16830. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-ldapsdk-inc" >&5
  16831. $as_echo_n "checking for --with-ldapsdk-inc... " >&6; }
  16832. # Check whether --with-ldapsdk-inc was given.
  16833. if test "${with_ldapsdk_inc+set}" = set; then :
  16834. withval=$with_ldapsdk_inc;
  16835. if test -e "$withval"/ldap.h
  16836. then
  16837. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16838. $as_echo "using $withval" >&6; }
  16839. ldapsdk_inc="-I$withval"
  16840. with_ldapsdk=yes
  16841. else
  16842. echo
  16843. as_fn_error $? "$withval not found" "$LINENO" 5
  16844. fi
  16845. else
  16846. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16847. $as_echo "no" >&6; }
  16848. fi
  16849. # check for --with-ldapsdk-lib
  16850. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-ldapsdk-lib" >&5
  16851. $as_echo_n "checking for --with-ldapsdk-lib... " >&6; }
  16852. # Check whether --with-ldapsdk-lib was given.
  16853. if test "${with_ldapsdk_lib+set}" = set; then :
  16854. withval=$with_ldapsdk_lib;
  16855. if test -d "$withval"
  16856. then
  16857. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16858. $as_echo "using $withval" >&6; }
  16859. ldapsdk_lib="-L$withval"
  16860. ldapsdk_libdir="$withval"
  16861. with_ldapsdk=yes
  16862. else
  16863. echo
  16864. as_fn_error $? "$withval not found" "$LINENO" 5
  16865. fi
  16866. else
  16867. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16868. $as_echo "no" >&6; }
  16869. fi
  16870. # check for --with-ldapsdk-bin
  16871. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-ldapsdk-bin" >&5
  16872. $as_echo_n "checking for --with-ldapsdk-bin... " >&6; }
  16873. # Check whether --with-ldapsdk-bin was given.
  16874. if test "${with_ldapsdk_bin+set}" = set; then :
  16875. withval=$with_ldapsdk_bin;
  16876. if test -d "$withval"
  16877. then
  16878. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16879. $as_echo "using $withval" >&6; }
  16880. ldapsdk_bindir="$withval"
  16881. with_ldapsdk=yes
  16882. else
  16883. echo
  16884. as_fn_error $? "$withval not found" "$LINENO" 5
  16885. fi
  16886. else
  16887. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16888. $as_echo "no" >&6; }
  16889. fi
  16890. # if LDAPSDK is not found yet, try pkg-config
  16891. # last resort
  16892. if test "$with_ldapsdk" = yes ; then
  16893. if test -z "$ldapsdk_inc" -o -z "$ldapsdk_lib" -o -z "$ldapsdk_libdir" -o -z "$ldapsdk_bindir"; then
  16894. # Extract the first word of "pkg-config", so it can be a program name with args.
  16895. set dummy pkg-config; ac_word=$2
  16896. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16897. $as_echo_n "checking for $ac_word... " >&6; }
  16898. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  16899. $as_echo_n "(cached) " >&6
  16900. else
  16901. case $PKG_CONFIG in
  16902. [\\/]* | ?:[\\/]*)
  16903. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  16904. ;;
  16905. *)
  16906. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16907. for as_dir in $PATH
  16908. do
  16909. IFS=$as_save_IFS
  16910. test -z "$as_dir" && as_dir=.
  16911. for ac_exec_ext in '' $ac_executable_extensions; do
  16912. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16913. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  16914. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16915. break 2
  16916. fi
  16917. done
  16918. done
  16919. IFS=$as_save_IFS
  16920. ;;
  16921. esac
  16922. fi
  16923. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  16924. if test -n "$PKG_CONFIG"; then
  16925. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  16926. $as_echo "$PKG_CONFIG" >&6; }
  16927. else
  16928. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16929. $as_echo "no" >&6; }
  16930. fi
  16931. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mozldap with pkg-config" >&5
  16932. $as_echo_n "checking for mozldap with pkg-config... " >&6; }
  16933. if test -n "$PKG_CONFIG"; then
  16934. if $PKG_CONFIG --exists mozldap6; then
  16935. mozldappkg=mozldap6
  16936. elif $PKG_CONFIG --exists mozldap; then
  16937. mozldappkg=mozldap
  16938. else
  16939. as_fn_error $? "LDAPSDK not found, specify with --with-ldapsdk-inc|-lib|-bin." "$LINENO" 5
  16940. fi
  16941. ldapsdk_inc=`$PKG_CONFIG --cflags-only-I $mozldappkg`
  16942. ldapsdk_lib=`$PKG_CONFIG --libs-only-L $mozldappkg`
  16943. ldapsdk_libdir=`$PKG_CONFIG --libs-only-L $mozldappkg | sed -e s/-L// | sed -e s/\ .*$//`
  16944. ldapsdk_bindir=`$PKG_CONFIG --variable=bindir $mozldappkg`
  16945. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using system $mozldappkg" >&5
  16946. $as_echo "using system $mozldappkg" >&6; }
  16947. fi
  16948. fi
  16949. fi
  16950. if test "$with_ldapsdk" = yes ; then
  16951. if test -z "$ldapsdk_inc" -o -z "$ldapsdk_lib"; then
  16952. as_fn_error $? "LDAPSDK not found, specify with --with-ldapsdk-inc|-lib|-bin." "$LINENO" 5
  16953. fi
  16954. if test -z "$ldapsdk_bindir" ; then
  16955. if -d $libdir/mozldap6 ; then
  16956. ldapsdk_bindir=$libdir/mozldap6
  16957. else
  16958. ldapsdk_bindir=$libdir/mozldap
  16959. fi
  16960. fi
  16961. save_cppflags="$CPPFLAGS"
  16962. CPPFLAGS="$ldapsdk_inc $nss_inc $nspr_inc"
  16963. ac_fn_c_check_header_compile "$LINENO" "ldap.h" "ac_cv_header_ldap_h" "#include <ldap-standard.h>
  16964. #if LDAP_VENDOR_VERSION < 600
  16965. #error The LDAP C SDK version is not supported
  16966. #endif
  16967. "
  16968. if test "x$ac_cv_header_ldap_h" = xyes; then :
  16969. isversion6=1
  16970. else
  16971. isversion6=
  16972. fi
  16973. CPPFLAGS="$save_cppflags"
  16974. if test -z "$isversion6" ; then
  16975. as_fn_error $? "The LDAPSDK version in $ldapsdk_inc/ldap-standard.h is not supported" "$LINENO" 5
  16976. fi
  16977. $as_echo "#define USE_MOZLDAP 1" >>confdefs.h
  16978. $as_echo "#define HAVE_LDAP_URL_PARSE_NO_DEFAULTS 1" >>confdefs.h
  16979. # where to find ldapsearch, et. al.
  16980. ldaptool_bindir=$ldapsdk_bindir
  16981. # default options to pass to the tools
  16982. ldaptool_opts=
  16983. # get plain output from ldapsearch - no version
  16984. plainldif_opts=-1
  16985. fi
  16986. # BEGIN COPYRIGHT BLOCK
  16987. # Copyright (C) 2007 Red Hat, Inc.
  16988. # All rights reserved.
  16989. #
  16990. # License: GPL (version 3 or any later version).
  16991. # See LICENSE for details.
  16992. # END COPYRIGHT BLOCK
  16993. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for db..." >&5
  16994. $as_echo "$as_me: checking for db..." >&6;}
  16995. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-db" >&5
  16996. $as_echo_n "checking for --with-db... " >&6; }
  16997. # Check whether --with-db was given.
  16998. if test "${with_db+set}" = set; then :
  16999. withval=$with_db;
  17000. if test "$withval" = "yes"; then
  17001. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17002. $as_echo "yes" >&6; }
  17003. elif test "$withval" = "no"; then
  17004. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17005. $as_echo "no" >&6; }
  17006. as_fn_error $? "db is required." "$LINENO" 5
  17007. elif test -d "$withval"/include -a -d "$withval"/lib; then
  17008. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17009. $as_echo "using $withval" >&6; }
  17010. DBDIR=$withval
  17011. db_lib="-L$DBDIR/lib"
  17012. db_libdir="$DBDIR/lib"
  17013. db_incdir="$DBDIR/include"
  17014. if ! test -e "$db_incdir/db.h" ; then
  17015. as_fn_error $? "$withval include dir not found" "$LINENO" 5
  17016. fi
  17017. db_inc="-I$db_incdir"
  17018. else
  17019. echo
  17020. as_fn_error $? "$withval not found" "$LINENO" 5
  17021. fi
  17022. else
  17023. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17024. $as_echo "yes" >&6; }
  17025. fi
  17026. # check for --with-db-inc
  17027. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-db-inc" >&5
  17028. $as_echo_n "checking for --with-db-inc... " >&6; }
  17029. # Check whether --with-db-inc was given.
  17030. if test "${with_db_inc+set}" = set; then :
  17031. withval=$with_db_inc;
  17032. if test -e "$withval"/db.h
  17033. then
  17034. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17035. $as_echo "using $withval" >&6; }
  17036. db_incdir="$withval"
  17037. db_inc="-I$withval"
  17038. else
  17039. echo
  17040. as_fn_error $? "$withval not found" "$LINENO" 5
  17041. fi
  17042. else
  17043. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17044. $as_echo "no" >&6; }
  17045. fi
  17046. # check for --with-db-lib
  17047. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-db-lib" >&5
  17048. $as_echo_n "checking for --with-db-lib... " >&6; }
  17049. # Check whether --with-db-lib was given.
  17050. if test "${with_db_lib+set}" = set; then :
  17051. withval=$with_db_lib;
  17052. if test -d "$withval"
  17053. then
  17054. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17055. $as_echo "using $withval" >&6; }
  17056. db_lib="-L$withval"
  17057. db_libdir="$withval"
  17058. else
  17059. echo
  17060. as_fn_error $? "$withval not found" "$LINENO" 5
  17061. fi
  17062. else
  17063. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17064. $as_echo "no" >&6; }
  17065. fi
  17066. if test -z "$db_inc"; then
  17067. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for db.h" >&5
  17068. $as_echo_n "checking for db.h... " >&6; }
  17069. if test -f "/usr/include/db4/db.h"; then
  17070. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using /usr/include/db4/db.h" >&5
  17071. $as_echo "using /usr/include/db4/db.h" >&6; }
  17072. db_incdir="/usr/include/db4"
  17073. db_inc="-I/usr/include/db4"
  17074. db_lib='-L$(libdir)'
  17075. db_libdir='$(libdir)'
  17076. elif test -f "/usr/include/libdb/db.h"; then
  17077. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using /usr/include/libdb/db.h" >&5
  17078. $as_echo "using /usr/include/libdb/db.h" >&6; }
  17079. db_incdir="/usr/include/libdb"
  17080. db_inc="-I/usr/include/libdb"
  17081. db_lib='-L$(libdir)'
  17082. db_libdir='$(libdir)'
  17083. elif test -f "/usr/include/db.h"; then
  17084. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using /usr/include/db.h" >&5
  17085. $as_echo "using /usr/include/db.h" >&6; }
  17086. db_incdir="/usr/include"
  17087. db_inc="-I/usr/include"
  17088. db_lib='-L$(libdir)'
  17089. db_libdir='$(libdir)'
  17090. else
  17091. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17092. $as_echo "no" >&6; }
  17093. as_fn_error $? "db not found, specify with --with-db." "$LINENO" 5
  17094. fi
  17095. fi
  17096. db_ver_maj=`grep DB_VERSION_MAJOR $db_incdir/db.h | awk '{print $3}'`
  17097. db_ver_min=`grep DB_VERSION_MINOR $db_incdir/db.h | awk '{print $3}'`
  17098. db_ver_pat=`grep DB_VERSION_PATCH $db_incdir/db.h | awk '{print $3}'`
  17099. db_libver=${db_ver_maj}.${db_ver_min}
  17100. save_ldflags="$LDFLAGS"
  17101. LDFLAGS="$db_lib $LDFLAGS"
  17102. as_ac_Lib=`$as_echo "ac_cv_lib_db-$db_libver''_db_create" | $as_tr_sh`
  17103. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for db_create in -ldb-$db_libver" >&5
  17104. $as_echo_n "checking for db_create in -ldb-$db_libver... " >&6; }
  17105. if eval \${$as_ac_Lib+:} false; then :
  17106. $as_echo_n "(cached) " >&6
  17107. else
  17108. ac_check_lib_save_LIBS=$LIBS
  17109. LIBS="-ldb-$db_libver $LIBNSL $LIBS"
  17110. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17111. /* end confdefs.h. */
  17112. /* Override any GCC internal prototype to avoid an error.
  17113. Use char because int might match the return type of a GCC
  17114. builtin and then its argument prototype would still apply. */
  17115. #ifdef __cplusplus
  17116. extern "C"
  17117. #endif
  17118. char db_create ();
  17119. int
  17120. main ()
  17121. {
  17122. return db_create ();
  17123. ;
  17124. return 0;
  17125. }
  17126. _ACEOF
  17127. if ac_fn_c_try_link "$LINENO"; then :
  17128. eval "$as_ac_Lib=yes"
  17129. else
  17130. eval "$as_ac_Lib=no"
  17131. fi
  17132. rm -f core conftest.err conftest.$ac_objext \
  17133. conftest$ac_exeext conftest.$ac_ext
  17134. LIBS=$ac_check_lib_save_LIBS
  17135. fi
  17136. eval ac_res=\$$as_ac_Lib
  17137. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  17138. $as_echo "$ac_res" >&6; }
  17139. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  17140. true
  17141. else
  17142. as_fn_error $? "$db_incdir/db.h is version $db_libver but libdb-$db_libver not found" "$LINENO" 5
  17143. fi
  17144. LDFLAGS="$save_ldflags"
  17145. # if DB is not found yet, try pkg-config
  17146. # last resort
  17147. # Although the other db_* variables are correctly assigned at this point,
  17148. # db_bindir needs to be set by pkg-config if possible (e.g., on 64-bit Solaris)
  17149. if test -n "$PKG_CONFIG"; then
  17150. if $PKG_CONFIG --exists db; then
  17151. db_bindir=`$PKG_CONFIG --variable=bindir db`
  17152. else
  17153. db_bindir=/usr/bin
  17154. fi
  17155. else
  17156. db_bindir=/usr/bin
  17157. fi
  17158. # BEGIN COPYRIGHT BLOCK
  17159. # Copyright (C) 2007 Red Hat, Inc.
  17160. # All rights reserved.
  17161. #
  17162. # License: GPL (version 3 or any later version).
  17163. # See LICENSE for details.
  17164. # END COPYRIGHT BLOCK
  17165. # -*- tab-width: 4; -*-
  17166. # Configure paths for SASL
  17167. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SASL..." >&5
  17168. $as_echo "$as_me: checking for SASL..." >&6;}
  17169. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-sasl" >&5
  17170. $as_echo_n "checking for --with-sasl... " >&6; }
  17171. # Check whether --with-sasl was given.
  17172. if test "${with_sasl+set}" = set; then :
  17173. withval=$with_sasl;
  17174. if test "$withval" = "yes"; then
  17175. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17176. $as_echo "yes" >&6; }
  17177. elif test "$withval" = "no"; then
  17178. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17179. $as_echo "no" >&6; }
  17180. as_fn_error $? "SASL is required." "$LINENO" 5
  17181. elif test -d "$withval" -a -d "$withval/lib" -a -d "$withval/include" ; then
  17182. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17183. $as_echo "using $withval" >&6; }
  17184. if test -f "$withval/include/sasl/sasl.h"; then
  17185. sasl_inc="-I$withval/include/sasl"
  17186. elif test -f "$withval/include/sasl.h"; then
  17187. sasl_inc="-I$withval/include"
  17188. else
  17189. as_fn_error $? "sasl.h not found" "$LINENO" 5
  17190. fi
  17191. sasl_lib="-L$withval/lib"
  17192. sasl_libdir="$withval/lib"
  17193. else
  17194. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17195. $as_echo "yes" >&6; }
  17196. as_fn_error $? "SASL not found in $withval" "$LINENO" 5
  17197. fi
  17198. else
  17199. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17200. $as_echo "yes" >&6; }
  17201. fi
  17202. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-sasl-inc" >&5
  17203. $as_echo_n "checking for --with-sasl-inc... " >&6; }
  17204. # Check whether --with-sasl-inc was given.
  17205. if test "${with_sasl_inc+set}" = set; then :
  17206. withval=$with_sasl_inc;
  17207. if test -f "$withval"/sasl.h; then
  17208. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17209. $as_echo "using $withval" >&6; }
  17210. sasl_inc="-I$withval"
  17211. else
  17212. echo
  17213. as_fn_error $? "$withval/sasl.h not found" "$LINENO" 5
  17214. fi
  17215. else
  17216. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17217. $as_echo "no" >&6; }
  17218. fi
  17219. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-sasl-lib" >&5
  17220. $as_echo_n "checking for --with-sasl-lib... " >&6; }
  17221. # Check whether --with-sasl-lib was given.
  17222. if test "${with_sasl_lib+set}" = set; then :
  17223. withval=$with_sasl_lib;
  17224. if test -d "$withval"; then
  17225. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17226. $as_echo "using $withval" >&6; }
  17227. sasl_lib="-L$withval"
  17228. sasl_libdir="$withval"
  17229. else
  17230. echo
  17231. as_fn_error $? "$withval not found" "$LINENO" 5
  17232. fi
  17233. else
  17234. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17235. $as_echo "no" >&6; }
  17236. fi
  17237. if test -z "$sasl_inc"; then
  17238. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sasl.h" >&5
  17239. $as_echo_n "checking for sasl.h... " >&6; }
  17240. if test -f /usr/include/sasl/sasl.h; then
  17241. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using /usr/include/sasl/sasl.h" >&5
  17242. $as_echo "using /usr/include/sasl/sasl.h" >&6; }
  17243. sasl_inc="-I/usr/include/sasl"
  17244. elif test -f /usr/include/sasl.h; then
  17245. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using /usr/include/sasl.h" >&5
  17246. $as_echo "using /usr/include/sasl.h" >&6; }
  17247. sasl_inc="-I/usr/include"
  17248. else
  17249. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17250. $as_echo "no" >&6; }
  17251. as_fn_error $? "SASL not found, specify with --with-sasl." "$LINENO" 5
  17252. fi
  17253. fi
  17254. # BEGIN COPYRIGHT BLOCK
  17255. # Copyright (C) 2007 Red Hat, Inc.
  17256. # All rights reserved.
  17257. #
  17258. # License: GPL (version 3 or any later version).
  17259. # See LICENSE for details.
  17260. # END COPYRIGHT BLOCK
  17261. #
  17262. # Configure paths for SVRCORE
  17263. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SVRCORE..." >&5
  17264. $as_echo "$as_me: checking for SVRCORE..." >&6;}
  17265. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-svrcore" >&5
  17266. $as_echo_n "checking for --with-svrcore... " >&6; }
  17267. # Check whether --with-svrcore was given.
  17268. if test "${with_svrcore+set}" = set; then :
  17269. withval=$with_svrcore;
  17270. if test "$withval" = "yes"; then
  17271. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17272. $as_echo "yes" >&6; }
  17273. elif test "$withval" = "no"; then
  17274. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17275. $as_echo "no" >&6; }
  17276. as_fn_error $? "SVRCORE is required." "$LINENO" 5
  17277. elif test -d "$withval" -a -d "$withval/lib" -a -d "$withval/include" ; then
  17278. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17279. $as_echo "using $withval" >&6; }
  17280. if test -f "$withval/include/svrcore.h"; then
  17281. svrcore_inc="-I$withval/include"
  17282. else
  17283. as_fn_error $? "svrcore.h not found" "$LINENO" 5
  17284. fi
  17285. svrcore_lib="-L$withval/lib"
  17286. else
  17287. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17288. $as_echo "yes" >&6; }
  17289. as_fn_error $? "SVRCORE not found in $withval" "$LINENO" 5
  17290. fi
  17291. else
  17292. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17293. $as_echo "yes" >&6; }
  17294. fi
  17295. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-svrcore-inc" >&5
  17296. $as_echo_n "checking for --with-svrcore-inc... " >&6; }
  17297. # Check whether --with-svrcore-inc was given.
  17298. if test "${with_svrcore_inc+set}" = set; then :
  17299. withval=$with_svrcore_inc;
  17300. if test -f "$withval"/svrcore.h; then
  17301. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17302. $as_echo "using $withval" >&6; }
  17303. svrcore_inc="-I$withval"
  17304. else
  17305. echo
  17306. as_fn_error $? "$withval/svrcore.h not found" "$LINENO" 5
  17307. fi
  17308. else
  17309. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17310. $as_echo "no" >&6; }
  17311. fi
  17312. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-svrcore-lib" >&5
  17313. $as_echo_n "checking for --with-svrcore-lib... " >&6; }
  17314. # Check whether --with-svrcore-lib was given.
  17315. if test "${with_svrcore_lib+set}" = set; then :
  17316. withval=$with_svrcore_lib;
  17317. if test -d "$withval"; then
  17318. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17319. $as_echo "using $withval" >&6; }
  17320. svrcore_lib="-L$withval"
  17321. else
  17322. echo
  17323. as_fn_error $? "$withval not found" "$LINENO" 5
  17324. fi
  17325. else
  17326. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17327. $as_echo "no" >&6; }
  17328. fi
  17329. if test -z "$svrcore_inc" -o -z "$svrcore_lib"; then
  17330. # Extract the first word of "pkg-config", so it can be a program name with args.
  17331. set dummy pkg-config; ac_word=$2
  17332. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17333. $as_echo_n "checking for $ac_word... " >&6; }
  17334. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  17335. $as_echo_n "(cached) " >&6
  17336. else
  17337. case $PKG_CONFIG in
  17338. [\\/]* | ?:[\\/]*)
  17339. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  17340. ;;
  17341. *)
  17342. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17343. for as_dir in $PATH
  17344. do
  17345. IFS=$as_save_IFS
  17346. test -z "$as_dir" && as_dir=.
  17347. for ac_exec_ext in '' $ac_executable_extensions; do
  17348. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17349. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  17350. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17351. break 2
  17352. fi
  17353. done
  17354. done
  17355. IFS=$as_save_IFS
  17356. ;;
  17357. esac
  17358. fi
  17359. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  17360. if test -n "$PKG_CONFIG"; then
  17361. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  17362. $as_echo "$PKG_CONFIG" >&6; }
  17363. else
  17364. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17365. $as_echo "no" >&6; }
  17366. fi
  17367. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SVRCORE with pkg-config" >&5
  17368. $as_echo_n "checking for SVRCORE with pkg-config... " >&6; }
  17369. if test -n "$PKG_CONFIG"; then
  17370. if $PKG_CONFIG --exists svrcore; then
  17371. svrcore_inc=`$PKG_CONFIG --cflags-only-I svrcore`
  17372. svrcore_lib=`$PKG_CONFIG --libs-only-L svrcore`
  17373. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using system svrcore" >&5
  17374. $as_echo "using system svrcore" >&6; }
  17375. fi
  17376. fi
  17377. fi
  17378. if test -z "$svrcore_inc" -o -z "$svrcore_lib"; then
  17379. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SVRCORE_GetRegisteredPinObj in -lsvrcore" >&5
  17380. $as_echo_n "checking for SVRCORE_GetRegisteredPinObj in -lsvrcore... " >&6; }
  17381. if ${ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj+:} false; then :
  17382. $as_echo_n "(cached) " >&6
  17383. else
  17384. ac_check_lib_save_LIBS=$LIBS
  17385. LIBS="-lsvrcore $nss_inc $nspr_inc $nss_lib -lnss3 -lsoftokn3 $nspr_lib -lplds4 -lplc4 -lnspr4 $LIBS"
  17386. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17387. /* end confdefs.h. */
  17388. /* Override any GCC internal prototype to avoid an error.
  17389. Use char because int might match the return type of a GCC
  17390. builtin and then its argument prototype would still apply. */
  17391. #ifdef __cplusplus
  17392. extern "C"
  17393. #endif
  17394. char SVRCORE_GetRegisteredPinObj ();
  17395. int
  17396. main ()
  17397. {
  17398. return SVRCORE_GetRegisteredPinObj ();
  17399. ;
  17400. return 0;
  17401. }
  17402. _ACEOF
  17403. if ac_fn_c_try_link "$LINENO"; then :
  17404. ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj=yes
  17405. else
  17406. ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj=no
  17407. fi
  17408. rm -f core conftest.err conftest.$ac_objext \
  17409. conftest$ac_exeext conftest.$ac_ext
  17410. LIBS=$ac_check_lib_save_LIBS
  17411. fi
  17412. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj" >&5
  17413. $as_echo "$ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj" >&6; }
  17414. if test "x$ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj" = xyes; then :
  17415. havesvrcore=1
  17416. fi
  17417. if test -n "$havesvrcore" ; then
  17418. save_cppflags="$CPPFLAGS"
  17419. CPPFLAGS="$nss_inc $nspr_inc"
  17420. ac_fn_c_check_header_mongrel "$LINENO" "svrcore.h" "ac_cv_header_svrcore_h" "$ac_includes_default"
  17421. if test "x$ac_cv_header_svrcore_h" = xyes; then :
  17422. havesvrcore=1
  17423. else
  17424. havesvrcore=
  17425. fi
  17426. CPPFLAGS="$save_cppflags"
  17427. fi
  17428. if test -z "$havesvrcore" ; then
  17429. as_fn_error $? "SVRCORE not found, specify with --with-svrcore." "$LINENO" 5
  17430. fi
  17431. fi
  17432. if test -z "$svrcore_inc" -o -z "$svrcore_lib"; then
  17433. if test -f /usr/include/svrcore.h; then
  17434. svrcore_inc="-I/usr/include"
  17435. svrcore_lib="-L/usr/lib"
  17436. else
  17437. as_fn_error $? "SVRCORE not found, specify with --with-svrcore." "$LINENO" 5
  17438. fi
  17439. fi
  17440. # BEGIN COPYRIGHT BLOCK
  17441. # Copyright (C) 2006 Red Hat, Inc.
  17442. # All rights reserved.
  17443. #
  17444. # License: GPL (version 3 or any later version).
  17445. # See LICENSE for details.
  17446. # END COPYRIGHT BLOCK
  17447. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBICU..." >&5
  17448. $as_echo "$as_me: checking for LIBICU..." >&6;}
  17449. # check for --with-icu
  17450. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-icu" >&5
  17451. $as_echo_n "checking for --with-icu... " >&6; }
  17452. # Check whether --with-icu was given.
  17453. if test "${with_icu+set}" = set; then :
  17454. withval=$with_icu;
  17455. if test "$withval" = "yes"
  17456. then
  17457. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17458. $as_echo "yes" >&6; }
  17459. elif test "$withval" = "no"
  17460. then
  17461. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17462. $as_echo "no" >&6; }
  17463. as_fn_error $? "ICU is required." "$LINENO" 5
  17464. elif test -d "$withval"/lib
  17465. then
  17466. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17467. $as_echo "using $withval" >&6; }
  17468. ICUDIR=$withval
  17469. icu_lib="-L$ICUDIR/lib"
  17470. icu_inc="-I$withval/include"
  17471. icu_bin="$withval/bin"
  17472. else
  17473. echo
  17474. as_fn_error $? "$withval not found" "$LINENO" 5
  17475. fi
  17476. else
  17477. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17478. $as_echo "yes" >&6; }
  17479. fi
  17480. # check for --with-icu-inc
  17481. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-icu-inc" >&5
  17482. $as_echo_n "checking for --with-icu-inc... " >&6; }
  17483. # Check whether --with-icu-inc was given.
  17484. if test "${with_icu_inc+set}" = set; then :
  17485. withval=$with_icu_inc;
  17486. if test -d "$withval"
  17487. then
  17488. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17489. $as_echo "using $withval" >&6; }
  17490. icu_inc="-I$withval"
  17491. else
  17492. echo
  17493. as_fn_error $? "$withval not found" "$LINENO" 5
  17494. fi
  17495. else
  17496. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17497. $as_echo "no" >&6; }
  17498. fi
  17499. # check for --with-icu-lib
  17500. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-icu-lib" >&5
  17501. $as_echo_n "checking for --with-icu-lib... " >&6; }
  17502. # Check whether --with-icu-lib was given.
  17503. if test "${with_icu_lib+set}" = set; then :
  17504. withval=$with_icu_lib;
  17505. if test -d "$withval"
  17506. then
  17507. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17508. $as_echo "using $withval" >&6; }
  17509. icu_lib="-L$withval"
  17510. else
  17511. echo
  17512. as_fn_error $? "$withval not found" "$LINENO" 5
  17513. fi
  17514. else
  17515. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17516. $as_echo "no" >&6; }
  17517. fi
  17518. # check for --with-icu-bin
  17519. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-icu-bin" >&5
  17520. $as_echo_n "checking for --with-icu-bin... " >&6; }
  17521. # Check whether --with-icu-bin was given.
  17522. if test "${with_icu_bin+set}" = set; then :
  17523. withval=$with_icu_bin;
  17524. if test -d "$withval"
  17525. then
  17526. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17527. $as_echo "using $withval" >&6; }
  17528. icu_bin="$withval"
  17529. else
  17530. echo
  17531. as_fn_error $? "$withval not found" "$LINENO" 5
  17532. fi
  17533. else
  17534. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17535. $as_echo "no" >&6; }
  17536. fi
  17537. # if ICU is not found yet, try pkg-config
  17538. # last resort
  17539. if test -z "$icu_lib"; then
  17540. # Extract the first word of "icu-config", so it can be a program name with args.
  17541. set dummy icu-config; ac_word=$2
  17542. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17543. $as_echo_n "checking for $ac_word... " >&6; }
  17544. if ${ac_cv_path_ICU_CONFIG+:} false; then :
  17545. $as_echo_n "(cached) " >&6
  17546. else
  17547. case $ICU_CONFIG in
  17548. [\\/]* | ?:[\\/]*)
  17549. ac_cv_path_ICU_CONFIG="$ICU_CONFIG" # Let the user override the test with a path.
  17550. ;;
  17551. *)
  17552. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17553. for as_dir in $PATH
  17554. do
  17555. IFS=$as_save_IFS
  17556. test -z "$as_dir" && as_dir=.
  17557. for ac_exec_ext in '' $ac_executable_extensions; do
  17558. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17559. ac_cv_path_ICU_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  17560. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17561. break 2
  17562. fi
  17563. done
  17564. done
  17565. IFS=$as_save_IFS
  17566. ;;
  17567. esac
  17568. fi
  17569. ICU_CONFIG=$ac_cv_path_ICU_CONFIG
  17570. if test -n "$ICU_CONFIG"; then
  17571. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICU_CONFIG" >&5
  17572. $as_echo "$ICU_CONFIG" >&6; }
  17573. else
  17574. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17575. $as_echo "no" >&6; }
  17576. fi
  17577. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for icu with icu-config" >&5
  17578. $as_echo_n "checking for icu with icu-config... " >&6; }
  17579. if test -n "$ICU_CONFIG"; then
  17580. icu_lib=`$ICU_CONFIG --ldflags-searchpath`
  17581. icu_inc=`$ICU_CONFIG --cppflags-searchpath`
  17582. icu_bin=`$ICU_CONFIG --bindir`
  17583. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using system ICU" >&5
  17584. $as_echo "using system ICU" >&6; }
  17585. else
  17586. as_fn_error $? "ICU not found, specify with --with-icu." "$LINENO" 5
  17587. fi
  17588. fi
  17589. # BEGIN COPYRIGHT BLOCK
  17590. # Copyright (C) 2006 Red Hat, Inc.
  17591. # All rights reserved.
  17592. #
  17593. # License: GPL (version 3 or any later version).
  17594. # See LICENSE for details.
  17595. # END COPYRIGHT BLOCK
  17596. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Net-SNMP..." >&5
  17597. $as_echo "$as_me: checking for Net-SNMP..." >&6;}
  17598. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-netsnmp" >&5
  17599. $as_echo_n "checking for --with-netsnmp... " >&6; }
  17600. # Check whether --with-netsnmp was given.
  17601. if test "${with_netsnmp+set}" = set; then :
  17602. withval=$with_netsnmp;
  17603. if test "$withval" = "yes"; then
  17604. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17605. $as_echo "yes" >&6; }
  17606. elif test "$withval" = "no"; then
  17607. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17608. $as_echo "no" >&6; }
  17609. as_fn_error $? "Net-SNMP is required." "$LINENO" 5
  17610. elif test -d "$withval" -a -d "$withval/lib" -a -d "$withval/include"; then
  17611. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17612. $as_echo "using $withval" >&6; }
  17613. NETSNMPDIR=$withval
  17614. if test -f "$withval/include/net-snmp/net-snmp-includes.h"; then
  17615. netsnmp_inc="-I$withval/include"
  17616. else
  17617. as_fn_error $? "net-snmp-config.h not found" "$LINENO" 5
  17618. fi
  17619. netsnmp_lib="-L$withval/lib"
  17620. netsnmp_libdir="$withval/lib"
  17621. else
  17622. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17623. $as_echo "yes" >&6; }
  17624. as_fn_error $? "$withval not found" "$LINENO" 5
  17625. fi
  17626. else
  17627. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17628. $as_echo "yes" >&6; }
  17629. fi
  17630. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-netsnmp-inc" >&5
  17631. $as_echo_n "checking for --with-netsnmp-inc... " >&6; }
  17632. # Check whether --with-netsnmp-inc was given.
  17633. if test "${with_netsnmp_inc+set}" = set; then :
  17634. withval=$with_netsnmp_inc;
  17635. if test -f "$withval/net-snmp/net-snmp-includes.h"; then
  17636. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17637. $as_echo "using $withval" >&6; }
  17638. netsnmp_inc="-I$withval"
  17639. else
  17640. echo
  17641. as_fn_error $? "$withval/net-snmp/net-snmp-includes.h not found" "$LINENO" 5
  17642. fi
  17643. else
  17644. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17645. $as_echo "no" >&6; }
  17646. fi
  17647. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-netsnmp-lib" >&5
  17648. $as_echo_n "checking for --with-netsnmp-lib... " >&6; }
  17649. # Check whether --with-netsnmp-lib was given.
  17650. if test "${with_netsnmp_lib+set}" = set; then :
  17651. withval=$with_netsnmp_lib;
  17652. if test -d "$withval"
  17653. then
  17654. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17655. $as_echo "using $withval" >&6; }
  17656. netsnmp_lib="-L$withval"
  17657. netsnmp_libdir="$withval"
  17658. else
  17659. echo
  17660. as_fn_error $? "$withval not found" "$LINENO" 5
  17661. fi
  17662. else
  17663. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17664. $as_echo "no" >&6; }
  17665. fi
  17666. if test -z "$netsnmp_inc" -o -z "$netsnmp_lib"; then
  17667. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for net-snmp-includes.h" >&5
  17668. $as_echo_n "checking for net-snmp-includes.h... " >&6; }
  17669. if test -f /usr/include/net-snmp/net-snmp-includes.h; then
  17670. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using /usr/include/net-snmp/net-snmp-includes.h" >&5
  17671. $as_echo "using /usr/include/net-snmp/net-snmp-includes.h" >&6; }
  17672. netsnmp_inc="-I/usr/include"
  17673. else
  17674. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17675. $as_echo "no" >&6; }
  17676. as_fn_error $? "net-snmp not found, specify with --with-netsnmp." "$LINENO" 5
  17677. fi
  17678. fi
  17679. if test -n "$netsnmp_inc"; then
  17680. if test -x "$NETSNMPDIR/bin/net-snmp-config"; then
  17681. NETSNMP_CONFIG=$NETSNMPDIR/bin/net-snmp-config
  17682. else
  17683. # Extract the first word of "net-snmp-config", so it can be a program name with args.
  17684. set dummy net-snmp-config; ac_word=$2
  17685. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17686. $as_echo_n "checking for $ac_word... " >&6; }
  17687. if ${ac_cv_path_NETSNMP_CONFIG+:} false; then :
  17688. $as_echo_n "(cached) " >&6
  17689. else
  17690. case $NETSNMP_CONFIG in
  17691. [\\/]* | ?:[\\/]*)
  17692. ac_cv_path_NETSNMP_CONFIG="$NETSNMP_CONFIG" # Let the user override the test with a path.
  17693. ;;
  17694. *)
  17695. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17696. for as_dir in $PATH
  17697. do
  17698. IFS=$as_save_IFS
  17699. test -z "$as_dir" && as_dir=.
  17700. for ac_exec_ext in '' $ac_executable_extensions; do
  17701. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17702. ac_cv_path_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  17703. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17704. break 2
  17705. fi
  17706. done
  17707. done
  17708. IFS=$as_save_IFS
  17709. ;;
  17710. esac
  17711. fi
  17712. NETSNMP_CONFIG=$ac_cv_path_NETSNMP_CONFIG
  17713. if test -n "$NETSNMP_CONFIG"; then
  17714. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NETSNMP_CONFIG" >&5
  17715. $as_echo "$NETSNMP_CONFIG" >&6; }
  17716. else
  17717. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17718. $as_echo "no" >&6; }
  17719. fi
  17720. fi
  17721. if test -n "$NETSNMP_CONFIG"; then
  17722. netsnmp_link=`$NETSNMP_CONFIG --agent-libs`
  17723. else
  17724. as_fn_error $? "net-snmp-config not found, specify with --with-netsnmp." "$LINENO" 5
  17725. fi
  17726. else
  17727. as_fn_error $? "Net-SNMP not found, specify with --with-netsnmp." "$LINENO" 5
  17728. fi
  17729. # BEGIN COPYRIGHT BLOCK
  17730. # Copyright (C) 2008 Red Hat, Inc.
  17731. # All rights reserved.
  17732. #
  17733. # License: GPL (version 3 or any later version).
  17734. # See LICENSE for details.
  17735. # END COPYRIGHT BLOCK
  17736. # -*- tab-width: 4; -*-
  17737. # Configure paths for Kerberos
  17738. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Kerberos..." >&5
  17739. $as_echo "$as_me: checking for Kerberos..." >&6;}
  17740. if test -z "$with_kerberos" ; then
  17741. with_kerberos=yes # if not set on cmdline, set default
  17742. fi
  17743. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-kerberos" >&5
  17744. $as_echo_n "checking for --with-kerberos... " >&6; }
  17745. # Check whether --with-kerberos was given.
  17746. if test "${with_kerberos+set}" = set; then :
  17747. withval=$with_kerberos;
  17748. if test "x$withval" = "xyes"; then
  17749. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17750. $as_echo "yes" >&6; }
  17751. elif test "x$withval" = "xno"; then
  17752. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17753. $as_echo "no" >&6; }
  17754. with_kerberos=
  17755. elif test -d "$withval" -a -d "$withval/lib" -a -d "$withval/include" ; then
  17756. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17757. $as_echo "using $withval" >&6; }
  17758. kerberos_incdir="$withval/include"
  17759. kerberos_libdir="$withval/lib"
  17760. else
  17761. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17762. $as_echo "yes" >&6; }
  17763. as_fn_error $? "kerberos not found in $withval" "$LINENO" 5
  17764. fi
  17765. else
  17766. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17767. $as_echo "no" >&6; }
  17768. with_kerberos=
  17769. fi
  17770. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-kerberos-inc" >&5
  17771. $as_echo_n "checking for --with-kerberos-inc... " >&6; }
  17772. # Check whether --with-kerberos-inc was given.
  17773. if test "${with_kerberos_inc+set}" = set; then :
  17774. withval=$with_kerberos_inc;
  17775. if test -f "$withval"/krb5.h; then
  17776. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17777. $as_echo "using $withval" >&6; }
  17778. kerberos_incdir="$withval"
  17779. with_kerberos=yes # implies use of kerberos
  17780. else
  17781. echo
  17782. as_fn_error $? "$withval/krb5.h not found" "$LINENO" 5
  17783. fi
  17784. else
  17785. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17786. $as_echo "no" >&6; }
  17787. fi
  17788. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-kerberos-lib" >&5
  17789. $as_echo_n "checking for --with-kerberos-lib... " >&6; }
  17790. # Check whether --with-kerberos-lib was given.
  17791. if test "${with_kerberos_lib+set}" = set; then :
  17792. withval=$with_kerberos_lib;
  17793. if test -d "$withval"; then
  17794. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17795. $as_echo "using $withval" >&6; }
  17796. kerberos_libdir="$withval"
  17797. with_kerberos=yes # implies use of kerberos
  17798. else
  17799. echo
  17800. as_fn_error $? "$withval not found" "$LINENO" 5
  17801. fi
  17802. else
  17803. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17804. $as_echo "no" >&6; }
  17805. fi
  17806. if test -n "$with_kerberos" ; then
  17807. if test -z "$kerberos_incdir" -o -z "$kerberos_libdir" ; then
  17808. if test -z "$KRB5_CONFIG_BIN" ; then
  17809. # Extract the first word of "krb5-config", so it can be a program name with args.
  17810. set dummy krb5-config; ac_word=$2
  17811. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17812. $as_echo_n "checking for $ac_word... " >&6; }
  17813. if ${ac_cv_path_KRB5_CONFIG_BIN+:} false; then :
  17814. $as_echo_n "(cached) " >&6
  17815. else
  17816. case $KRB5_CONFIG_BIN in
  17817. [\\/]* | ?:[\\/]*)
  17818. ac_cv_path_KRB5_CONFIG_BIN="$KRB5_CONFIG_BIN" # Let the user override the test with a path.
  17819. ;;
  17820. *)
  17821. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17822. for as_dir in $PATH
  17823. do
  17824. IFS=$as_save_IFS
  17825. test -z "$as_dir" && as_dir=.
  17826. for ac_exec_ext in '' $ac_executable_extensions; do
  17827. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17828. ac_cv_path_KRB5_CONFIG_BIN="$as_dir/$ac_word$ac_exec_ext"
  17829. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17830. break 2
  17831. fi
  17832. done
  17833. done
  17834. IFS=$as_save_IFS
  17835. ;;
  17836. esac
  17837. fi
  17838. KRB5_CONFIG_BIN=$ac_cv_path_KRB5_CONFIG_BIN
  17839. if test -n "$KRB5_CONFIG_BIN"; then
  17840. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KRB5_CONFIG_BIN" >&5
  17841. $as_echo "$KRB5_CONFIG_BIN" >&6; }
  17842. else
  17843. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17844. $as_echo "no" >&6; }
  17845. fi
  17846. fi
  17847. if test -n "$KRB5_CONFIG_BIN" ; then
  17848. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kerberos with $KRB5_CONFIG_BIN" >&5
  17849. $as_echo_n "checking for kerberos with $KRB5_CONFIG_BIN... " >&6; }
  17850. if test -z "$kerberos_libdir" ; then
  17851. kerberos_lib=`$KRB5_CONFIG_BIN --libs krb5`
  17852. fi
  17853. if test -z "$kerberos_incdir" ; then
  17854. kerberos_inc=`$KRB5_CONFIG_BIN --cflags krb5`
  17855. fi
  17856. if test -n "$kerberos_lib" ; then
  17857. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using kerberos found with $KRB5_CONFIG_BIN" >&5
  17858. $as_echo "using kerberos found with $KRB5_CONFIG_BIN" >&6; }
  17859. have_krb5=yes
  17860. fi
  17861. fi
  17862. fi
  17863. fi
  17864. if test -n "$with_kerberos" -a -z "$kerberos_lib" ; then
  17865. # save these in order to set them to use the check macros below
  17866. # like AC_CHECK_HEADERS, AC_CHECK_LIB, and AC_CHECK_FUNCS
  17867. save_CPPFLAGS="$CPPFLAGS"
  17868. if test -n "$kerberos_incdir" ; then
  17869. CPPFLAGS="-I$kerberos_incdir $CPPFLAGS"
  17870. fi
  17871. save_LDFLAGS="$LDFLAGS"
  17872. if test -n "$kerberos_libdir" ; then
  17873. LDFLAGS="-L$kerberos_libdir $LDFLAGS"
  17874. fi
  17875. krb5_impl=mit
  17876. for ac_header in heim_err.h
  17877. do :
  17878. ac_fn_c_check_header_mongrel "$LINENO" "heim_err.h" "ac_cv_header_heim_err_h" "$ac_includes_default"
  17879. if test "x$ac_cv_header_heim_err_h" = xyes; then :
  17880. cat >>confdefs.h <<_ACEOF
  17881. #define HAVE_HEIM_ERR_H 1
  17882. _ACEOF
  17883. fi
  17884. done
  17885. if test $ac_cv_header_heim_err_h = yes ; then
  17886. krb5_impl=heimdal
  17887. fi
  17888. if test "x$krb5_impl" = "xmit"; then
  17889. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lk5crypto" >&5
  17890. $as_echo_n "checking for main in -lk5crypto... " >&6; }
  17891. if ${ac_cv_lib_k5crypto_main+:} false; then :
  17892. $as_echo_n "(cached) " >&6
  17893. else
  17894. ac_check_lib_save_LIBS=$LIBS
  17895. LIBS="-lk5crypto $LIBS"
  17896. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17897. /* end confdefs.h. */
  17898. int
  17899. main ()
  17900. {
  17901. return main ();
  17902. ;
  17903. return 0;
  17904. }
  17905. _ACEOF
  17906. if ac_fn_c_try_link "$LINENO"; then :
  17907. ac_cv_lib_k5crypto_main=yes
  17908. else
  17909. ac_cv_lib_k5crypto_main=no
  17910. fi
  17911. rm -f core conftest.err conftest.$ac_objext \
  17912. conftest$ac_exeext conftest.$ac_ext
  17913. LIBS=$ac_check_lib_save_LIBS
  17914. fi
  17915. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_main" >&5
  17916. $as_echo "$ac_cv_lib_k5crypto_main" >&6; }
  17917. if test "x$ac_cv_lib_k5crypto_main" = xyes; then :
  17918. krb5crypto=k5crypto
  17919. else
  17920. krb5crypto=crypto
  17921. fi
  17922. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lkrb5" >&5
  17923. $as_echo_n "checking for main in -lkrb5... " >&6; }
  17924. if ${ac_cv_lib_krb5_main+:} false; then :
  17925. $as_echo_n "(cached) " >&6
  17926. else
  17927. ac_check_lib_save_LIBS=$LIBS
  17928. LIBS="-lkrb5 -l$krb5crypto -lcom_err $LIBS"
  17929. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17930. /* end confdefs.h. */
  17931. int
  17932. main ()
  17933. {
  17934. return main ();
  17935. ;
  17936. return 0;
  17937. }
  17938. _ACEOF
  17939. if ac_fn_c_try_link "$LINENO"; then :
  17940. ac_cv_lib_krb5_main=yes
  17941. else
  17942. ac_cv_lib_krb5_main=no
  17943. fi
  17944. rm -f core conftest.err conftest.$ac_objext \
  17945. conftest$ac_exeext conftest.$ac_ext
  17946. LIBS=$ac_check_lib_save_LIBS
  17947. fi
  17948. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_main" >&5
  17949. $as_echo "$ac_cv_lib_krb5_main" >&6; }
  17950. if test "x$ac_cv_lib_krb5_main" = xyes; then :
  17951. have_krb5=yes
  17952. kerberos_lib="-lkrb5 -l$krb5crypto -lcom_err"
  17953. else
  17954. have_krb5=no
  17955. fi
  17956. elif test "x$krb5_impl" = "xheimdal"; then
  17957. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ldes" >&5
  17958. $as_echo_n "checking for main in -ldes... " >&6; }
  17959. if ${ac_cv_lib_des_main+:} false; then :
  17960. $as_echo_n "(cached) " >&6
  17961. else
  17962. ac_check_lib_save_LIBS=$LIBS
  17963. LIBS="-ldes $LIBS"
  17964. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17965. /* end confdefs.h. */
  17966. int
  17967. main ()
  17968. {
  17969. return main ();
  17970. ;
  17971. return 0;
  17972. }
  17973. _ACEOF
  17974. if ac_fn_c_try_link "$LINENO"; then :
  17975. ac_cv_lib_des_main=yes
  17976. else
  17977. ac_cv_lib_des_main=no
  17978. fi
  17979. rm -f core conftest.err conftest.$ac_objext \
  17980. conftest$ac_exeext conftest.$ac_ext
  17981. LIBS=$ac_check_lib_save_LIBS
  17982. fi
  17983. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_main" >&5
  17984. $as_echo "$ac_cv_lib_des_main" >&6; }
  17985. if test "x$ac_cv_lib_des_main" = xyes; then :
  17986. krb5crypto=des
  17987. else
  17988. krb5crypto=crypto
  17989. fi
  17990. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lkrb5" >&5
  17991. $as_echo_n "checking for main in -lkrb5... " >&6; }
  17992. if ${ac_cv_lib_krb5_main+:} false; then :
  17993. $as_echo_n "(cached) " >&6
  17994. else
  17995. ac_check_lib_save_LIBS=$LIBS
  17996. LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
  17997. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17998. /* end confdefs.h. */
  17999. int
  18000. main ()
  18001. {
  18002. return main ();
  18003. ;
  18004. return 0;
  18005. }
  18006. _ACEOF
  18007. if ac_fn_c_try_link "$LINENO"; then :
  18008. ac_cv_lib_krb5_main=yes
  18009. else
  18010. ac_cv_lib_krb5_main=no
  18011. fi
  18012. rm -f core conftest.err conftest.$ac_objext \
  18013. conftest$ac_exeext conftest.$ac_ext
  18014. LIBS=$ac_check_lib_save_LIBS
  18015. fi
  18016. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_main" >&5
  18017. $as_echo "$ac_cv_lib_krb5_main" >&6; }
  18018. if test "x$ac_cv_lib_krb5_main" = xyes; then :
  18019. have_krb5=yes
  18020. kerberos_lib="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err"
  18021. else
  18022. have_krb5=no
  18023. fi
  18024. $as_echo "#define HAVE_HEIMDAL_KERBEROS 1" >>confdefs.h
  18025. else
  18026. have_krb5=no
  18027. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unrecognized Kerberos5 Implementation" >&5
  18028. $as_echo "$as_me: WARNING: Unrecognized Kerberos5 Implementation" >&2;}
  18029. fi
  18030. # reset to original values
  18031. CPPFLAGS="$save_CPPFLAGS"
  18032. LDFLAGS="$save_LDFLAGS"
  18033. if test -n "$kerberos_incdir" ; then
  18034. kerberos_inc="-I$kerberos_incdir"
  18035. fi
  18036. if test -n "$kerberos_libdir" ; then
  18037. kerberos_lib="-L$kerberos_libdir $kerberos_lib"
  18038. fi
  18039. fi
  18040. if test -n "$with_kerberos" ; then
  18041. if test "x$have_krb5" = "xyes" ; then
  18042. $as_echo "#define HAVE_KRB5 1" >>confdefs.h
  18043. else
  18044. as_fn_error $? "Required Kerberos 5 support not available" "$LINENO" 5
  18045. fi
  18046. save_LIBS="$LIBS"
  18047. LIBS="$kerberos_lib"
  18048. save_CPPFLAGS="$CPPFLAGS"
  18049. CPPFLAGS="$kerberos_inc $CPPFLAGS"
  18050. for ac_func in krb5_cc_new_unique
  18051. do :
  18052. ac_fn_c_check_func "$LINENO" "krb5_cc_new_unique" "ac_cv_func_krb5_cc_new_unique"
  18053. if test "x$ac_cv_func_krb5_cc_new_unique" = xyes; then :
  18054. cat >>confdefs.h <<_ACEOF
  18055. #define HAVE_KRB5_CC_NEW_UNIQUE 1
  18056. _ACEOF
  18057. fi
  18058. done
  18059. LIBS="$save_LIBS"
  18060. CPPFLAGS="$save_CPPFLAGS"
  18061. fi
  18062. # BEGIN COPYRIGHT BLOCK
  18063. # Copyright (C) 2007 Red Hat, Inc.
  18064. # All rights reserved.
  18065. #
  18066. # License: GPL (version 3 or any later version).
  18067. # See LICENSE for details.
  18068. # END COPYRIGHT BLOCK
  18069. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCRE..." >&5
  18070. $as_echo "$as_me: checking for PCRE..." >&6;}
  18071. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pcre" >&5
  18072. $as_echo_n "checking for --with-pcre... " >&6; }
  18073. # Check whether --with-pcre was given.
  18074. if test "${with_pcre+set}" = set; then :
  18075. withval=$with_pcre;
  18076. if test "$withval" = "yes"; then
  18077. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18078. $as_echo "yes" >&6; }
  18079. elif test "$withval" = "no"; then
  18080. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18081. $as_echo "no" >&6; }
  18082. as_fn_error $? "PCRE is required." "$LINENO" 5
  18083. elif test -d "$withval"/include -a -d "$withval"/lib; then
  18084. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  18085. $as_echo "using $withval" >&6; }
  18086. PCREDIR=$withval
  18087. pcre_lib="-L$PCREDIR/lib"
  18088. pcre_libdir="$PCREDIR/lib"
  18089. pcre_incdir="$PCREDIR/include"
  18090. if ! test -e "$pcre_incdir/pcre.h" ; then
  18091. as_fn_error $? "$withval include dir not found" "$LINENO" 5
  18092. fi
  18093. pcre_inc="-I$pcre_incdir"
  18094. else
  18095. echo
  18096. as_fn_error $? "$withval not found" "$LINENO" 5
  18097. fi
  18098. else
  18099. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18100. $as_echo "yes" >&6; }
  18101. fi
  18102. #
  18103. # if PCRE is not found yet, try pkg-config
  18104. if test -z "$pcre_inc" -o -z "$pcre_lib" -o -z "$pcre_libdir"; then
  18105. # Extract the first word of "pkg-config", so it can be a program name with args.
  18106. set dummy pkg-config; ac_word=$2
  18107. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18108. $as_echo_n "checking for $ac_word... " >&6; }
  18109. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  18110. $as_echo_n "(cached) " >&6
  18111. else
  18112. case $PKG_CONFIG in
  18113. [\\/]* | ?:[\\/]*)
  18114. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  18115. ;;
  18116. *)
  18117. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18118. for as_dir in $PATH
  18119. do
  18120. IFS=$as_save_IFS
  18121. test -z "$as_dir" && as_dir=.
  18122. for ac_exec_ext in '' $ac_executable_extensions; do
  18123. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18124. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  18125. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18126. break 2
  18127. fi
  18128. done
  18129. done
  18130. IFS=$as_save_IFS
  18131. ;;
  18132. esac
  18133. fi
  18134. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  18135. if test -n "$PKG_CONFIG"; then
  18136. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  18137. $as_echo "$PKG_CONFIG" >&6; }
  18138. else
  18139. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18140. $as_echo "no" >&6; }
  18141. fi
  18142. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcre with pkg-config" >&5
  18143. $as_echo_n "checking for pcre with pkg-config... " >&6; }
  18144. if test -n "$PKG_CONFIG"; then
  18145. if $PKG_CONFIG --exists pcre; then
  18146. pcre_inc=`$PKG_CONFIG --cflags-only-I pcre`
  18147. pcre_lib=`$PKG_CONFIG --libs-only-L pcre`
  18148. pcre_libdir=`$PKG_CONFIG --libs-only-L pcre | sed -e s/-L// | sed -e s/\ .*$//`
  18149. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using system PCRE" >&5
  18150. $as_echo "using system PCRE" >&6; }
  18151. elif $PKG_CONFIG --exists libpcre; then
  18152. pcre_inc=`$PKG_CONFIG --cflags-only-I libpcre`
  18153. pcre_lib=`$PKG_CONFIG --libs-only-L libpcre`
  18154. pcre_libdir=`$PKG_CONFIG --libs-only-L libpcre | sed -e s/-L// | sed -e s/\ .*$//`
  18155. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using system PCRE" >&5
  18156. $as_echo "using system PCRE" >&6; }
  18157. else
  18158. as_fn_error $? "PCRE not found, specify with --with-pcre." "$LINENO" 5
  18159. fi
  18160. fi
  18161. fi
  18162. if test -z "$pcre_inc"; then
  18163. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcre.h" >&5
  18164. $as_echo_n "checking for pcre.h... " >&6; }
  18165. if test -f "/usr/include/pcre/pcre.h"; then
  18166. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using /usr/include/pcre/pcre.h" >&5
  18167. $as_echo "using /usr/include/pcre/pcre.h" >&6; }
  18168. pcre_incdir="/usr/include/pcre"
  18169. pcre_inc="-I/usr/include/pcre"
  18170. pcre_lib='-L$(libdir)'
  18171. pcre_libdir='$(libdir)'
  18172. elif test -f "/usr/include/pcre.h"; then
  18173. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using /usr/include/pcre.h" >&5
  18174. $as_echo "using /usr/include/pcre.h" >&6; }
  18175. pcre_incdir="/usr/include"
  18176. pcre_inc="-I/usr/include"
  18177. pcre_lib='-L$(libdir)'
  18178. pcre_libdir='$(libdir)'
  18179. else
  18180. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18181. $as_echo "no" >&6; }
  18182. as_fn_error $? "PCRE not found, specify with --with-pcre." "$LINENO" 5
  18183. fi
  18184. fi
  18185. # BEGIN COPYRIGHT BLOCK
  18186. # Copyright (C) 2009 Red Hat, Inc.
  18187. # All rights reserved.
  18188. #
  18189. # License: GPL (version 3 or any later version).
  18190. # See LICENSE for details.
  18191. # END COPYRIGHT BLOCK
  18192. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SELinux..." >&5
  18193. $as_echo "$as_me: checking for SELinux..." >&6;}
  18194. # check for --with-selinux
  18195. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-selinux" >&5
  18196. $as_echo_n "checking for --with-selinux... " >&6; }
  18197. # Check whether --with-selinux was given.
  18198. if test "${with_selinux+set}" = set; then :
  18199. withval=$with_selinux;
  18200. if test "$withval" = "no"; then
  18201. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18202. $as_echo "no" >&6; }
  18203. else
  18204. with_selinux=yes
  18205. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18206. $as_echo "yes" >&6; }
  18207. fi
  18208. else
  18209. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18210. $as_echo "no" >&6; }
  18211. fi
  18212. # BEGIN COPYRIGHT BLOCK
  18213. # License: GPL (version 3 or any later version).
  18214. # See LICENSE for details.
  18215. # END COPYRIGHT BLOCK
  18216. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nunc-stans..." >&5
  18217. $as_echo "$as_me: checking for nunc-stans..." >&6;}
  18218. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-nunc-stans" >&5
  18219. $as_echo_n "checking for --with-nunc-stans... " >&6; }
  18220. # Check whether --with-nunc-stans was given.
  18221. if test "${with_nunc_stans+set}" = set; then :
  18222. withval=$with_nunc_stans;
  18223. if test "$withval" = "yes"; then
  18224. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18225. $as_echo "yes" >&6; }
  18226. elif test "$withval" = "no"; then
  18227. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18228. $as_echo "no" >&6; }
  18229. elif test -d "$withval"; then
  18230. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  18231. $as_echo "using $withval" >&6; }
  18232. nunc_stans_lib="-L$withval/lib"
  18233. nunc_stans_libdir="$withval/lib"
  18234. nunc_stans_incdir="$withval/include"
  18235. if ! test -e "$nunc_stans_incdir/nunc-stans/nunc-stans.h" ; then
  18236. as_fn_error $? "$withval include dir not found" "$LINENO" 5
  18237. fi
  18238. nunc_stans_inc="-I$nunc_stans_incdir"
  18239. else
  18240. echo
  18241. as_fn_error $? "$withval not found" "$LINENO" 5
  18242. fi
  18243. else
  18244. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18245. $as_echo "no" >&6; }
  18246. fi
  18247. # check for --with-nunc-stans-inc
  18248. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-nunc-stans-inc" >&5
  18249. $as_echo_n "checking for --with-nunc-stans-inc... " >&6; }
  18250. # Check whether --with-nunc-stans-inc was given.
  18251. if test "${with_nunc_stans_inc+set}" = set; then :
  18252. withval=$with_nunc_stans_inc;
  18253. if test -e "$withval"/nunc-stans/nunc-stans.h
  18254. then
  18255. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  18256. $as_echo "using $withval" >&6; }
  18257. nunc_stans_incdir="$withval"
  18258. nunc_stans_inc="-I$withval"
  18259. else
  18260. echo
  18261. as_fn_error $? "$withval not found" "$LINENO" 5
  18262. fi
  18263. else
  18264. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18265. $as_echo "no" >&6; }
  18266. fi
  18267. # check for --with-nunc-stans-lib
  18268. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-nunc-stans-lib" >&5
  18269. $as_echo_n "checking for --with-nunc-stans-lib... " >&6; }
  18270. # Check whether --with-nunc-stans-lib was given.
  18271. if test "${with_nunc_stans_lib+set}" = set; then :
  18272. withval=$with_nunc_stans_lib;
  18273. if test -d "$withval"
  18274. then
  18275. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  18276. $as_echo "using $withval" >&6; }
  18277. nunc_stans_lib="-L$withval"
  18278. nunc_stans_libdir="$withval"
  18279. else
  18280. echo
  18281. as_fn_error $? "$withval not found" "$LINENO" 5
  18282. fi
  18283. else
  18284. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18285. $as_echo "no" >&6; }
  18286. fi
  18287. PACKAGE_BASE_VERSION=`echo $PACKAGE_VERSION | awk -F\. '{print $1"."$2}'`
  18288. # set sasl_path for wrapper scripts
  18289. if test -z "$sasl_libdir" ; then
  18290. sasl_path="$libdir/sasl2"
  18291. else
  18292. sasl_path="$sasl_libdir/sasl2"
  18293. fi
  18294. if test "$with_selinux" = "yes"; then
  18295. SELINUX_TRUE=
  18296. SELINUX_FALSE='#'
  18297. else
  18298. SELINUX_TRUE='#'
  18299. SELINUX_FALSE=
  18300. fi
  18301. if test "$with_openldap" = "yes"; then
  18302. OPENLDAP_TRUE=
  18303. OPENLDAP_FALSE='#'
  18304. else
  18305. OPENLDAP_TRUE='#'
  18306. OPENLDAP_FALSE=
  18307. fi
  18308. if test "$platform" = "solaris"; then
  18309. SOLARIS_TRUE=
  18310. SOLARIS_FALSE='#'
  18311. else
  18312. SOLARIS_TRUE='#'
  18313. SOLARIS_FALSE=
  18314. fi
  18315. if test "x$TARGET" = xSPARC; then
  18316. SPARC_TRUE=
  18317. SPARC_FALSE='#'
  18318. else
  18319. SPARC_TRUE='#'
  18320. SPARC_FALSE=
  18321. fi
  18322. # write out paths for binary components
  18323. # AC_DEFINE([USE_OLD_UNHASHED], [], [Use old unhashed code])
  18324. $as_echo "#define LDAP_DEBUG 1" >>confdefs.h
  18325. $as_echo "#define LDAP_DONT_USE_SMARTHEAP 1" >>confdefs.h
  18326. # libtool on fedora/rhel contains some gcc-isms which cause problems
  18327. # if not using gcc (e.g. Forte on Solaris, aCC on HP-UX)
  18328. # we remove them here
  18329. if test "$GCC" != yes ; then
  18330. { $as_echo "$as_me:${as_lineno-$LINENO}: Not using gcc - fixing libtool to remove gcc-isms . . ." >&5
  18331. $as_echo "$as_me: Not using gcc - fixing libtool to remove gcc-isms . . ." >&6;}
  18332. cp -p libtool libtool.orig
  18333. cp -p libtool libtool.tmp
  18334. # dnl note the special chars [ and ] - since m4 treats [ and ] specially,
  18335. # we have to use the quadrigraph [ for [ and ] for ] - and you thought
  18336. # perl produced write-only code . . .
  18337. sed -e '/^gcc_dir/ d' \
  18338. -e '/^gcc_ver/ d' \
  18339. -e 's/^predep_objects=.*echo \("[^"]*"\).*$/predep_objects=\1/' \
  18340. -e 's/^postdep_objects=.*echo \("[^"]*"\).*$/postdep_objects=\1/' \
  18341. -e 's/^compiler_lib_search_path=.*echo \("[^"]*"\).*$/compiler_lib_search_path=\1/' \
  18342. -e 's/^sys_lib_search_path_spec=.*echo \("[^"]*"\).*$/sys_lib_search_path_spec=\1/' \
  18343. libtool > libtool.tmp
  18344. cp -p libtool.tmp libtool
  18345. rm -f libtool.tmp
  18346. fi
  18347. ac_config_files="$ac_config_files Makefile rpm/389-ds-base.spec"
  18348. cat >confcache <<\_ACEOF
  18349. # This file is a shell script that caches the results of configure
  18350. # tests run on this system so they can be shared between configure
  18351. # scripts and configure runs, see configure's option --config-cache.
  18352. # It is not useful on other systems. If it contains results you don't
  18353. # want to keep, you may remove or edit it.
  18354. #
  18355. # config.status only pays attention to the cache file if you give it
  18356. # the --recheck option to rerun configure.
  18357. #
  18358. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  18359. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  18360. # following values.
  18361. _ACEOF
  18362. # The following way of writing the cache mishandles newlines in values,
  18363. # but we know of no workaround that is simple, portable, and efficient.
  18364. # So, we kill variables containing newlines.
  18365. # Ultrix sh set writes to stderr and can't be redirected directly,
  18366. # and sets the high bit in the cache file unless we assign to the vars.
  18367. (
  18368. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  18369. eval ac_val=\$$ac_var
  18370. case $ac_val in #(
  18371. *${as_nl}*)
  18372. case $ac_var in #(
  18373. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  18374. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  18375. esac
  18376. case $ac_var in #(
  18377. _ | IFS | as_nl) ;; #(
  18378. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  18379. *) { eval $ac_var=; unset $ac_var;} ;;
  18380. esac ;;
  18381. esac
  18382. done
  18383. (set) 2>&1 |
  18384. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  18385. *${as_nl}ac_space=\ *)
  18386. # `set' does not quote correctly, so add quotes: double-quote
  18387. # substitution turns \\\\ into \\, and sed turns \\ into \.
  18388. sed -n \
  18389. "s/'/'\\\\''/g;
  18390. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  18391. ;; #(
  18392. *)
  18393. # `set' quotes correctly as required by POSIX, so do not add quotes.
  18394. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  18395. ;;
  18396. esac |
  18397. sort
  18398. ) |
  18399. sed '
  18400. /^ac_cv_env_/b end
  18401. t clear
  18402. :clear
  18403. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  18404. t end
  18405. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  18406. :end' >>confcache
  18407. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  18408. if test -w "$cache_file"; then
  18409. if test "x$cache_file" != "x/dev/null"; then
  18410. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  18411. $as_echo "$as_me: updating cache $cache_file" >&6;}
  18412. if test ! -f "$cache_file" || test -h "$cache_file"; then
  18413. cat confcache >"$cache_file"
  18414. else
  18415. case $cache_file in #(
  18416. */* | ?:*)
  18417. mv -f confcache "$cache_file"$$ &&
  18418. mv -f "$cache_file"$$ "$cache_file" ;; #(
  18419. *)
  18420. mv -f confcache "$cache_file" ;;
  18421. esac
  18422. fi
  18423. fi
  18424. else
  18425. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  18426. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  18427. fi
  18428. fi
  18429. rm -f confcache
  18430. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  18431. # Let make expand exec_prefix.
  18432. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  18433. DEFS=-DHAVE_CONFIG_H
  18434. ac_libobjs=
  18435. ac_ltlibobjs=
  18436. U=
  18437. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  18438. # 1. Remove the extension, and $U if already installed.
  18439. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  18440. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  18441. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  18442. # will be set to the directory where LIBOBJS objects are built.
  18443. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  18444. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  18445. done
  18446. LIBOBJS=$ac_libobjs
  18447. LTLIBOBJS=$ac_ltlibobjs
  18448. { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  18449. $as_echo_n "checking that generated files are newer than configure... " >&6; }
  18450. if test -n "$am_sleep_pid"; then
  18451. # Hide warnings about reused PIDs.
  18452. wait $am_sleep_pid 2>/dev/null
  18453. fi
  18454. { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
  18455. $as_echo "done" >&6; }
  18456. if test -n "$EXEEXT"; then
  18457. am__EXEEXT_TRUE=
  18458. am__EXEEXT_FALSE='#'
  18459. else
  18460. am__EXEEXT_TRUE='#'
  18461. am__EXEEXT_FALSE=
  18462. fi
  18463. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  18464. as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
  18465. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18466. fi
  18467. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  18468. as_fn_error $? "conditional \"AMDEP\" was never defined.
  18469. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18470. fi
  18471. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  18472. as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
  18473. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18474. fi
  18475. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  18476. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  18477. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18478. fi
  18479. if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
  18480. as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
  18481. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18482. fi
  18483. if test -z "${BUNDLE_TRUE}" && test -z "${BUNDLE_FALSE}"; then
  18484. as_fn_error $? "conditional \"BUNDLE\" was never defined.
  18485. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18486. fi
  18487. if test -z "${enable_pam_passthru_TRUE}" && test -z "${enable_pam_passthru_FALSE}"; then
  18488. as_fn_error $? "conditional \"enable_pam_passthru\" was never defined.
  18489. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18490. fi
  18491. if test -z "${enable_dna_TRUE}" && test -z "${enable_dna_FALSE}"; then
  18492. as_fn_error $? "conditional \"enable_dna\" was never defined.
  18493. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18494. fi
  18495. if test -z "${enable_ldapi_TRUE}" && test -z "${enable_ldapi_FALSE}"; then
  18496. as_fn_error $? "conditional \"enable_ldapi\" was never defined.
  18497. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18498. fi
  18499. if test -z "${enable_autobind_TRUE}" && test -z "${enable_autobind_FALSE}"; then
  18500. as_fn_error $? "conditional \"enable_autobind\" was never defined.
  18501. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18502. fi
  18503. if test -z "${enable_auto_dn_suffix_TRUE}" && test -z "${enable_auto_dn_suffix_FALSE}"; then
  18504. as_fn_error $? "conditional \"enable_auto_dn_suffix\" was never defined.
  18505. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18506. fi
  18507. if test -z "${enable_bitwise_TRUE}" && test -z "${enable_bitwise_FALSE}"; then
  18508. as_fn_error $? "conditional \"enable_bitwise\" was never defined.
  18509. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18510. fi
  18511. if test -z "${enable_presence_TRUE}" && test -z "${enable_presence_FALSE}"; then
  18512. as_fn_error $? "conditional \"enable_presence\" was never defined.
  18513. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18514. fi
  18515. if test -z "${enable_acctpolicy_TRUE}" && test -z "${enable_acctpolicy_FALSE}"; then
  18516. as_fn_error $? "conditional \"enable_acctpolicy\" was never defined.
  18517. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18518. fi
  18519. if test -z "${enable_posix_winsync_TRUE}" && test -z "${enable_posix_winsync_FALSE}"; then
  18520. as_fn_error $? "conditional \"enable_posix_winsync\" was never defined.
  18521. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18522. fi
  18523. if test -z "${enable_nunc_stans_TRUE}" && test -z "${enable_nunc_stans_FALSE}"; then
  18524. as_fn_error $? "conditional \"enable_nunc_stans\" was never defined.
  18525. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18526. fi
  18527. if test -z "${WINNT_TRUE}" && test -z "${WINNT_FALSE}"; then
  18528. as_fn_error $? "conditional \"WINNT\" was never defined.
  18529. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18530. fi
  18531. if test -z "${HPUX_TRUE}" && test -z "${HPUX_FALSE}"; then
  18532. as_fn_error $? "conditional \"HPUX\" was never defined.
  18533. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18534. fi
  18535. if test -z "${SOLARIS_TRUE}" && test -z "${SOLARIS_FALSE}"; then
  18536. as_fn_error $? "conditional \"SOLARIS\" was never defined.
  18537. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18538. fi
  18539. if test -z "${SYSTEMD_TRUE}" && test -z "${SYSTEMD_FALSE}"; then
  18540. as_fn_error $? "conditional \"SYSTEMD\" was never defined.
  18541. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18542. fi
  18543. if test -z "${SELINUX_TRUE}" && test -z "${SELINUX_FALSE}"; then
  18544. as_fn_error $? "conditional \"SELINUX\" was never defined.
  18545. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18546. fi
  18547. if test -z "${OPENLDAP_TRUE}" && test -z "${OPENLDAP_FALSE}"; then
  18548. as_fn_error $? "conditional \"OPENLDAP\" was never defined.
  18549. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18550. fi
  18551. if test -z "${SOLARIS_TRUE}" && test -z "${SOLARIS_FALSE}"; then
  18552. as_fn_error $? "conditional \"SOLARIS\" was never defined.
  18553. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18554. fi
  18555. if test -z "${SPARC_TRUE}" && test -z "${SPARC_FALSE}"; then
  18556. as_fn_error $? "conditional \"SPARC\" was never defined.
  18557. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18558. fi
  18559. : "${CONFIG_STATUS=./config.status}"
  18560. ac_write_fail=0
  18561. ac_clean_files_save=$ac_clean_files
  18562. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  18563. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  18564. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  18565. as_write_fail=0
  18566. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  18567. #! $SHELL
  18568. # Generated by $as_me.
  18569. # Run this file to recreate the current configuration.
  18570. # Compiler output produced by configure, useful for debugging
  18571. # configure, is in config.log if it exists.
  18572. debug=false
  18573. ac_cs_recheck=false
  18574. ac_cs_silent=false
  18575. SHELL=\${CONFIG_SHELL-$SHELL}
  18576. export SHELL
  18577. _ASEOF
  18578. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  18579. ## -------------------- ##
  18580. ## M4sh Initialization. ##
  18581. ## -------------------- ##
  18582. # Be more Bourne compatible
  18583. DUALCASE=1; export DUALCASE # for MKS sh
  18584. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  18585. emulate sh
  18586. NULLCMD=:
  18587. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  18588. # is contrary to our usage. Disable this feature.
  18589. alias -g '${1+"$@"}'='"$@"'
  18590. setopt NO_GLOB_SUBST
  18591. else
  18592. case `(set -o) 2>/dev/null` in #(
  18593. *posix*) :
  18594. set -o posix ;; #(
  18595. *) :
  18596. ;;
  18597. esac
  18598. fi
  18599. as_nl='
  18600. '
  18601. export as_nl
  18602. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  18603. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  18604. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  18605. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  18606. # Prefer a ksh shell builtin over an external printf program on Solaris,
  18607. # but without wasting forks for bash or zsh.
  18608. if test -z "$BASH_VERSION$ZSH_VERSION" \
  18609. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  18610. as_echo='print -r --'
  18611. as_echo_n='print -rn --'
  18612. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  18613. as_echo='printf %s\n'
  18614. as_echo_n='printf %s'
  18615. else
  18616. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  18617. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  18618. as_echo_n='/usr/ucb/echo -n'
  18619. else
  18620. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  18621. as_echo_n_body='eval
  18622. arg=$1;
  18623. case $arg in #(
  18624. *"$as_nl"*)
  18625. expr "X$arg" : "X\\(.*\\)$as_nl";
  18626. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  18627. esac;
  18628. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  18629. '
  18630. export as_echo_n_body
  18631. as_echo_n='sh -c $as_echo_n_body as_echo'
  18632. fi
  18633. export as_echo_body
  18634. as_echo='sh -c $as_echo_body as_echo'
  18635. fi
  18636. # The user is always right.
  18637. if test "${PATH_SEPARATOR+set}" != set; then
  18638. PATH_SEPARATOR=:
  18639. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  18640. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  18641. PATH_SEPARATOR=';'
  18642. }
  18643. fi
  18644. # IFS
  18645. # We need space, tab and new line, in precisely that order. Quoting is
  18646. # there to prevent editors from complaining about space-tab.
  18647. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  18648. # splitting by setting IFS to empty value.)
  18649. IFS=" "" $as_nl"
  18650. # Find who we are. Look in the path if we contain no directory separator.
  18651. as_myself=
  18652. case $0 in #((
  18653. *[\\/]* ) as_myself=$0 ;;
  18654. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18655. for as_dir in $PATH
  18656. do
  18657. IFS=$as_save_IFS
  18658. test -z "$as_dir" && as_dir=.
  18659. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  18660. done
  18661. IFS=$as_save_IFS
  18662. ;;
  18663. esac
  18664. # We did not find ourselves, most probably we were run as `sh COMMAND'
  18665. # in which case we are not to be found in the path.
  18666. if test "x$as_myself" = x; then
  18667. as_myself=$0
  18668. fi
  18669. if test ! -f "$as_myself"; then
  18670. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  18671. exit 1
  18672. fi
  18673. # Unset variables that we do not need and which cause bugs (e.g. in
  18674. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  18675. # suppresses any "Segmentation fault" message there. '((' could
  18676. # trigger a bug in pdksh 5.2.14.
  18677. for as_var in BASH_ENV ENV MAIL MAILPATH
  18678. do eval test x\${$as_var+set} = xset \
  18679. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  18680. done
  18681. PS1='$ '
  18682. PS2='> '
  18683. PS4='+ '
  18684. # NLS nuisances.
  18685. LC_ALL=C
  18686. export LC_ALL
  18687. LANGUAGE=C
  18688. export LANGUAGE
  18689. # CDPATH.
  18690. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  18691. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  18692. # ----------------------------------------
  18693. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  18694. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  18695. # script with STATUS, using 1 if that was 0.
  18696. as_fn_error ()
  18697. {
  18698. as_status=$1; test $as_status -eq 0 && as_status=1
  18699. if test "$4"; then
  18700. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  18701. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  18702. fi
  18703. $as_echo "$as_me: error: $2" >&2
  18704. as_fn_exit $as_status
  18705. } # as_fn_error
  18706. # as_fn_set_status STATUS
  18707. # -----------------------
  18708. # Set $? to STATUS, without forking.
  18709. as_fn_set_status ()
  18710. {
  18711. return $1
  18712. } # as_fn_set_status
  18713. # as_fn_exit STATUS
  18714. # -----------------
  18715. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  18716. as_fn_exit ()
  18717. {
  18718. set +e
  18719. as_fn_set_status $1
  18720. exit $1
  18721. } # as_fn_exit
  18722. # as_fn_unset VAR
  18723. # ---------------
  18724. # Portably unset VAR.
  18725. as_fn_unset ()
  18726. {
  18727. { eval $1=; unset $1;}
  18728. }
  18729. as_unset=as_fn_unset
  18730. # as_fn_append VAR VALUE
  18731. # ----------------------
  18732. # Append the text in VALUE to the end of the definition contained in VAR. Take
  18733. # advantage of any shell optimizations that allow amortized linear growth over
  18734. # repeated appends, instead of the typical quadratic growth present in naive
  18735. # implementations.
  18736. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  18737. eval 'as_fn_append ()
  18738. {
  18739. eval $1+=\$2
  18740. }'
  18741. else
  18742. as_fn_append ()
  18743. {
  18744. eval $1=\$$1\$2
  18745. }
  18746. fi # as_fn_append
  18747. # as_fn_arith ARG...
  18748. # ------------------
  18749. # Perform arithmetic evaluation on the ARGs, and store the result in the
  18750. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  18751. # must be portable across $(()) and expr.
  18752. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  18753. eval 'as_fn_arith ()
  18754. {
  18755. as_val=$(( $* ))
  18756. }'
  18757. else
  18758. as_fn_arith ()
  18759. {
  18760. as_val=`expr "$@" || test $? -eq 1`
  18761. }
  18762. fi # as_fn_arith
  18763. if expr a : '\(a\)' >/dev/null 2>&1 &&
  18764. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  18765. as_expr=expr
  18766. else
  18767. as_expr=false
  18768. fi
  18769. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  18770. as_basename=basename
  18771. else
  18772. as_basename=false
  18773. fi
  18774. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  18775. as_dirname=dirname
  18776. else
  18777. as_dirname=false
  18778. fi
  18779. as_me=`$as_basename -- "$0" ||
  18780. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  18781. X"$0" : 'X\(//\)$' \| \
  18782. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  18783. $as_echo X/"$0" |
  18784. sed '/^.*\/\([^/][^/]*\)\/*$/{
  18785. s//\1/
  18786. q
  18787. }
  18788. /^X\/\(\/\/\)$/{
  18789. s//\1/
  18790. q
  18791. }
  18792. /^X\/\(\/\).*/{
  18793. s//\1/
  18794. q
  18795. }
  18796. s/.*/./; q'`
  18797. # Avoid depending upon Character Ranges.
  18798. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  18799. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  18800. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  18801. as_cr_digits='0123456789'
  18802. as_cr_alnum=$as_cr_Letters$as_cr_digits
  18803. ECHO_C= ECHO_N= ECHO_T=
  18804. case `echo -n x` in #(((((
  18805. -n*)
  18806. case `echo 'xy\c'` in
  18807. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  18808. xy) ECHO_C='\c';;
  18809. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  18810. ECHO_T=' ';;
  18811. esac;;
  18812. *)
  18813. ECHO_N='-n';;
  18814. esac
  18815. rm -f conf$$ conf$$.exe conf$$.file
  18816. if test -d conf$$.dir; then
  18817. rm -f conf$$.dir/conf$$.file
  18818. else
  18819. rm -f conf$$.dir
  18820. mkdir conf$$.dir 2>/dev/null
  18821. fi
  18822. if (echo >conf$$.file) 2>/dev/null; then
  18823. if ln -s conf$$.file conf$$ 2>/dev/null; then
  18824. as_ln_s='ln -s'
  18825. # ... but there are two gotchas:
  18826. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  18827. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  18828. # In both cases, we have to default to `cp -pR'.
  18829. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  18830. as_ln_s='cp -pR'
  18831. elif ln conf$$.file conf$$ 2>/dev/null; then
  18832. as_ln_s=ln
  18833. else
  18834. as_ln_s='cp -pR'
  18835. fi
  18836. else
  18837. as_ln_s='cp -pR'
  18838. fi
  18839. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  18840. rmdir conf$$.dir 2>/dev/null
  18841. # as_fn_mkdir_p
  18842. # -------------
  18843. # Create "$as_dir" as a directory, including parents if necessary.
  18844. as_fn_mkdir_p ()
  18845. {
  18846. case $as_dir in #(
  18847. -*) as_dir=./$as_dir;;
  18848. esac
  18849. test -d "$as_dir" || eval $as_mkdir_p || {
  18850. as_dirs=
  18851. while :; do
  18852. case $as_dir in #(
  18853. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  18854. *) as_qdir=$as_dir;;
  18855. esac
  18856. as_dirs="'$as_qdir' $as_dirs"
  18857. as_dir=`$as_dirname -- "$as_dir" ||
  18858. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  18859. X"$as_dir" : 'X\(//\)[^/]' \| \
  18860. X"$as_dir" : 'X\(//\)$' \| \
  18861. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  18862. $as_echo X"$as_dir" |
  18863. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  18864. s//\1/
  18865. q
  18866. }
  18867. /^X\(\/\/\)[^/].*/{
  18868. s//\1/
  18869. q
  18870. }
  18871. /^X\(\/\/\)$/{
  18872. s//\1/
  18873. q
  18874. }
  18875. /^X\(\/\).*/{
  18876. s//\1/
  18877. q
  18878. }
  18879. s/.*/./; q'`
  18880. test -d "$as_dir" && break
  18881. done
  18882. test -z "$as_dirs" || eval "mkdir $as_dirs"
  18883. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  18884. } # as_fn_mkdir_p
  18885. if mkdir -p . 2>/dev/null; then
  18886. as_mkdir_p='mkdir -p "$as_dir"'
  18887. else
  18888. test -d ./-p && rmdir ./-p
  18889. as_mkdir_p=false
  18890. fi
  18891. # as_fn_executable_p FILE
  18892. # -----------------------
  18893. # Test if FILE is an executable regular file.
  18894. as_fn_executable_p ()
  18895. {
  18896. test -f "$1" && test -x "$1"
  18897. } # as_fn_executable_p
  18898. as_test_x='test -x'
  18899. as_executable_p=as_fn_executable_p
  18900. # Sed expression to map a string onto a valid CPP name.
  18901. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  18902. # Sed expression to map a string onto a valid variable name.
  18903. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  18904. exec 6>&1
  18905. ## ----------------------------------- ##
  18906. ## Main body of $CONFIG_STATUS script. ##
  18907. ## ----------------------------------- ##
  18908. _ASEOF
  18909. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  18910. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18911. # Save the log message, to keep $0 and so on meaningful, and to
  18912. # report actual input values of CONFIG_FILES etc. instead of their
  18913. # values after options handling.
  18914. ac_log="
  18915. This file was extended by dirsrv $as_me 1.0, which was
  18916. generated by GNU Autoconf 2.69. Invocation command line was
  18917. CONFIG_FILES = $CONFIG_FILES
  18918. CONFIG_HEADERS = $CONFIG_HEADERS
  18919. CONFIG_LINKS = $CONFIG_LINKS
  18920. CONFIG_COMMANDS = $CONFIG_COMMANDS
  18921. $ $0 $@
  18922. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  18923. "
  18924. _ACEOF
  18925. case $ac_config_files in *"
  18926. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  18927. esac
  18928. case $ac_config_headers in *"
  18929. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  18930. esac
  18931. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  18932. # Files that config.status was made for.
  18933. config_files="$ac_config_files"
  18934. config_headers="$ac_config_headers"
  18935. config_commands="$ac_config_commands"
  18936. _ACEOF
  18937. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18938. ac_cs_usage="\
  18939. \`$as_me' instantiates files and other configuration actions
  18940. from templates according to the current configuration. Unless the files
  18941. and actions are specified as TAGs, all are instantiated by default.
  18942. Usage: $0 [OPTION]... [TAG]...
  18943. -h, --help print this help, then exit
  18944. -V, --version print version number and configuration settings, then exit
  18945. --config print configuration, then exit
  18946. -q, --quiet, --silent
  18947. do not print progress messages
  18948. -d, --debug don't remove temporary files
  18949. --recheck update $as_me by reconfiguring in the same conditions
  18950. --file=FILE[:TEMPLATE]
  18951. instantiate the configuration file FILE
  18952. --header=FILE[:TEMPLATE]
  18953. instantiate the configuration header FILE
  18954. Configuration files:
  18955. $config_files
  18956. Configuration headers:
  18957. $config_headers
  18958. Configuration commands:
  18959. $config_commands
  18960. Report bugs to <http://bugzilla.redhat.com/>."
  18961. _ACEOF
  18962. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  18963. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  18964. ac_cs_version="\\
  18965. dirsrv config.status 1.0
  18966. configured by $0, generated by GNU Autoconf 2.69,
  18967. with options \\"\$ac_cs_config\\"
  18968. Copyright (C) 2012 Free Software Foundation, Inc.
  18969. This config.status script is free software; the Free Software Foundation
  18970. gives unlimited permission to copy, distribute and modify it."
  18971. ac_pwd='$ac_pwd'
  18972. srcdir='$srcdir'
  18973. INSTALL='$INSTALL'
  18974. MKDIR_P='$MKDIR_P'
  18975. AWK='$AWK'
  18976. test -n "\$AWK" || AWK=awk
  18977. _ACEOF
  18978. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18979. # The default lists apply if the user does not specify any file.
  18980. ac_need_defaults=:
  18981. while test $# != 0
  18982. do
  18983. case $1 in
  18984. --*=?*)
  18985. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  18986. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  18987. ac_shift=:
  18988. ;;
  18989. --*=)
  18990. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  18991. ac_optarg=
  18992. ac_shift=:
  18993. ;;
  18994. *)
  18995. ac_option=$1
  18996. ac_optarg=$2
  18997. ac_shift=shift
  18998. ;;
  18999. esac
  19000. case $ac_option in
  19001. # Handling of the options.
  19002. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  19003. ac_cs_recheck=: ;;
  19004. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  19005. $as_echo "$ac_cs_version"; exit ;;
  19006. --config | --confi | --conf | --con | --co | --c )
  19007. $as_echo "$ac_cs_config"; exit ;;
  19008. --debug | --debu | --deb | --de | --d | -d )
  19009. debug=: ;;
  19010. --file | --fil | --fi | --f )
  19011. $ac_shift
  19012. case $ac_optarg in
  19013. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  19014. '') as_fn_error $? "missing file argument" ;;
  19015. esac
  19016. as_fn_append CONFIG_FILES " '$ac_optarg'"
  19017. ac_need_defaults=false;;
  19018. --header | --heade | --head | --hea )
  19019. $ac_shift
  19020. case $ac_optarg in
  19021. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  19022. esac
  19023. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  19024. ac_need_defaults=false;;
  19025. --he | --h)
  19026. # Conflict between --help and --header
  19027. as_fn_error $? "ambiguous option: \`$1'
  19028. Try \`$0 --help' for more information.";;
  19029. --help | --hel | -h )
  19030. $as_echo "$ac_cs_usage"; exit ;;
  19031. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  19032. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  19033. ac_cs_silent=: ;;
  19034. # This is an error.
  19035. -*) as_fn_error $? "unrecognized option: \`$1'
  19036. Try \`$0 --help' for more information." ;;
  19037. *) as_fn_append ac_config_targets " $1"
  19038. ac_need_defaults=false ;;
  19039. esac
  19040. shift
  19041. done
  19042. ac_configure_extra_args=
  19043. if $ac_cs_silent; then
  19044. exec 6>/dev/null
  19045. ac_configure_extra_args="$ac_configure_extra_args --silent"
  19046. fi
  19047. _ACEOF
  19048. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19049. if \$ac_cs_recheck; then
  19050. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  19051. shift
  19052. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  19053. CONFIG_SHELL='$SHELL'
  19054. export CONFIG_SHELL
  19055. exec "\$@"
  19056. fi
  19057. _ACEOF
  19058. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19059. exec 5>>config.log
  19060. {
  19061. echo
  19062. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  19063. ## Running $as_me. ##
  19064. _ASBOX
  19065. $as_echo "$ac_log"
  19066. } >&5
  19067. _ACEOF
  19068. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19069. #
  19070. # INIT-COMMANDS
  19071. #
  19072. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  19073. # The HP-UX ksh and POSIX shell print the target directory to stdout
  19074. # if CDPATH is set.
  19075. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  19076. sed_quote_subst='$sed_quote_subst'
  19077. double_quote_subst='$double_quote_subst'
  19078. delay_variable_subst='$delay_variable_subst'
  19079. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  19080. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  19081. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  19082. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  19083. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  19084. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  19085. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  19086. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  19087. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  19088. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  19089. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  19090. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  19091. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  19092. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  19093. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  19094. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  19095. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  19096. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  19097. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  19098. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  19099. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  19100. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  19101. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  19102. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  19103. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  19104. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  19105. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  19106. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  19107. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  19108. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  19109. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  19110. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  19111. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  19112. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  19113. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  19114. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  19115. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  19116. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  19117. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  19118. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  19119. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  19120. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  19121. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  19122. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  19123. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  19124. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  19125. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  19126. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  19127. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  19128. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  19129. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  19130. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  19131. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  19132. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  19133. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  19134. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  19135. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
  19136. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  19137. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  19138. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  19139. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  19140. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  19141. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  19142. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  19143. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  19144. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  19145. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  19146. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  19147. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  19148. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  19149. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  19150. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  19151. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  19152. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  19153. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  19154. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  19155. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  19156. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  19157. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  19158. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  19159. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  19160. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  19161. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  19162. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  19163. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  19164. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  19165. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  19166. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  19167. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  19168. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  19169. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  19170. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  19171. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  19172. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  19173. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  19174. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  19175. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  19176. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  19177. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  19178. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  19179. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  19180. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  19181. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  19182. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  19183. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  19184. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  19185. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  19186. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  19187. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  19188. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  19189. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  19190. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  19191. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  19192. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  19193. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  19194. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  19195. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  19196. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  19197. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  19198. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  19199. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  19200. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  19201. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  19202. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  19203. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  19204. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  19205. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  19206. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  19207. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  19208. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  19209. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  19210. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  19211. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  19212. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  19213. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  19214. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  19215. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  19216. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  19217. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  19218. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  19219. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  19220. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  19221. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  19222. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  19223. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  19224. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  19225. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  19226. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  19227. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  19228. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  19229. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  19230. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  19231. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  19232. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  19233. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  19234. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  19235. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  19236. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  19237. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  19238. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  19239. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  19240. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  19241. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  19242. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  19243. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  19244. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  19245. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  19246. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  19247. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  19248. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  19249. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  19250. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  19251. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  19252. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  19253. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  19254. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  19255. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  19256. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  19257. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  19258. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  19259. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  19260. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  19261. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  19262. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  19263. LTCC='$LTCC'
  19264. LTCFLAGS='$LTCFLAGS'
  19265. compiler='$compiler_DEFAULT'
  19266. # A function that is used when there is no print builtin or printf.
  19267. func_fallback_echo ()
  19268. {
  19269. eval 'cat <<_LTECHO_EOF
  19270. \$1
  19271. _LTECHO_EOF'
  19272. }
  19273. # Quote evaled strings.
  19274. for var in SHELL \
  19275. ECHO \
  19276. PATH_SEPARATOR \
  19277. SED \
  19278. GREP \
  19279. EGREP \
  19280. FGREP \
  19281. LD \
  19282. NM \
  19283. LN_S \
  19284. lt_SP2NL \
  19285. lt_NL2SP \
  19286. reload_flag \
  19287. OBJDUMP \
  19288. deplibs_check_method \
  19289. file_magic_cmd \
  19290. file_magic_glob \
  19291. want_nocaseglob \
  19292. DLLTOOL \
  19293. sharedlib_from_linklib_cmd \
  19294. AR \
  19295. AR_FLAGS \
  19296. archiver_list_spec \
  19297. STRIP \
  19298. RANLIB \
  19299. CC \
  19300. CFLAGS \
  19301. compiler \
  19302. lt_cv_sys_global_symbol_pipe \
  19303. lt_cv_sys_global_symbol_to_cdecl \
  19304. lt_cv_sys_global_symbol_to_c_name_address \
  19305. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  19306. nm_file_list_spec \
  19307. lt_prog_compiler_no_builtin_flag \
  19308. lt_prog_compiler_pic \
  19309. lt_prog_compiler_wl \
  19310. lt_prog_compiler_static \
  19311. lt_cv_prog_compiler_c_o \
  19312. need_locks \
  19313. MANIFEST_TOOL \
  19314. DSYMUTIL \
  19315. NMEDIT \
  19316. LIPO \
  19317. OTOOL \
  19318. OTOOL64 \
  19319. shrext_cmds \
  19320. export_dynamic_flag_spec \
  19321. whole_archive_flag_spec \
  19322. compiler_needs_object \
  19323. with_gnu_ld \
  19324. allow_undefined_flag \
  19325. no_undefined_flag \
  19326. hardcode_libdir_flag_spec \
  19327. hardcode_libdir_separator \
  19328. exclude_expsyms \
  19329. include_expsyms \
  19330. file_list_spec \
  19331. variables_saved_for_relink \
  19332. libname_spec \
  19333. library_names_spec \
  19334. soname_spec \
  19335. install_override_mode \
  19336. finish_eval \
  19337. old_striplib \
  19338. striplib \
  19339. compiler_lib_search_dirs \
  19340. predep_objects \
  19341. postdep_objects \
  19342. predeps \
  19343. postdeps \
  19344. compiler_lib_search_path \
  19345. LD_CXX \
  19346. reload_flag_CXX \
  19347. compiler_CXX \
  19348. lt_prog_compiler_no_builtin_flag_CXX \
  19349. lt_prog_compiler_pic_CXX \
  19350. lt_prog_compiler_wl_CXX \
  19351. lt_prog_compiler_static_CXX \
  19352. lt_cv_prog_compiler_c_o_CXX \
  19353. export_dynamic_flag_spec_CXX \
  19354. whole_archive_flag_spec_CXX \
  19355. compiler_needs_object_CXX \
  19356. with_gnu_ld_CXX \
  19357. allow_undefined_flag_CXX \
  19358. no_undefined_flag_CXX \
  19359. hardcode_libdir_flag_spec_CXX \
  19360. hardcode_libdir_separator_CXX \
  19361. exclude_expsyms_CXX \
  19362. include_expsyms_CXX \
  19363. file_list_spec_CXX \
  19364. compiler_lib_search_dirs_CXX \
  19365. predep_objects_CXX \
  19366. postdep_objects_CXX \
  19367. predeps_CXX \
  19368. postdeps_CXX \
  19369. compiler_lib_search_path_CXX; do
  19370. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  19371. *[\\\\\\\`\\"\\\$]*)
  19372. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  19373. ;;
  19374. *)
  19375. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  19376. ;;
  19377. esac
  19378. done
  19379. # Double-quote double-evaled strings.
  19380. for var in reload_cmds \
  19381. old_postinstall_cmds \
  19382. old_postuninstall_cmds \
  19383. old_archive_cmds \
  19384. extract_expsyms_cmds \
  19385. old_archive_from_new_cmds \
  19386. old_archive_from_expsyms_cmds \
  19387. archive_cmds \
  19388. archive_expsym_cmds \
  19389. module_cmds \
  19390. module_expsym_cmds \
  19391. export_symbols_cmds \
  19392. prelink_cmds \
  19393. postlink_cmds \
  19394. postinstall_cmds \
  19395. postuninstall_cmds \
  19396. finish_cmds \
  19397. sys_lib_search_path_spec \
  19398. sys_lib_dlsearch_path_spec \
  19399. reload_cmds_CXX \
  19400. old_archive_cmds_CXX \
  19401. old_archive_from_new_cmds_CXX \
  19402. old_archive_from_expsyms_cmds_CXX \
  19403. archive_cmds_CXX \
  19404. archive_expsym_cmds_CXX \
  19405. module_cmds_CXX \
  19406. module_expsym_cmds_CXX \
  19407. export_symbols_cmds_CXX \
  19408. prelink_cmds_CXX \
  19409. postlink_cmds_CXX; do
  19410. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  19411. *[\\\\\\\`\\"\\\$]*)
  19412. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  19413. ;;
  19414. *)
  19415. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  19416. ;;
  19417. esac
  19418. done
  19419. ac_aux_dir='$ac_aux_dir'
  19420. xsi_shell='$xsi_shell'
  19421. lt_shell_append='$lt_shell_append'
  19422. # See if we are running on zsh, and set the options which allow our
  19423. # commands through without removal of \ escapes INIT.
  19424. if test -n "\${ZSH_VERSION+set}" ; then
  19425. setopt NO_GLOB_SUBST
  19426. fi
  19427. PACKAGE='$PACKAGE'
  19428. VERSION='$VERSION'
  19429. TIMESTAMP='$TIMESTAMP'
  19430. RM='$RM'
  19431. ofile='$ofile'
  19432. _ACEOF
  19433. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19434. # Handling of arguments.
  19435. for ac_config_target in $ac_config_targets
  19436. do
  19437. case $ac_config_target in
  19438. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  19439. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  19440. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  19441. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  19442. "rpm/389-ds-base.spec") CONFIG_FILES="$CONFIG_FILES rpm/389-ds-base.spec" ;;
  19443. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  19444. esac
  19445. done
  19446. # If the user did not use the arguments to specify the items to instantiate,
  19447. # then the envvar interface is used. Set only those that are not.
  19448. # We use the long form for the default assignment because of an extremely
  19449. # bizarre bug on SunOS 4.1.3.
  19450. if $ac_need_defaults; then
  19451. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  19452. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  19453. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  19454. fi
  19455. # Have a temporary directory for convenience. Make it in the build tree
  19456. # simply because there is no reason against having it here, and in addition,
  19457. # creating and moving files from /tmp can sometimes cause problems.
  19458. # Hook for its removal unless debugging.
  19459. # Note that there is a small window in which the directory will not be cleaned:
  19460. # after its creation but before its name has been assigned to `$tmp'.
  19461. $debug ||
  19462. {
  19463. tmp= ac_tmp=
  19464. trap 'exit_status=$?
  19465. : "${ac_tmp:=$tmp}"
  19466. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  19467. ' 0
  19468. trap 'as_fn_exit 1' 1 2 13 15
  19469. }
  19470. # Create a (secure) tmp directory for tmp files.
  19471. {
  19472. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  19473. test -d "$tmp"
  19474. } ||
  19475. {
  19476. tmp=./conf$$-$RANDOM
  19477. (umask 077 && mkdir "$tmp")
  19478. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  19479. ac_tmp=$tmp
  19480. # Set up the scripts for CONFIG_FILES section.
  19481. # No need to generate them if there are no CONFIG_FILES.
  19482. # This happens for instance with `./config.status config.h'.
  19483. if test -n "$CONFIG_FILES"; then
  19484. ac_cr=`echo X | tr X '\015'`
  19485. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  19486. # But we know of no other shell where ac_cr would be empty at this
  19487. # point, so we can use a bashism as a fallback.
  19488. if test "x$ac_cr" = x; then
  19489. eval ac_cr=\$\'\\r\'
  19490. fi
  19491. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  19492. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  19493. ac_cs_awk_cr='\\r'
  19494. else
  19495. ac_cs_awk_cr=$ac_cr
  19496. fi
  19497. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  19498. _ACEOF
  19499. {
  19500. echo "cat >conf$$subs.awk <<_ACEOF" &&
  19501. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  19502. echo "_ACEOF"
  19503. } >conf$$subs.sh ||
  19504. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  19505. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  19506. ac_delim='%!_!# '
  19507. for ac_last_try in false false false false false :; do
  19508. . ./conf$$subs.sh ||
  19509. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  19510. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  19511. if test $ac_delim_n = $ac_delim_num; then
  19512. break
  19513. elif $ac_last_try; then
  19514. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  19515. else
  19516. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  19517. fi
  19518. done
  19519. rm -f conf$$subs.sh
  19520. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19521. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  19522. _ACEOF
  19523. sed -n '
  19524. h
  19525. s/^/S["/; s/!.*/"]=/
  19526. p
  19527. g
  19528. s/^[^!]*!//
  19529. :repl
  19530. t repl
  19531. s/'"$ac_delim"'$//
  19532. t delim
  19533. :nl
  19534. h
  19535. s/\(.\{148\}\)..*/\1/
  19536. t more1
  19537. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  19538. p
  19539. n
  19540. b repl
  19541. :more1
  19542. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  19543. p
  19544. g
  19545. s/.\{148\}//
  19546. t nl
  19547. :delim
  19548. h
  19549. s/\(.\{148\}\)..*/\1/
  19550. t more2
  19551. s/["\\]/\\&/g; s/^/"/; s/$/"/
  19552. p
  19553. b
  19554. :more2
  19555. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  19556. p
  19557. g
  19558. s/.\{148\}//
  19559. t delim
  19560. ' <conf$$subs.awk | sed '
  19561. /^[^""]/{
  19562. N
  19563. s/\n//
  19564. }
  19565. ' >>$CONFIG_STATUS || ac_write_fail=1
  19566. rm -f conf$$subs.awk
  19567. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19568. _ACAWK
  19569. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  19570. for (key in S) S_is_set[key] = 1
  19571. FS = ""
  19572. }
  19573. {
  19574. line = $ 0
  19575. nfields = split(line, field, "@")
  19576. substed = 0
  19577. len = length(field[1])
  19578. for (i = 2; i < nfields; i++) {
  19579. key = field[i]
  19580. keylen = length(key)
  19581. if (S_is_set[key]) {
  19582. value = S[key]
  19583. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  19584. len += length(value) + length(field[++i])
  19585. substed = 1
  19586. } else
  19587. len += 1 + keylen
  19588. }
  19589. print line
  19590. }
  19591. _ACAWK
  19592. _ACEOF
  19593. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19594. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  19595. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  19596. else
  19597. cat
  19598. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  19599. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  19600. _ACEOF
  19601. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  19602. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  19603. # trailing colons and then remove the whole line if VPATH becomes empty
  19604. # (actually we leave an empty line to preserve line numbers).
  19605. if test "x$srcdir" = x.; then
  19606. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  19607. h
  19608. s///
  19609. s/^/:/
  19610. s/[ ]*$/:/
  19611. s/:\$(srcdir):/:/g
  19612. s/:\${srcdir}:/:/g
  19613. s/:@srcdir@:/:/g
  19614. s/^:*//
  19615. s/:*$//
  19616. x
  19617. s/\(=[ ]*\).*/\1/
  19618. G
  19619. s/\n//
  19620. s/^[^=]*=[ ]*$//
  19621. }'
  19622. fi
  19623. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19624. fi # test -n "$CONFIG_FILES"
  19625. # Set up the scripts for CONFIG_HEADERS section.
  19626. # No need to generate them if there are no CONFIG_HEADERS.
  19627. # This happens for instance with `./config.status Makefile'.
  19628. if test -n "$CONFIG_HEADERS"; then
  19629. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  19630. BEGIN {
  19631. _ACEOF
  19632. # Transform confdefs.h into an awk script `defines.awk', embedded as
  19633. # here-document in config.status, that substitutes the proper values into
  19634. # config.h.in to produce config.h.
  19635. # Create a delimiter string that does not exist in confdefs.h, to ease
  19636. # handling of long lines.
  19637. ac_delim='%!_!# '
  19638. for ac_last_try in false false :; do
  19639. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  19640. if test -z "$ac_tt"; then
  19641. break
  19642. elif $ac_last_try; then
  19643. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  19644. else
  19645. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  19646. fi
  19647. done
  19648. # For the awk script, D is an array of macro values keyed by name,
  19649. # likewise P contains macro parameters if any. Preserve backslash
  19650. # newline sequences.
  19651. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  19652. sed -n '
  19653. s/.\{148\}/&'"$ac_delim"'/g
  19654. t rset
  19655. :rset
  19656. s/^[ ]*#[ ]*define[ ][ ]*/ /
  19657. t def
  19658. d
  19659. :def
  19660. s/\\$//
  19661. t bsnl
  19662. s/["\\]/\\&/g
  19663. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  19664. D["\1"]=" \3"/p
  19665. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  19666. d
  19667. :bsnl
  19668. s/["\\]/\\&/g
  19669. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  19670. D["\1"]=" \3\\\\\\n"\\/p
  19671. t cont
  19672. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  19673. t cont
  19674. d
  19675. :cont
  19676. n
  19677. s/.\{148\}/&'"$ac_delim"'/g
  19678. t clear
  19679. :clear
  19680. s/\\$//
  19681. t bsnlc
  19682. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  19683. d
  19684. :bsnlc
  19685. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  19686. b cont
  19687. ' <confdefs.h | sed '
  19688. s/'"$ac_delim"'/"\\\
  19689. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  19690. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19691. for (key in D) D_is_set[key] = 1
  19692. FS = ""
  19693. }
  19694. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  19695. line = \$ 0
  19696. split(line, arg, " ")
  19697. if (arg[1] == "#") {
  19698. defundef = arg[2]
  19699. mac1 = arg[3]
  19700. } else {
  19701. defundef = substr(arg[1], 2)
  19702. mac1 = arg[2]
  19703. }
  19704. split(mac1, mac2, "(") #)
  19705. macro = mac2[1]
  19706. prefix = substr(line, 1, index(line, defundef) - 1)
  19707. if (D_is_set[macro]) {
  19708. # Preserve the white space surrounding the "#".
  19709. print prefix "define", macro P[macro] D[macro]
  19710. next
  19711. } else {
  19712. # Replace #undef with comments. This is necessary, for example,
  19713. # in the case of _POSIX_SOURCE, which is predefined and required
  19714. # on some systems where configure will not decide to define it.
  19715. if (defundef == "undef") {
  19716. print "/*", prefix defundef, macro, "*/"
  19717. next
  19718. }
  19719. }
  19720. }
  19721. { print }
  19722. _ACAWK
  19723. _ACEOF
  19724. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19725. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  19726. fi # test -n "$CONFIG_HEADERS"
  19727. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  19728. shift
  19729. for ac_tag
  19730. do
  19731. case $ac_tag in
  19732. :[FHLC]) ac_mode=$ac_tag; continue;;
  19733. esac
  19734. case $ac_mode$ac_tag in
  19735. :[FHL]*:*);;
  19736. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  19737. :[FH]-) ac_tag=-:-;;
  19738. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  19739. esac
  19740. ac_save_IFS=$IFS
  19741. IFS=:
  19742. set x $ac_tag
  19743. IFS=$ac_save_IFS
  19744. shift
  19745. ac_file=$1
  19746. shift
  19747. case $ac_mode in
  19748. :L) ac_source=$1;;
  19749. :[FH])
  19750. ac_file_inputs=
  19751. for ac_f
  19752. do
  19753. case $ac_f in
  19754. -) ac_f="$ac_tmp/stdin";;
  19755. *) # Look for the file first in the build tree, then in the source tree
  19756. # (if the path is not absolute). The absolute path cannot be DOS-style,
  19757. # because $ac_f cannot contain `:'.
  19758. test -f "$ac_f" ||
  19759. case $ac_f in
  19760. [\\/$]*) false;;
  19761. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  19762. esac ||
  19763. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  19764. esac
  19765. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  19766. as_fn_append ac_file_inputs " '$ac_f'"
  19767. done
  19768. # Let's still pretend it is `configure' which instantiates (i.e., don't
  19769. # use $as_me), people would be surprised to read:
  19770. # /* config.h. Generated by config.status. */
  19771. configure_input='Generated from '`
  19772. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  19773. `' by configure.'
  19774. if test x"$ac_file" != x-; then
  19775. configure_input="$ac_file. $configure_input"
  19776. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  19777. $as_echo "$as_me: creating $ac_file" >&6;}
  19778. fi
  19779. # Neutralize special characters interpreted by sed in replacement strings.
  19780. case $configure_input in #(
  19781. *\&* | *\|* | *\\* )
  19782. ac_sed_conf_input=`$as_echo "$configure_input" |
  19783. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  19784. *) ac_sed_conf_input=$configure_input;;
  19785. esac
  19786. case $ac_tag in
  19787. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  19788. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  19789. esac
  19790. ;;
  19791. esac
  19792. ac_dir=`$as_dirname -- "$ac_file" ||
  19793. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  19794. X"$ac_file" : 'X\(//\)[^/]' \| \
  19795. X"$ac_file" : 'X\(//\)$' \| \
  19796. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  19797. $as_echo X"$ac_file" |
  19798. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  19799. s//\1/
  19800. q
  19801. }
  19802. /^X\(\/\/\)[^/].*/{
  19803. s//\1/
  19804. q
  19805. }
  19806. /^X\(\/\/\)$/{
  19807. s//\1/
  19808. q
  19809. }
  19810. /^X\(\/\).*/{
  19811. s//\1/
  19812. q
  19813. }
  19814. s/.*/./; q'`
  19815. as_dir="$ac_dir"; as_fn_mkdir_p
  19816. ac_builddir=.
  19817. case "$ac_dir" in
  19818. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  19819. *)
  19820. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  19821. # A ".." for each directory in $ac_dir_suffix.
  19822. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  19823. case $ac_top_builddir_sub in
  19824. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  19825. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  19826. esac ;;
  19827. esac
  19828. ac_abs_top_builddir=$ac_pwd
  19829. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  19830. # for backward compatibility:
  19831. ac_top_builddir=$ac_top_build_prefix
  19832. case $srcdir in
  19833. .) # We are building in place.
  19834. ac_srcdir=.
  19835. ac_top_srcdir=$ac_top_builddir_sub
  19836. ac_abs_top_srcdir=$ac_pwd ;;
  19837. [\\/]* | ?:[\\/]* ) # Absolute name.
  19838. ac_srcdir=$srcdir$ac_dir_suffix;
  19839. ac_top_srcdir=$srcdir
  19840. ac_abs_top_srcdir=$srcdir ;;
  19841. *) # Relative name.
  19842. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  19843. ac_top_srcdir=$ac_top_build_prefix$srcdir
  19844. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  19845. esac
  19846. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  19847. case $ac_mode in
  19848. :F)
  19849. #
  19850. # CONFIG_FILE
  19851. #
  19852. case $INSTALL in
  19853. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  19854. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  19855. esac
  19856. ac_MKDIR_P=$MKDIR_P
  19857. case $MKDIR_P in
  19858. [\\/$]* | ?:[\\/]* ) ;;
  19859. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  19860. esac
  19861. _ACEOF
  19862. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19863. # If the template does not know about datarootdir, expand it.
  19864. # FIXME: This hack should be removed a few years after 2.60.
  19865. ac_datarootdir_hack=; ac_datarootdir_seen=
  19866. ac_sed_dataroot='
  19867. /datarootdir/ {
  19868. p
  19869. q
  19870. }
  19871. /@datadir@/p
  19872. /@docdir@/p
  19873. /@infodir@/p
  19874. /@localedir@/p
  19875. /@mandir@/p'
  19876. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  19877. *datarootdir*) ac_datarootdir_seen=yes;;
  19878. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  19879. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  19880. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  19881. _ACEOF
  19882. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19883. ac_datarootdir_hack='
  19884. s&@datadir@&$datadir&g
  19885. s&@docdir@&$docdir&g
  19886. s&@infodir@&$infodir&g
  19887. s&@localedir@&$localedir&g
  19888. s&@mandir@&$mandir&g
  19889. s&\\\${datarootdir}&$datarootdir&g' ;;
  19890. esac
  19891. _ACEOF
  19892. # Neutralize VPATH when `$srcdir' = `.'.
  19893. # Shell code in configure.ac might set extrasub.
  19894. # FIXME: do we really want to maintain this feature?
  19895. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19896. ac_sed_extra="$ac_vpsub
  19897. $extrasub
  19898. _ACEOF
  19899. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19900. :t
  19901. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  19902. s|@configure_input@|$ac_sed_conf_input|;t t
  19903. s&@top_builddir@&$ac_top_builddir_sub&;t t
  19904. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  19905. s&@srcdir@&$ac_srcdir&;t t
  19906. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  19907. s&@top_srcdir@&$ac_top_srcdir&;t t
  19908. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  19909. s&@builddir@&$ac_builddir&;t t
  19910. s&@abs_builddir@&$ac_abs_builddir&;t t
  19911. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  19912. s&@INSTALL@&$ac_INSTALL&;t t
  19913. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  19914. $ac_datarootdir_hack
  19915. "
  19916. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  19917. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  19918. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  19919. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  19920. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  19921. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  19922. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  19923. which seems to be undefined. Please make sure it is defined" >&5
  19924. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  19925. which seems to be undefined. Please make sure it is defined" >&2;}
  19926. rm -f "$ac_tmp/stdin"
  19927. case $ac_file in
  19928. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  19929. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  19930. esac \
  19931. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  19932. ;;
  19933. :H)
  19934. #
  19935. # CONFIG_HEADER
  19936. #
  19937. if test x"$ac_file" != x-; then
  19938. {
  19939. $as_echo "/* $configure_input */" \
  19940. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  19941. } >"$ac_tmp/config.h" \
  19942. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  19943. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  19944. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  19945. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  19946. else
  19947. rm -f "$ac_file"
  19948. mv "$ac_tmp/config.h" "$ac_file" \
  19949. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  19950. fi
  19951. else
  19952. $as_echo "/* $configure_input */" \
  19953. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  19954. || as_fn_error $? "could not create -" "$LINENO" 5
  19955. fi
  19956. # Compute "$ac_file"'s index in $config_headers.
  19957. _am_arg="$ac_file"
  19958. _am_stamp_count=1
  19959. for _am_header in $config_headers :; do
  19960. case $_am_header in
  19961. $_am_arg | $_am_arg:* )
  19962. break ;;
  19963. * )
  19964. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  19965. esac
  19966. done
  19967. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  19968. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  19969. X"$_am_arg" : 'X\(//\)[^/]' \| \
  19970. X"$_am_arg" : 'X\(//\)$' \| \
  19971. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  19972. $as_echo X"$_am_arg" |
  19973. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  19974. s//\1/
  19975. q
  19976. }
  19977. /^X\(\/\/\)[^/].*/{
  19978. s//\1/
  19979. q
  19980. }
  19981. /^X\(\/\/\)$/{
  19982. s//\1/
  19983. q
  19984. }
  19985. /^X\(\/\).*/{
  19986. s//\1/
  19987. q
  19988. }
  19989. s/.*/./; q'`/stamp-h$_am_stamp_count
  19990. ;;
  19991. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  19992. $as_echo "$as_me: executing $ac_file commands" >&6;}
  19993. ;;
  19994. esac
  19995. case $ac_file$ac_mode in
  19996. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  19997. # Older Autoconf quotes --file arguments for eval, but not when files
  19998. # are listed without --file. Let's play safe and only enable the eval
  19999. # if we detect the quoting.
  20000. case $CONFIG_FILES in
  20001. *\'*) eval set x "$CONFIG_FILES" ;;
  20002. *) set x $CONFIG_FILES ;;
  20003. esac
  20004. shift
  20005. for mf
  20006. do
  20007. # Strip MF so we end up with the name of the file.
  20008. mf=`echo "$mf" | sed -e 's/:.*$//'`
  20009. # Check whether this is an Automake generated Makefile or not.
  20010. # We used to match only the files named 'Makefile.in', but
  20011. # some people rename them; so instead we look at the file content.
  20012. # Grep'ing the first line is not enough: some people post-process
  20013. # each Makefile.in and add a new line on top of each file to say so.
  20014. # Grep'ing the whole file is not good either: AIX grep has a line
  20015. # limit of 2048, but all sed's we know have understand at least 4000.
  20016. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  20017. dirpart=`$as_dirname -- "$mf" ||
  20018. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20019. X"$mf" : 'X\(//\)[^/]' \| \
  20020. X"$mf" : 'X\(//\)$' \| \
  20021. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  20022. $as_echo X"$mf" |
  20023. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  20024. s//\1/
  20025. q
  20026. }
  20027. /^X\(\/\/\)[^/].*/{
  20028. s//\1/
  20029. q
  20030. }
  20031. /^X\(\/\/\)$/{
  20032. s//\1/
  20033. q
  20034. }
  20035. /^X\(\/\).*/{
  20036. s//\1/
  20037. q
  20038. }
  20039. s/.*/./; q'`
  20040. else
  20041. continue
  20042. fi
  20043. # Extract the definition of DEPDIR, am__include, and am__quote
  20044. # from the Makefile without running 'make'.
  20045. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  20046. test -z "$DEPDIR" && continue
  20047. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  20048. test -z "$am__include" && continue
  20049. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  20050. # Find all dependency output files, they are included files with
  20051. # $(DEPDIR) in their names. We invoke sed twice because it is the
  20052. # simplest approach to changing $(DEPDIR) to its actual value in the
  20053. # expansion.
  20054. for file in `sed -n "
  20055. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  20056. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
  20057. # Make sure the directory exists.
  20058. test -f "$dirpart/$file" && continue
  20059. fdir=`$as_dirname -- "$file" ||
  20060. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20061. X"$file" : 'X\(//\)[^/]' \| \
  20062. X"$file" : 'X\(//\)$' \| \
  20063. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  20064. $as_echo X"$file" |
  20065. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  20066. s//\1/
  20067. q
  20068. }
  20069. /^X\(\/\/\)[^/].*/{
  20070. s//\1/
  20071. q
  20072. }
  20073. /^X\(\/\/\)$/{
  20074. s//\1/
  20075. q
  20076. }
  20077. /^X\(\/\).*/{
  20078. s//\1/
  20079. q
  20080. }
  20081. s/.*/./; q'`
  20082. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  20083. # echo "creating $dirpart/$file"
  20084. echo '# dummy' > "$dirpart/$file"
  20085. done
  20086. done
  20087. }
  20088. ;;
  20089. "libtool":C)
  20090. # See if we are running on zsh, and set the options which allow our
  20091. # commands through without removal of \ escapes.
  20092. if test -n "${ZSH_VERSION+set}" ; then
  20093. setopt NO_GLOB_SUBST
  20094. fi
  20095. cfgfile="${ofile}T"
  20096. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  20097. $RM "$cfgfile"
  20098. cat <<_LT_EOF >> "$cfgfile"
  20099. #! $SHELL
  20100. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  20101. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  20102. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  20103. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  20104. #
  20105. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  20106. # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
  20107. # Foundation, Inc.
  20108. # Written by Gordon Matzigkeit, 1996
  20109. #
  20110. # This file is part of GNU Libtool.
  20111. #
  20112. # GNU Libtool is free software; you can redistribute it and/or
  20113. # modify it under the terms of the GNU General Public License as
  20114. # published by the Free Software Foundation; either version 2 of
  20115. # the License, or (at your option) any later version.
  20116. #
  20117. # As a special exception to the GNU General Public License,
  20118. # if you distribute this file as part of a program or library that
  20119. # is built using GNU Libtool, you may include this file under the
  20120. # same distribution terms that you use for the rest of that program.
  20121. #
  20122. # GNU Libtool is distributed in the hope that it will be useful,
  20123. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  20124. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  20125. # GNU General Public License for more details.
  20126. #
  20127. # You should have received a copy of the GNU General Public License
  20128. # along with GNU Libtool; see the file COPYING. If not, a copy
  20129. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  20130. # obtained by writing to the Free Software Foundation, Inc.,
  20131. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  20132. # The names of the tagged configurations supported by this script.
  20133. available_tags="CXX "
  20134. # ### BEGIN LIBTOOL CONFIG
  20135. # Whether or not to build static libraries.
  20136. build_old_libs=$enable_static
  20137. # Which release of libtool.m4 was used?
  20138. macro_version=$macro_version
  20139. macro_revision=$macro_revision
  20140. # Whether or not to build shared libraries.
  20141. build_libtool_libs=$enable_shared
  20142. # What type of objects to build.
  20143. pic_mode=$pic_mode
  20144. # Whether or not to optimize for fast installation.
  20145. fast_install=$enable_fast_install
  20146. # Shell to use when invoking shell scripts.
  20147. SHELL=$lt_SHELL
  20148. # An echo program that protects backslashes.
  20149. ECHO=$lt_ECHO
  20150. # The PATH separator for the build system.
  20151. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  20152. # The host system.
  20153. host_alias=$host_alias
  20154. host=$host
  20155. host_os=$host_os
  20156. # The build system.
  20157. build_alias=$build_alias
  20158. build=$build
  20159. build_os=$build_os
  20160. # A sed program that does not truncate output.
  20161. SED=$lt_SED
  20162. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  20163. Xsed="\$SED -e 1s/^X//"
  20164. # A grep program that handles long lines.
  20165. GREP=$lt_GREP
  20166. # An ERE matcher.
  20167. EGREP=$lt_EGREP
  20168. # A literal string matcher.
  20169. FGREP=$lt_FGREP
  20170. # A BSD- or MS-compatible name lister.
  20171. NM=$lt_NM
  20172. # Whether we need soft or hard links.
  20173. LN_S=$lt_LN_S
  20174. # What is the maximum length of a command?
  20175. max_cmd_len=$max_cmd_len
  20176. # Object file suffix (normally "o").
  20177. objext=$ac_objext
  20178. # Executable file suffix (normally "").
  20179. exeext=$exeext
  20180. # whether the shell understands "unset".
  20181. lt_unset=$lt_unset
  20182. # turn spaces into newlines.
  20183. SP2NL=$lt_lt_SP2NL
  20184. # turn newlines into spaces.
  20185. NL2SP=$lt_lt_NL2SP
  20186. # convert \$build file names to \$host format.
  20187. to_host_file_cmd=$lt_cv_to_host_file_cmd
  20188. # convert \$build files to toolchain format.
  20189. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  20190. # An object symbol dumper.
  20191. OBJDUMP=$lt_OBJDUMP
  20192. # Method to check whether dependent libraries are shared objects.
  20193. deplibs_check_method=$lt_deplibs_check_method
  20194. # Command to use when deplibs_check_method = "file_magic".
  20195. file_magic_cmd=$lt_file_magic_cmd
  20196. # How to find potential files when deplibs_check_method = "file_magic".
  20197. file_magic_glob=$lt_file_magic_glob
  20198. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  20199. want_nocaseglob=$lt_want_nocaseglob
  20200. # DLL creation program.
  20201. DLLTOOL=$lt_DLLTOOL
  20202. # Command to associate shared and link libraries.
  20203. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  20204. # The archiver.
  20205. AR=$lt_AR
  20206. # Flags to create an archive.
  20207. AR_FLAGS=$lt_AR_FLAGS
  20208. # How to feed a file listing to the archiver.
  20209. archiver_list_spec=$lt_archiver_list_spec
  20210. # A symbol stripping program.
  20211. STRIP=$lt_STRIP
  20212. # Commands used to install an old-style archive.
  20213. RANLIB=$lt_RANLIB
  20214. old_postinstall_cmds=$lt_old_postinstall_cmds
  20215. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  20216. # Whether to use a lock for old archive extraction.
  20217. lock_old_archive_extraction=$lock_old_archive_extraction
  20218. # A C compiler.
  20219. LTCC=$lt_CC
  20220. # LTCC compiler flags.
  20221. LTCFLAGS=$lt_CFLAGS
  20222. # Take the output of nm and produce a listing of raw symbols and C names.
  20223. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  20224. # Transform the output of nm in a proper C declaration.
  20225. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  20226. # Transform the output of nm in a C name address pair.
  20227. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  20228. # Transform the output of nm in a C name address pair when lib prefix is needed.
  20229. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  20230. # Specify filename containing input files for \$NM.
  20231. nm_file_list_spec=$lt_nm_file_list_spec
  20232. # The root where to search for dependent libraries,and in which our libraries should be installed.
  20233. lt_sysroot=$lt_sysroot
  20234. # The name of the directory that contains temporary libtool files.
  20235. objdir=$objdir
  20236. # Used to examine libraries when file_magic_cmd begins with "file".
  20237. MAGIC_CMD=$MAGIC_CMD
  20238. # Must we lock files when doing compilation?
  20239. need_locks=$lt_need_locks
  20240. # Manifest tool.
  20241. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  20242. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  20243. DSYMUTIL=$lt_DSYMUTIL
  20244. # Tool to change global to local symbols on Mac OS X.
  20245. NMEDIT=$lt_NMEDIT
  20246. # Tool to manipulate fat objects and archives on Mac OS X.
  20247. LIPO=$lt_LIPO
  20248. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  20249. OTOOL=$lt_OTOOL
  20250. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  20251. OTOOL64=$lt_OTOOL64
  20252. # Old archive suffix (normally "a").
  20253. libext=$libext
  20254. # Shared library suffix (normally ".so").
  20255. shrext_cmds=$lt_shrext_cmds
  20256. # The commands to extract the exported symbol list from a shared archive.
  20257. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  20258. # Variables whose values should be saved in libtool wrapper scripts and
  20259. # restored at link time.
  20260. variables_saved_for_relink=$lt_variables_saved_for_relink
  20261. # Do we need the "lib" prefix for modules?
  20262. need_lib_prefix=$need_lib_prefix
  20263. # Do we need a version for libraries?
  20264. need_version=$need_version
  20265. # Library versioning type.
  20266. version_type=$version_type
  20267. # Shared library runtime path variable.
  20268. runpath_var=$runpath_var
  20269. # Shared library path variable.
  20270. shlibpath_var=$shlibpath_var
  20271. # Is shlibpath searched before the hard-coded library search path?
  20272. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  20273. # Format of library name prefix.
  20274. libname_spec=$lt_libname_spec
  20275. # List of archive names. First name is the real one, the rest are links.
  20276. # The last name is the one that the linker finds with -lNAME
  20277. library_names_spec=$lt_library_names_spec
  20278. # The coded name of the library, if different from the real name.
  20279. soname_spec=$lt_soname_spec
  20280. # Permission mode override for installation of shared libraries.
  20281. install_override_mode=$lt_install_override_mode
  20282. # Command to use after installation of a shared archive.
  20283. postinstall_cmds=$lt_postinstall_cmds
  20284. # Command to use after uninstallation of a shared archive.
  20285. postuninstall_cmds=$lt_postuninstall_cmds
  20286. # Commands used to finish a libtool library installation in a directory.
  20287. finish_cmds=$lt_finish_cmds
  20288. # As "finish_cmds", except a single script fragment to be evaled but
  20289. # not shown.
  20290. finish_eval=$lt_finish_eval
  20291. # Whether we should hardcode library paths into libraries.
  20292. hardcode_into_libs=$hardcode_into_libs
  20293. # Compile-time system search path for libraries.
  20294. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  20295. # Run-time system search path for libraries.
  20296. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  20297. # Whether dlopen is supported.
  20298. dlopen_support=$enable_dlopen
  20299. # Whether dlopen of programs is supported.
  20300. dlopen_self=$enable_dlopen_self
  20301. # Whether dlopen of statically linked programs is supported.
  20302. dlopen_self_static=$enable_dlopen_self_static
  20303. # Commands to strip libraries.
  20304. old_striplib=$lt_old_striplib
  20305. striplib=$lt_striplib
  20306. # The linker used to build libraries.
  20307. LD=$lt_LD
  20308. # How to create reloadable object files.
  20309. reload_flag=$lt_reload_flag
  20310. reload_cmds=$lt_reload_cmds
  20311. # Commands used to build an old-style archive.
  20312. old_archive_cmds=$lt_old_archive_cmds
  20313. # A language specific compiler.
  20314. CC=$lt_compiler
  20315. # Is the compiler the GNU compiler?
  20316. with_gcc=$GCC
  20317. # Compiler flag to turn off builtin functions.
  20318. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  20319. # Additional compiler flags for building library objects.
  20320. pic_flag=$lt_lt_prog_compiler_pic
  20321. # How to pass a linker flag through the compiler.
  20322. wl=$lt_lt_prog_compiler_wl
  20323. # Compiler flag to prevent dynamic linking.
  20324. link_static_flag=$lt_lt_prog_compiler_static
  20325. # Does compiler simultaneously support -c and -o options?
  20326. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  20327. # Whether or not to add -lc for building shared libraries.
  20328. build_libtool_need_lc=$archive_cmds_need_lc
  20329. # Whether or not to disallow shared libs when runtime libs are static.
  20330. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  20331. # Compiler flag to allow reflexive dlopens.
  20332. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  20333. # Compiler flag to generate shared objects directly from archives.
  20334. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  20335. # Whether the compiler copes with passing no objects directly.
  20336. compiler_needs_object=$lt_compiler_needs_object
  20337. # Create an old-style archive from a shared archive.
  20338. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  20339. # Create a temporary old-style archive to link instead of a shared archive.
  20340. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  20341. # Commands used to build a shared archive.
  20342. archive_cmds=$lt_archive_cmds
  20343. archive_expsym_cmds=$lt_archive_expsym_cmds
  20344. # Commands used to build a loadable module if different from building
  20345. # a shared archive.
  20346. module_cmds=$lt_module_cmds
  20347. module_expsym_cmds=$lt_module_expsym_cmds
  20348. # Whether we are building with GNU ld or not.
  20349. with_gnu_ld=$lt_with_gnu_ld
  20350. # Flag that allows shared libraries with undefined symbols to be built.
  20351. allow_undefined_flag=$lt_allow_undefined_flag
  20352. # Flag that enforces no undefined symbols.
  20353. no_undefined_flag=$lt_no_undefined_flag
  20354. # Flag to hardcode \$libdir into a binary during linking.
  20355. # This must work even if \$libdir does not exist
  20356. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  20357. # Whether we need a single "-rpath" flag with a separated argument.
  20358. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  20359. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  20360. # DIR into the resulting binary.
  20361. hardcode_direct=$hardcode_direct
  20362. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  20363. # DIR into the resulting binary and the resulting library dependency is
  20364. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  20365. # library is relocated.
  20366. hardcode_direct_absolute=$hardcode_direct_absolute
  20367. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  20368. # into the resulting binary.
  20369. hardcode_minus_L=$hardcode_minus_L
  20370. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  20371. # into the resulting binary.
  20372. hardcode_shlibpath_var=$hardcode_shlibpath_var
  20373. # Set to "yes" if building a shared library automatically hardcodes DIR
  20374. # into the library and all subsequent libraries and executables linked
  20375. # against it.
  20376. hardcode_automatic=$hardcode_automatic
  20377. # Set to yes if linker adds runtime paths of dependent libraries
  20378. # to runtime path list.
  20379. inherit_rpath=$inherit_rpath
  20380. # Whether libtool must link a program against all its dependency libraries.
  20381. link_all_deplibs=$link_all_deplibs
  20382. # Set to "yes" if exported symbols are required.
  20383. always_export_symbols=$always_export_symbols
  20384. # The commands to list exported symbols.
  20385. export_symbols_cmds=$lt_export_symbols_cmds
  20386. # Symbols that should not be listed in the preloaded symbols.
  20387. exclude_expsyms=$lt_exclude_expsyms
  20388. # Symbols that must always be exported.
  20389. include_expsyms=$lt_include_expsyms
  20390. # Commands necessary for linking programs (against libraries) with templates.
  20391. prelink_cmds=$lt_prelink_cmds
  20392. # Commands necessary for finishing linking programs.
  20393. postlink_cmds=$lt_postlink_cmds
  20394. # Specify filename containing input files.
  20395. file_list_spec=$lt_file_list_spec
  20396. # How to hardcode a shared library path into an executable.
  20397. hardcode_action=$hardcode_action
  20398. # The directories searched by this compiler when creating a shared library.
  20399. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  20400. # Dependencies to place before and after the objects being linked to
  20401. # create a shared library.
  20402. predep_objects=$lt_predep_objects
  20403. postdep_objects=$lt_postdep_objects
  20404. predeps=$lt_predeps
  20405. postdeps=$lt_postdeps
  20406. # The library search path used internally by the compiler when linking
  20407. # a shared library.
  20408. compiler_lib_search_path=$lt_compiler_lib_search_path
  20409. # ### END LIBTOOL CONFIG
  20410. _LT_EOF
  20411. case $host_os in
  20412. aix3*)
  20413. cat <<\_LT_EOF >> "$cfgfile"
  20414. # AIX sometimes has problems with the GCC collect2 program. For some
  20415. # reason, if we set the COLLECT_NAMES environment variable, the problems
  20416. # vanish in a puff of smoke.
  20417. if test "X${COLLECT_NAMES+set}" != Xset; then
  20418. COLLECT_NAMES=
  20419. export COLLECT_NAMES
  20420. fi
  20421. _LT_EOF
  20422. ;;
  20423. esac
  20424. ltmain="$ac_aux_dir/ltmain.sh"
  20425. # We use sed instead of cat because bash on DJGPP gets confused if
  20426. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  20427. # text mode, it properly converts lines to CR/LF. This bash problem
  20428. # is reportedly fixed, but why not run on old versions too?
  20429. sed '$q' "$ltmain" >> "$cfgfile" \
  20430. || (rm -f "$cfgfile"; exit 1)
  20431. if test x"$xsi_shell" = xyes; then
  20432. sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
  20433. func_dirname ()\
  20434. {\
  20435. \ case ${1} in\
  20436. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  20437. \ * ) func_dirname_result="${3}" ;;\
  20438. \ esac\
  20439. } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
  20440. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20441. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20442. test 0 -eq $? || _lt_function_replace_fail=:
  20443. sed -e '/^func_basename ()$/,/^} # func_basename /c\
  20444. func_basename ()\
  20445. {\
  20446. \ func_basename_result="${1##*/}"\
  20447. } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
  20448. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20449. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20450. test 0 -eq $? || _lt_function_replace_fail=:
  20451. sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
  20452. func_dirname_and_basename ()\
  20453. {\
  20454. \ case ${1} in\
  20455. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  20456. \ * ) func_dirname_result="${3}" ;;\
  20457. \ esac\
  20458. \ func_basename_result="${1##*/}"\
  20459. } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
  20460. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20461. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20462. test 0 -eq $? || _lt_function_replace_fail=:
  20463. sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
  20464. func_stripname ()\
  20465. {\
  20466. \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
  20467. \ # positional parameters, so assign one to ordinary parameter first.\
  20468. \ func_stripname_result=${3}\
  20469. \ func_stripname_result=${func_stripname_result#"${1}"}\
  20470. \ func_stripname_result=${func_stripname_result%"${2}"}\
  20471. } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
  20472. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20473. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20474. test 0 -eq $? || _lt_function_replace_fail=:
  20475. sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
  20476. func_split_long_opt ()\
  20477. {\
  20478. \ func_split_long_opt_name=${1%%=*}\
  20479. \ func_split_long_opt_arg=${1#*=}\
  20480. } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
  20481. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20482. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20483. test 0 -eq $? || _lt_function_replace_fail=:
  20484. sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
  20485. func_split_short_opt ()\
  20486. {\
  20487. \ func_split_short_opt_arg=${1#??}\
  20488. \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
  20489. } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
  20490. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20491. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20492. test 0 -eq $? || _lt_function_replace_fail=:
  20493. sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
  20494. func_lo2o ()\
  20495. {\
  20496. \ case ${1} in\
  20497. \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
  20498. \ *) func_lo2o_result=${1} ;;\
  20499. \ esac\
  20500. } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
  20501. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20502. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20503. test 0 -eq $? || _lt_function_replace_fail=:
  20504. sed -e '/^func_xform ()$/,/^} # func_xform /c\
  20505. func_xform ()\
  20506. {\
  20507. func_xform_result=${1%.*}.lo\
  20508. } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
  20509. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20510. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20511. test 0 -eq $? || _lt_function_replace_fail=:
  20512. sed -e '/^func_arith ()$/,/^} # func_arith /c\
  20513. func_arith ()\
  20514. {\
  20515. func_arith_result=$(( $* ))\
  20516. } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
  20517. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20518. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20519. test 0 -eq $? || _lt_function_replace_fail=:
  20520. sed -e '/^func_len ()$/,/^} # func_len /c\
  20521. func_len ()\
  20522. {\
  20523. func_len_result=${#1}\
  20524. } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
  20525. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20526. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20527. test 0 -eq $? || _lt_function_replace_fail=:
  20528. fi
  20529. if test x"$lt_shell_append" = xyes; then
  20530. sed -e '/^func_append ()$/,/^} # func_append /c\
  20531. func_append ()\
  20532. {\
  20533. eval "${1}+=\\${2}"\
  20534. } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
  20535. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20536. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20537. test 0 -eq $? || _lt_function_replace_fail=:
  20538. sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
  20539. func_append_quoted ()\
  20540. {\
  20541. \ func_quote_for_eval "${2}"\
  20542. \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
  20543. } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
  20544. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20545. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20546. test 0 -eq $? || _lt_function_replace_fail=:
  20547. # Save a `func_append' function call where possible by direct use of '+='
  20548. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
  20549. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20550. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20551. test 0 -eq $? || _lt_function_replace_fail=:
  20552. else
  20553. # Save a `func_append' function call even when '+=' is not available
  20554. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  20555. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20556. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20557. test 0 -eq $? || _lt_function_replace_fail=:
  20558. fi
  20559. if test x"$_lt_function_replace_fail" = x":"; then
  20560. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
  20561. $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
  20562. fi
  20563. mv -f "$cfgfile" "$ofile" ||
  20564. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  20565. chmod +x "$ofile"
  20566. cat <<_LT_EOF >> "$ofile"
  20567. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  20568. # The linker used to build libraries.
  20569. LD=$lt_LD_CXX
  20570. # How to create reloadable object files.
  20571. reload_flag=$lt_reload_flag_CXX
  20572. reload_cmds=$lt_reload_cmds_CXX
  20573. # Commands used to build an old-style archive.
  20574. old_archive_cmds=$lt_old_archive_cmds_CXX
  20575. # A language specific compiler.
  20576. CC=$lt_compiler_CXX
  20577. # Is the compiler the GNU compiler?
  20578. with_gcc=$GCC_CXX
  20579. # Compiler flag to turn off builtin functions.
  20580. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  20581. # Additional compiler flags for building library objects.
  20582. pic_flag=$lt_lt_prog_compiler_pic_CXX
  20583. # How to pass a linker flag through the compiler.
  20584. wl=$lt_lt_prog_compiler_wl_CXX
  20585. # Compiler flag to prevent dynamic linking.
  20586. link_static_flag=$lt_lt_prog_compiler_static_CXX
  20587. # Does compiler simultaneously support -c and -o options?
  20588. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  20589. # Whether or not to add -lc for building shared libraries.
  20590. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  20591. # Whether or not to disallow shared libs when runtime libs are static.
  20592. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  20593. # Compiler flag to allow reflexive dlopens.
  20594. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  20595. # Compiler flag to generate shared objects directly from archives.
  20596. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  20597. # Whether the compiler copes with passing no objects directly.
  20598. compiler_needs_object=$lt_compiler_needs_object_CXX
  20599. # Create an old-style archive from a shared archive.
  20600. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  20601. # Create a temporary old-style archive to link instead of a shared archive.
  20602. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  20603. # Commands used to build a shared archive.
  20604. archive_cmds=$lt_archive_cmds_CXX
  20605. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  20606. # Commands used to build a loadable module if different from building
  20607. # a shared archive.
  20608. module_cmds=$lt_module_cmds_CXX
  20609. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  20610. # Whether we are building with GNU ld or not.
  20611. with_gnu_ld=$lt_with_gnu_ld_CXX
  20612. # Flag that allows shared libraries with undefined symbols to be built.
  20613. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  20614. # Flag that enforces no undefined symbols.
  20615. no_undefined_flag=$lt_no_undefined_flag_CXX
  20616. # Flag to hardcode \$libdir into a binary during linking.
  20617. # This must work even if \$libdir does not exist
  20618. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  20619. # Whether we need a single "-rpath" flag with a separated argument.
  20620. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  20621. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  20622. # DIR into the resulting binary.
  20623. hardcode_direct=$hardcode_direct_CXX
  20624. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  20625. # DIR into the resulting binary and the resulting library dependency is
  20626. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  20627. # library is relocated.
  20628. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  20629. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  20630. # into the resulting binary.
  20631. hardcode_minus_L=$hardcode_minus_L_CXX
  20632. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  20633. # into the resulting binary.
  20634. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  20635. # Set to "yes" if building a shared library automatically hardcodes DIR
  20636. # into the library and all subsequent libraries and executables linked
  20637. # against it.
  20638. hardcode_automatic=$hardcode_automatic_CXX
  20639. # Set to yes if linker adds runtime paths of dependent libraries
  20640. # to runtime path list.
  20641. inherit_rpath=$inherit_rpath_CXX
  20642. # Whether libtool must link a program against all its dependency libraries.
  20643. link_all_deplibs=$link_all_deplibs_CXX
  20644. # Set to "yes" if exported symbols are required.
  20645. always_export_symbols=$always_export_symbols_CXX
  20646. # The commands to list exported symbols.
  20647. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  20648. # Symbols that should not be listed in the preloaded symbols.
  20649. exclude_expsyms=$lt_exclude_expsyms_CXX
  20650. # Symbols that must always be exported.
  20651. include_expsyms=$lt_include_expsyms_CXX
  20652. # Commands necessary for linking programs (against libraries) with templates.
  20653. prelink_cmds=$lt_prelink_cmds_CXX
  20654. # Commands necessary for finishing linking programs.
  20655. postlink_cmds=$lt_postlink_cmds_CXX
  20656. # Specify filename containing input files.
  20657. file_list_spec=$lt_file_list_spec_CXX
  20658. # How to hardcode a shared library path into an executable.
  20659. hardcode_action=$hardcode_action_CXX
  20660. # The directories searched by this compiler when creating a shared library.
  20661. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  20662. # Dependencies to place before and after the objects being linked to
  20663. # create a shared library.
  20664. predep_objects=$lt_predep_objects_CXX
  20665. postdep_objects=$lt_postdep_objects_CXX
  20666. predeps=$lt_predeps_CXX
  20667. postdeps=$lt_postdeps_CXX
  20668. # The library search path used internally by the compiler when linking
  20669. # a shared library.
  20670. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  20671. # ### END LIBTOOL TAG CONFIG: CXX
  20672. _LT_EOF
  20673. ;;
  20674. esac
  20675. done # for ac_tag
  20676. as_fn_exit 0
  20677. _ACEOF
  20678. ac_clean_files=$ac_clean_files_save
  20679. test $ac_write_fail = 0 ||
  20680. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  20681. # configure is writing to config.log, and then calls config.status.
  20682. # config.status does its own redirection, appending to config.log.
  20683. # Unfortunately, on DOS this fails, as config.log is still kept open
  20684. # by configure, so config.status won't be able to write to it; its
  20685. # output is simply discarded. So we exec the FD to /dev/null,
  20686. # effectively closing config.log, so it can be properly (re)opened and
  20687. # appended to by config.status. When coming back to configure, we
  20688. # need to make the FD available again.
  20689. if test "$no_create" != yes; then
  20690. ac_cs_success=:
  20691. ac_config_status_args=
  20692. test "$silent" = yes &&
  20693. ac_config_status_args="$ac_config_status_args --quiet"
  20694. exec 5>/dev/null
  20695. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  20696. exec 5>>config.log
  20697. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  20698. # would make configure fail if this is the last instruction.
  20699. $ac_cs_success || as_fn_exit 1
  20700. fi
  20701. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  20702. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  20703. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  20704. fi