configure 715 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238
  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. systemd_defs
  591. systemd_lib
  592. systemd_inc
  593. localrundir
  594. nunc_stans_libdir
  595. nunc_stans_lib
  596. nunc_stans_inc
  597. pcre_libdir
  598. pcre_lib
  599. pcre_inc
  600. netsnmp_link
  601. netsnmp_libdir
  602. netsnmp_lib
  603. netsnmp_inc
  604. icu_bin
  605. icu_inc
  606. icu_lib
  607. svrcore_lib
  608. svrcore_inc
  609. sasl_path
  610. sasl_libdir
  611. sasl_lib
  612. sasl_inc
  613. db_libver
  614. db_bindir
  615. db_libdir
  616. db_lib
  617. db_incdir
  618. db_inc
  619. ol_libver
  620. plainldif_opts
  621. ldaptool_opts
  622. ldaptool_bindir
  623. openldap_bindir
  624. openldap_libdir
  625. openldap_lib
  626. openldap_inc
  627. ldapsdk_bindir
  628. ldapsdk_libdir
  629. ldapsdk_lib
  630. ldapsdk_inc
  631. nss_libdir
  632. nss_lib
  633. nss_inc
  634. nspr_libdir
  635. nspr_lib
  636. nspr_inc
  637. SPARC_FALSE
  638. SPARC_TRUE
  639. OPENLDAP_FALSE
  640. OPENLDAP_TRUE
  641. SELINUX_FALSE
  642. SELINUX_TRUE
  643. PACKAGE_BASE_VERSION
  644. JOURNALD_FALSE
  645. JOURNALD_TRUE
  646. SYSTEMD_FALSE
  647. SYSTEMD_TRUE
  648. with_systemdgroupname
  649. with_systemdsystemconfdir
  650. with_systemdsystemunitdir
  651. with_selinux
  652. kerberos_libdir
  653. kerberos_lib
  654. kerberos_inc
  655. KRB5_CONFIG_BIN
  656. NETSNMP_CONFIG
  657. ICU_CONFIG
  658. ldap_lib_ldif
  659. PKG_CONFIG
  660. SOLARIS_FALSE
  661. SOLARIS_TRUE
  662. HPUX_FALSE
  663. HPUX_TRUE
  664. initconfigdir
  665. sttyexec
  666. perlexec
  667. initdir
  668. LIBCRUN
  669. LIBCSTD
  670. LIBDL
  671. LIBNSL
  672. LIBSOCKET
  673. LIBCRYPT
  674. THREADLIB
  675. INITDDIR_FALSE
  676. INITDDIR_TRUE
  677. WINNT_FALSE
  678. WINNT_TRUE
  679. instconfigdir
  680. defaultgroup
  681. defaultuser
  682. updatedir
  683. mibdir
  684. infdir
  685. pythondir
  686. perldir
  687. scripttemplatedir
  688. serverplugindir
  689. serverincdir
  690. serverdir
  691. schemadir
  692. propertydir
  693. sampledatadir
  694. configdir
  695. with_tmpfiles_d
  696. with_fhs_opt
  697. enable_nunc_stans_FALSE
  698. enable_nunc_stans_TRUE
  699. enable_posix_winsync_FALSE
  700. enable_posix_winsync_TRUE
  701. enable_acctpolicy_FALSE
  702. enable_acctpolicy_TRUE
  703. enable_presence_FALSE
  704. enable_presence_TRUE
  705. enable_bitwise_FALSE
  706. enable_bitwise_TRUE
  707. enable_auto_dn_suffix_FALSE
  708. enable_auto_dn_suffix_TRUE
  709. enable_autobind_FALSE
  710. enable_autobind_TRUE
  711. enable_ldapi_FALSE
  712. enable_ldapi_TRUE
  713. enable_dna_FALSE
  714. enable_dna_TRUE
  715. enable_pam_passthru_FALSE
  716. enable_pam_passthru_TRUE
  717. BUNDLE_FALSE
  718. BUNDLE_TRUE
  719. gccsec_defs
  720. RPM_HARDEND_CC_FALSE
  721. RPM_HARDEND_CC_TRUE
  722. asan_defs
  723. debug_defs
  724. LIBOBJS
  725. CXXCPP
  726. CPP
  727. OTOOL64
  728. OTOOL
  729. LIPO
  730. NMEDIT
  731. DSYMUTIL
  732. MANIFEST_TOOL
  733. RANLIB
  734. ac_ct_AR
  735. AR
  736. DLLTOOL
  737. OBJDUMP
  738. LN_S
  739. NM
  740. ac_ct_DUMPBIN
  741. DUMPBIN
  742. LD
  743. FGREP
  744. EGREP
  745. GREP
  746. SED
  747. LIBTOOL
  748. am__fastdepCCAS_FALSE
  749. am__fastdepCCAS_TRUE
  750. CCASDEPMODE
  751. CCASFLAGS
  752. CCAS
  753. am__fastdepCC_FALSE
  754. am__fastdepCC_TRUE
  755. CCDEPMODE
  756. ac_ct_CC
  757. CFLAGS
  758. CC
  759. am__fastdepCXX_FALSE
  760. am__fastdepCXX_TRUE
  761. CXXDEPMODE
  762. am__nodep
  763. AMDEPBACKSLASH
  764. AMDEP_FALSE
  765. AMDEP_TRUE
  766. am__quote
  767. am__include
  768. DEPDIR
  769. OBJEXT
  770. EXEEXT
  771. ac_ct_CXX
  772. CPPFLAGS
  773. LDFLAGS
  774. CXXFLAGS
  775. CXX
  776. host_os
  777. host_vendor
  778. host_cpu
  779. host
  780. build_os
  781. build_vendor
  782. build_cpu
  783. build
  784. MAINT
  785. MAINTAINER_MODE_FALSE
  786. MAINTAINER_MODE_TRUE
  787. CONSOLE_VERSION
  788. RPM_RELEASE
  789. RPM_VERSION
  790. AM_BACKSLASH
  791. AM_DEFAULT_VERBOSITY
  792. AM_DEFAULT_V
  793. AM_V
  794. am__untar
  795. am__tar
  796. AMTAR
  797. am__leading_dot
  798. SET_MAKE
  799. AWK
  800. mkdir_p
  801. MKDIR_P
  802. INSTALL_STRIP_PROGRAM
  803. STRIP
  804. install_sh
  805. MAKEINFO
  806. AUTOHEADER
  807. AUTOMAKE
  808. AUTOCONF
  809. ACLOCAL
  810. VERSION
  811. PACKAGE
  812. CYGPATH_W
  813. am__isrc
  814. INSTALL_DATA
  815. INSTALL_SCRIPT
  816. INSTALL_PROGRAM
  817. target_alias
  818. host_alias
  819. build_alias
  820. LIBS
  821. ECHO_T
  822. ECHO_N
  823. ECHO_C
  824. DEFS
  825. mandir
  826. localedir
  827. libdir
  828. psdir
  829. pdfdir
  830. dvidir
  831. htmldir
  832. infodir
  833. docdir
  834. oldincludedir
  835. includedir
  836. localstatedir
  837. sharedstatedir
  838. sysconfdir
  839. datadir
  840. datarootdir
  841. libexecdir
  842. sbindir
  843. bindir
  844. program_transform_name
  845. prefix
  846. exec_prefix
  847. PACKAGE_URL
  848. PACKAGE_BUGREPORT
  849. PACKAGE_STRING
  850. PACKAGE_VERSION
  851. PACKAGE_TARNAME
  852. PACKAGE_NAME
  853. PATH_SEPARATOR
  854. SHELL'
  855. ac_subst_files=''
  856. ac_user_opts='
  857. enable_option_checking
  858. enable_silent_rules
  859. enable_maintainer_mode
  860. enable_dependency_tracking
  861. enable_static
  862. enable_shared
  863. with_pic
  864. enable_fast_install
  865. with_gnu_ld
  866. with_sysroot
  867. enable_libtool_lock
  868. enable_debug
  869. enable_asan
  870. enable_gcc_security
  871. enable_bundle
  872. enable_pam_passthru
  873. enable_dna
  874. enable_ldapi
  875. enable_autobind
  876. enable_auto_dn_suffix
  877. enable_bitwise
  878. enable_presence
  879. enable_acctpolicy
  880. enable_posix_winsync
  881. enable_nunc_stans
  882. with_fhs
  883. with_fhs_opt
  884. with_tmpfiles_d
  885. with_perldir
  886. with_pythondir
  887. with_instconfigdir
  888. with_initddir
  889. with_nspr
  890. with_nspr_inc
  891. with_nspr_lib
  892. with_nss
  893. with_nss_inc
  894. with_nss_lib
  895. with_openldap
  896. with_openldap_inc
  897. with_openldap_lib
  898. with_openldap_bin
  899. with_ldapsdk
  900. with_ldapsdk_inc
  901. with_ldapsdk_lib
  902. with_ldapsdk_bin
  903. with_db
  904. with_db_inc
  905. with_db_lib
  906. with_sasl
  907. with_sasl_inc
  908. with_sasl_lib
  909. with_svrcore
  910. with_svrcore_inc
  911. with_svrcore_lib
  912. with_icu
  913. with_icu_inc
  914. with_icu_lib
  915. with_icu_bin
  916. with_netsnmp
  917. with_netsnmp_inc
  918. with_netsnmp_lib
  919. with_kerberos
  920. with_kerberos_inc
  921. with_kerberos_lib
  922. with_pcre
  923. with_selinux
  924. with_nunc_stans
  925. with_nunc_stans_inc
  926. with_nunc_stans_lib
  927. with_systemd
  928. with_journald
  929. with_systemdsystemunitdir
  930. with_systemdsystemconfdir
  931. with_systemdgroupname
  932. '
  933. ac_precious_vars='build_alias
  934. host_alias
  935. target_alias
  936. CXX
  937. CXXFLAGS
  938. LDFLAGS
  939. LIBS
  940. CPPFLAGS
  941. CCC
  942. CC
  943. CFLAGS
  944. CCAS
  945. CCASFLAGS
  946. CPP
  947. CXXCPP'
  948. # Initialize some variables set by options.
  949. ac_init_help=
  950. ac_init_version=false
  951. ac_unrecognized_opts=
  952. ac_unrecognized_sep=
  953. # The variables have the same names as the options, with
  954. # dashes changed to underlines.
  955. cache_file=/dev/null
  956. exec_prefix=NONE
  957. no_create=
  958. no_recursion=
  959. prefix=NONE
  960. program_prefix=NONE
  961. program_suffix=NONE
  962. program_transform_name=s,x,x,
  963. silent=
  964. site=
  965. srcdir=
  966. verbose=
  967. x_includes=NONE
  968. x_libraries=NONE
  969. # Installation directory options.
  970. # These are left unexpanded so users can "make install exec_prefix=/foo"
  971. # and all the variables that are supposed to be based on exec_prefix
  972. # by default will actually change.
  973. # Use braces instead of parens because sh, perl, etc. also accept them.
  974. # (The list follows the same order as the GNU Coding Standards.)
  975. bindir='${exec_prefix}/bin'
  976. sbindir='${exec_prefix}/sbin'
  977. libexecdir='${exec_prefix}/libexec'
  978. datarootdir='${prefix}/share'
  979. datadir='${datarootdir}'
  980. sysconfdir='${prefix}/etc'
  981. sharedstatedir='${prefix}/com'
  982. localstatedir='${prefix}/var'
  983. includedir='${prefix}/include'
  984. oldincludedir='/usr/include'
  985. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  986. infodir='${datarootdir}/info'
  987. htmldir='${docdir}'
  988. dvidir='${docdir}'
  989. pdfdir='${docdir}'
  990. psdir='${docdir}'
  991. libdir='${exec_prefix}/lib'
  992. localedir='${datarootdir}/locale'
  993. mandir='${datarootdir}/man'
  994. ac_prev=
  995. ac_dashdash=
  996. for ac_option
  997. do
  998. # If the previous option needs an argument, assign it.
  999. if test -n "$ac_prev"; then
  1000. eval $ac_prev=\$ac_option
  1001. ac_prev=
  1002. continue
  1003. fi
  1004. case $ac_option in
  1005. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  1006. *=) ac_optarg= ;;
  1007. *) ac_optarg=yes ;;
  1008. esac
  1009. # Accept the important Cygnus configure options, so we can diagnose typos.
  1010. case $ac_dashdash$ac_option in
  1011. --)
  1012. ac_dashdash=yes ;;
  1013. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  1014. ac_prev=bindir ;;
  1015. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  1016. bindir=$ac_optarg ;;
  1017. -build | --build | --buil | --bui | --bu)
  1018. ac_prev=build_alias ;;
  1019. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  1020. build_alias=$ac_optarg ;;
  1021. -cache-file | --cache-file | --cache-fil | --cache-fi \
  1022. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  1023. ac_prev=cache_file ;;
  1024. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  1025. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  1026. cache_file=$ac_optarg ;;
  1027. --config-cache | -C)
  1028. cache_file=config.cache ;;
  1029. -datadir | --datadir | --datadi | --datad)
  1030. ac_prev=datadir ;;
  1031. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  1032. datadir=$ac_optarg ;;
  1033. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  1034. | --dataroo | --dataro | --datar)
  1035. ac_prev=datarootdir ;;
  1036. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  1037. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  1038. datarootdir=$ac_optarg ;;
  1039. -disable-* | --disable-*)
  1040. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  1041. # Reject names that are not valid shell variable names.
  1042. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1043. as_fn_error $? "invalid feature name: $ac_useropt"
  1044. ac_useropt_orig=$ac_useropt
  1045. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1046. case $ac_user_opts in
  1047. *"
  1048. "enable_$ac_useropt"
  1049. "*) ;;
  1050. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  1051. ac_unrecognized_sep=', ';;
  1052. esac
  1053. eval enable_$ac_useropt=no ;;
  1054. -docdir | --docdir | --docdi | --doc | --do)
  1055. ac_prev=docdir ;;
  1056. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  1057. docdir=$ac_optarg ;;
  1058. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  1059. ac_prev=dvidir ;;
  1060. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  1061. dvidir=$ac_optarg ;;
  1062. -enable-* | --enable-*)
  1063. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  1064. # Reject names that are not valid shell variable names.
  1065. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1066. as_fn_error $? "invalid feature name: $ac_useropt"
  1067. ac_useropt_orig=$ac_useropt
  1068. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1069. case $ac_user_opts in
  1070. *"
  1071. "enable_$ac_useropt"
  1072. "*) ;;
  1073. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  1074. ac_unrecognized_sep=', ';;
  1075. esac
  1076. eval enable_$ac_useropt=\$ac_optarg ;;
  1077. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  1078. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  1079. | --exec | --exe | --ex)
  1080. ac_prev=exec_prefix ;;
  1081. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  1082. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  1083. | --exec=* | --exe=* | --ex=*)
  1084. exec_prefix=$ac_optarg ;;
  1085. -gas | --gas | --ga | --g)
  1086. # Obsolete; use --with-gas.
  1087. with_gas=yes ;;
  1088. -help | --help | --hel | --he | -h)
  1089. ac_init_help=long ;;
  1090. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1091. ac_init_help=recursive ;;
  1092. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1093. ac_init_help=short ;;
  1094. -host | --host | --hos | --ho)
  1095. ac_prev=host_alias ;;
  1096. -host=* | --host=* | --hos=* | --ho=*)
  1097. host_alias=$ac_optarg ;;
  1098. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1099. ac_prev=htmldir ;;
  1100. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1101. | --ht=*)
  1102. htmldir=$ac_optarg ;;
  1103. -includedir | --includedir | --includedi | --included | --include \
  1104. | --includ | --inclu | --incl | --inc)
  1105. ac_prev=includedir ;;
  1106. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1107. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1108. includedir=$ac_optarg ;;
  1109. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1110. ac_prev=infodir ;;
  1111. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1112. infodir=$ac_optarg ;;
  1113. -libdir | --libdir | --libdi | --libd)
  1114. ac_prev=libdir ;;
  1115. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1116. libdir=$ac_optarg ;;
  1117. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1118. | --libexe | --libex | --libe)
  1119. ac_prev=libexecdir ;;
  1120. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1121. | --libexe=* | --libex=* | --libe=*)
  1122. libexecdir=$ac_optarg ;;
  1123. -localedir | --localedir | --localedi | --localed | --locale)
  1124. ac_prev=localedir ;;
  1125. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1126. localedir=$ac_optarg ;;
  1127. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1128. | --localstate | --localstat | --localsta | --localst | --locals)
  1129. ac_prev=localstatedir ;;
  1130. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1131. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1132. localstatedir=$ac_optarg ;;
  1133. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1134. ac_prev=mandir ;;
  1135. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1136. mandir=$ac_optarg ;;
  1137. -nfp | --nfp | --nf)
  1138. # Obsolete; use --without-fp.
  1139. with_fp=no ;;
  1140. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1141. | --no-cr | --no-c | -n)
  1142. no_create=yes ;;
  1143. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1144. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1145. no_recursion=yes ;;
  1146. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1147. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1148. | --oldin | --oldi | --old | --ol | --o)
  1149. ac_prev=oldincludedir ;;
  1150. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1151. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1152. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1153. oldincludedir=$ac_optarg ;;
  1154. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1155. ac_prev=prefix ;;
  1156. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1157. prefix=$ac_optarg ;;
  1158. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1159. | --program-pre | --program-pr | --program-p)
  1160. ac_prev=program_prefix ;;
  1161. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1162. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1163. program_prefix=$ac_optarg ;;
  1164. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1165. | --program-suf | --program-su | --program-s)
  1166. ac_prev=program_suffix ;;
  1167. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1168. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1169. program_suffix=$ac_optarg ;;
  1170. -program-transform-name | --program-transform-name \
  1171. | --program-transform-nam | --program-transform-na \
  1172. | --program-transform-n | --program-transform- \
  1173. | --program-transform | --program-transfor \
  1174. | --program-transfo | --program-transf \
  1175. | --program-trans | --program-tran \
  1176. | --progr-tra | --program-tr | --program-t)
  1177. ac_prev=program_transform_name ;;
  1178. -program-transform-name=* | --program-transform-name=* \
  1179. | --program-transform-nam=* | --program-transform-na=* \
  1180. | --program-transform-n=* | --program-transform-=* \
  1181. | --program-transform=* | --program-transfor=* \
  1182. | --program-transfo=* | --program-transf=* \
  1183. | --program-trans=* | --program-tran=* \
  1184. | --progr-tra=* | --program-tr=* | --program-t=*)
  1185. program_transform_name=$ac_optarg ;;
  1186. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1187. ac_prev=pdfdir ;;
  1188. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1189. pdfdir=$ac_optarg ;;
  1190. -psdir | --psdir | --psdi | --psd | --ps)
  1191. ac_prev=psdir ;;
  1192. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1193. psdir=$ac_optarg ;;
  1194. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1195. | -silent | --silent | --silen | --sile | --sil)
  1196. silent=yes ;;
  1197. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1198. ac_prev=sbindir ;;
  1199. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1200. | --sbi=* | --sb=*)
  1201. sbindir=$ac_optarg ;;
  1202. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1203. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1204. | --sharedst | --shareds | --shared | --share | --shar \
  1205. | --sha | --sh)
  1206. ac_prev=sharedstatedir ;;
  1207. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1208. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1209. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1210. | --sha=* | --sh=*)
  1211. sharedstatedir=$ac_optarg ;;
  1212. -site | --site | --sit)
  1213. ac_prev=site ;;
  1214. -site=* | --site=* | --sit=*)
  1215. site=$ac_optarg ;;
  1216. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1217. ac_prev=srcdir ;;
  1218. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1219. srcdir=$ac_optarg ;;
  1220. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1221. | --syscon | --sysco | --sysc | --sys | --sy)
  1222. ac_prev=sysconfdir ;;
  1223. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1224. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1225. sysconfdir=$ac_optarg ;;
  1226. -target | --target | --targe | --targ | --tar | --ta | --t)
  1227. ac_prev=target_alias ;;
  1228. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1229. target_alias=$ac_optarg ;;
  1230. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1231. verbose=yes ;;
  1232. -version | --version | --versio | --versi | --vers | -V)
  1233. ac_init_version=: ;;
  1234. -with-* | --with-*)
  1235. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1236. # Reject names that are not valid shell variable names.
  1237. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1238. as_fn_error $? "invalid package name: $ac_useropt"
  1239. ac_useropt_orig=$ac_useropt
  1240. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1241. case $ac_user_opts in
  1242. *"
  1243. "with_$ac_useropt"
  1244. "*) ;;
  1245. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1246. ac_unrecognized_sep=', ';;
  1247. esac
  1248. eval with_$ac_useropt=\$ac_optarg ;;
  1249. -without-* | --without-*)
  1250. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1251. # Reject names that are not valid shell variable names.
  1252. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1253. as_fn_error $? "invalid package name: $ac_useropt"
  1254. ac_useropt_orig=$ac_useropt
  1255. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1256. case $ac_user_opts in
  1257. *"
  1258. "with_$ac_useropt"
  1259. "*) ;;
  1260. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1261. ac_unrecognized_sep=', ';;
  1262. esac
  1263. eval with_$ac_useropt=no ;;
  1264. --x)
  1265. # Obsolete; use --with-x.
  1266. with_x=yes ;;
  1267. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1268. | --x-incl | --x-inc | --x-in | --x-i)
  1269. ac_prev=x_includes ;;
  1270. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1271. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1272. x_includes=$ac_optarg ;;
  1273. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1274. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1275. ac_prev=x_libraries ;;
  1276. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1277. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1278. x_libraries=$ac_optarg ;;
  1279. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1280. Try \`$0 --help' for more information"
  1281. ;;
  1282. *=*)
  1283. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1284. # Reject names that are not valid shell variable names.
  1285. case $ac_envvar in #(
  1286. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1287. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1288. esac
  1289. eval $ac_envvar=\$ac_optarg
  1290. export $ac_envvar ;;
  1291. *)
  1292. # FIXME: should be removed in autoconf 3.0.
  1293. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1294. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1295. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1296. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1297. ;;
  1298. esac
  1299. done
  1300. if test -n "$ac_prev"; then
  1301. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1302. as_fn_error $? "missing argument to $ac_option"
  1303. fi
  1304. if test -n "$ac_unrecognized_opts"; then
  1305. case $enable_option_checking in
  1306. no) ;;
  1307. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1308. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1309. esac
  1310. fi
  1311. # Check all directory arguments for consistency.
  1312. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1313. datadir sysconfdir sharedstatedir localstatedir includedir \
  1314. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1315. libdir localedir mandir
  1316. do
  1317. eval ac_val=\$$ac_var
  1318. # Remove trailing slashes.
  1319. case $ac_val in
  1320. */ )
  1321. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1322. eval $ac_var=\$ac_val;;
  1323. esac
  1324. # Be sure to have absolute directory names.
  1325. case $ac_val in
  1326. [\\/$]* | ?:[\\/]* ) continue;;
  1327. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1328. esac
  1329. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1330. done
  1331. # There might be people who depend on the old broken behavior: `$host'
  1332. # used to hold the argument of --host etc.
  1333. # FIXME: To remove some day.
  1334. build=$build_alias
  1335. host=$host_alias
  1336. target=$target_alias
  1337. # FIXME: To remove some day.
  1338. if test "x$host_alias" != x; then
  1339. if test "x$build_alias" = x; then
  1340. cross_compiling=maybe
  1341. elif test "x$build_alias" != "x$host_alias"; then
  1342. cross_compiling=yes
  1343. fi
  1344. fi
  1345. ac_tool_prefix=
  1346. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1347. test "$silent" = yes && exec 6>/dev/null
  1348. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1349. ac_ls_di=`ls -di .` &&
  1350. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1351. as_fn_error $? "working directory cannot be determined"
  1352. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1353. as_fn_error $? "pwd does not report name of working directory"
  1354. # Find the source files, if location was not specified.
  1355. if test -z "$srcdir"; then
  1356. ac_srcdir_defaulted=yes
  1357. # Try the directory containing this script, then the parent directory.
  1358. ac_confdir=`$as_dirname -- "$as_myself" ||
  1359. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1360. X"$as_myself" : 'X\(//\)[^/]' \| \
  1361. X"$as_myself" : 'X\(//\)$' \| \
  1362. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1363. $as_echo X"$as_myself" |
  1364. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1365. s//\1/
  1366. q
  1367. }
  1368. /^X\(\/\/\)[^/].*/{
  1369. s//\1/
  1370. q
  1371. }
  1372. /^X\(\/\/\)$/{
  1373. s//\1/
  1374. q
  1375. }
  1376. /^X\(\/\).*/{
  1377. s//\1/
  1378. q
  1379. }
  1380. s/.*/./; q'`
  1381. srcdir=$ac_confdir
  1382. if test ! -r "$srcdir/$ac_unique_file"; then
  1383. srcdir=..
  1384. fi
  1385. else
  1386. ac_srcdir_defaulted=no
  1387. fi
  1388. if test ! -r "$srcdir/$ac_unique_file"; then
  1389. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1390. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1391. fi
  1392. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1393. ac_abs_confdir=`(
  1394. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1395. pwd)`
  1396. # When building in place, set srcdir=.
  1397. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1398. srcdir=.
  1399. fi
  1400. # Remove unnecessary trailing slashes from srcdir.
  1401. # Double slashes in file names in object file debugging info
  1402. # mess up M-x gdb in Emacs.
  1403. case $srcdir in
  1404. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1405. esac
  1406. for ac_var in $ac_precious_vars; do
  1407. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1408. eval ac_env_${ac_var}_value=\$${ac_var}
  1409. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1410. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1411. done
  1412. #
  1413. # Report the --help message.
  1414. #
  1415. if test "$ac_init_help" = "long"; then
  1416. # Omit some internal or obsolete options to make the list less imposing.
  1417. # This message is too long to be a string in the A/UX 3.1 sh.
  1418. cat <<_ACEOF
  1419. \`configure' configures dirsrv 1.0 to adapt to many kinds of systems.
  1420. Usage: $0 [OPTION]... [VAR=VALUE]...
  1421. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1422. VAR=VALUE. See below for descriptions of some of the useful variables.
  1423. Defaults for the options are specified in brackets.
  1424. Configuration:
  1425. -h, --help display this help and exit
  1426. --help=short display options specific to this package
  1427. --help=recursive display the short help of all the included packages
  1428. -V, --version display version information and exit
  1429. -q, --quiet, --silent do not print \`checking ...' messages
  1430. --cache-file=FILE cache test results in FILE [disabled]
  1431. -C, --config-cache alias for \`--cache-file=config.cache'
  1432. -n, --no-create do not create output files
  1433. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1434. Installation directories:
  1435. --prefix=PREFIX install architecture-independent files in PREFIX
  1436. [$ac_default_prefix]
  1437. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1438. [PREFIX]
  1439. By default, \`make install' will install all the files in
  1440. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1441. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1442. for instance \`--prefix=\$HOME'.
  1443. For better control, use the options below.
  1444. Fine tuning of the installation directories:
  1445. --bindir=DIR user executables [EPREFIX/bin]
  1446. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1447. --libexecdir=DIR program executables [EPREFIX/libexec]
  1448. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1449. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1450. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1451. --libdir=DIR object code libraries [EPREFIX/lib]
  1452. --includedir=DIR C header files [PREFIX/include]
  1453. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1454. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1455. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1456. --infodir=DIR info documentation [DATAROOTDIR/info]
  1457. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1458. --mandir=DIR man documentation [DATAROOTDIR/man]
  1459. --docdir=DIR documentation root [DATAROOTDIR/doc/dirsrv]
  1460. --htmldir=DIR html documentation [DOCDIR]
  1461. --dvidir=DIR dvi documentation [DOCDIR]
  1462. --pdfdir=DIR pdf documentation [DOCDIR]
  1463. --psdir=DIR ps documentation [DOCDIR]
  1464. _ACEOF
  1465. cat <<\_ACEOF
  1466. Program names:
  1467. --program-prefix=PREFIX prepend PREFIX to installed program names
  1468. --program-suffix=SUFFIX append SUFFIX to installed program names
  1469. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1470. System types:
  1471. --build=BUILD configure for building on BUILD [guessed]
  1472. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1473. _ACEOF
  1474. fi
  1475. if test -n "$ac_init_help"; then
  1476. case $ac_init_help in
  1477. short | recursive ) echo "Configuration of dirsrv 1.0:";;
  1478. esac
  1479. cat <<\_ACEOF
  1480. Optional Features:
  1481. --disable-option-checking ignore unrecognized --enable/--with options
  1482. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1483. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1484. --enable-silent-rules less verbose build output (undo: "make V=1")
  1485. --disable-silent-rules verbose build output (undo: "make V=0")
  1486. --enable-maintainer-mode
  1487. enable make rules and dependencies not useful (and
  1488. sometimes confusing) to the casual installer
  1489. --enable-dependency-tracking
  1490. do not reject slow dependency extractors
  1491. --disable-dependency-tracking
  1492. speeds up one-time build
  1493. --enable-static[=PKGS] build static libraries [default=no]
  1494. --enable-shared[=PKGS] build shared libraries [default=yes]
  1495. --enable-fast-install[=PKGS]
  1496. optimize for fast installation [default=yes]
  1497. --disable-libtool-lock avoid locking (might break parallel builds)
  1498. --enable-debug Enable debug features (default: no)
  1499. --enable-asan Enable gcc address sanitizer options (default: no)
  1500. --enable-gcc-security Enable gcc secure compilation options (default: no)
  1501. --enable-bundle Enable bundled dependencies (default: no)
  1502. --enable-pam-passthru enable the PAM passthrough auth plugin (default:
  1503. yes)
  1504. --enable-dna enable the Distributed Numeric Assignment (DNA)
  1505. plugin (default: yes)
  1506. --enable-ldapi enable LDAP over unix domain socket (LDAPI) support
  1507. (default: yes)
  1508. --enable-autobind enable auto bind over unix domain socket (LDAPI)
  1509. support (default: no)
  1510. --enable-auto-dn-suffix enable auto bind with auto dn suffix over unix
  1511. domain socket (LDAPI) support (default: no)
  1512. --enable-bitwise enable the bitwise matching rule plugin (default:
  1513. yes)
  1514. --enable-presence enable the presence plugin (default: no)
  1515. --enable-acctpolicy enable the account policy plugin (default: yes)
  1516. --enable-posix-winsync enable support for POSIX user/group attributes in
  1517. winsync (default: yes)
  1518. --enable-nunc-stans enable support for nunc-stans event framework
  1519. (default: no)
  1520. Optional Packages:
  1521. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1522. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1523. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1524. both]
  1525. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1526. --with-sysroot=DIR Search for dependent libraries within DIR
  1527. (or the compiler's sysroot if not specified).
  1528. --with-fhs Use FHS layout
  1529. --with-fhs-opt Use FHS optional layout
  1530. --with-tmpfiles-d=PATH system uses tmpfiles.d to handle temp files/dirs
  1531. (default: $with_tmpfiles_d)
  1532. --with-perldir=PATH Directory for perl)
  1533. --with-pythondir=PATH Directory for python)
  1534. --with-instconfigdir=/path
  1535. Base directory for instance specific writable
  1536. configuration directories (default
  1537. $sysconfdir/$PACKAGE_NAME)
  1538. --with-initddir=/path Absolute path (not relative like some of the other
  1539. options) that should contain the SysV init scripts
  1540. (default '$(sysconfdir)/rc.d')
  1541. --with-nspr[=PATH] Netscape Portable Runtime (NSPR) directory
  1542. --with-nspr-inc=PATH Netscape Portable Runtime (NSPR) include directory
  1543. --with-nspr-lib=PATH Netscape Portable Runtime (NSPR) library directory
  1544. --with-nss[=PATH] Network Security Services (NSS) directory
  1545. --with-nss-inc=PATH Network Security Services (NSS) include directory
  1546. --with-nss-lib=PATH Network Security Services (NSS) library directory
  1547. --with-openldap[=PATH] Use OpenLDAP - optional PATH is path to OpenLDAP SDK
  1548. --with-openldap-inc=PATH
  1549. OpenLDAP SDK include directory
  1550. --with-openldap-lib=PATH
  1551. OpenLDAP SDK library directory
  1552. --with-openldap-bin=PATH
  1553. OpenLDAP SDK binary directory
  1554. --with-ldapsdk[=PATH] Mozilla LDAP SDK directory
  1555. --with-ldapsdk-inc=PATH Mozilla LDAP SDK include directory
  1556. --with-ldapsdk-lib=PATH Mozilla LDAP SDK library directory
  1557. --with-ldapsdk-bin=PATH Mozilla LDAP SDK binary directory
  1558. --with-db[=PATH] Berkeley DB directory
  1559. --with-db-inc=PATH Berkeley DB include file directory
  1560. --with-db-lib=PATH Berkeley DB library directory
  1561. --with-sasl[=PATH] Use SASL from supplied path
  1562. --with-sasl-inc=PATH SASL include file directory
  1563. --with-sasl-lib=PATH SASL library directory
  1564. --with-svrcore[=PATH] Use system installed SVRCORE - optional path for
  1565. SVRCORE
  1566. --with-svrcore-inc=PATH SVRCORE include file directory
  1567. --with-svrcore-lib=PATH SVRCORE library directory
  1568. --with-icu[=PATH] ICU directory
  1569. --with-icu-inc=PATH ICU include directory
  1570. --with-icu-lib=PATH ICU library directory
  1571. --with-icu-bin=PATH ICU binary directory
  1572. --with-netsnmp[=PATH] Net-SNMP directory
  1573. --with-netsnmp-inc=PATH Net-SNMP include directory
  1574. --with-netsnmp-lib=PATH Net-SNMP library directory
  1575. --with-kerberos[=PATH] Use the kerberos API in the server directly - allows
  1576. the server to authenticate directly with a keytab -
  1577. otherwise, SASL/GSSAPI auth depends on underlying
  1578. SASL libraries and external kinit with a keytab - if
  1579. PATH is not specified, look for kerberos in the
  1580. system locations. This will attempt to use
  1581. krb5-config from the PATH to find the libs and
  1582. include dirs - you can specify KRB5_CONFIG_BIN to
  1583. specify a different filename or absolute path. If
  1584. krb5-config does not work, this will attempt to look
  1585. in various system directories
  1586. --with-kerberos-inc=PATH
  1587. Allows you to explicitly set the directory
  1588. containing the kerberos include files - implies use
  1589. of kerberos
  1590. --with-kerberos-lib=PATH
  1591. Allows you to explicitly set the directory
  1592. containing the kerberos libraries - implies use of
  1593. kerberos
  1594. --with-pcre[=PATH] Perl Compatible Regular Expression directory
  1595. --with-selinux Support SELinux policy
  1596. --with-nunc-stans[=PATH]
  1597. nunc-stans directory
  1598. --with-nunc-stans-inc=PATH
  1599. nunc-stans include file directory
  1600. --with-nunc-stans-lib=PATH
  1601. nunc-stans library directory
  1602. --with-systemd Enable Systemd native integration.
  1603. --with-journald Enable Journald native integration. WARNING, this
  1604. may cause system instability
  1605. --with-systemdsystemunitdir=PATH
  1606. Directory for systemd service files (default:
  1607. $with_systemdsystemunitdir)
  1608. --with-systemdsystemconfdir=PATH
  1609. Directory for systemd service files (default:
  1610. $with_systemdsystemconfdir)
  1611. --with-systemdgroupname=NAME
  1612. Name of group target for all instances (default:
  1613. $with_systemdgroupname)
  1614. Some influential environment variables:
  1615. CXX C++ compiler command
  1616. CXXFLAGS C++ compiler flags
  1617. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1618. nonstandard directory <lib dir>
  1619. LIBS libraries to pass to the linker, e.g. -l<library>
  1620. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1621. you have headers in a nonstandard directory <include dir>
  1622. CC C compiler command
  1623. CFLAGS C compiler flags
  1624. CCAS assembler compiler command (defaults to CC)
  1625. CCASFLAGS assembler compiler flags (defaults to CFLAGS)
  1626. CPP C preprocessor
  1627. CXXCPP C++ preprocessor
  1628. Use these variables to override the choices made by `configure' or to help
  1629. it to find libraries and programs with nonstandard names/locations.
  1630. Report bugs to <http://bugzilla.redhat.com/>.
  1631. _ACEOF
  1632. ac_status=$?
  1633. fi
  1634. if test "$ac_init_help" = "recursive"; then
  1635. # If there are subdirs, report their specific --help.
  1636. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1637. test -d "$ac_dir" ||
  1638. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1639. continue
  1640. ac_builddir=.
  1641. case "$ac_dir" in
  1642. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1643. *)
  1644. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1645. # A ".." for each directory in $ac_dir_suffix.
  1646. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1647. case $ac_top_builddir_sub in
  1648. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1649. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1650. esac ;;
  1651. esac
  1652. ac_abs_top_builddir=$ac_pwd
  1653. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1654. # for backward compatibility:
  1655. ac_top_builddir=$ac_top_build_prefix
  1656. case $srcdir in
  1657. .) # We are building in place.
  1658. ac_srcdir=.
  1659. ac_top_srcdir=$ac_top_builddir_sub
  1660. ac_abs_top_srcdir=$ac_pwd ;;
  1661. [\\/]* | ?:[\\/]* ) # Absolute name.
  1662. ac_srcdir=$srcdir$ac_dir_suffix;
  1663. ac_top_srcdir=$srcdir
  1664. ac_abs_top_srcdir=$srcdir ;;
  1665. *) # Relative name.
  1666. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1667. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1668. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1669. esac
  1670. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1671. cd "$ac_dir" || { ac_status=$?; continue; }
  1672. # Check for guested configure.
  1673. if test -f "$ac_srcdir/configure.gnu"; then
  1674. echo &&
  1675. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1676. elif test -f "$ac_srcdir/configure"; then
  1677. echo &&
  1678. $SHELL "$ac_srcdir/configure" --help=recursive
  1679. else
  1680. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1681. fi || ac_status=$?
  1682. cd "$ac_pwd" || { ac_status=$?; break; }
  1683. done
  1684. fi
  1685. test -n "$ac_init_help" && exit $ac_status
  1686. if $ac_init_version; then
  1687. cat <<\_ACEOF
  1688. dirsrv configure 1.0
  1689. generated by GNU Autoconf 2.69
  1690. Copyright (C) 2012 Free Software Foundation, Inc.
  1691. This configure script is free software; the Free Software Foundation
  1692. gives unlimited permission to copy, distribute and modify it.
  1693. _ACEOF
  1694. exit
  1695. fi
  1696. ## ------------------------ ##
  1697. ## Autoconf initialization. ##
  1698. ## ------------------------ ##
  1699. # ac_fn_cxx_try_compile LINENO
  1700. # ----------------------------
  1701. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1702. ac_fn_cxx_try_compile ()
  1703. {
  1704. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1705. rm -f conftest.$ac_objext
  1706. if { { ac_try="$ac_compile"
  1707. case "(($ac_try" in
  1708. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1709. *) ac_try_echo=$ac_try;;
  1710. esac
  1711. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1712. $as_echo "$ac_try_echo"; } >&5
  1713. (eval "$ac_compile") 2>conftest.err
  1714. ac_status=$?
  1715. if test -s conftest.err; then
  1716. grep -v '^ *+' conftest.err >conftest.er1
  1717. cat conftest.er1 >&5
  1718. mv -f conftest.er1 conftest.err
  1719. fi
  1720. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1721. test $ac_status = 0; } && {
  1722. test -z "$ac_cxx_werror_flag" ||
  1723. test ! -s conftest.err
  1724. } && test -s conftest.$ac_objext; then :
  1725. ac_retval=0
  1726. else
  1727. $as_echo "$as_me: failed program was:" >&5
  1728. sed 's/^/| /' conftest.$ac_ext >&5
  1729. ac_retval=1
  1730. fi
  1731. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1732. as_fn_set_status $ac_retval
  1733. } # ac_fn_cxx_try_compile
  1734. # ac_fn_c_try_compile LINENO
  1735. # --------------------------
  1736. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1737. ac_fn_c_try_compile ()
  1738. {
  1739. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1740. rm -f conftest.$ac_objext
  1741. if { { ac_try="$ac_compile"
  1742. case "(($ac_try" in
  1743. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1744. *) ac_try_echo=$ac_try;;
  1745. esac
  1746. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1747. $as_echo "$ac_try_echo"; } >&5
  1748. (eval "$ac_compile") 2>conftest.err
  1749. ac_status=$?
  1750. if test -s conftest.err; then
  1751. grep -v '^ *+' conftest.err >conftest.er1
  1752. cat conftest.er1 >&5
  1753. mv -f conftest.er1 conftest.err
  1754. fi
  1755. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1756. test $ac_status = 0; } && {
  1757. test -z "$ac_c_werror_flag" ||
  1758. test ! -s conftest.err
  1759. } && test -s conftest.$ac_objext; then :
  1760. ac_retval=0
  1761. else
  1762. $as_echo "$as_me: failed program was:" >&5
  1763. sed 's/^/| /' conftest.$ac_ext >&5
  1764. ac_retval=1
  1765. fi
  1766. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1767. as_fn_set_status $ac_retval
  1768. } # ac_fn_c_try_compile
  1769. # ac_fn_c_try_link LINENO
  1770. # -----------------------
  1771. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1772. ac_fn_c_try_link ()
  1773. {
  1774. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1775. rm -f conftest.$ac_objext conftest$ac_exeext
  1776. if { { ac_try="$ac_link"
  1777. case "(($ac_try" in
  1778. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1779. *) ac_try_echo=$ac_try;;
  1780. esac
  1781. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1782. $as_echo "$ac_try_echo"; } >&5
  1783. (eval "$ac_link") 2>conftest.err
  1784. ac_status=$?
  1785. if test -s conftest.err; then
  1786. grep -v '^ *+' conftest.err >conftest.er1
  1787. cat conftest.er1 >&5
  1788. mv -f conftest.er1 conftest.err
  1789. fi
  1790. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1791. test $ac_status = 0; } && {
  1792. test -z "$ac_c_werror_flag" ||
  1793. test ! -s conftest.err
  1794. } && test -s conftest$ac_exeext && {
  1795. test "$cross_compiling" = yes ||
  1796. test -x conftest$ac_exeext
  1797. }; then :
  1798. ac_retval=0
  1799. else
  1800. $as_echo "$as_me: failed program was:" >&5
  1801. sed 's/^/| /' conftest.$ac_ext >&5
  1802. ac_retval=1
  1803. fi
  1804. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1805. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1806. # interfere with the next link command; also delete a directory that is
  1807. # left behind by Apple's compiler. We do this before executing the actions.
  1808. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1809. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1810. as_fn_set_status $ac_retval
  1811. } # ac_fn_c_try_link
  1812. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1813. # -------------------------------------------------------
  1814. # Tests whether HEADER exists and can be compiled using the include files in
  1815. # INCLUDES, setting the cache variable VAR accordingly.
  1816. ac_fn_c_check_header_compile ()
  1817. {
  1818. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1819. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1820. $as_echo_n "checking for $2... " >&6; }
  1821. if eval \${$3+:} false; then :
  1822. $as_echo_n "(cached) " >&6
  1823. else
  1824. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1825. /* end confdefs.h. */
  1826. $4
  1827. #include <$2>
  1828. _ACEOF
  1829. if ac_fn_c_try_compile "$LINENO"; then :
  1830. eval "$3=yes"
  1831. else
  1832. eval "$3=no"
  1833. fi
  1834. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1835. fi
  1836. eval ac_res=\$$3
  1837. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1838. $as_echo "$ac_res" >&6; }
  1839. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1840. } # ac_fn_c_check_header_compile
  1841. # ac_fn_c_try_cpp LINENO
  1842. # ----------------------
  1843. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1844. ac_fn_c_try_cpp ()
  1845. {
  1846. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1847. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1848. case "(($ac_try" in
  1849. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1850. *) ac_try_echo=$ac_try;;
  1851. esac
  1852. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1853. $as_echo "$ac_try_echo"; } >&5
  1854. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1855. ac_status=$?
  1856. if test -s conftest.err; then
  1857. grep -v '^ *+' conftest.err >conftest.er1
  1858. cat conftest.er1 >&5
  1859. mv -f conftest.er1 conftest.err
  1860. fi
  1861. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1862. test $ac_status = 0; } > conftest.i && {
  1863. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1864. test ! -s conftest.err
  1865. }; then :
  1866. ac_retval=0
  1867. else
  1868. $as_echo "$as_me: failed program was:" >&5
  1869. sed 's/^/| /' conftest.$ac_ext >&5
  1870. ac_retval=1
  1871. fi
  1872. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1873. as_fn_set_status $ac_retval
  1874. } # ac_fn_c_try_cpp
  1875. # ac_fn_c_try_run LINENO
  1876. # ----------------------
  1877. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1878. # that executables *can* be run.
  1879. ac_fn_c_try_run ()
  1880. {
  1881. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1882. if { { ac_try="$ac_link"
  1883. case "(($ac_try" in
  1884. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1885. *) ac_try_echo=$ac_try;;
  1886. esac
  1887. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1888. $as_echo "$ac_try_echo"; } >&5
  1889. (eval "$ac_link") 2>&5
  1890. ac_status=$?
  1891. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1892. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1893. { { case "(($ac_try" in
  1894. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1895. *) ac_try_echo=$ac_try;;
  1896. esac
  1897. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1898. $as_echo "$ac_try_echo"; } >&5
  1899. (eval "$ac_try") 2>&5
  1900. ac_status=$?
  1901. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1902. test $ac_status = 0; }; }; then :
  1903. ac_retval=0
  1904. else
  1905. $as_echo "$as_me: program exited with status $ac_status" >&5
  1906. $as_echo "$as_me: failed program was:" >&5
  1907. sed 's/^/| /' conftest.$ac_ext >&5
  1908. ac_retval=$ac_status
  1909. fi
  1910. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1911. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1912. as_fn_set_status $ac_retval
  1913. } # ac_fn_c_try_run
  1914. # ac_fn_c_check_func LINENO FUNC VAR
  1915. # ----------------------------------
  1916. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1917. ac_fn_c_check_func ()
  1918. {
  1919. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1920. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1921. $as_echo_n "checking for $2... " >&6; }
  1922. if eval \${$3+:} false; then :
  1923. $as_echo_n "(cached) " >&6
  1924. else
  1925. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1926. /* end confdefs.h. */
  1927. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1928. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1929. #define $2 innocuous_$2
  1930. /* System header to define __stub macros and hopefully few prototypes,
  1931. which can conflict with char $2 (); below.
  1932. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1933. <limits.h> exists even on freestanding compilers. */
  1934. #ifdef __STDC__
  1935. # include <limits.h>
  1936. #else
  1937. # include <assert.h>
  1938. #endif
  1939. #undef $2
  1940. /* Override any GCC internal prototype to avoid an error.
  1941. Use char because int might match the return type of a GCC
  1942. builtin and then its argument prototype would still apply. */
  1943. #ifdef __cplusplus
  1944. extern "C"
  1945. #endif
  1946. char $2 ();
  1947. /* The GNU C library defines this for functions which it implements
  1948. to always fail with ENOSYS. Some functions are actually named
  1949. something starting with __ and the normal name is an alias. */
  1950. #if defined __stub_$2 || defined __stub___$2
  1951. choke me
  1952. #endif
  1953. int
  1954. main ()
  1955. {
  1956. return $2 ();
  1957. ;
  1958. return 0;
  1959. }
  1960. _ACEOF
  1961. if ac_fn_c_try_link "$LINENO"; then :
  1962. eval "$3=yes"
  1963. else
  1964. eval "$3=no"
  1965. fi
  1966. rm -f core conftest.err conftest.$ac_objext \
  1967. conftest$ac_exeext conftest.$ac_ext
  1968. fi
  1969. eval ac_res=\$$3
  1970. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1971. $as_echo "$ac_res" >&6; }
  1972. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1973. } # ac_fn_c_check_func
  1974. # ac_fn_cxx_try_cpp LINENO
  1975. # ------------------------
  1976. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1977. ac_fn_cxx_try_cpp ()
  1978. {
  1979. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1980. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1981. case "(($ac_try" in
  1982. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1983. *) ac_try_echo=$ac_try;;
  1984. esac
  1985. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1986. $as_echo "$ac_try_echo"; } >&5
  1987. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1988. ac_status=$?
  1989. if test -s conftest.err; then
  1990. grep -v '^ *+' conftest.err >conftest.er1
  1991. cat conftest.er1 >&5
  1992. mv -f conftest.er1 conftest.err
  1993. fi
  1994. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1995. test $ac_status = 0; } > conftest.i && {
  1996. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1997. test ! -s conftest.err
  1998. }; then :
  1999. ac_retval=0
  2000. else
  2001. $as_echo "$as_me: failed program was:" >&5
  2002. sed 's/^/| /' conftest.$ac_ext >&5
  2003. ac_retval=1
  2004. fi
  2005. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2006. as_fn_set_status $ac_retval
  2007. } # ac_fn_cxx_try_cpp
  2008. # ac_fn_cxx_try_link LINENO
  2009. # -------------------------
  2010. # Try to link conftest.$ac_ext, and return whether this succeeded.
  2011. ac_fn_cxx_try_link ()
  2012. {
  2013. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2014. rm -f conftest.$ac_objext conftest$ac_exeext
  2015. if { { ac_try="$ac_link"
  2016. case "(($ac_try" in
  2017. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2018. *) ac_try_echo=$ac_try;;
  2019. esac
  2020. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2021. $as_echo "$ac_try_echo"; } >&5
  2022. (eval "$ac_link") 2>conftest.err
  2023. ac_status=$?
  2024. if test -s conftest.err; then
  2025. grep -v '^ *+' conftest.err >conftest.er1
  2026. cat conftest.er1 >&5
  2027. mv -f conftest.er1 conftest.err
  2028. fi
  2029. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2030. test $ac_status = 0; } && {
  2031. test -z "$ac_cxx_werror_flag" ||
  2032. test ! -s conftest.err
  2033. } && test -s conftest$ac_exeext && {
  2034. test "$cross_compiling" = yes ||
  2035. test -x conftest$ac_exeext
  2036. }; then :
  2037. ac_retval=0
  2038. else
  2039. $as_echo "$as_me: failed program was:" >&5
  2040. sed 's/^/| /' conftest.$ac_ext >&5
  2041. ac_retval=1
  2042. fi
  2043. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  2044. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  2045. # interfere with the next link command; also delete a directory that is
  2046. # left behind by Apple's compiler. We do this before executing the actions.
  2047. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2048. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2049. as_fn_set_status $ac_retval
  2050. } # ac_fn_cxx_try_link
  2051. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  2052. # -------------------------------------------------------
  2053. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  2054. # the include files in INCLUDES and setting the cache variable VAR
  2055. # accordingly.
  2056. ac_fn_c_check_header_mongrel ()
  2057. {
  2058. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2059. if eval \${$3+:} false; then :
  2060. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2061. $as_echo_n "checking for $2... " >&6; }
  2062. if eval \${$3+:} false; then :
  2063. $as_echo_n "(cached) " >&6
  2064. fi
  2065. eval ac_res=\$$3
  2066. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2067. $as_echo "$ac_res" >&6; }
  2068. else
  2069. # Is the header compilable?
  2070. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  2071. $as_echo_n "checking $2 usability... " >&6; }
  2072. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2073. /* end confdefs.h. */
  2074. $4
  2075. #include <$2>
  2076. _ACEOF
  2077. if ac_fn_c_try_compile "$LINENO"; then :
  2078. ac_header_compiler=yes
  2079. else
  2080. ac_header_compiler=no
  2081. fi
  2082. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2083. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  2084. $as_echo "$ac_header_compiler" >&6; }
  2085. # Is the header present?
  2086. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  2087. $as_echo_n "checking $2 presence... " >&6; }
  2088. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2089. /* end confdefs.h. */
  2090. #include <$2>
  2091. _ACEOF
  2092. if ac_fn_c_try_cpp "$LINENO"; then :
  2093. ac_header_preproc=yes
  2094. else
  2095. ac_header_preproc=no
  2096. fi
  2097. rm -f conftest.err conftest.i conftest.$ac_ext
  2098. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  2099. $as_echo "$ac_header_preproc" >&6; }
  2100. # So? What about this header?
  2101. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  2102. yes:no: )
  2103. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  2104. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  2105. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2106. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2107. ;;
  2108. no:yes:* )
  2109. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  2110. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  2111. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  2112. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  2113. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  2114. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  2115. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  2116. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  2117. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2118. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2119. ( $as_echo "## ------------------------------------------ ##
  2120. ## Report this to http://bugzilla.redhat.com/ ##
  2121. ## ------------------------------------------ ##"
  2122. ) | sed "s/^/$as_me: WARNING: /" >&2
  2123. ;;
  2124. esac
  2125. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2126. $as_echo_n "checking for $2... " >&6; }
  2127. if eval \${$3+:} false; then :
  2128. $as_echo_n "(cached) " >&6
  2129. else
  2130. eval "$3=\$ac_header_compiler"
  2131. fi
  2132. eval ac_res=\$$3
  2133. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2134. $as_echo "$ac_res" >&6; }
  2135. fi
  2136. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2137. } # ac_fn_c_check_header_mongrel
  2138. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  2139. # -------------------------------------------
  2140. # Tests whether TYPE exists after having included INCLUDES, setting cache
  2141. # variable VAR accordingly.
  2142. ac_fn_c_check_type ()
  2143. {
  2144. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2145. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2146. $as_echo_n "checking for $2... " >&6; }
  2147. if eval \${$3+:} false; then :
  2148. $as_echo_n "(cached) " >&6
  2149. else
  2150. eval "$3=no"
  2151. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2152. /* end confdefs.h. */
  2153. $4
  2154. int
  2155. main ()
  2156. {
  2157. if (sizeof ($2))
  2158. return 0;
  2159. ;
  2160. return 0;
  2161. }
  2162. _ACEOF
  2163. if ac_fn_c_try_compile "$LINENO"; then :
  2164. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2165. /* end confdefs.h. */
  2166. $4
  2167. int
  2168. main ()
  2169. {
  2170. if (sizeof (($2)))
  2171. return 0;
  2172. ;
  2173. return 0;
  2174. }
  2175. _ACEOF
  2176. if ac_fn_c_try_compile "$LINENO"; then :
  2177. else
  2178. eval "$3=yes"
  2179. fi
  2180. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2181. fi
  2182. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2183. fi
  2184. eval ac_res=\$$3
  2185. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2186. $as_echo "$ac_res" >&6; }
  2187. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2188. } # ac_fn_c_check_type
  2189. # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
  2190. # ---------------------------------------------
  2191. # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
  2192. # accordingly.
  2193. ac_fn_c_check_decl ()
  2194. {
  2195. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2196. as_decl_name=`echo $2|sed 's/ *(.*//'`
  2197. as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
  2198. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
  2199. $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
  2200. if eval \${$3+:} false; then :
  2201. $as_echo_n "(cached) " >&6
  2202. else
  2203. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2204. /* end confdefs.h. */
  2205. $4
  2206. int
  2207. main ()
  2208. {
  2209. #ifndef $as_decl_name
  2210. #ifdef __cplusplus
  2211. (void) $as_decl_use;
  2212. #else
  2213. (void) $as_decl_name;
  2214. #endif
  2215. #endif
  2216. ;
  2217. return 0;
  2218. }
  2219. _ACEOF
  2220. if ac_fn_c_try_compile "$LINENO"; then :
  2221. eval "$3=yes"
  2222. else
  2223. eval "$3=no"
  2224. fi
  2225. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2226. fi
  2227. eval ac_res=\$$3
  2228. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2229. $as_echo "$ac_res" >&6; }
  2230. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2231. } # ac_fn_c_check_decl
  2232. cat >config.log <<_ACEOF
  2233. This file contains any messages produced by compilers while
  2234. running configure, to aid debugging if configure makes a mistake.
  2235. It was created by dirsrv $as_me 1.0, which was
  2236. generated by GNU Autoconf 2.69. Invocation command line was
  2237. $ $0 $@
  2238. _ACEOF
  2239. exec 5>>config.log
  2240. {
  2241. cat <<_ASUNAME
  2242. ## --------- ##
  2243. ## Platform. ##
  2244. ## --------- ##
  2245. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2246. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2247. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2248. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2249. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2250. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2251. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2252. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2253. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2254. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2255. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2256. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2257. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2258. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2259. _ASUNAME
  2260. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2261. for as_dir in $PATH
  2262. do
  2263. IFS=$as_save_IFS
  2264. test -z "$as_dir" && as_dir=.
  2265. $as_echo "PATH: $as_dir"
  2266. done
  2267. IFS=$as_save_IFS
  2268. } >&5
  2269. cat >&5 <<_ACEOF
  2270. ## ----------- ##
  2271. ## Core tests. ##
  2272. ## ----------- ##
  2273. _ACEOF
  2274. # Keep a trace of the command line.
  2275. # Strip out --no-create and --no-recursion so they do not pile up.
  2276. # Strip out --silent because we don't want to record it for future runs.
  2277. # Also quote any args containing shell meta-characters.
  2278. # Make two passes to allow for proper duplicate-argument suppression.
  2279. ac_configure_args=
  2280. ac_configure_args0=
  2281. ac_configure_args1=
  2282. ac_must_keep_next=false
  2283. for ac_pass in 1 2
  2284. do
  2285. for ac_arg
  2286. do
  2287. case $ac_arg in
  2288. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2289. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2290. | -silent | --silent | --silen | --sile | --sil)
  2291. continue ;;
  2292. *\'*)
  2293. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2294. esac
  2295. case $ac_pass in
  2296. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2297. 2)
  2298. as_fn_append ac_configure_args1 " '$ac_arg'"
  2299. if test $ac_must_keep_next = true; then
  2300. ac_must_keep_next=false # Got value, back to normal.
  2301. else
  2302. case $ac_arg in
  2303. *=* | --config-cache | -C | -disable-* | --disable-* \
  2304. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2305. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2306. | -with-* | --with-* | -without-* | --without-* | --x)
  2307. case "$ac_configure_args0 " in
  2308. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2309. esac
  2310. ;;
  2311. -* ) ac_must_keep_next=true ;;
  2312. esac
  2313. fi
  2314. as_fn_append ac_configure_args " '$ac_arg'"
  2315. ;;
  2316. esac
  2317. done
  2318. done
  2319. { ac_configure_args0=; unset ac_configure_args0;}
  2320. { ac_configure_args1=; unset ac_configure_args1;}
  2321. # When interrupted or exit'd, cleanup temporary files, and complete
  2322. # config.log. We remove comments because anyway the quotes in there
  2323. # would cause problems or look ugly.
  2324. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2325. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2326. trap 'exit_status=$?
  2327. # Save into config.log some information that might help in debugging.
  2328. {
  2329. echo
  2330. $as_echo "## ---------------- ##
  2331. ## Cache variables. ##
  2332. ## ---------------- ##"
  2333. echo
  2334. # The following way of writing the cache mishandles newlines in values,
  2335. (
  2336. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2337. eval ac_val=\$$ac_var
  2338. case $ac_val in #(
  2339. *${as_nl}*)
  2340. case $ac_var in #(
  2341. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2342. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2343. esac
  2344. case $ac_var in #(
  2345. _ | IFS | as_nl) ;; #(
  2346. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2347. *) { eval $ac_var=; unset $ac_var;} ;;
  2348. esac ;;
  2349. esac
  2350. done
  2351. (set) 2>&1 |
  2352. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2353. *${as_nl}ac_space=\ *)
  2354. sed -n \
  2355. "s/'\''/'\''\\\\'\'''\''/g;
  2356. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2357. ;; #(
  2358. *)
  2359. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2360. ;;
  2361. esac |
  2362. sort
  2363. )
  2364. echo
  2365. $as_echo "## ----------------- ##
  2366. ## Output variables. ##
  2367. ## ----------------- ##"
  2368. echo
  2369. for ac_var in $ac_subst_vars
  2370. do
  2371. eval ac_val=\$$ac_var
  2372. case $ac_val in
  2373. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2374. esac
  2375. $as_echo "$ac_var='\''$ac_val'\''"
  2376. done | sort
  2377. echo
  2378. if test -n "$ac_subst_files"; then
  2379. $as_echo "## ------------------- ##
  2380. ## File substitutions. ##
  2381. ## ------------------- ##"
  2382. echo
  2383. for ac_var in $ac_subst_files
  2384. do
  2385. eval ac_val=\$$ac_var
  2386. case $ac_val in
  2387. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2388. esac
  2389. $as_echo "$ac_var='\''$ac_val'\''"
  2390. done | sort
  2391. echo
  2392. fi
  2393. if test -s confdefs.h; then
  2394. $as_echo "## ----------- ##
  2395. ## confdefs.h. ##
  2396. ## ----------- ##"
  2397. echo
  2398. cat confdefs.h
  2399. echo
  2400. fi
  2401. test "$ac_signal" != 0 &&
  2402. $as_echo "$as_me: caught signal $ac_signal"
  2403. $as_echo "$as_me: exit $exit_status"
  2404. } >&5
  2405. rm -f core *.core core.conftest.* &&
  2406. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2407. exit $exit_status
  2408. ' 0
  2409. for ac_signal in 1 2 13 15; do
  2410. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2411. done
  2412. ac_signal=0
  2413. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2414. rm -f -r conftest* confdefs.h
  2415. $as_echo "/* confdefs.h */" > confdefs.h
  2416. # Predefined preprocessor variables.
  2417. cat >>confdefs.h <<_ACEOF
  2418. #define PACKAGE_NAME "$PACKAGE_NAME"
  2419. _ACEOF
  2420. cat >>confdefs.h <<_ACEOF
  2421. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2422. _ACEOF
  2423. cat >>confdefs.h <<_ACEOF
  2424. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2425. _ACEOF
  2426. cat >>confdefs.h <<_ACEOF
  2427. #define PACKAGE_STRING "$PACKAGE_STRING"
  2428. _ACEOF
  2429. cat >>confdefs.h <<_ACEOF
  2430. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2431. _ACEOF
  2432. cat >>confdefs.h <<_ACEOF
  2433. #define PACKAGE_URL "$PACKAGE_URL"
  2434. _ACEOF
  2435. # Let the site file select an alternate cache file if it wants to.
  2436. # Prefer an explicitly selected file to automatically selected ones.
  2437. ac_site_file1=NONE
  2438. ac_site_file2=NONE
  2439. if test -n "$CONFIG_SITE"; then
  2440. # We do not want a PATH search for config.site.
  2441. case $CONFIG_SITE in #((
  2442. -*) ac_site_file1=./$CONFIG_SITE;;
  2443. */*) ac_site_file1=$CONFIG_SITE;;
  2444. *) ac_site_file1=./$CONFIG_SITE;;
  2445. esac
  2446. elif test "x$prefix" != xNONE; then
  2447. ac_site_file1=$prefix/share/config.site
  2448. ac_site_file2=$prefix/etc/config.site
  2449. else
  2450. ac_site_file1=$ac_default_prefix/share/config.site
  2451. ac_site_file2=$ac_default_prefix/etc/config.site
  2452. fi
  2453. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2454. do
  2455. test "x$ac_site_file" = xNONE && continue
  2456. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2457. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2458. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2459. sed 's/^/| /' "$ac_site_file" >&5
  2460. . "$ac_site_file" \
  2461. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2462. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2463. as_fn_error $? "failed to load site script $ac_site_file
  2464. See \`config.log' for more details" "$LINENO" 5; }
  2465. fi
  2466. done
  2467. if test -r "$cache_file"; then
  2468. # Some versions of bash will fail to source /dev/null (special files
  2469. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2470. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2471. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2472. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2473. case $cache_file in
  2474. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2475. *) . "./$cache_file";;
  2476. esac
  2477. fi
  2478. else
  2479. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2480. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2481. >$cache_file
  2482. fi
  2483. as_fn_append ac_header_list " stdlib.h"
  2484. as_fn_append ac_header_list " unistd.h"
  2485. as_fn_append ac_header_list " sys/param.h"
  2486. # Check that the precious variables saved in the cache have kept the same
  2487. # value.
  2488. ac_cache_corrupted=false
  2489. for ac_var in $ac_precious_vars; do
  2490. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2491. eval ac_new_set=\$ac_env_${ac_var}_set
  2492. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2493. eval ac_new_val=\$ac_env_${ac_var}_value
  2494. case $ac_old_set,$ac_new_set in
  2495. set,)
  2496. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2497. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2498. ac_cache_corrupted=: ;;
  2499. ,set)
  2500. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2501. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2502. ac_cache_corrupted=: ;;
  2503. ,);;
  2504. *)
  2505. if test "x$ac_old_val" != "x$ac_new_val"; then
  2506. # differences in whitespace do not lead to failure.
  2507. ac_old_val_w=`echo x $ac_old_val`
  2508. ac_new_val_w=`echo x $ac_new_val`
  2509. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2510. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2511. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2512. ac_cache_corrupted=:
  2513. else
  2514. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2515. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2516. eval $ac_var=\$ac_old_val
  2517. fi
  2518. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2519. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2520. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2521. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2522. fi;;
  2523. esac
  2524. # Pass precious variables to config.status.
  2525. if test "$ac_new_set" = set; then
  2526. case $ac_new_val in
  2527. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2528. *) ac_arg=$ac_var=$ac_new_val ;;
  2529. esac
  2530. case " $ac_configure_args " in
  2531. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2532. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2533. esac
  2534. fi
  2535. done
  2536. if $ac_cache_corrupted; then
  2537. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2538. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2539. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2540. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2541. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2542. fi
  2543. ## -------------------- ##
  2544. ## Main body of script. ##
  2545. ## -------------------- ##
  2546. ac_ext=c
  2547. ac_cpp='$CPP $CPPFLAGS'
  2548. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2549. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2550. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2551. # AC_CONFIG_HEADER must be called right after AC_INIT.
  2552. ac_config_headers="$ac_config_headers config.h"
  2553. # include the version information
  2554. . $srcdir/VERSION.sh
  2555. { $as_echo "$as_me:${as_lineno-$LINENO}: This is configure for $PACKAGE_TARNAME $PACKAGE_VERSION" >&5
  2556. $as_echo "$as_me: This is configure for $PACKAGE_TARNAME $PACKAGE_VERSION" >&6;}
  2557. cat >>confdefs.h <<_ACEOF
  2558. #define DS_PACKAGE_VERSION "$PACKAGE_VERSION"
  2559. _ACEOF
  2560. cat >>confdefs.h <<_ACEOF
  2561. #define DS_PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2562. _ACEOF
  2563. cat >>confdefs.h <<_ACEOF
  2564. #define DS_PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2565. _ACEOF
  2566. cat >>confdefs.h <<_ACEOF
  2567. #define DS_PACKAGE_STRING "$PACKAGE_STRING"
  2568. _ACEOF
  2569. am__api_version='1.13'
  2570. ac_aux_dir=
  2571. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2572. if test -f "$ac_dir/install-sh"; then
  2573. ac_aux_dir=$ac_dir
  2574. ac_install_sh="$ac_aux_dir/install-sh -c"
  2575. break
  2576. elif test -f "$ac_dir/install.sh"; then
  2577. ac_aux_dir=$ac_dir
  2578. ac_install_sh="$ac_aux_dir/install.sh -c"
  2579. break
  2580. elif test -f "$ac_dir/shtool"; then
  2581. ac_aux_dir=$ac_dir
  2582. ac_install_sh="$ac_aux_dir/shtool install -c"
  2583. break
  2584. fi
  2585. done
  2586. if test -z "$ac_aux_dir"; then
  2587. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2588. fi
  2589. # These three variables are undocumented and unsupported,
  2590. # and are intended to be withdrawn in a future Autoconf release.
  2591. # They can cause serious problems if a builder's source tree is in a directory
  2592. # whose full name contains unusual characters.
  2593. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2594. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2595. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2596. # Find a good install program. We prefer a C program (faster),
  2597. # so one script is as good as another. But avoid the broken or
  2598. # incompatible versions:
  2599. # SysV /etc/install, /usr/sbin/install
  2600. # SunOS /usr/etc/install
  2601. # IRIX /sbin/install
  2602. # AIX /bin/install
  2603. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2604. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2605. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2606. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2607. # OS/2's system install, which has a completely different semantic
  2608. # ./install, which can be erroneously created by make from ./install.sh.
  2609. # Reject install programs that cannot install multiple files.
  2610. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2611. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2612. if test -z "$INSTALL"; then
  2613. if ${ac_cv_path_install+:} false; then :
  2614. $as_echo_n "(cached) " >&6
  2615. else
  2616. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2617. for as_dir in $PATH
  2618. do
  2619. IFS=$as_save_IFS
  2620. test -z "$as_dir" && as_dir=.
  2621. # Account for people who put trailing slashes in PATH elements.
  2622. case $as_dir/ in #((
  2623. ./ | .// | /[cC]/* | \
  2624. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2625. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2626. /usr/ucb/* ) ;;
  2627. *)
  2628. # OSF1 and SCO ODT 3.0 have their own names for install.
  2629. # Don't use installbsd from OSF since it installs stuff as root
  2630. # by default.
  2631. for ac_prog in ginstall scoinst install; do
  2632. for ac_exec_ext in '' $ac_executable_extensions; do
  2633. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  2634. if test $ac_prog = install &&
  2635. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2636. # AIX install. It has an incompatible calling convention.
  2637. :
  2638. elif test $ac_prog = install &&
  2639. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2640. # program-specific install script used by HP pwplus--don't use.
  2641. :
  2642. else
  2643. rm -rf conftest.one conftest.two conftest.dir
  2644. echo one > conftest.one
  2645. echo two > conftest.two
  2646. mkdir conftest.dir
  2647. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2648. test -s conftest.one && test -s conftest.two &&
  2649. test -s conftest.dir/conftest.one &&
  2650. test -s conftest.dir/conftest.two
  2651. then
  2652. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2653. break 3
  2654. fi
  2655. fi
  2656. fi
  2657. done
  2658. done
  2659. ;;
  2660. esac
  2661. done
  2662. IFS=$as_save_IFS
  2663. rm -rf conftest.one conftest.two conftest.dir
  2664. fi
  2665. if test "${ac_cv_path_install+set}" = set; then
  2666. INSTALL=$ac_cv_path_install
  2667. else
  2668. # As a last resort, use the slow shell script. Don't cache a
  2669. # value for INSTALL within a source directory, because that will
  2670. # break other packages using the cache if that directory is
  2671. # removed, or if the value is a relative name.
  2672. INSTALL=$ac_install_sh
  2673. fi
  2674. fi
  2675. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2676. $as_echo "$INSTALL" >&6; }
  2677. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2678. # It thinks the first close brace ends the variable substitution.
  2679. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2680. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2681. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2682. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2683. $as_echo_n "checking whether build environment is sane... " >&6; }
  2684. # Reject unsafe characters in $srcdir or the absolute working directory
  2685. # name. Accept space and tab only in the latter.
  2686. am_lf='
  2687. '
  2688. case `pwd` in
  2689. *[\\\"\#\$\&\'\`$am_lf]*)
  2690. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  2691. esac
  2692. case $srcdir in
  2693. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2694. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  2695. esac
  2696. # Do 'set' in a subshell so we don't clobber the current shell's
  2697. # arguments. Must try -L first in case configure is actually a
  2698. # symlink; some systems play weird games with the mod time of symlinks
  2699. # (eg FreeBSD returns the mod time of the symlink's containing
  2700. # directory).
  2701. if (
  2702. am_has_slept=no
  2703. for am_try in 1 2; do
  2704. echo "timestamp, slept: $am_has_slept" > conftest.file
  2705. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2706. if test "$*" = "X"; then
  2707. # -L didn't work.
  2708. set X `ls -t "$srcdir/configure" conftest.file`
  2709. fi
  2710. if test "$*" != "X $srcdir/configure conftest.file" \
  2711. && test "$*" != "X conftest.file $srcdir/configure"; then
  2712. # If neither matched, then we have a broken ls. This can happen
  2713. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2714. # broken ls alias from the environment. This has actually
  2715. # happened. Such a system could not be considered "sane".
  2716. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  2717. alias in your environment" "$LINENO" 5
  2718. fi
  2719. if test "$2" = conftest.file || test $am_try -eq 2; then
  2720. break
  2721. fi
  2722. # Just in case.
  2723. sleep 1
  2724. am_has_slept=yes
  2725. done
  2726. test "$2" = conftest.file
  2727. )
  2728. then
  2729. # Ok.
  2730. :
  2731. else
  2732. as_fn_error $? "newly created file is older than distributed files!
  2733. Check your system clock" "$LINENO" 5
  2734. fi
  2735. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2736. $as_echo "yes" >&6; }
  2737. # If we didn't sleep, we still need to ensure time stamps of config.status and
  2738. # generated files are strictly newer.
  2739. am_sleep_pid=
  2740. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  2741. ( sleep 1 ) &
  2742. am_sleep_pid=$!
  2743. fi
  2744. rm -f conftest.file
  2745. test "$program_prefix" != NONE &&
  2746. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2747. # Use a double $ so make ignores it.
  2748. test "$program_suffix" != NONE &&
  2749. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2750. # Double any \ or $.
  2751. # By default was `s,x,x', remove it if useless.
  2752. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2753. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2754. # expand $ac_aux_dir to an absolute path
  2755. am_aux_dir=`cd $ac_aux_dir && pwd`
  2756. if test x"${MISSING+set}" != xset; then
  2757. case $am_aux_dir in
  2758. *\ * | *\ *)
  2759. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2760. *)
  2761. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2762. esac
  2763. fi
  2764. # Use eval to expand $SHELL
  2765. if eval "$MISSING --is-lightweight"; then
  2766. am_missing_run="$MISSING "
  2767. else
  2768. am_missing_run=
  2769. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  2770. $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  2771. fi
  2772. if test x"${install_sh}" != xset; then
  2773. case $am_aux_dir in
  2774. *\ * | *\ *)
  2775. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2776. *)
  2777. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2778. esac
  2779. fi
  2780. # Installed binaries are usually stripped using 'strip' when the user
  2781. # run "make install-strip". However 'strip' might not be the right
  2782. # tool to use in cross-compilation environments, therefore Automake
  2783. # will honor the 'STRIP' environment variable to overrule this program.
  2784. if test "$cross_compiling" != no; then
  2785. if test -n "$ac_tool_prefix"; then
  2786. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2787. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2788. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2789. $as_echo_n "checking for $ac_word... " >&6; }
  2790. if ${ac_cv_prog_STRIP+:} false; then :
  2791. $as_echo_n "(cached) " >&6
  2792. else
  2793. if test -n "$STRIP"; then
  2794. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2795. else
  2796. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2797. for as_dir in $PATH
  2798. do
  2799. IFS=$as_save_IFS
  2800. test -z "$as_dir" && as_dir=.
  2801. for ac_exec_ext in '' $ac_executable_extensions; do
  2802. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2803. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2804. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2805. break 2
  2806. fi
  2807. done
  2808. done
  2809. IFS=$as_save_IFS
  2810. fi
  2811. fi
  2812. STRIP=$ac_cv_prog_STRIP
  2813. if test -n "$STRIP"; then
  2814. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2815. $as_echo "$STRIP" >&6; }
  2816. else
  2817. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2818. $as_echo "no" >&6; }
  2819. fi
  2820. fi
  2821. if test -z "$ac_cv_prog_STRIP"; then
  2822. ac_ct_STRIP=$STRIP
  2823. # Extract the first word of "strip", so it can be a program name with args.
  2824. set dummy strip; ac_word=$2
  2825. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2826. $as_echo_n "checking for $ac_word... " >&6; }
  2827. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  2828. $as_echo_n "(cached) " >&6
  2829. else
  2830. if test -n "$ac_ct_STRIP"; then
  2831. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2832. else
  2833. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2834. for as_dir in $PATH
  2835. do
  2836. IFS=$as_save_IFS
  2837. test -z "$as_dir" && as_dir=.
  2838. for ac_exec_ext in '' $ac_executable_extensions; do
  2839. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2840. ac_cv_prog_ac_ct_STRIP="strip"
  2841. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2842. break 2
  2843. fi
  2844. done
  2845. done
  2846. IFS=$as_save_IFS
  2847. fi
  2848. fi
  2849. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2850. if test -n "$ac_ct_STRIP"; then
  2851. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2852. $as_echo "$ac_ct_STRIP" >&6; }
  2853. else
  2854. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2855. $as_echo "no" >&6; }
  2856. fi
  2857. if test "x$ac_ct_STRIP" = x; then
  2858. STRIP=":"
  2859. else
  2860. case $cross_compiling:$ac_tool_warned in
  2861. yes:)
  2862. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2863. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2864. ac_tool_warned=yes ;;
  2865. esac
  2866. STRIP=$ac_ct_STRIP
  2867. fi
  2868. else
  2869. STRIP="$ac_cv_prog_STRIP"
  2870. fi
  2871. fi
  2872. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2873. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2874. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2875. if test -z "$MKDIR_P"; then
  2876. if ${ac_cv_path_mkdir+:} false; then :
  2877. $as_echo_n "(cached) " >&6
  2878. else
  2879. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2880. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2881. do
  2882. IFS=$as_save_IFS
  2883. test -z "$as_dir" && as_dir=.
  2884. for ac_prog in mkdir gmkdir; do
  2885. for ac_exec_ext in '' $ac_executable_extensions; do
  2886. as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  2887. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2888. 'mkdir (GNU coreutils) '* | \
  2889. 'mkdir (coreutils) '* | \
  2890. 'mkdir (fileutils) '4.1*)
  2891. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2892. break 3;;
  2893. esac
  2894. done
  2895. done
  2896. done
  2897. IFS=$as_save_IFS
  2898. fi
  2899. test -d ./--version && rmdir ./--version
  2900. if test "${ac_cv_path_mkdir+set}" = set; then
  2901. MKDIR_P="$ac_cv_path_mkdir -p"
  2902. else
  2903. # As a last resort, use the slow shell script. Don't cache a
  2904. # value for MKDIR_P within a source directory, because that will
  2905. # break other packages using the cache if that directory is
  2906. # removed, or if the value is a relative name.
  2907. MKDIR_P="$ac_install_sh -d"
  2908. fi
  2909. fi
  2910. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2911. $as_echo "$MKDIR_P" >&6; }
  2912. for ac_prog in gawk mawk nawk awk
  2913. do
  2914. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2915. set dummy $ac_prog; ac_word=$2
  2916. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2917. $as_echo_n "checking for $ac_word... " >&6; }
  2918. if ${ac_cv_prog_AWK+:} false; then :
  2919. $as_echo_n "(cached) " >&6
  2920. else
  2921. if test -n "$AWK"; then
  2922. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2923. else
  2924. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2925. for as_dir in $PATH
  2926. do
  2927. IFS=$as_save_IFS
  2928. test -z "$as_dir" && as_dir=.
  2929. for ac_exec_ext in '' $ac_executable_extensions; do
  2930. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2931. ac_cv_prog_AWK="$ac_prog"
  2932. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2933. break 2
  2934. fi
  2935. done
  2936. done
  2937. IFS=$as_save_IFS
  2938. fi
  2939. fi
  2940. AWK=$ac_cv_prog_AWK
  2941. if test -n "$AWK"; then
  2942. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2943. $as_echo "$AWK" >&6; }
  2944. else
  2945. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2946. $as_echo "no" >&6; }
  2947. fi
  2948. test -n "$AWK" && break
  2949. done
  2950. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2951. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2952. set x ${MAKE-make}
  2953. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2954. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  2955. $as_echo_n "(cached) " >&6
  2956. else
  2957. cat >conftest.make <<\_ACEOF
  2958. SHELL = /bin/sh
  2959. all:
  2960. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2961. _ACEOF
  2962. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  2963. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2964. *@@@%%%=?*=@@@%%%*)
  2965. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2966. *)
  2967. eval ac_cv_prog_make_${ac_make}_set=no;;
  2968. esac
  2969. rm -f conftest.make
  2970. fi
  2971. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2972. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2973. $as_echo "yes" >&6; }
  2974. SET_MAKE=
  2975. else
  2976. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2977. $as_echo "no" >&6; }
  2978. SET_MAKE="MAKE=${MAKE-make}"
  2979. fi
  2980. rm -rf .tst 2>/dev/null
  2981. mkdir .tst 2>/dev/null
  2982. if test -d .tst; then
  2983. am__leading_dot=.
  2984. else
  2985. am__leading_dot=_
  2986. fi
  2987. rmdir .tst 2>/dev/null
  2988. # Check whether --enable-silent-rules was given.
  2989. if test "${enable_silent_rules+set}" = set; then :
  2990. enableval=$enable_silent_rules;
  2991. fi
  2992. case $enable_silent_rules in # (((
  2993. yes) AM_DEFAULT_VERBOSITY=0;;
  2994. no) AM_DEFAULT_VERBOSITY=1;;
  2995. *) AM_DEFAULT_VERBOSITY=1;;
  2996. esac
  2997. am_make=${MAKE-make}
  2998. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  2999. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  3000. if ${am_cv_make_support_nested_variables+:} false; then :
  3001. $as_echo_n "(cached) " >&6
  3002. else
  3003. if $as_echo 'TRUE=$(BAR$(V))
  3004. BAR0=false
  3005. BAR1=true
  3006. V=1
  3007. am__doit:
  3008. @$(TRUE)
  3009. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  3010. am_cv_make_support_nested_variables=yes
  3011. else
  3012. am_cv_make_support_nested_variables=no
  3013. fi
  3014. fi
  3015. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  3016. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  3017. if test $am_cv_make_support_nested_variables = yes; then
  3018. AM_V='$(V)'
  3019. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  3020. else
  3021. AM_V=$AM_DEFAULT_VERBOSITY
  3022. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  3023. fi
  3024. AM_BACKSLASH='\'
  3025. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  3026. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  3027. # is not polluted with repeated "-I."
  3028. am__isrc=' -I$(srcdir)'
  3029. # test to see if srcdir already configured
  3030. if test -f $srcdir/config.status; then
  3031. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  3032. fi
  3033. fi
  3034. # test whether we have cygpath
  3035. if test -z "$CYGPATH_W"; then
  3036. if (cygpath --version) >/dev/null 2>/dev/null; then
  3037. CYGPATH_W='cygpath -w'
  3038. else
  3039. CYGPATH_W=echo
  3040. fi
  3041. fi
  3042. # Define the identity of the package.
  3043. PACKAGE='dirsrv'
  3044. VERSION='1.0'
  3045. # Some tools Automake needs.
  3046. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  3047. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  3048. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  3049. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  3050. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  3051. # For better backward compatibility. To be removed once Automake 1.9.x
  3052. # dies out for good. For more background, see:
  3053. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  3054. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  3055. mkdir_p='$(MKDIR_P)'
  3056. # We need awk for the "check" target. The system "awk" is bad on
  3057. # some platforms.
  3058. # Always define AMTAR for backward compatibility. Yes, it's still used
  3059. # in the wild :-( We should find a proper way to deprecate it ...
  3060. AMTAR='$${TAR-tar}'
  3061. # We'll loop over all known methods to create a tar archive until one works.
  3062. _am_tools='gnutar pax cpio none'
  3063. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a pax tar archive" >&5
  3064. $as_echo_n "checking how to create a pax tar archive... " >&6; }
  3065. # Go ahead even if we have the value already cached. We do so because we
  3066. # need to set the values for the 'am__tar' and 'am__untar' variables.
  3067. _am_tools=${am_cv_prog_tar_pax-$_am_tools}
  3068. for _am_tool in $_am_tools; do
  3069. case $_am_tool in
  3070. gnutar)
  3071. for _am_tar in tar gnutar gtar; do
  3072. { echo "$as_me:$LINENO: $_am_tar --version" >&5
  3073. ($_am_tar --version) >&5 2>&5
  3074. ac_status=$?
  3075. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3076. (exit $ac_status); } && break
  3077. done
  3078. am__tar="$_am_tar --format=posix -chf - "'"$$tardir"'
  3079. am__tar_="$_am_tar --format=posix -chf - "'"$tardir"'
  3080. am__untar="$_am_tar -xf -"
  3081. ;;
  3082. plaintar)
  3083. # Must skip GNU tar: if it does not support --format= it doesn't create
  3084. # ustar tarball either.
  3085. (tar --version) >/dev/null 2>&1 && continue
  3086. am__tar='tar chf - "$$tardir"'
  3087. am__tar_='tar chf - "$tardir"'
  3088. am__untar='tar xf -'
  3089. ;;
  3090. pax)
  3091. am__tar='pax -L -x pax -w "$$tardir"'
  3092. am__tar_='pax -L -x pax -w "$tardir"'
  3093. am__untar='pax -r'
  3094. ;;
  3095. cpio)
  3096. am__tar='find "$$tardir" -print | cpio -o -H pax -L'
  3097. am__tar_='find "$tardir" -print | cpio -o -H pax -L'
  3098. am__untar='cpio -i -H pax -d'
  3099. ;;
  3100. none)
  3101. am__tar=false
  3102. am__tar_=false
  3103. am__untar=false
  3104. ;;
  3105. esac
  3106. # If the value was cached, stop now. We just wanted to have am__tar
  3107. # and am__untar set.
  3108. test -n "${am_cv_prog_tar_pax}" && break
  3109. # tar/untar a dummy directory, and stop if the command works.
  3110. rm -rf conftest.dir
  3111. mkdir conftest.dir
  3112. echo GrepMe > conftest.dir/file
  3113. { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
  3114. (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
  3115. ac_status=$?
  3116. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3117. (exit $ac_status); }
  3118. rm -rf conftest.dir
  3119. if test -s conftest.tar; then
  3120. { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
  3121. ($am__untar <conftest.tar) >&5 2>&5
  3122. ac_status=$?
  3123. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3124. (exit $ac_status); }
  3125. { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
  3126. (cat conftest.dir/file) >&5 2>&5
  3127. ac_status=$?
  3128. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3129. (exit $ac_status); }
  3130. grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
  3131. fi
  3132. done
  3133. rm -rf conftest.dir
  3134. if ${am_cv_prog_tar_pax+:} false; then :
  3135. $as_echo_n "(cached) " >&6
  3136. else
  3137. am_cv_prog_tar_pax=$_am_tool
  3138. fi
  3139. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_pax" >&5
  3140. $as_echo "$am_cv_prog_tar_pax" >&6; }
  3141. # define these for automake distdir
  3142. VERSION=$PACKAGE_VERSION
  3143. PACKAGE=$PACKAGE_TARNAME
  3144. cat >>confdefs.h <<_ACEOF
  3145. #define VERSION "$VERSION"
  3146. _ACEOF
  3147. cat >>confdefs.h <<_ACEOF
  3148. #define PACKAGE "$PACKAGE"
  3149. _ACEOF
  3150. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  3151. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  3152. # Check whether --enable-maintainer-mode was given.
  3153. if test "${enable_maintainer_mode+set}" = set; then :
  3154. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  3155. else
  3156. USE_MAINTAINER_MODE=no
  3157. fi
  3158. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  3159. $as_echo "$USE_MAINTAINER_MODE" >&6; }
  3160. if test $USE_MAINTAINER_MODE = yes; then
  3161. MAINTAINER_MODE_TRUE=
  3162. MAINTAINER_MODE_FALSE='#'
  3163. else
  3164. MAINTAINER_MODE_TRUE='#'
  3165. MAINTAINER_MODE_FALSE=
  3166. fi
  3167. MAINT=$MAINTAINER_MODE_TRUE
  3168. # Make sure we can run config.sub.
  3169. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  3170. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  3171. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  3172. $as_echo_n "checking build system type... " >&6; }
  3173. if ${ac_cv_build+:} false; then :
  3174. $as_echo_n "(cached) " >&6
  3175. else
  3176. ac_build_alias=$build_alias
  3177. test "x$ac_build_alias" = x &&
  3178. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  3179. test "x$ac_build_alias" = x &&
  3180. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  3181. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  3182. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  3183. fi
  3184. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  3185. $as_echo "$ac_cv_build" >&6; }
  3186. case $ac_cv_build in
  3187. *-*-*) ;;
  3188. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  3189. esac
  3190. build=$ac_cv_build
  3191. ac_save_IFS=$IFS; IFS='-'
  3192. set x $ac_cv_build
  3193. shift
  3194. build_cpu=$1
  3195. build_vendor=$2
  3196. shift; shift
  3197. # Remember, the first character of IFS is used to create $*,
  3198. # except with old shells:
  3199. build_os=$*
  3200. IFS=$ac_save_IFS
  3201. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  3202. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  3203. $as_echo_n "checking host system type... " >&6; }
  3204. if ${ac_cv_host+:} false; then :
  3205. $as_echo_n "(cached) " >&6
  3206. else
  3207. if test "x$host_alias" = x; then
  3208. ac_cv_host=$ac_cv_build
  3209. else
  3210. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  3211. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  3212. fi
  3213. fi
  3214. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  3215. $as_echo "$ac_cv_host" >&6; }
  3216. case $ac_cv_host in
  3217. *-*-*) ;;
  3218. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  3219. esac
  3220. host=$ac_cv_host
  3221. ac_save_IFS=$IFS; IFS='-'
  3222. set x $ac_cv_host
  3223. shift
  3224. host_cpu=$1
  3225. host_vendor=$2
  3226. shift; shift
  3227. # Remember, the first character of IFS is used to create $*,
  3228. # except with old shells:
  3229. host_os=$*
  3230. IFS=$ac_save_IFS
  3231. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  3232. # Checks for programs.
  3233. ac_ext=cpp
  3234. ac_cpp='$CXXCPP $CPPFLAGS'
  3235. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3236. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3237. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3238. if test -z "$CXX"; then
  3239. if test -n "$CCC"; then
  3240. CXX=$CCC
  3241. else
  3242. if test -n "$ac_tool_prefix"; then
  3243. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  3244. do
  3245. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3246. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3247. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3248. $as_echo_n "checking for $ac_word... " >&6; }
  3249. if ${ac_cv_prog_CXX+:} false; then :
  3250. $as_echo_n "(cached) " >&6
  3251. else
  3252. if test -n "$CXX"; then
  3253. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  3254. else
  3255. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3256. for as_dir in $PATH
  3257. do
  3258. IFS=$as_save_IFS
  3259. test -z "$as_dir" && as_dir=.
  3260. for ac_exec_ext in '' $ac_executable_extensions; do
  3261. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3262. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  3263. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3264. break 2
  3265. fi
  3266. done
  3267. done
  3268. IFS=$as_save_IFS
  3269. fi
  3270. fi
  3271. CXX=$ac_cv_prog_CXX
  3272. if test -n "$CXX"; then
  3273. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  3274. $as_echo "$CXX" >&6; }
  3275. else
  3276. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3277. $as_echo "no" >&6; }
  3278. fi
  3279. test -n "$CXX" && break
  3280. done
  3281. fi
  3282. if test -z "$CXX"; then
  3283. ac_ct_CXX=$CXX
  3284. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  3285. do
  3286. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3287. set dummy $ac_prog; ac_word=$2
  3288. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3289. $as_echo_n "checking for $ac_word... " >&6; }
  3290. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  3291. $as_echo_n "(cached) " >&6
  3292. else
  3293. if test -n "$ac_ct_CXX"; then
  3294. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  3295. else
  3296. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3297. for as_dir in $PATH
  3298. do
  3299. IFS=$as_save_IFS
  3300. test -z "$as_dir" && as_dir=.
  3301. for ac_exec_ext in '' $ac_executable_extensions; do
  3302. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3303. ac_cv_prog_ac_ct_CXX="$ac_prog"
  3304. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3305. break 2
  3306. fi
  3307. done
  3308. done
  3309. IFS=$as_save_IFS
  3310. fi
  3311. fi
  3312. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  3313. if test -n "$ac_ct_CXX"; then
  3314. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  3315. $as_echo "$ac_ct_CXX" >&6; }
  3316. else
  3317. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3318. $as_echo "no" >&6; }
  3319. fi
  3320. test -n "$ac_ct_CXX" && break
  3321. done
  3322. if test "x$ac_ct_CXX" = x; then
  3323. CXX="g++"
  3324. else
  3325. case $cross_compiling:$ac_tool_warned in
  3326. yes:)
  3327. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3328. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3329. ac_tool_warned=yes ;;
  3330. esac
  3331. CXX=$ac_ct_CXX
  3332. fi
  3333. fi
  3334. fi
  3335. fi
  3336. # Provide some information about the compiler.
  3337. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  3338. set X $ac_compile
  3339. ac_compiler=$2
  3340. for ac_option in --version -v -V -qversion; do
  3341. { { ac_try="$ac_compiler $ac_option >&5"
  3342. case "(($ac_try" in
  3343. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3344. *) ac_try_echo=$ac_try;;
  3345. esac
  3346. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3347. $as_echo "$ac_try_echo"; } >&5
  3348. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3349. ac_status=$?
  3350. if test -s conftest.err; then
  3351. sed '10a\
  3352. ... rest of stderr output deleted ...
  3353. 10q' conftest.err >conftest.er1
  3354. cat conftest.er1 >&5
  3355. fi
  3356. rm -f conftest.er1 conftest.err
  3357. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3358. test $ac_status = 0; }
  3359. done
  3360. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3361. /* end confdefs.h. */
  3362. int
  3363. main ()
  3364. {
  3365. ;
  3366. return 0;
  3367. }
  3368. _ACEOF
  3369. ac_clean_files_save=$ac_clean_files
  3370. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3371. # Try to create an executable without -o first, disregard a.out.
  3372. # It will help us diagnose broken compilers, and finding out an intuition
  3373. # of exeext.
  3374. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
  3375. $as_echo_n "checking whether the C++ compiler works... " >&6; }
  3376. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3377. # The possible output files:
  3378. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3379. ac_rmfiles=
  3380. for ac_file in $ac_files
  3381. do
  3382. case $ac_file in
  3383. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3384. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3385. esac
  3386. done
  3387. rm -f $ac_rmfiles
  3388. if { { ac_try="$ac_link_default"
  3389. case "(($ac_try" in
  3390. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3391. *) ac_try_echo=$ac_try;;
  3392. esac
  3393. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3394. $as_echo "$ac_try_echo"; } >&5
  3395. (eval "$ac_link_default") 2>&5
  3396. ac_status=$?
  3397. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3398. test $ac_status = 0; }; then :
  3399. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3400. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3401. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3402. # so that the user can short-circuit this test for compilers unknown to
  3403. # Autoconf.
  3404. for ac_file in $ac_files ''
  3405. do
  3406. test -f "$ac_file" || continue
  3407. case $ac_file in
  3408. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3409. ;;
  3410. [ab].out )
  3411. # We found the default executable, but exeext='' is most
  3412. # certainly right.
  3413. break;;
  3414. *.* )
  3415. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3416. then :; else
  3417. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3418. fi
  3419. # We set ac_cv_exeext here because the later test for it is not
  3420. # safe: cross compilers may not add the suffix if given an `-o'
  3421. # argument, so we may need to know it at that point already.
  3422. # Even if this section looks crufty: it has the advantage of
  3423. # actually working.
  3424. break;;
  3425. * )
  3426. break;;
  3427. esac
  3428. done
  3429. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3430. else
  3431. ac_file=''
  3432. fi
  3433. if test -z "$ac_file"; then :
  3434. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3435. $as_echo "no" >&6; }
  3436. $as_echo "$as_me: failed program was:" >&5
  3437. sed 's/^/| /' conftest.$ac_ext >&5
  3438. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3439. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3440. as_fn_error 77 "C++ compiler cannot create executables
  3441. See \`config.log' for more details" "$LINENO" 5; }
  3442. else
  3443. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3444. $as_echo "yes" >&6; }
  3445. fi
  3446. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
  3447. $as_echo_n "checking for C++ compiler default output file name... " >&6; }
  3448. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3449. $as_echo "$ac_file" >&6; }
  3450. ac_exeext=$ac_cv_exeext
  3451. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3452. ac_clean_files=$ac_clean_files_save
  3453. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3454. $as_echo_n "checking for suffix of executables... " >&6; }
  3455. if { { ac_try="$ac_link"
  3456. case "(($ac_try" in
  3457. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3458. *) ac_try_echo=$ac_try;;
  3459. esac
  3460. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3461. $as_echo "$ac_try_echo"; } >&5
  3462. (eval "$ac_link") 2>&5
  3463. ac_status=$?
  3464. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3465. test $ac_status = 0; }; then :
  3466. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3467. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3468. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3469. # `rm'.
  3470. for ac_file in conftest.exe conftest conftest.*; do
  3471. test -f "$ac_file" || continue
  3472. case $ac_file in
  3473. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3474. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3475. break;;
  3476. * ) break;;
  3477. esac
  3478. done
  3479. else
  3480. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3481. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3482. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3483. See \`config.log' for more details" "$LINENO" 5; }
  3484. fi
  3485. rm -f conftest conftest$ac_cv_exeext
  3486. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3487. $as_echo "$ac_cv_exeext" >&6; }
  3488. rm -f conftest.$ac_ext
  3489. EXEEXT=$ac_cv_exeext
  3490. ac_exeext=$EXEEXT
  3491. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3492. /* end confdefs.h. */
  3493. #include <stdio.h>
  3494. int
  3495. main ()
  3496. {
  3497. FILE *f = fopen ("conftest.out", "w");
  3498. return ferror (f) || fclose (f) != 0;
  3499. ;
  3500. return 0;
  3501. }
  3502. _ACEOF
  3503. ac_clean_files="$ac_clean_files conftest.out"
  3504. # Check that the compiler produces executables we can run. If not, either
  3505. # the compiler is broken, or we cross compile.
  3506. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3507. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3508. if test "$cross_compiling" != yes; then
  3509. { { ac_try="$ac_link"
  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_link") 2>&5
  3517. ac_status=$?
  3518. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3519. test $ac_status = 0; }
  3520. if { ac_try='./conftest$ac_cv_exeext'
  3521. { { case "(($ac_try" in
  3522. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3523. *) ac_try_echo=$ac_try;;
  3524. esac
  3525. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3526. $as_echo "$ac_try_echo"; } >&5
  3527. (eval "$ac_try") 2>&5
  3528. ac_status=$?
  3529. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3530. test $ac_status = 0; }; }; then
  3531. cross_compiling=no
  3532. else
  3533. if test "$cross_compiling" = maybe; then
  3534. cross_compiling=yes
  3535. else
  3536. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3537. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3538. as_fn_error $? "cannot run C++ compiled programs.
  3539. If you meant to cross compile, use \`--host'.
  3540. See \`config.log' for more details" "$LINENO" 5; }
  3541. fi
  3542. fi
  3543. fi
  3544. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3545. $as_echo "$cross_compiling" >&6; }
  3546. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3547. ac_clean_files=$ac_clean_files_save
  3548. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3549. $as_echo_n "checking for suffix of object files... " >&6; }
  3550. if ${ac_cv_objext+:} false; then :
  3551. $as_echo_n "(cached) " >&6
  3552. else
  3553. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3554. /* end confdefs.h. */
  3555. int
  3556. main ()
  3557. {
  3558. ;
  3559. return 0;
  3560. }
  3561. _ACEOF
  3562. rm -f conftest.o conftest.obj
  3563. if { { ac_try="$ac_compile"
  3564. case "(($ac_try" in
  3565. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3566. *) ac_try_echo=$ac_try;;
  3567. esac
  3568. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3569. $as_echo "$ac_try_echo"; } >&5
  3570. (eval "$ac_compile") 2>&5
  3571. ac_status=$?
  3572. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3573. test $ac_status = 0; }; then :
  3574. for ac_file in conftest.o conftest.obj conftest.*; do
  3575. test -f "$ac_file" || continue;
  3576. case $ac_file in
  3577. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3578. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3579. break;;
  3580. esac
  3581. done
  3582. else
  3583. $as_echo "$as_me: failed program was:" >&5
  3584. sed 's/^/| /' conftest.$ac_ext >&5
  3585. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3586. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3587. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3588. See \`config.log' for more details" "$LINENO" 5; }
  3589. fi
  3590. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3591. fi
  3592. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3593. $as_echo "$ac_cv_objext" >&6; }
  3594. OBJEXT=$ac_cv_objext
  3595. ac_objext=$OBJEXT
  3596. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  3597. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  3598. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  3599. $as_echo_n "(cached) " >&6
  3600. else
  3601. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3602. /* end confdefs.h. */
  3603. int
  3604. main ()
  3605. {
  3606. #ifndef __GNUC__
  3607. choke me
  3608. #endif
  3609. ;
  3610. return 0;
  3611. }
  3612. _ACEOF
  3613. if ac_fn_cxx_try_compile "$LINENO"; then :
  3614. ac_compiler_gnu=yes
  3615. else
  3616. ac_compiler_gnu=no
  3617. fi
  3618. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3619. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  3620. fi
  3621. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  3622. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  3623. if test $ac_compiler_gnu = yes; then
  3624. GXX=yes
  3625. else
  3626. GXX=
  3627. fi
  3628. ac_test_CXXFLAGS=${CXXFLAGS+set}
  3629. ac_save_CXXFLAGS=$CXXFLAGS
  3630. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  3631. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  3632. if ${ac_cv_prog_cxx_g+:} false; then :
  3633. $as_echo_n "(cached) " >&6
  3634. else
  3635. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  3636. ac_cxx_werror_flag=yes
  3637. ac_cv_prog_cxx_g=no
  3638. CXXFLAGS="-g"
  3639. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3640. /* end confdefs.h. */
  3641. int
  3642. main ()
  3643. {
  3644. ;
  3645. return 0;
  3646. }
  3647. _ACEOF
  3648. if ac_fn_cxx_try_compile "$LINENO"; then :
  3649. ac_cv_prog_cxx_g=yes
  3650. else
  3651. CXXFLAGS=""
  3652. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3653. /* end confdefs.h. */
  3654. int
  3655. main ()
  3656. {
  3657. ;
  3658. return 0;
  3659. }
  3660. _ACEOF
  3661. if ac_fn_cxx_try_compile "$LINENO"; then :
  3662. else
  3663. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3664. CXXFLAGS="-g"
  3665. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3666. /* end confdefs.h. */
  3667. int
  3668. main ()
  3669. {
  3670. ;
  3671. return 0;
  3672. }
  3673. _ACEOF
  3674. if ac_fn_cxx_try_compile "$LINENO"; then :
  3675. ac_cv_prog_cxx_g=yes
  3676. fi
  3677. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3678. fi
  3679. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3680. fi
  3681. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3682. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3683. fi
  3684. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  3685. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  3686. if test "$ac_test_CXXFLAGS" = set; then
  3687. CXXFLAGS=$ac_save_CXXFLAGS
  3688. elif test $ac_cv_prog_cxx_g = yes; then
  3689. if test "$GXX" = yes; then
  3690. CXXFLAGS="-g -O2"
  3691. else
  3692. CXXFLAGS="-g"
  3693. fi
  3694. else
  3695. if test "$GXX" = yes; then
  3696. CXXFLAGS="-O2"
  3697. else
  3698. CXXFLAGS=
  3699. fi
  3700. fi
  3701. ac_ext=c
  3702. ac_cpp='$CPP $CPPFLAGS'
  3703. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3704. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3705. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3706. DEPDIR="${am__leading_dot}deps"
  3707. ac_config_commands="$ac_config_commands depfiles"
  3708. am_make=${MAKE-make}
  3709. cat > confinc << 'END'
  3710. am__doit:
  3711. @echo this is the am__doit target
  3712. .PHONY: am__doit
  3713. END
  3714. # If we don't find an include directive, just comment out the code.
  3715. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3716. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3717. am__include="#"
  3718. am__quote=
  3719. _am_result=none
  3720. # First try GNU make style include.
  3721. echo "include confinc" > confmf
  3722. # Ignore all kinds of additional output from 'make'.
  3723. case `$am_make -s -f confmf 2> /dev/null` in #(
  3724. *the\ am__doit\ target*)
  3725. am__include=include
  3726. am__quote=
  3727. _am_result=GNU
  3728. ;;
  3729. esac
  3730. # Now try BSD make style include.
  3731. if test "$am__include" = "#"; then
  3732. echo '.include "confinc"' > confmf
  3733. case `$am_make -s -f confmf 2> /dev/null` in #(
  3734. *the\ am__doit\ target*)
  3735. am__include=.include
  3736. am__quote="\""
  3737. _am_result=BSD
  3738. ;;
  3739. esac
  3740. fi
  3741. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3742. $as_echo "$_am_result" >&6; }
  3743. rm -f confinc confmf
  3744. # Check whether --enable-dependency-tracking was given.
  3745. if test "${enable_dependency_tracking+set}" = set; then :
  3746. enableval=$enable_dependency_tracking;
  3747. fi
  3748. if test "x$enable_dependency_tracking" != xno; then
  3749. am_depcomp="$ac_aux_dir/depcomp"
  3750. AMDEPBACKSLASH='\'
  3751. am__nodep='_no'
  3752. fi
  3753. if test "x$enable_dependency_tracking" != xno; then
  3754. AMDEP_TRUE=
  3755. AMDEP_FALSE='#'
  3756. else
  3757. AMDEP_TRUE='#'
  3758. AMDEP_FALSE=
  3759. fi
  3760. depcc="$CXX" am_compiler_list=
  3761. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3762. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3763. if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
  3764. $as_echo_n "(cached) " >&6
  3765. else
  3766. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3767. # We make a subdir and do the tests there. Otherwise we can end up
  3768. # making bogus files that we don't know about and never remove. For
  3769. # instance it was reported that on HP-UX the gcc test will end up
  3770. # making a dummy file named 'D' -- because '-MD' means "put the output
  3771. # in D".
  3772. rm -rf conftest.dir
  3773. mkdir conftest.dir
  3774. # Copy depcomp to subdir because otherwise we won't find it if we're
  3775. # using a relative directory.
  3776. cp "$am_depcomp" conftest.dir
  3777. cd conftest.dir
  3778. # We will build objects and dependencies in a subdirectory because
  3779. # it helps to detect inapplicable dependency modes. For instance
  3780. # both Tru64's cc and ICC support -MD to output dependencies as a
  3781. # side effect of compilation, but ICC will put the dependencies in
  3782. # the current directory while Tru64 will put them in the object
  3783. # directory.
  3784. mkdir sub
  3785. am_cv_CXX_dependencies_compiler_type=none
  3786. if test "$am_compiler_list" = ""; then
  3787. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3788. fi
  3789. am__universal=false
  3790. case " $depcc " in #(
  3791. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3792. esac
  3793. for depmode in $am_compiler_list; do
  3794. # Setup a source with many dependencies, because some compilers
  3795. # like to wrap large dependency lists on column 80 (with \), and
  3796. # we should not choose a depcomp mode which is confused by this.
  3797. #
  3798. # We need to recreate these files for each test, as the compiler may
  3799. # overwrite some of them when testing with obscure command lines.
  3800. # This happens at least with the AIX C compiler.
  3801. : > sub/conftest.c
  3802. for i in 1 2 3 4 5 6; do
  3803. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3804. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  3805. # Solaris 10 /bin/sh.
  3806. echo '/* dummy */' > sub/conftst$i.h
  3807. done
  3808. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3809. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  3810. # mode. It turns out that the SunPro C++ compiler does not properly
  3811. # handle '-M -o', and we need to detect this. Also, some Intel
  3812. # versions had trouble with output in subdirs.
  3813. am__obj=sub/conftest.${OBJEXT-o}
  3814. am__minus_obj="-o $am__obj"
  3815. case $depmode in
  3816. gcc)
  3817. # This depmode causes a compiler race in universal mode.
  3818. test "$am__universal" = false || continue
  3819. ;;
  3820. nosideeffect)
  3821. # After this tag, mechanisms are not by side-effect, so they'll
  3822. # only be used when explicitly requested.
  3823. if test "x$enable_dependency_tracking" = xyes; then
  3824. continue
  3825. else
  3826. break
  3827. fi
  3828. ;;
  3829. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  3830. # This compiler won't grok '-c -o', but also, the minuso test has
  3831. # not run yet. These depmodes are late enough in the game, and
  3832. # so weak that their functioning should not be impacted.
  3833. am__obj=conftest.${OBJEXT-o}
  3834. am__minus_obj=
  3835. ;;
  3836. none) break ;;
  3837. esac
  3838. if depmode=$depmode \
  3839. source=sub/conftest.c object=$am__obj \
  3840. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3841. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3842. >/dev/null 2>conftest.err &&
  3843. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3844. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3845. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3846. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3847. # icc doesn't choke on unknown options, it will just issue warnings
  3848. # or remarks (even with -Werror). So we grep stderr for any message
  3849. # that says an option was ignored or not supported.
  3850. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3851. # icc: Command line warning: ignoring option '-M'; no argument required
  3852. # The diagnosis changed in icc 8.0:
  3853. # icc: Command line remark: option '-MP' not supported
  3854. if (grep 'ignoring option' conftest.err ||
  3855. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3856. am_cv_CXX_dependencies_compiler_type=$depmode
  3857. break
  3858. fi
  3859. fi
  3860. done
  3861. cd ..
  3862. rm -rf conftest.dir
  3863. else
  3864. am_cv_CXX_dependencies_compiler_type=none
  3865. fi
  3866. fi
  3867. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  3868. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  3869. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  3870. if
  3871. test "x$enable_dependency_tracking" != xno \
  3872. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  3873. am__fastdepCXX_TRUE=
  3874. am__fastdepCXX_FALSE='#'
  3875. else
  3876. am__fastdepCXX_TRUE='#'
  3877. am__fastdepCXX_FALSE=
  3878. fi
  3879. ac_ext=c
  3880. ac_cpp='$CPP $CPPFLAGS'
  3881. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3882. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3883. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3884. if test -n "$ac_tool_prefix"; then
  3885. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3886. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3887. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3888. $as_echo_n "checking for $ac_word... " >&6; }
  3889. if ${ac_cv_prog_CC+:} false; then :
  3890. $as_echo_n "(cached) " >&6
  3891. else
  3892. if test -n "$CC"; then
  3893. ac_cv_prog_CC="$CC" # Let the user override the test.
  3894. else
  3895. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3896. for as_dir in $PATH
  3897. do
  3898. IFS=$as_save_IFS
  3899. test -z "$as_dir" && as_dir=.
  3900. for ac_exec_ext in '' $ac_executable_extensions; do
  3901. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3902. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3903. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3904. break 2
  3905. fi
  3906. done
  3907. done
  3908. IFS=$as_save_IFS
  3909. fi
  3910. fi
  3911. CC=$ac_cv_prog_CC
  3912. if test -n "$CC"; then
  3913. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3914. $as_echo "$CC" >&6; }
  3915. else
  3916. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3917. $as_echo "no" >&6; }
  3918. fi
  3919. fi
  3920. if test -z "$ac_cv_prog_CC"; then
  3921. ac_ct_CC=$CC
  3922. # Extract the first word of "gcc", so it can be a program name with args.
  3923. set dummy gcc; ac_word=$2
  3924. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3925. $as_echo_n "checking for $ac_word... " >&6; }
  3926. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3927. $as_echo_n "(cached) " >&6
  3928. else
  3929. if test -n "$ac_ct_CC"; then
  3930. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3931. else
  3932. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3933. for as_dir in $PATH
  3934. do
  3935. IFS=$as_save_IFS
  3936. test -z "$as_dir" && as_dir=.
  3937. for ac_exec_ext in '' $ac_executable_extensions; do
  3938. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3939. ac_cv_prog_ac_ct_CC="gcc"
  3940. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3941. break 2
  3942. fi
  3943. done
  3944. done
  3945. IFS=$as_save_IFS
  3946. fi
  3947. fi
  3948. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3949. if test -n "$ac_ct_CC"; then
  3950. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3951. $as_echo "$ac_ct_CC" >&6; }
  3952. else
  3953. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3954. $as_echo "no" >&6; }
  3955. fi
  3956. if test "x$ac_ct_CC" = x; then
  3957. CC=""
  3958. else
  3959. case $cross_compiling:$ac_tool_warned in
  3960. yes:)
  3961. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3962. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3963. ac_tool_warned=yes ;;
  3964. esac
  3965. CC=$ac_ct_CC
  3966. fi
  3967. else
  3968. CC="$ac_cv_prog_CC"
  3969. fi
  3970. if test -z "$CC"; then
  3971. if test -n "$ac_tool_prefix"; then
  3972. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3973. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3974. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3975. $as_echo_n "checking for $ac_word... " >&6; }
  3976. if ${ac_cv_prog_CC+:} false; then :
  3977. $as_echo_n "(cached) " >&6
  3978. else
  3979. if test -n "$CC"; then
  3980. ac_cv_prog_CC="$CC" # Let the user override the test.
  3981. else
  3982. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3983. for as_dir in $PATH
  3984. do
  3985. IFS=$as_save_IFS
  3986. test -z "$as_dir" && as_dir=.
  3987. for ac_exec_ext in '' $ac_executable_extensions; do
  3988. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3989. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3990. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3991. break 2
  3992. fi
  3993. done
  3994. done
  3995. IFS=$as_save_IFS
  3996. fi
  3997. fi
  3998. CC=$ac_cv_prog_CC
  3999. if test -n "$CC"; then
  4000. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4001. $as_echo "$CC" >&6; }
  4002. else
  4003. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4004. $as_echo "no" >&6; }
  4005. fi
  4006. fi
  4007. fi
  4008. if test -z "$CC"; then
  4009. # Extract the first word of "cc", so it can be a program name with args.
  4010. set dummy cc; ac_word=$2
  4011. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4012. $as_echo_n "checking for $ac_word... " >&6; }
  4013. if ${ac_cv_prog_CC+:} false; then :
  4014. $as_echo_n "(cached) " >&6
  4015. else
  4016. if test -n "$CC"; then
  4017. ac_cv_prog_CC="$CC" # Let the user override the test.
  4018. else
  4019. ac_prog_rejected=no
  4020. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4021. for as_dir in $PATH
  4022. do
  4023. IFS=$as_save_IFS
  4024. test -z "$as_dir" && as_dir=.
  4025. for ac_exec_ext in '' $ac_executable_extensions; do
  4026. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4027. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  4028. ac_prog_rejected=yes
  4029. continue
  4030. fi
  4031. ac_cv_prog_CC="cc"
  4032. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4033. break 2
  4034. fi
  4035. done
  4036. done
  4037. IFS=$as_save_IFS
  4038. if test $ac_prog_rejected = yes; then
  4039. # We found a bogon in the path, so make sure we never use it.
  4040. set dummy $ac_cv_prog_CC
  4041. shift
  4042. if test $# != 0; then
  4043. # We chose a different compiler from the bogus one.
  4044. # However, it has the same basename, so the bogon will be chosen
  4045. # first if we set CC to just the basename; use the full file name.
  4046. shift
  4047. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  4048. fi
  4049. fi
  4050. fi
  4051. fi
  4052. CC=$ac_cv_prog_CC
  4053. if test -n "$CC"; then
  4054. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4055. $as_echo "$CC" >&6; }
  4056. else
  4057. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4058. $as_echo "no" >&6; }
  4059. fi
  4060. fi
  4061. if test -z "$CC"; then
  4062. if test -n "$ac_tool_prefix"; then
  4063. for ac_prog in cl.exe
  4064. do
  4065. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4066. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4067. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4068. $as_echo_n "checking for $ac_word... " >&6; }
  4069. if ${ac_cv_prog_CC+:} false; then :
  4070. $as_echo_n "(cached) " >&6
  4071. else
  4072. if test -n "$CC"; then
  4073. ac_cv_prog_CC="$CC" # Let the user override the test.
  4074. else
  4075. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4076. for as_dir in $PATH
  4077. do
  4078. IFS=$as_save_IFS
  4079. test -z "$as_dir" && as_dir=.
  4080. for ac_exec_ext in '' $ac_executable_extensions; do
  4081. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4082. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  4083. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4084. break 2
  4085. fi
  4086. done
  4087. done
  4088. IFS=$as_save_IFS
  4089. fi
  4090. fi
  4091. CC=$ac_cv_prog_CC
  4092. if test -n "$CC"; then
  4093. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4094. $as_echo "$CC" >&6; }
  4095. else
  4096. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4097. $as_echo "no" >&6; }
  4098. fi
  4099. test -n "$CC" && break
  4100. done
  4101. fi
  4102. if test -z "$CC"; then
  4103. ac_ct_CC=$CC
  4104. for ac_prog in cl.exe
  4105. do
  4106. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4107. set dummy $ac_prog; ac_word=$2
  4108. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4109. $as_echo_n "checking for $ac_word... " >&6; }
  4110. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  4111. $as_echo_n "(cached) " >&6
  4112. else
  4113. if test -n "$ac_ct_CC"; then
  4114. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4115. else
  4116. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4117. for as_dir in $PATH
  4118. do
  4119. IFS=$as_save_IFS
  4120. test -z "$as_dir" && as_dir=.
  4121. for ac_exec_ext in '' $ac_executable_extensions; do
  4122. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4123. ac_cv_prog_ac_ct_CC="$ac_prog"
  4124. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4125. break 2
  4126. fi
  4127. done
  4128. done
  4129. IFS=$as_save_IFS
  4130. fi
  4131. fi
  4132. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4133. if test -n "$ac_ct_CC"; then
  4134. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  4135. $as_echo "$ac_ct_CC" >&6; }
  4136. else
  4137. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4138. $as_echo "no" >&6; }
  4139. fi
  4140. test -n "$ac_ct_CC" && break
  4141. done
  4142. if test "x$ac_ct_CC" = x; then
  4143. CC=""
  4144. else
  4145. case $cross_compiling:$ac_tool_warned in
  4146. yes:)
  4147. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4148. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4149. ac_tool_warned=yes ;;
  4150. esac
  4151. CC=$ac_ct_CC
  4152. fi
  4153. fi
  4154. fi
  4155. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4156. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4157. as_fn_error $? "no acceptable C compiler found in \$PATH
  4158. See \`config.log' for more details" "$LINENO" 5; }
  4159. # Provide some information about the compiler.
  4160. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  4161. set X $ac_compile
  4162. ac_compiler=$2
  4163. for ac_option in --version -v -V -qversion; do
  4164. { { ac_try="$ac_compiler $ac_option >&5"
  4165. case "(($ac_try" in
  4166. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4167. *) ac_try_echo=$ac_try;;
  4168. esac
  4169. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4170. $as_echo "$ac_try_echo"; } >&5
  4171. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  4172. ac_status=$?
  4173. if test -s conftest.err; then
  4174. sed '10a\
  4175. ... rest of stderr output deleted ...
  4176. 10q' conftest.err >conftest.er1
  4177. cat conftest.er1 >&5
  4178. fi
  4179. rm -f conftest.er1 conftest.err
  4180. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4181. test $ac_status = 0; }
  4182. done
  4183. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  4184. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  4185. if ${ac_cv_c_compiler_gnu+:} false; then :
  4186. $as_echo_n "(cached) " >&6
  4187. else
  4188. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4189. /* end confdefs.h. */
  4190. int
  4191. main ()
  4192. {
  4193. #ifndef __GNUC__
  4194. choke me
  4195. #endif
  4196. ;
  4197. return 0;
  4198. }
  4199. _ACEOF
  4200. if ac_fn_c_try_compile "$LINENO"; then :
  4201. ac_compiler_gnu=yes
  4202. else
  4203. ac_compiler_gnu=no
  4204. fi
  4205. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4206. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  4207. fi
  4208. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  4209. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  4210. if test $ac_compiler_gnu = yes; then
  4211. GCC=yes
  4212. else
  4213. GCC=
  4214. fi
  4215. ac_test_CFLAGS=${CFLAGS+set}
  4216. ac_save_CFLAGS=$CFLAGS
  4217. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  4218. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  4219. if ${ac_cv_prog_cc_g+:} false; then :
  4220. $as_echo_n "(cached) " >&6
  4221. else
  4222. ac_save_c_werror_flag=$ac_c_werror_flag
  4223. ac_c_werror_flag=yes
  4224. ac_cv_prog_cc_g=no
  4225. CFLAGS="-g"
  4226. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4227. /* end confdefs.h. */
  4228. int
  4229. main ()
  4230. {
  4231. ;
  4232. return 0;
  4233. }
  4234. _ACEOF
  4235. if ac_fn_c_try_compile "$LINENO"; then :
  4236. ac_cv_prog_cc_g=yes
  4237. else
  4238. CFLAGS=""
  4239. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4240. /* end confdefs.h. */
  4241. int
  4242. main ()
  4243. {
  4244. ;
  4245. return 0;
  4246. }
  4247. _ACEOF
  4248. if ac_fn_c_try_compile "$LINENO"; then :
  4249. else
  4250. ac_c_werror_flag=$ac_save_c_werror_flag
  4251. CFLAGS="-g"
  4252. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4253. /* end confdefs.h. */
  4254. int
  4255. main ()
  4256. {
  4257. ;
  4258. return 0;
  4259. }
  4260. _ACEOF
  4261. if ac_fn_c_try_compile "$LINENO"; then :
  4262. ac_cv_prog_cc_g=yes
  4263. fi
  4264. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4265. fi
  4266. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4267. fi
  4268. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4269. ac_c_werror_flag=$ac_save_c_werror_flag
  4270. fi
  4271. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  4272. $as_echo "$ac_cv_prog_cc_g" >&6; }
  4273. if test "$ac_test_CFLAGS" = set; then
  4274. CFLAGS=$ac_save_CFLAGS
  4275. elif test $ac_cv_prog_cc_g = yes; then
  4276. if test "$GCC" = yes; then
  4277. CFLAGS="-g -O2"
  4278. else
  4279. CFLAGS="-g"
  4280. fi
  4281. else
  4282. if test "$GCC" = yes; then
  4283. CFLAGS="-O2"
  4284. else
  4285. CFLAGS=
  4286. fi
  4287. fi
  4288. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  4289. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  4290. if ${ac_cv_prog_cc_c89+:} false; then :
  4291. $as_echo_n "(cached) " >&6
  4292. else
  4293. ac_cv_prog_cc_c89=no
  4294. ac_save_CC=$CC
  4295. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4296. /* end confdefs.h. */
  4297. #include <stdarg.h>
  4298. #include <stdio.h>
  4299. struct stat;
  4300. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  4301. struct buf { int x; };
  4302. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  4303. static char *e (p, i)
  4304. char **p;
  4305. int i;
  4306. {
  4307. return p[i];
  4308. }
  4309. static char *f (char * (*g) (char **, int), char **p, ...)
  4310. {
  4311. char *s;
  4312. va_list v;
  4313. va_start (v,p);
  4314. s = g (p, va_arg (v,int));
  4315. va_end (v);
  4316. return s;
  4317. }
  4318. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  4319. function prototypes and stuff, but not '\xHH' hex character constants.
  4320. These don't provoke an error unfortunately, instead are silently treated
  4321. as 'x'. The following induces an error, until -std is added to get
  4322. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  4323. array size at least. It's necessary to write '\x00'==0 to get something
  4324. that's true only with -std. */
  4325. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  4326. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  4327. inside strings and character constants. */
  4328. #define FOO(x) 'x'
  4329. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  4330. int test (int i, double x);
  4331. struct s1 {int (*f) (int a);};
  4332. struct s2 {int (*f) (double a);};
  4333. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4334. int argc;
  4335. char **argv;
  4336. int
  4337. main ()
  4338. {
  4339. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  4340. ;
  4341. return 0;
  4342. }
  4343. _ACEOF
  4344. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  4345. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4346. do
  4347. CC="$ac_save_CC $ac_arg"
  4348. if ac_fn_c_try_compile "$LINENO"; then :
  4349. ac_cv_prog_cc_c89=$ac_arg
  4350. fi
  4351. rm -f core conftest.err conftest.$ac_objext
  4352. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4353. done
  4354. rm -f conftest.$ac_ext
  4355. CC=$ac_save_CC
  4356. fi
  4357. # AC_CACHE_VAL
  4358. case "x$ac_cv_prog_cc_c89" in
  4359. x)
  4360. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4361. $as_echo "none needed" >&6; } ;;
  4362. xno)
  4363. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4364. $as_echo "unsupported" >&6; } ;;
  4365. *)
  4366. CC="$CC $ac_cv_prog_cc_c89"
  4367. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4368. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  4369. esac
  4370. if test "x$ac_cv_prog_cc_c89" != xno; then :
  4371. fi
  4372. ac_ext=c
  4373. ac_cpp='$CPP $CPPFLAGS'
  4374. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4375. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4376. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4377. depcc="$CC" am_compiler_list=
  4378. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4379. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4380. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  4381. $as_echo_n "(cached) " >&6
  4382. else
  4383. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4384. # We make a subdir and do the tests there. Otherwise we can end up
  4385. # making bogus files that we don't know about and never remove. For
  4386. # instance it was reported that on HP-UX the gcc test will end up
  4387. # making a dummy file named 'D' -- because '-MD' means "put the output
  4388. # in D".
  4389. rm -rf conftest.dir
  4390. mkdir conftest.dir
  4391. # Copy depcomp to subdir because otherwise we won't find it if we're
  4392. # using a relative directory.
  4393. cp "$am_depcomp" conftest.dir
  4394. cd conftest.dir
  4395. # We will build objects and dependencies in a subdirectory because
  4396. # it helps to detect inapplicable dependency modes. For instance
  4397. # both Tru64's cc and ICC support -MD to output dependencies as a
  4398. # side effect of compilation, but ICC will put the dependencies in
  4399. # the current directory while Tru64 will put them in the object
  4400. # directory.
  4401. mkdir sub
  4402. am_cv_CC_dependencies_compiler_type=none
  4403. if test "$am_compiler_list" = ""; then
  4404. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4405. fi
  4406. am__universal=false
  4407. case " $depcc " in #(
  4408. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  4409. esac
  4410. for depmode in $am_compiler_list; do
  4411. # Setup a source with many dependencies, because some compilers
  4412. # like to wrap large dependency lists on column 80 (with \), and
  4413. # we should not choose a depcomp mode which is confused by this.
  4414. #
  4415. # We need to recreate these files for each test, as the compiler may
  4416. # overwrite some of them when testing with obscure command lines.
  4417. # This happens at least with the AIX C compiler.
  4418. : > sub/conftest.c
  4419. for i in 1 2 3 4 5 6; do
  4420. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4421. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  4422. # Solaris 10 /bin/sh.
  4423. echo '/* dummy */' > sub/conftst$i.h
  4424. done
  4425. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4426. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  4427. # mode. It turns out that the SunPro C++ compiler does not properly
  4428. # handle '-M -o', and we need to detect this. Also, some Intel
  4429. # versions had trouble with output in subdirs.
  4430. am__obj=sub/conftest.${OBJEXT-o}
  4431. am__minus_obj="-o $am__obj"
  4432. case $depmode in
  4433. gcc)
  4434. # This depmode causes a compiler race in universal mode.
  4435. test "$am__universal" = false || continue
  4436. ;;
  4437. nosideeffect)
  4438. # After this tag, mechanisms are not by side-effect, so they'll
  4439. # only be used when explicitly requested.
  4440. if test "x$enable_dependency_tracking" = xyes; then
  4441. continue
  4442. else
  4443. break
  4444. fi
  4445. ;;
  4446. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  4447. # This compiler won't grok '-c -o', but also, the minuso test has
  4448. # not run yet. These depmodes are late enough in the game, and
  4449. # so weak that their functioning should not be impacted.
  4450. am__obj=conftest.${OBJEXT-o}
  4451. am__minus_obj=
  4452. ;;
  4453. none) break ;;
  4454. esac
  4455. if depmode=$depmode \
  4456. source=sub/conftest.c object=$am__obj \
  4457. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4458. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4459. >/dev/null 2>conftest.err &&
  4460. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4461. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4462. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4463. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4464. # icc doesn't choke on unknown options, it will just issue warnings
  4465. # or remarks (even with -Werror). So we grep stderr for any message
  4466. # that says an option was ignored or not supported.
  4467. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4468. # icc: Command line warning: ignoring option '-M'; no argument required
  4469. # The diagnosis changed in icc 8.0:
  4470. # icc: Command line remark: option '-MP' not supported
  4471. if (grep 'ignoring option' conftest.err ||
  4472. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4473. am_cv_CC_dependencies_compiler_type=$depmode
  4474. break
  4475. fi
  4476. fi
  4477. done
  4478. cd ..
  4479. rm -rf conftest.dir
  4480. else
  4481. am_cv_CC_dependencies_compiler_type=none
  4482. fi
  4483. fi
  4484. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  4485. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  4486. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4487. if
  4488. test "x$enable_dependency_tracking" != xno \
  4489. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4490. am__fastdepCC_TRUE=
  4491. am__fastdepCC_FALSE='#'
  4492. else
  4493. am__fastdepCC_TRUE='#'
  4494. am__fastdepCC_FALSE=
  4495. fi
  4496. if test "x$CC" != xcc; then
  4497. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
  4498. $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
  4499. else
  4500. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
  4501. $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
  4502. fi
  4503. set dummy $CC; ac_cc=`$as_echo "$2" |
  4504. sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  4505. if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
  4506. $as_echo_n "(cached) " >&6
  4507. else
  4508. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4509. /* end confdefs.h. */
  4510. int
  4511. main ()
  4512. {
  4513. ;
  4514. return 0;
  4515. }
  4516. _ACEOF
  4517. # Make sure it works both with $CC and with simple cc.
  4518. # We do the test twice because some compilers refuse to overwrite an
  4519. # existing .o file with -o, though they will create one.
  4520. ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  4521. rm -f conftest2.*
  4522. if { { case "(($ac_try" in
  4523. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4524. *) ac_try_echo=$ac_try;;
  4525. esac
  4526. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4527. $as_echo "$ac_try_echo"; } >&5
  4528. (eval "$ac_try") 2>&5
  4529. ac_status=$?
  4530. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4531. test $ac_status = 0; } &&
  4532. test -f conftest2.$ac_objext && { { case "(($ac_try" in
  4533. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4534. *) ac_try_echo=$ac_try;;
  4535. esac
  4536. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4537. $as_echo "$ac_try_echo"; } >&5
  4538. (eval "$ac_try") 2>&5
  4539. ac_status=$?
  4540. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4541. test $ac_status = 0; };
  4542. then
  4543. eval ac_cv_prog_cc_${ac_cc}_c_o=yes
  4544. if test "x$CC" != xcc; then
  4545. # Test first that cc exists at all.
  4546. if { ac_try='cc -c conftest.$ac_ext >&5'
  4547. { { case "(($ac_try" in
  4548. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4549. *) ac_try_echo=$ac_try;;
  4550. esac
  4551. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4552. $as_echo "$ac_try_echo"; } >&5
  4553. (eval "$ac_try") 2>&5
  4554. ac_status=$?
  4555. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4556. test $ac_status = 0; }; }; then
  4557. ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  4558. rm -f conftest2.*
  4559. if { { case "(($ac_try" in
  4560. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4561. *) ac_try_echo=$ac_try;;
  4562. esac
  4563. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4564. $as_echo "$ac_try_echo"; } >&5
  4565. (eval "$ac_try") 2>&5
  4566. ac_status=$?
  4567. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4568. test $ac_status = 0; } &&
  4569. test -f conftest2.$ac_objext && { { case "(($ac_try" in
  4570. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4571. *) ac_try_echo=$ac_try;;
  4572. esac
  4573. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4574. $as_echo "$ac_try_echo"; } >&5
  4575. (eval "$ac_try") 2>&5
  4576. ac_status=$?
  4577. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4578. test $ac_status = 0; };
  4579. then
  4580. # cc works too.
  4581. :
  4582. else
  4583. # cc exists but doesn't like -o.
  4584. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  4585. fi
  4586. fi
  4587. fi
  4588. else
  4589. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  4590. fi
  4591. rm -f core conftest*
  4592. fi
  4593. if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
  4594. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4595. $as_echo "yes" >&6; }
  4596. else
  4597. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4598. $as_echo "no" >&6; }
  4599. $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
  4600. fi
  4601. # FIXME: we rely on the cache variable name because
  4602. # there is no other way.
  4603. set dummy $CC
  4604. am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  4605. eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
  4606. if test "$am_t" != yes; then
  4607. # Losing compiler, so override with the script.
  4608. # FIXME: It is wrong to rewrite CC.
  4609. # But if we don't then we get into trouble of one sort or another.
  4610. # A longer-term fix would be to have automake use am__CC in this case,
  4611. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  4612. CC="$am_aux_dir/compile $CC"
  4613. fi
  4614. # By default we simply use the C compiler to build assembly code.
  4615. test "${CCAS+set}" = set || CCAS=$CC
  4616. test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
  4617. depcc="$CCAS" am_compiler_list=
  4618. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4619. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4620. if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
  4621. $as_echo_n "(cached) " >&6
  4622. else
  4623. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4624. # We make a subdir and do the tests there. Otherwise we can end up
  4625. # making bogus files that we don't know about and never remove. For
  4626. # instance it was reported that on HP-UX the gcc test will end up
  4627. # making a dummy file named 'D' -- because '-MD' means "put the output
  4628. # in D".
  4629. rm -rf conftest.dir
  4630. mkdir conftest.dir
  4631. # Copy depcomp to subdir because otherwise we won't find it if we're
  4632. # using a relative directory.
  4633. cp "$am_depcomp" conftest.dir
  4634. cd conftest.dir
  4635. # We will build objects and dependencies in a subdirectory because
  4636. # it helps to detect inapplicable dependency modes. For instance
  4637. # both Tru64's cc and ICC support -MD to output dependencies as a
  4638. # side effect of compilation, but ICC will put the dependencies in
  4639. # the current directory while Tru64 will put them in the object
  4640. # directory.
  4641. mkdir sub
  4642. am_cv_CCAS_dependencies_compiler_type=none
  4643. if test "$am_compiler_list" = ""; then
  4644. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4645. fi
  4646. am__universal=false
  4647. for depmode in $am_compiler_list; do
  4648. # Setup a source with many dependencies, because some compilers
  4649. # like to wrap large dependency lists on column 80 (with \), and
  4650. # we should not choose a depcomp mode which is confused by this.
  4651. #
  4652. # We need to recreate these files for each test, as the compiler may
  4653. # overwrite some of them when testing with obscure command lines.
  4654. # This happens at least with the AIX C compiler.
  4655. : > sub/conftest.c
  4656. for i in 1 2 3 4 5 6; do
  4657. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4658. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  4659. # Solaris 10 /bin/sh.
  4660. echo '/* dummy */' > sub/conftst$i.h
  4661. done
  4662. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4663. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  4664. # mode. It turns out that the SunPro C++ compiler does not properly
  4665. # handle '-M -o', and we need to detect this. Also, some Intel
  4666. # versions had trouble with output in subdirs.
  4667. am__obj=sub/conftest.${OBJEXT-o}
  4668. am__minus_obj="-o $am__obj"
  4669. case $depmode in
  4670. gcc)
  4671. # This depmode causes a compiler race in universal mode.
  4672. test "$am__universal" = false || continue
  4673. ;;
  4674. nosideeffect)
  4675. # After this tag, mechanisms are not by side-effect, so they'll
  4676. # only be used when explicitly requested.
  4677. if test "x$enable_dependency_tracking" = xyes; then
  4678. continue
  4679. else
  4680. break
  4681. fi
  4682. ;;
  4683. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  4684. # This compiler won't grok '-c -o', but also, the minuso test has
  4685. # not run yet. These depmodes are late enough in the game, and
  4686. # so weak that their functioning should not be impacted.
  4687. am__obj=conftest.${OBJEXT-o}
  4688. am__minus_obj=
  4689. ;;
  4690. none) break ;;
  4691. esac
  4692. if depmode=$depmode \
  4693. source=sub/conftest.c object=$am__obj \
  4694. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4695. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4696. >/dev/null 2>conftest.err &&
  4697. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4698. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4699. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4700. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4701. # icc doesn't choke on unknown options, it will just issue warnings
  4702. # or remarks (even with -Werror). So we grep stderr for any message
  4703. # that says an option was ignored or not supported.
  4704. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4705. # icc: Command line warning: ignoring option '-M'; no argument required
  4706. # The diagnosis changed in icc 8.0:
  4707. # icc: Command line remark: option '-MP' not supported
  4708. if (grep 'ignoring option' conftest.err ||
  4709. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4710. am_cv_CCAS_dependencies_compiler_type=$depmode
  4711. break
  4712. fi
  4713. fi
  4714. done
  4715. cd ..
  4716. rm -rf conftest.dir
  4717. else
  4718. am_cv_CCAS_dependencies_compiler_type=none
  4719. fi
  4720. fi
  4721. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
  4722. $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
  4723. CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
  4724. if
  4725. test "x$enable_dependency_tracking" != xno \
  4726. && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
  4727. am__fastdepCCAS_TRUE=
  4728. am__fastdepCCAS_FALSE='#'
  4729. else
  4730. am__fastdepCCAS_TRUE='#'
  4731. am__fastdepCCAS_FALSE=
  4732. fi
  4733. # disable static libs by default - we only use a couple
  4734. # Check whether --enable-static was given.
  4735. if test "${enable_static+set}" = set; then :
  4736. enableval=$enable_static; p=${PACKAGE-default}
  4737. case $enableval in
  4738. yes) enable_static=yes ;;
  4739. no) enable_static=no ;;
  4740. *)
  4741. enable_static=no
  4742. # Look at the argument we got. We use all the common list separators.
  4743. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  4744. for pkg in $enableval; do
  4745. IFS="$lt_save_ifs"
  4746. if test "X$pkg" = "X$p"; then
  4747. enable_static=yes
  4748. fi
  4749. done
  4750. IFS="$lt_save_ifs"
  4751. ;;
  4752. esac
  4753. else
  4754. enable_static=no
  4755. fi
  4756. case `pwd` in
  4757. *\ * | *\ *)
  4758. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  4759. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  4760. esac
  4761. macro_version='2.4.2'
  4762. macro_revision='1.3337'
  4763. ltmain="$ac_aux_dir/ltmain.sh"
  4764. # Backslashify metacharacters that are still active within
  4765. # double-quoted strings.
  4766. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  4767. # Same as above, but do not quote variable references.
  4768. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  4769. # Sed substitution to delay expansion of an escaped shell variable in a
  4770. # double_quote_subst'ed string.
  4771. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  4772. # Sed substitution to delay expansion of an escaped single quote.
  4773. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  4774. # Sed substitution to avoid accidental globbing in evaled expressions
  4775. no_glob_subst='s/\*/\\\*/g'
  4776. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  4777. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  4778. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  4779. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  4780. $as_echo_n "checking how to print strings... " >&6; }
  4781. # Test print first, because it will be a builtin if present.
  4782. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  4783. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  4784. ECHO='print -r --'
  4785. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  4786. ECHO='printf %s\n'
  4787. else
  4788. # Use this function as a fallback that always works.
  4789. func_fallback_echo ()
  4790. {
  4791. eval 'cat <<_LTECHO_EOF
  4792. $1
  4793. _LTECHO_EOF'
  4794. }
  4795. ECHO='func_fallback_echo'
  4796. fi
  4797. # func_echo_all arg...
  4798. # Invoke $ECHO with all args, space-separated.
  4799. func_echo_all ()
  4800. {
  4801. $ECHO ""
  4802. }
  4803. case "$ECHO" in
  4804. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  4805. $as_echo "printf" >&6; } ;;
  4806. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  4807. $as_echo "print -r" >&6; } ;;
  4808. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  4809. $as_echo "cat" >&6; } ;;
  4810. esac
  4811. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4812. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4813. if ${ac_cv_path_SED+:} false; then :
  4814. $as_echo_n "(cached) " >&6
  4815. else
  4816. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4817. for ac_i in 1 2 3 4 5 6 7; do
  4818. ac_script="$ac_script$as_nl$ac_script"
  4819. done
  4820. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4821. { ac_script=; unset ac_script;}
  4822. if test -z "$SED"; then
  4823. ac_path_SED_found=false
  4824. # Loop through the user's path and test for each of PROGNAME-LIST
  4825. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4826. for as_dir in $PATH
  4827. do
  4828. IFS=$as_save_IFS
  4829. test -z "$as_dir" && as_dir=.
  4830. for ac_prog in sed gsed; do
  4831. for ac_exec_ext in '' $ac_executable_extensions; do
  4832. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4833. as_fn_executable_p "$ac_path_SED" || continue
  4834. # Check for GNU ac_path_SED and select it if it is found.
  4835. # Check for GNU $ac_path_SED
  4836. case `"$ac_path_SED" --version 2>&1` in
  4837. *GNU*)
  4838. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4839. *)
  4840. ac_count=0
  4841. $as_echo_n 0123456789 >"conftest.in"
  4842. while :
  4843. do
  4844. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4845. mv "conftest.tmp" "conftest.in"
  4846. cp "conftest.in" "conftest.nl"
  4847. $as_echo '' >> "conftest.nl"
  4848. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4849. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4850. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4851. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4852. # Best one so far, save it but keep looking for a better one
  4853. ac_cv_path_SED="$ac_path_SED"
  4854. ac_path_SED_max=$ac_count
  4855. fi
  4856. # 10*(2^10) chars as input seems more than enough
  4857. test $ac_count -gt 10 && break
  4858. done
  4859. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4860. esac
  4861. $ac_path_SED_found && break 3
  4862. done
  4863. done
  4864. done
  4865. IFS=$as_save_IFS
  4866. if test -z "$ac_cv_path_SED"; then
  4867. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4868. fi
  4869. else
  4870. ac_cv_path_SED=$SED
  4871. fi
  4872. fi
  4873. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4874. $as_echo "$ac_cv_path_SED" >&6; }
  4875. SED="$ac_cv_path_SED"
  4876. rm -f conftest.sed
  4877. test -z "$SED" && SED=sed
  4878. Xsed="$SED -e 1s/^X//"
  4879. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4880. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4881. if ${ac_cv_path_GREP+:} false; then :
  4882. $as_echo_n "(cached) " >&6
  4883. else
  4884. if test -z "$GREP"; then
  4885. ac_path_GREP_found=false
  4886. # Loop through the user's path and test for each of PROGNAME-LIST
  4887. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4888. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4889. do
  4890. IFS=$as_save_IFS
  4891. test -z "$as_dir" && as_dir=.
  4892. for ac_prog in grep ggrep; do
  4893. for ac_exec_ext in '' $ac_executable_extensions; do
  4894. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4895. as_fn_executable_p "$ac_path_GREP" || continue
  4896. # Check for GNU ac_path_GREP and select it if it is found.
  4897. # Check for GNU $ac_path_GREP
  4898. case `"$ac_path_GREP" --version 2>&1` in
  4899. *GNU*)
  4900. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4901. *)
  4902. ac_count=0
  4903. $as_echo_n 0123456789 >"conftest.in"
  4904. while :
  4905. do
  4906. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4907. mv "conftest.tmp" "conftest.in"
  4908. cp "conftest.in" "conftest.nl"
  4909. $as_echo 'GREP' >> "conftest.nl"
  4910. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4911. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4912. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4913. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4914. # Best one so far, save it but keep looking for a better one
  4915. ac_cv_path_GREP="$ac_path_GREP"
  4916. ac_path_GREP_max=$ac_count
  4917. fi
  4918. # 10*(2^10) chars as input seems more than enough
  4919. test $ac_count -gt 10 && break
  4920. done
  4921. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4922. esac
  4923. $ac_path_GREP_found && break 3
  4924. done
  4925. done
  4926. done
  4927. IFS=$as_save_IFS
  4928. if test -z "$ac_cv_path_GREP"; then
  4929. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4930. fi
  4931. else
  4932. ac_cv_path_GREP=$GREP
  4933. fi
  4934. fi
  4935. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4936. $as_echo "$ac_cv_path_GREP" >&6; }
  4937. GREP="$ac_cv_path_GREP"
  4938. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4939. $as_echo_n "checking for egrep... " >&6; }
  4940. if ${ac_cv_path_EGREP+:} false; then :
  4941. $as_echo_n "(cached) " >&6
  4942. else
  4943. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4944. then ac_cv_path_EGREP="$GREP -E"
  4945. else
  4946. if test -z "$EGREP"; then
  4947. ac_path_EGREP_found=false
  4948. # Loop through the user's path and test for each of PROGNAME-LIST
  4949. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4950. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4951. do
  4952. IFS=$as_save_IFS
  4953. test -z "$as_dir" && as_dir=.
  4954. for ac_prog in egrep; do
  4955. for ac_exec_ext in '' $ac_executable_extensions; do
  4956. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4957. as_fn_executable_p "$ac_path_EGREP" || continue
  4958. # Check for GNU ac_path_EGREP and select it if it is found.
  4959. # Check for GNU $ac_path_EGREP
  4960. case `"$ac_path_EGREP" --version 2>&1` in
  4961. *GNU*)
  4962. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4963. *)
  4964. ac_count=0
  4965. $as_echo_n 0123456789 >"conftest.in"
  4966. while :
  4967. do
  4968. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4969. mv "conftest.tmp" "conftest.in"
  4970. cp "conftest.in" "conftest.nl"
  4971. $as_echo 'EGREP' >> "conftest.nl"
  4972. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4973. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4974. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4975. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4976. # Best one so far, save it but keep looking for a better one
  4977. ac_cv_path_EGREP="$ac_path_EGREP"
  4978. ac_path_EGREP_max=$ac_count
  4979. fi
  4980. # 10*(2^10) chars as input seems more than enough
  4981. test $ac_count -gt 10 && break
  4982. done
  4983. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4984. esac
  4985. $ac_path_EGREP_found && break 3
  4986. done
  4987. done
  4988. done
  4989. IFS=$as_save_IFS
  4990. if test -z "$ac_cv_path_EGREP"; then
  4991. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4992. fi
  4993. else
  4994. ac_cv_path_EGREP=$EGREP
  4995. fi
  4996. fi
  4997. fi
  4998. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4999. $as_echo "$ac_cv_path_EGREP" >&6; }
  5000. EGREP="$ac_cv_path_EGREP"
  5001. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  5002. $as_echo_n "checking for fgrep... " >&6; }
  5003. if ${ac_cv_path_FGREP+:} false; then :
  5004. $as_echo_n "(cached) " >&6
  5005. else
  5006. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  5007. then ac_cv_path_FGREP="$GREP -F"
  5008. else
  5009. if test -z "$FGREP"; then
  5010. ac_path_FGREP_found=false
  5011. # Loop through the user's path and test for each of PROGNAME-LIST
  5012. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5013. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5014. do
  5015. IFS=$as_save_IFS
  5016. test -z "$as_dir" && as_dir=.
  5017. for ac_prog in fgrep; do
  5018. for ac_exec_ext in '' $ac_executable_extensions; do
  5019. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  5020. as_fn_executable_p "$ac_path_FGREP" || continue
  5021. # Check for GNU ac_path_FGREP and select it if it is found.
  5022. # Check for GNU $ac_path_FGREP
  5023. case `"$ac_path_FGREP" --version 2>&1` in
  5024. *GNU*)
  5025. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  5026. *)
  5027. ac_count=0
  5028. $as_echo_n 0123456789 >"conftest.in"
  5029. while :
  5030. do
  5031. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5032. mv "conftest.tmp" "conftest.in"
  5033. cp "conftest.in" "conftest.nl"
  5034. $as_echo 'FGREP' >> "conftest.nl"
  5035. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5036. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5037. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5038. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  5039. # Best one so far, save it but keep looking for a better one
  5040. ac_cv_path_FGREP="$ac_path_FGREP"
  5041. ac_path_FGREP_max=$ac_count
  5042. fi
  5043. # 10*(2^10) chars as input seems more than enough
  5044. test $ac_count -gt 10 && break
  5045. done
  5046. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5047. esac
  5048. $ac_path_FGREP_found && break 3
  5049. done
  5050. done
  5051. done
  5052. IFS=$as_save_IFS
  5053. if test -z "$ac_cv_path_FGREP"; then
  5054. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  5055. fi
  5056. else
  5057. ac_cv_path_FGREP=$FGREP
  5058. fi
  5059. fi
  5060. fi
  5061. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  5062. $as_echo "$ac_cv_path_FGREP" >&6; }
  5063. FGREP="$ac_cv_path_FGREP"
  5064. test -z "$GREP" && GREP=grep
  5065. # Check whether --with-gnu-ld was given.
  5066. if test "${with_gnu_ld+set}" = set; then :
  5067. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  5068. else
  5069. with_gnu_ld=no
  5070. fi
  5071. ac_prog=ld
  5072. if test "$GCC" = yes; then
  5073. # Check if gcc -print-prog-name=ld gives a path.
  5074. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  5075. $as_echo_n "checking for ld used by $CC... " >&6; }
  5076. case $host in
  5077. *-*-mingw*)
  5078. # gcc leaves a trailing carriage return which upsets mingw
  5079. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  5080. *)
  5081. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  5082. esac
  5083. case $ac_prog in
  5084. # Accept absolute paths.
  5085. [\\/]* | ?:[\\/]*)
  5086. re_direlt='/[^/][^/]*/\.\./'
  5087. # Canonicalize the pathname of ld
  5088. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  5089. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  5090. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  5091. done
  5092. test -z "$LD" && LD="$ac_prog"
  5093. ;;
  5094. "")
  5095. # If it fails, then pretend we aren't using GCC.
  5096. ac_prog=ld
  5097. ;;
  5098. *)
  5099. # If it is relative, then search for the first ld in PATH.
  5100. with_gnu_ld=unknown
  5101. ;;
  5102. esac
  5103. elif test "$with_gnu_ld" = yes; then
  5104. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  5105. $as_echo_n "checking for GNU ld... " >&6; }
  5106. else
  5107. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  5108. $as_echo_n "checking for non-GNU ld... " >&6; }
  5109. fi
  5110. if ${lt_cv_path_LD+:} false; then :
  5111. $as_echo_n "(cached) " >&6
  5112. else
  5113. if test -z "$LD"; then
  5114. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5115. for ac_dir in $PATH; do
  5116. IFS="$lt_save_ifs"
  5117. test -z "$ac_dir" && ac_dir=.
  5118. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  5119. lt_cv_path_LD="$ac_dir/$ac_prog"
  5120. # Check to see if the program is GNU ld. I'd rather use --version,
  5121. # but apparently some variants of GNU ld only accept -v.
  5122. # Break only if it was the GNU/non-GNU ld that we prefer.
  5123. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  5124. *GNU* | *'with BFD'*)
  5125. test "$with_gnu_ld" != no && break
  5126. ;;
  5127. *)
  5128. test "$with_gnu_ld" != yes && break
  5129. ;;
  5130. esac
  5131. fi
  5132. done
  5133. IFS="$lt_save_ifs"
  5134. else
  5135. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  5136. fi
  5137. fi
  5138. LD="$lt_cv_path_LD"
  5139. if test -n "$LD"; then
  5140. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  5141. $as_echo "$LD" >&6; }
  5142. else
  5143. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5144. $as_echo "no" >&6; }
  5145. fi
  5146. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  5147. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  5148. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  5149. if ${lt_cv_prog_gnu_ld+:} false; then :
  5150. $as_echo_n "(cached) " >&6
  5151. else
  5152. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  5153. case `$LD -v 2>&1 </dev/null` in
  5154. *GNU* | *'with BFD'*)
  5155. lt_cv_prog_gnu_ld=yes
  5156. ;;
  5157. *)
  5158. lt_cv_prog_gnu_ld=no
  5159. ;;
  5160. esac
  5161. fi
  5162. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  5163. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  5164. with_gnu_ld=$lt_cv_prog_gnu_ld
  5165. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  5166. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  5167. if ${lt_cv_path_NM+:} false; then :
  5168. $as_echo_n "(cached) " >&6
  5169. else
  5170. if test -n "$NM"; then
  5171. # Let the user override the test.
  5172. lt_cv_path_NM="$NM"
  5173. else
  5174. lt_nm_to_check="${ac_tool_prefix}nm"
  5175. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  5176. lt_nm_to_check="$lt_nm_to_check nm"
  5177. fi
  5178. for lt_tmp_nm in $lt_nm_to_check; do
  5179. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5180. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  5181. IFS="$lt_save_ifs"
  5182. test -z "$ac_dir" && ac_dir=.
  5183. tmp_nm="$ac_dir/$lt_tmp_nm"
  5184. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  5185. # Check to see if the nm accepts a BSD-compat flag.
  5186. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  5187. # nm: unknown option "B" ignored
  5188. # Tru64's nm complains that /dev/null is an invalid object file
  5189. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  5190. */dev/null* | *'Invalid file or object type'*)
  5191. lt_cv_path_NM="$tmp_nm -B"
  5192. break
  5193. ;;
  5194. *)
  5195. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  5196. */dev/null*)
  5197. lt_cv_path_NM="$tmp_nm -p"
  5198. break
  5199. ;;
  5200. *)
  5201. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  5202. continue # so that we can try to find one that supports BSD flags
  5203. ;;
  5204. esac
  5205. ;;
  5206. esac
  5207. fi
  5208. done
  5209. IFS="$lt_save_ifs"
  5210. done
  5211. : ${lt_cv_path_NM=no}
  5212. fi
  5213. fi
  5214. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  5215. $as_echo "$lt_cv_path_NM" >&6; }
  5216. if test "$lt_cv_path_NM" != "no"; then
  5217. NM="$lt_cv_path_NM"
  5218. else
  5219. # Didn't find any BSD compatible name lister, look for dumpbin.
  5220. if test -n "$DUMPBIN"; then :
  5221. # Let the user override the test.
  5222. else
  5223. if test -n "$ac_tool_prefix"; then
  5224. for ac_prog in dumpbin "link -dump"
  5225. do
  5226. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5227. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5228. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5229. $as_echo_n "checking for $ac_word... " >&6; }
  5230. if ${ac_cv_prog_DUMPBIN+:} false; then :
  5231. $as_echo_n "(cached) " >&6
  5232. else
  5233. if test -n "$DUMPBIN"; then
  5234. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  5235. else
  5236. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5237. for as_dir in $PATH
  5238. do
  5239. IFS=$as_save_IFS
  5240. test -z "$as_dir" && as_dir=.
  5241. for ac_exec_ext in '' $ac_executable_extensions; do
  5242. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5243. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  5244. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5245. break 2
  5246. fi
  5247. done
  5248. done
  5249. IFS=$as_save_IFS
  5250. fi
  5251. fi
  5252. DUMPBIN=$ac_cv_prog_DUMPBIN
  5253. if test -n "$DUMPBIN"; then
  5254. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  5255. $as_echo "$DUMPBIN" >&6; }
  5256. else
  5257. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5258. $as_echo "no" >&6; }
  5259. fi
  5260. test -n "$DUMPBIN" && break
  5261. done
  5262. fi
  5263. if test -z "$DUMPBIN"; then
  5264. ac_ct_DUMPBIN=$DUMPBIN
  5265. for ac_prog in dumpbin "link -dump"
  5266. do
  5267. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5268. set dummy $ac_prog; ac_word=$2
  5269. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5270. $as_echo_n "checking for $ac_word... " >&6; }
  5271. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  5272. $as_echo_n "(cached) " >&6
  5273. else
  5274. if test -n "$ac_ct_DUMPBIN"; then
  5275. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  5276. else
  5277. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5278. for as_dir in $PATH
  5279. do
  5280. IFS=$as_save_IFS
  5281. test -z "$as_dir" && as_dir=.
  5282. for ac_exec_ext in '' $ac_executable_extensions; do
  5283. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5284. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  5285. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5286. break 2
  5287. fi
  5288. done
  5289. done
  5290. IFS=$as_save_IFS
  5291. fi
  5292. fi
  5293. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  5294. if test -n "$ac_ct_DUMPBIN"; then
  5295. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  5296. $as_echo "$ac_ct_DUMPBIN" >&6; }
  5297. else
  5298. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5299. $as_echo "no" >&6; }
  5300. fi
  5301. test -n "$ac_ct_DUMPBIN" && break
  5302. done
  5303. if test "x$ac_ct_DUMPBIN" = x; then
  5304. DUMPBIN=":"
  5305. else
  5306. case $cross_compiling:$ac_tool_warned in
  5307. yes:)
  5308. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5309. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5310. ac_tool_warned=yes ;;
  5311. esac
  5312. DUMPBIN=$ac_ct_DUMPBIN
  5313. fi
  5314. fi
  5315. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  5316. *COFF*)
  5317. DUMPBIN="$DUMPBIN -symbols"
  5318. ;;
  5319. *)
  5320. DUMPBIN=:
  5321. ;;
  5322. esac
  5323. fi
  5324. if test "$DUMPBIN" != ":"; then
  5325. NM="$DUMPBIN"
  5326. fi
  5327. fi
  5328. test -z "$NM" && NM=nm
  5329. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  5330. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  5331. if ${lt_cv_nm_interface+:} false; then :
  5332. $as_echo_n "(cached) " >&6
  5333. else
  5334. lt_cv_nm_interface="BSD nm"
  5335. echo "int some_variable = 0;" > conftest.$ac_ext
  5336. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  5337. (eval "$ac_compile" 2>conftest.err)
  5338. cat conftest.err >&5
  5339. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  5340. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  5341. cat conftest.err >&5
  5342. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  5343. cat conftest.out >&5
  5344. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  5345. lt_cv_nm_interface="MS dumpbin"
  5346. fi
  5347. rm -f conftest*
  5348. fi
  5349. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  5350. $as_echo "$lt_cv_nm_interface" >&6; }
  5351. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  5352. $as_echo_n "checking whether ln -s works... " >&6; }
  5353. LN_S=$as_ln_s
  5354. if test "$LN_S" = "ln -s"; then
  5355. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5356. $as_echo "yes" >&6; }
  5357. else
  5358. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  5359. $as_echo "no, using $LN_S" >&6; }
  5360. fi
  5361. # find the maximum length of command line arguments
  5362. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  5363. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  5364. if ${lt_cv_sys_max_cmd_len+:} false; then :
  5365. $as_echo_n "(cached) " >&6
  5366. else
  5367. i=0
  5368. teststring="ABCD"
  5369. case $build_os in
  5370. msdosdjgpp*)
  5371. # On DJGPP, this test can blow up pretty badly due to problems in libc
  5372. # (any single argument exceeding 2000 bytes causes a buffer overrun
  5373. # during glob expansion). Even if it were fixed, the result of this
  5374. # check would be larger than it should be.
  5375. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  5376. ;;
  5377. gnu*)
  5378. # Under GNU Hurd, this test is not required because there is
  5379. # no limit to the length of command line arguments.
  5380. # Libtool will interpret -1 as no limit whatsoever
  5381. lt_cv_sys_max_cmd_len=-1;
  5382. ;;
  5383. cygwin* | mingw* | cegcc*)
  5384. # On Win9x/ME, this test blows up -- it succeeds, but takes
  5385. # about 5 minutes as the teststring grows exponentially.
  5386. # Worse, since 9x/ME are not pre-emptively multitasking,
  5387. # you end up with a "frozen" computer, even though with patience
  5388. # the test eventually succeeds (with a max line length of 256k).
  5389. # Instead, let's just punt: use the minimum linelength reported by
  5390. # all of the supported platforms: 8192 (on NT/2K/XP).
  5391. lt_cv_sys_max_cmd_len=8192;
  5392. ;;
  5393. mint*)
  5394. # On MiNT this can take a long time and run out of memory.
  5395. lt_cv_sys_max_cmd_len=8192;
  5396. ;;
  5397. amigaos*)
  5398. # On AmigaOS with pdksh, this test takes hours, literally.
  5399. # So we just punt and use a minimum line length of 8192.
  5400. lt_cv_sys_max_cmd_len=8192;
  5401. ;;
  5402. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  5403. # This has been around since 386BSD, at least. Likely further.
  5404. if test -x /sbin/sysctl; then
  5405. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  5406. elif test -x /usr/sbin/sysctl; then
  5407. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  5408. else
  5409. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  5410. fi
  5411. # And add a safety zone
  5412. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5413. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5414. ;;
  5415. interix*)
  5416. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  5417. lt_cv_sys_max_cmd_len=196608
  5418. ;;
  5419. os2*)
  5420. # The test takes a long time on OS/2.
  5421. lt_cv_sys_max_cmd_len=8192
  5422. ;;
  5423. osf*)
  5424. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  5425. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  5426. # nice to cause kernel panics so lets avoid the loop below.
  5427. # First set a reasonable default.
  5428. lt_cv_sys_max_cmd_len=16384
  5429. #
  5430. if test -x /sbin/sysconfig; then
  5431. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  5432. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  5433. esac
  5434. fi
  5435. ;;
  5436. sco3.2v5*)
  5437. lt_cv_sys_max_cmd_len=102400
  5438. ;;
  5439. sysv5* | sco5v6* | sysv4.2uw2*)
  5440. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  5441. if test -n "$kargmax"; then
  5442. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  5443. else
  5444. lt_cv_sys_max_cmd_len=32768
  5445. fi
  5446. ;;
  5447. *)
  5448. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  5449. if test -n "$lt_cv_sys_max_cmd_len"; then
  5450. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5451. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5452. else
  5453. # Make teststring a little bigger before we do anything with it.
  5454. # a 1K string should be a reasonable start.
  5455. for i in 1 2 3 4 5 6 7 8 ; do
  5456. teststring=$teststring$teststring
  5457. done
  5458. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  5459. # If test is not a shell built-in, we'll probably end up computing a
  5460. # maximum length that is only half of the actual maximum length, but
  5461. # we can't tell.
  5462. while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
  5463. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  5464. test $i != 17 # 1/2 MB should be enough
  5465. do
  5466. i=`expr $i + 1`
  5467. teststring=$teststring$teststring
  5468. done
  5469. # Only check the string length outside the loop.
  5470. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  5471. teststring=
  5472. # Add a significant safety factor because C++ compilers can tack on
  5473. # massive amounts of additional arguments before passing them to the
  5474. # linker. It appears as though 1/2 is a usable value.
  5475. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5476. fi
  5477. ;;
  5478. esac
  5479. fi
  5480. if test -n $lt_cv_sys_max_cmd_len ; then
  5481. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  5482. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  5483. else
  5484. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  5485. $as_echo "none" >&6; }
  5486. fi
  5487. max_cmd_len=$lt_cv_sys_max_cmd_len
  5488. : ${CP="cp -f"}
  5489. : ${MV="mv -f"}
  5490. : ${RM="rm -f"}
  5491. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  5492. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  5493. # Try some XSI features
  5494. xsi_shell=no
  5495. ( _lt_dummy="a/b/c"
  5496. test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  5497. = c,a/b,b/c, \
  5498. && eval 'test $(( 1 + 1 )) -eq 2 \
  5499. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  5500. && xsi_shell=yes
  5501. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  5502. $as_echo "$xsi_shell" >&6; }
  5503. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  5504. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  5505. lt_shell_append=no
  5506. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  5507. >/dev/null 2>&1 \
  5508. && lt_shell_append=yes
  5509. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  5510. $as_echo "$lt_shell_append" >&6; }
  5511. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  5512. lt_unset=unset
  5513. else
  5514. lt_unset=false
  5515. fi
  5516. # test EBCDIC or ASCII
  5517. case `echo X|tr X '\101'` in
  5518. A) # ASCII based system
  5519. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  5520. lt_SP2NL='tr \040 \012'
  5521. lt_NL2SP='tr \015\012 \040\040'
  5522. ;;
  5523. *) # EBCDIC based system
  5524. lt_SP2NL='tr \100 \n'
  5525. lt_NL2SP='tr \r\n \100\100'
  5526. ;;
  5527. esac
  5528. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  5529. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  5530. if ${lt_cv_to_host_file_cmd+:} false; then :
  5531. $as_echo_n "(cached) " >&6
  5532. else
  5533. case $host in
  5534. *-*-mingw* )
  5535. case $build in
  5536. *-*-mingw* ) # actually msys
  5537. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  5538. ;;
  5539. *-*-cygwin* )
  5540. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  5541. ;;
  5542. * ) # otherwise, assume *nix
  5543. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  5544. ;;
  5545. esac
  5546. ;;
  5547. *-*-cygwin* )
  5548. case $build in
  5549. *-*-mingw* ) # actually msys
  5550. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  5551. ;;
  5552. *-*-cygwin* )
  5553. lt_cv_to_host_file_cmd=func_convert_file_noop
  5554. ;;
  5555. * ) # otherwise, assume *nix
  5556. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  5557. ;;
  5558. esac
  5559. ;;
  5560. * ) # unhandled hosts (and "normal" native builds)
  5561. lt_cv_to_host_file_cmd=func_convert_file_noop
  5562. ;;
  5563. esac
  5564. fi
  5565. to_host_file_cmd=$lt_cv_to_host_file_cmd
  5566. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  5567. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  5568. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  5569. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  5570. if ${lt_cv_to_tool_file_cmd+:} false; then :
  5571. $as_echo_n "(cached) " >&6
  5572. else
  5573. #assume ordinary cross tools, or native build.
  5574. lt_cv_to_tool_file_cmd=func_convert_file_noop
  5575. case $host in
  5576. *-*-mingw* )
  5577. case $build in
  5578. *-*-mingw* ) # actually msys
  5579. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  5580. ;;
  5581. esac
  5582. ;;
  5583. esac
  5584. fi
  5585. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  5586. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  5587. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  5588. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  5589. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  5590. if ${lt_cv_ld_reload_flag+:} false; then :
  5591. $as_echo_n "(cached) " >&6
  5592. else
  5593. lt_cv_ld_reload_flag='-r'
  5594. fi
  5595. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  5596. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  5597. reload_flag=$lt_cv_ld_reload_flag
  5598. case $reload_flag in
  5599. "" | " "*) ;;
  5600. *) reload_flag=" $reload_flag" ;;
  5601. esac
  5602. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5603. case $host_os in
  5604. cygwin* | mingw* | pw32* | cegcc*)
  5605. if test "$GCC" != yes; then
  5606. reload_cmds=false
  5607. fi
  5608. ;;
  5609. darwin*)
  5610. if test "$GCC" = yes; then
  5611. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  5612. else
  5613. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5614. fi
  5615. ;;
  5616. esac
  5617. if test -n "$ac_tool_prefix"; then
  5618. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5619. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5620. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5621. $as_echo_n "checking for $ac_word... " >&6; }
  5622. if ${ac_cv_prog_OBJDUMP+:} false; then :
  5623. $as_echo_n "(cached) " >&6
  5624. else
  5625. if test -n "$OBJDUMP"; then
  5626. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5627. else
  5628. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5629. for as_dir in $PATH
  5630. do
  5631. IFS=$as_save_IFS
  5632. test -z "$as_dir" && as_dir=.
  5633. for ac_exec_ext in '' $ac_executable_extensions; do
  5634. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5635. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5636. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5637. break 2
  5638. fi
  5639. done
  5640. done
  5641. IFS=$as_save_IFS
  5642. fi
  5643. fi
  5644. OBJDUMP=$ac_cv_prog_OBJDUMP
  5645. if test -n "$OBJDUMP"; then
  5646. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5647. $as_echo "$OBJDUMP" >&6; }
  5648. else
  5649. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5650. $as_echo "no" >&6; }
  5651. fi
  5652. fi
  5653. if test -z "$ac_cv_prog_OBJDUMP"; then
  5654. ac_ct_OBJDUMP=$OBJDUMP
  5655. # Extract the first word of "objdump", so it can be a program name with args.
  5656. set dummy objdump; ac_word=$2
  5657. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5658. $as_echo_n "checking for $ac_word... " >&6; }
  5659. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  5660. $as_echo_n "(cached) " >&6
  5661. else
  5662. if test -n "$ac_ct_OBJDUMP"; then
  5663. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5664. else
  5665. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5666. for as_dir in $PATH
  5667. do
  5668. IFS=$as_save_IFS
  5669. test -z "$as_dir" && as_dir=.
  5670. for ac_exec_ext in '' $ac_executable_extensions; do
  5671. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5672. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5673. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5674. break 2
  5675. fi
  5676. done
  5677. done
  5678. IFS=$as_save_IFS
  5679. fi
  5680. fi
  5681. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5682. if test -n "$ac_ct_OBJDUMP"; then
  5683. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5684. $as_echo "$ac_ct_OBJDUMP" >&6; }
  5685. else
  5686. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5687. $as_echo "no" >&6; }
  5688. fi
  5689. if test "x$ac_ct_OBJDUMP" = x; then
  5690. OBJDUMP="false"
  5691. else
  5692. case $cross_compiling:$ac_tool_warned in
  5693. yes:)
  5694. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5695. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5696. ac_tool_warned=yes ;;
  5697. esac
  5698. OBJDUMP=$ac_ct_OBJDUMP
  5699. fi
  5700. else
  5701. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5702. fi
  5703. test -z "$OBJDUMP" && OBJDUMP=objdump
  5704. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5705. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  5706. if ${lt_cv_deplibs_check_method+:} false; then :
  5707. $as_echo_n "(cached) " >&6
  5708. else
  5709. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5710. lt_cv_file_magic_test_file=
  5711. lt_cv_deplibs_check_method='unknown'
  5712. # Need to set the preceding variable on all platforms that support
  5713. # interlibrary dependencies.
  5714. # 'none' -- dependencies not supported.
  5715. # `unknown' -- same as none, but documents that we really don't know.
  5716. # 'pass_all' -- all dependencies passed with no checks.
  5717. # 'test_compile' -- check by making test program.
  5718. # 'file_magic [[regex]]' -- check by looking for files in library path
  5719. # which responds to the $file_magic_cmd with a given extended regex.
  5720. # If you have `file' or equivalent on your system and you're not sure
  5721. # whether `pass_all' will *always* work, you probably want this one.
  5722. case $host_os in
  5723. aix[4-9]*)
  5724. lt_cv_deplibs_check_method=pass_all
  5725. ;;
  5726. beos*)
  5727. lt_cv_deplibs_check_method=pass_all
  5728. ;;
  5729. bsdi[45]*)
  5730. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5731. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5732. lt_cv_file_magic_test_file=/shlib/libc.so
  5733. ;;
  5734. cygwin*)
  5735. # func_win32_libid is a shell function defined in ltmain.sh
  5736. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5737. lt_cv_file_magic_cmd='func_win32_libid'
  5738. ;;
  5739. mingw* | pw32*)
  5740. # Base MSYS/MinGW do not provide the 'file' command needed by
  5741. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5742. # unless we find 'file', for example because we are cross-compiling.
  5743. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  5744. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  5745. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5746. lt_cv_file_magic_cmd='func_win32_libid'
  5747. else
  5748. # Keep this pattern in sync with the one in func_win32_libid.
  5749. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  5750. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5751. fi
  5752. ;;
  5753. cegcc*)
  5754. # use the weaker test based on 'objdump'. See mingw*.
  5755. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5756. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5757. ;;
  5758. darwin* | rhapsody*)
  5759. lt_cv_deplibs_check_method=pass_all
  5760. ;;
  5761. freebsd* | dragonfly*)
  5762. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5763. case $host_cpu in
  5764. i*86 )
  5765. # Not sure whether the presence of OpenBSD here was a mistake.
  5766. # Let's accept both of them until this is cleared up.
  5767. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5768. lt_cv_file_magic_cmd=/usr/bin/file
  5769. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5770. ;;
  5771. esac
  5772. else
  5773. lt_cv_deplibs_check_method=pass_all
  5774. fi
  5775. ;;
  5776. gnu*)
  5777. lt_cv_deplibs_check_method=pass_all
  5778. ;;
  5779. haiku*)
  5780. lt_cv_deplibs_check_method=pass_all
  5781. ;;
  5782. hpux10.20* | hpux11*)
  5783. lt_cv_file_magic_cmd=/usr/bin/file
  5784. case $host_cpu in
  5785. ia64*)
  5786. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5787. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5788. ;;
  5789. hppa*64*)
  5790. 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]'
  5791. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5792. ;;
  5793. *)
  5794. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  5795. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5796. ;;
  5797. esac
  5798. ;;
  5799. interix[3-9]*)
  5800. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5801. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5802. ;;
  5803. irix5* | irix6* | nonstopux*)
  5804. case $LD in
  5805. *-32|*"-32 ") libmagic=32-bit;;
  5806. *-n32|*"-n32 ") libmagic=N32;;
  5807. *-64|*"-64 ") libmagic=64-bit;;
  5808. *) libmagic=never-match;;
  5809. esac
  5810. lt_cv_deplibs_check_method=pass_all
  5811. ;;
  5812. # This must be glibc/ELF.
  5813. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  5814. lt_cv_deplibs_check_method=pass_all
  5815. ;;
  5816. netbsd*)
  5817. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5818. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5819. else
  5820. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5821. fi
  5822. ;;
  5823. newos6*)
  5824. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5825. lt_cv_file_magic_cmd=/usr/bin/file
  5826. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5827. ;;
  5828. *nto* | *qnx*)
  5829. lt_cv_deplibs_check_method=pass_all
  5830. ;;
  5831. openbsd*)
  5832. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  5833. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5834. else
  5835. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5836. fi
  5837. ;;
  5838. osf3* | osf4* | osf5*)
  5839. lt_cv_deplibs_check_method=pass_all
  5840. ;;
  5841. rdos*)
  5842. lt_cv_deplibs_check_method=pass_all
  5843. ;;
  5844. solaris*)
  5845. lt_cv_deplibs_check_method=pass_all
  5846. ;;
  5847. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5848. lt_cv_deplibs_check_method=pass_all
  5849. ;;
  5850. sysv4 | sysv4.3*)
  5851. case $host_vendor in
  5852. motorola)
  5853. 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]'
  5854. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5855. ;;
  5856. ncr)
  5857. lt_cv_deplibs_check_method=pass_all
  5858. ;;
  5859. sequent)
  5860. lt_cv_file_magic_cmd='/bin/file'
  5861. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5862. ;;
  5863. sni)
  5864. lt_cv_file_magic_cmd='/bin/file'
  5865. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5866. lt_cv_file_magic_test_file=/lib/libc.so
  5867. ;;
  5868. siemens)
  5869. lt_cv_deplibs_check_method=pass_all
  5870. ;;
  5871. pc)
  5872. lt_cv_deplibs_check_method=pass_all
  5873. ;;
  5874. esac
  5875. ;;
  5876. tpf*)
  5877. lt_cv_deplibs_check_method=pass_all
  5878. ;;
  5879. esac
  5880. fi
  5881. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5882. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  5883. file_magic_glob=
  5884. want_nocaseglob=no
  5885. if test "$build" = "$host"; then
  5886. case $host_os in
  5887. mingw* | pw32*)
  5888. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  5889. want_nocaseglob=yes
  5890. else
  5891. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  5892. fi
  5893. ;;
  5894. esac
  5895. fi
  5896. file_magic_cmd=$lt_cv_file_magic_cmd
  5897. deplibs_check_method=$lt_cv_deplibs_check_method
  5898. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5899. if test -n "$ac_tool_prefix"; then
  5900. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  5901. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  5902. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5903. $as_echo_n "checking for $ac_word... " >&6; }
  5904. if ${ac_cv_prog_DLLTOOL+:} false; then :
  5905. $as_echo_n "(cached) " >&6
  5906. else
  5907. if test -n "$DLLTOOL"; then
  5908. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  5909. else
  5910. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5911. for as_dir in $PATH
  5912. do
  5913. IFS=$as_save_IFS
  5914. test -z "$as_dir" && as_dir=.
  5915. for ac_exec_ext in '' $ac_executable_extensions; do
  5916. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5917. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  5918. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5919. break 2
  5920. fi
  5921. done
  5922. done
  5923. IFS=$as_save_IFS
  5924. fi
  5925. fi
  5926. DLLTOOL=$ac_cv_prog_DLLTOOL
  5927. if test -n "$DLLTOOL"; then
  5928. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  5929. $as_echo "$DLLTOOL" >&6; }
  5930. else
  5931. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5932. $as_echo "no" >&6; }
  5933. fi
  5934. fi
  5935. if test -z "$ac_cv_prog_DLLTOOL"; then
  5936. ac_ct_DLLTOOL=$DLLTOOL
  5937. # Extract the first word of "dlltool", so it can be a program name with args.
  5938. set dummy dlltool; ac_word=$2
  5939. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5940. $as_echo_n "checking for $ac_word... " >&6; }
  5941. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  5942. $as_echo_n "(cached) " >&6
  5943. else
  5944. if test -n "$ac_ct_DLLTOOL"; then
  5945. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  5946. else
  5947. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5948. for as_dir in $PATH
  5949. do
  5950. IFS=$as_save_IFS
  5951. test -z "$as_dir" && as_dir=.
  5952. for ac_exec_ext in '' $ac_executable_extensions; do
  5953. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5954. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  5955. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5956. break 2
  5957. fi
  5958. done
  5959. done
  5960. IFS=$as_save_IFS
  5961. fi
  5962. fi
  5963. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  5964. if test -n "$ac_ct_DLLTOOL"; then
  5965. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  5966. $as_echo "$ac_ct_DLLTOOL" >&6; }
  5967. else
  5968. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5969. $as_echo "no" >&6; }
  5970. fi
  5971. if test "x$ac_ct_DLLTOOL" = x; then
  5972. DLLTOOL="false"
  5973. else
  5974. case $cross_compiling:$ac_tool_warned in
  5975. yes:)
  5976. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5977. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5978. ac_tool_warned=yes ;;
  5979. esac
  5980. DLLTOOL=$ac_ct_DLLTOOL
  5981. fi
  5982. else
  5983. DLLTOOL="$ac_cv_prog_DLLTOOL"
  5984. fi
  5985. test -z "$DLLTOOL" && DLLTOOL=dlltool
  5986. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  5987. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  5988. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  5989. $as_echo_n "(cached) " >&6
  5990. else
  5991. lt_cv_sharedlib_from_linklib_cmd='unknown'
  5992. case $host_os in
  5993. cygwin* | mingw* | pw32* | cegcc*)
  5994. # two different shell functions defined in ltmain.sh
  5995. # decide which to use based on capabilities of $DLLTOOL
  5996. case `$DLLTOOL --help 2>&1` in
  5997. *--identify-strict*)
  5998. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  5999. ;;
  6000. *)
  6001. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  6002. ;;
  6003. esac
  6004. ;;
  6005. *)
  6006. # fallback: assume linklib IS sharedlib
  6007. lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  6008. ;;
  6009. esac
  6010. fi
  6011. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  6012. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  6013. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  6014. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  6015. if test -n "$ac_tool_prefix"; then
  6016. for ac_prog in ar
  6017. do
  6018. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  6019. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  6020. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6021. $as_echo_n "checking for $ac_word... " >&6; }
  6022. if ${ac_cv_prog_AR+:} false; then :
  6023. $as_echo_n "(cached) " >&6
  6024. else
  6025. if test -n "$AR"; then
  6026. ac_cv_prog_AR="$AR" # Let the user override the test.
  6027. else
  6028. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6029. for as_dir in $PATH
  6030. do
  6031. IFS=$as_save_IFS
  6032. test -z "$as_dir" && as_dir=.
  6033. for ac_exec_ext in '' $ac_executable_extensions; do
  6034. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6035. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  6036. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6037. break 2
  6038. fi
  6039. done
  6040. done
  6041. IFS=$as_save_IFS
  6042. fi
  6043. fi
  6044. AR=$ac_cv_prog_AR
  6045. if test -n "$AR"; then
  6046. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  6047. $as_echo "$AR" >&6; }
  6048. else
  6049. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6050. $as_echo "no" >&6; }
  6051. fi
  6052. test -n "$AR" && break
  6053. done
  6054. fi
  6055. if test -z "$AR"; then
  6056. ac_ct_AR=$AR
  6057. for ac_prog in ar
  6058. do
  6059. # Extract the first word of "$ac_prog", so it can be a program name with args.
  6060. set dummy $ac_prog; ac_word=$2
  6061. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6062. $as_echo_n "checking for $ac_word... " >&6; }
  6063. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  6064. $as_echo_n "(cached) " >&6
  6065. else
  6066. if test -n "$ac_ct_AR"; then
  6067. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  6068. else
  6069. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6070. for as_dir in $PATH
  6071. do
  6072. IFS=$as_save_IFS
  6073. test -z "$as_dir" && as_dir=.
  6074. for ac_exec_ext in '' $ac_executable_extensions; do
  6075. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6076. ac_cv_prog_ac_ct_AR="$ac_prog"
  6077. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6078. break 2
  6079. fi
  6080. done
  6081. done
  6082. IFS=$as_save_IFS
  6083. fi
  6084. fi
  6085. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  6086. if test -n "$ac_ct_AR"; then
  6087. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  6088. $as_echo "$ac_ct_AR" >&6; }
  6089. else
  6090. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6091. $as_echo "no" >&6; }
  6092. fi
  6093. test -n "$ac_ct_AR" && break
  6094. done
  6095. if test "x$ac_ct_AR" = x; then
  6096. AR="false"
  6097. else
  6098. case $cross_compiling:$ac_tool_warned in
  6099. yes:)
  6100. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6101. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6102. ac_tool_warned=yes ;;
  6103. esac
  6104. AR=$ac_ct_AR
  6105. fi
  6106. fi
  6107. : ${AR=ar}
  6108. : ${AR_FLAGS=cru}
  6109. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  6110. $as_echo_n "checking for archiver @FILE support... " >&6; }
  6111. if ${lt_cv_ar_at_file+:} false; then :
  6112. $as_echo_n "(cached) " >&6
  6113. else
  6114. lt_cv_ar_at_file=no
  6115. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6116. /* end confdefs.h. */
  6117. int
  6118. main ()
  6119. {
  6120. ;
  6121. return 0;
  6122. }
  6123. _ACEOF
  6124. if ac_fn_c_try_compile "$LINENO"; then :
  6125. echo conftest.$ac_objext > conftest.lst
  6126. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  6127. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  6128. (eval $lt_ar_try) 2>&5
  6129. ac_status=$?
  6130. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6131. test $ac_status = 0; }
  6132. if test "$ac_status" -eq 0; then
  6133. # Ensure the archiver fails upon bogus file names.
  6134. rm -f conftest.$ac_objext libconftest.a
  6135. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  6136. (eval $lt_ar_try) 2>&5
  6137. ac_status=$?
  6138. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6139. test $ac_status = 0; }
  6140. if test "$ac_status" -ne 0; then
  6141. lt_cv_ar_at_file=@
  6142. fi
  6143. fi
  6144. rm -f conftest.* libconftest.a
  6145. fi
  6146. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6147. fi
  6148. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  6149. $as_echo "$lt_cv_ar_at_file" >&6; }
  6150. if test "x$lt_cv_ar_at_file" = xno; then
  6151. archiver_list_spec=
  6152. else
  6153. archiver_list_spec=$lt_cv_ar_at_file
  6154. fi
  6155. if test -n "$ac_tool_prefix"; then
  6156. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  6157. set dummy ${ac_tool_prefix}strip; ac_word=$2
  6158. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6159. $as_echo_n "checking for $ac_word... " >&6; }
  6160. if ${ac_cv_prog_STRIP+:} false; then :
  6161. $as_echo_n "(cached) " >&6
  6162. else
  6163. if test -n "$STRIP"; then
  6164. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  6165. else
  6166. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6167. for as_dir in $PATH
  6168. do
  6169. IFS=$as_save_IFS
  6170. test -z "$as_dir" && as_dir=.
  6171. for ac_exec_ext in '' $ac_executable_extensions; do
  6172. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6173. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  6174. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6175. break 2
  6176. fi
  6177. done
  6178. done
  6179. IFS=$as_save_IFS
  6180. fi
  6181. fi
  6182. STRIP=$ac_cv_prog_STRIP
  6183. if test -n "$STRIP"; then
  6184. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  6185. $as_echo "$STRIP" >&6; }
  6186. else
  6187. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6188. $as_echo "no" >&6; }
  6189. fi
  6190. fi
  6191. if test -z "$ac_cv_prog_STRIP"; then
  6192. ac_ct_STRIP=$STRIP
  6193. # Extract the first word of "strip", so it can be a program name with args.
  6194. set dummy strip; ac_word=$2
  6195. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6196. $as_echo_n "checking for $ac_word... " >&6; }
  6197. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  6198. $as_echo_n "(cached) " >&6
  6199. else
  6200. if test -n "$ac_ct_STRIP"; then
  6201. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  6202. else
  6203. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6204. for as_dir in $PATH
  6205. do
  6206. IFS=$as_save_IFS
  6207. test -z "$as_dir" && as_dir=.
  6208. for ac_exec_ext in '' $ac_executable_extensions; do
  6209. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6210. ac_cv_prog_ac_ct_STRIP="strip"
  6211. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6212. break 2
  6213. fi
  6214. done
  6215. done
  6216. IFS=$as_save_IFS
  6217. fi
  6218. fi
  6219. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  6220. if test -n "$ac_ct_STRIP"; then
  6221. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  6222. $as_echo "$ac_ct_STRIP" >&6; }
  6223. else
  6224. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6225. $as_echo "no" >&6; }
  6226. fi
  6227. if test "x$ac_ct_STRIP" = x; then
  6228. STRIP=":"
  6229. else
  6230. case $cross_compiling:$ac_tool_warned in
  6231. yes:)
  6232. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6233. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6234. ac_tool_warned=yes ;;
  6235. esac
  6236. STRIP=$ac_ct_STRIP
  6237. fi
  6238. else
  6239. STRIP="$ac_cv_prog_STRIP"
  6240. fi
  6241. test -z "$STRIP" && STRIP=:
  6242. if test -n "$ac_tool_prefix"; then
  6243. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  6244. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  6245. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6246. $as_echo_n "checking for $ac_word... " >&6; }
  6247. if ${ac_cv_prog_RANLIB+:} false; then :
  6248. $as_echo_n "(cached) " >&6
  6249. else
  6250. if test -n "$RANLIB"; then
  6251. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  6252. else
  6253. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6254. for as_dir in $PATH
  6255. do
  6256. IFS=$as_save_IFS
  6257. test -z "$as_dir" && as_dir=.
  6258. for ac_exec_ext in '' $ac_executable_extensions; do
  6259. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6260. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  6261. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6262. break 2
  6263. fi
  6264. done
  6265. done
  6266. IFS=$as_save_IFS
  6267. fi
  6268. fi
  6269. RANLIB=$ac_cv_prog_RANLIB
  6270. if test -n "$RANLIB"; then
  6271. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  6272. $as_echo "$RANLIB" >&6; }
  6273. else
  6274. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6275. $as_echo "no" >&6; }
  6276. fi
  6277. fi
  6278. if test -z "$ac_cv_prog_RANLIB"; then
  6279. ac_ct_RANLIB=$RANLIB
  6280. # Extract the first word of "ranlib", so it can be a program name with args.
  6281. set dummy ranlib; ac_word=$2
  6282. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6283. $as_echo_n "checking for $ac_word... " >&6; }
  6284. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  6285. $as_echo_n "(cached) " >&6
  6286. else
  6287. if test -n "$ac_ct_RANLIB"; then
  6288. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  6289. else
  6290. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6291. for as_dir in $PATH
  6292. do
  6293. IFS=$as_save_IFS
  6294. test -z "$as_dir" && as_dir=.
  6295. for ac_exec_ext in '' $ac_executable_extensions; do
  6296. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6297. ac_cv_prog_ac_ct_RANLIB="ranlib"
  6298. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6299. break 2
  6300. fi
  6301. done
  6302. done
  6303. IFS=$as_save_IFS
  6304. fi
  6305. fi
  6306. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  6307. if test -n "$ac_ct_RANLIB"; then
  6308. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  6309. $as_echo "$ac_ct_RANLIB" >&6; }
  6310. else
  6311. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6312. $as_echo "no" >&6; }
  6313. fi
  6314. if test "x$ac_ct_RANLIB" = x; then
  6315. RANLIB=":"
  6316. else
  6317. case $cross_compiling:$ac_tool_warned in
  6318. yes:)
  6319. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6320. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6321. ac_tool_warned=yes ;;
  6322. esac
  6323. RANLIB=$ac_ct_RANLIB
  6324. fi
  6325. else
  6326. RANLIB="$ac_cv_prog_RANLIB"
  6327. fi
  6328. test -z "$RANLIB" && RANLIB=:
  6329. # Determine commands to create old-style static archives.
  6330. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  6331. old_postinstall_cmds='chmod 644 $oldlib'
  6332. old_postuninstall_cmds=
  6333. if test -n "$RANLIB"; then
  6334. case $host_os in
  6335. openbsd*)
  6336. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  6337. ;;
  6338. *)
  6339. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  6340. ;;
  6341. esac
  6342. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  6343. fi
  6344. case $host_os in
  6345. darwin*)
  6346. lock_old_archive_extraction=yes ;;
  6347. *)
  6348. lock_old_archive_extraction=no ;;
  6349. esac
  6350. # If no C compiler was specified, use CC.
  6351. LTCC=${LTCC-"$CC"}
  6352. # If no C compiler flags were specified, use CFLAGS.
  6353. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6354. # Allow CC to be a program name with arguments.
  6355. compiler=$CC
  6356. # Check for command to grab the raw symbol name followed by C symbol from nm.
  6357. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  6358. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  6359. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  6360. $as_echo_n "(cached) " >&6
  6361. else
  6362. # These are sane defaults that work on at least a few old systems.
  6363. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  6364. # Character class describing NM global symbol codes.
  6365. symcode='[BCDEGRST]'
  6366. # Regexp to match symbols that can be accessed directly from C.
  6367. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  6368. # Define system-specific variables.
  6369. case $host_os in
  6370. aix*)
  6371. symcode='[BCDT]'
  6372. ;;
  6373. cygwin* | mingw* | pw32* | cegcc*)
  6374. symcode='[ABCDGISTW]'
  6375. ;;
  6376. hpux*)
  6377. if test "$host_cpu" = ia64; then
  6378. symcode='[ABCDEGRST]'
  6379. fi
  6380. ;;
  6381. irix* | nonstopux*)
  6382. symcode='[BCDEGRST]'
  6383. ;;
  6384. osf*)
  6385. symcode='[BCDEGQRST]'
  6386. ;;
  6387. solaris*)
  6388. symcode='[BDRT]'
  6389. ;;
  6390. sco3.2v5*)
  6391. symcode='[DT]'
  6392. ;;
  6393. sysv4.2uw2*)
  6394. symcode='[DT]'
  6395. ;;
  6396. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  6397. symcode='[ABDT]'
  6398. ;;
  6399. sysv4)
  6400. symcode='[DFNSTU]'
  6401. ;;
  6402. esac
  6403. # If we're using GNU nm, then use its standard symbol codes.
  6404. case `$NM -V 2>&1` in
  6405. *GNU* | *'with BFD'*)
  6406. symcode='[ABCDGIRSTW]' ;;
  6407. esac
  6408. # Transform an extracted symbol line into a proper C declaration.
  6409. # Some systems (esp. on ia64) link data and code symbols differently,
  6410. # so use this general approach.
  6411. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  6412. # Transform an extracted symbol line into symbol name and symbol address
  6413. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  6414. 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'"
  6415. # Handle CRLF in mingw tool chain
  6416. opt_cr=
  6417. case $build_os in
  6418. mingw*)
  6419. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  6420. ;;
  6421. esac
  6422. # Try without a prefix underscore, then with it.
  6423. for ac_symprfx in "" "_"; do
  6424. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  6425. symxfrm="\\1 $ac_symprfx\\2 \\2"
  6426. # Write the raw and C identifiers.
  6427. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6428. # Fake it for dumpbin and say T for any non-static function
  6429. # and D for any global variable.
  6430. # Also find C++ and __fastcall symbols from MSVC++,
  6431. # which start with @ or ?.
  6432. lt_cv_sys_global_symbol_pipe="$AWK '"\
  6433. " {last_section=section; section=\$ 3};"\
  6434. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  6435. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  6436. " \$ 0!~/External *\|/{next};"\
  6437. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  6438. " {if(hide[section]) next};"\
  6439. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  6440. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  6441. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  6442. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  6443. " ' prfx=^$ac_symprfx"
  6444. else
  6445. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  6446. fi
  6447. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  6448. # Check to see that the pipe works correctly.
  6449. pipe_works=no
  6450. rm -f conftest*
  6451. cat > conftest.$ac_ext <<_LT_EOF
  6452. #ifdef __cplusplus
  6453. extern "C" {
  6454. #endif
  6455. char nm_test_var;
  6456. void nm_test_func(void);
  6457. void nm_test_func(void){}
  6458. #ifdef __cplusplus
  6459. }
  6460. #endif
  6461. int main(){nm_test_var='a';nm_test_func();return(0);}
  6462. _LT_EOF
  6463. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6464. (eval $ac_compile) 2>&5
  6465. ac_status=$?
  6466. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6467. test $ac_status = 0; }; then
  6468. # Now try to grab the symbols.
  6469. nlist=conftest.nm
  6470. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  6471. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  6472. ac_status=$?
  6473. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6474. test $ac_status = 0; } && test -s "$nlist"; then
  6475. # Try sorting and uniquifying the output.
  6476. if sort "$nlist" | uniq > "$nlist"T; then
  6477. mv -f "$nlist"T "$nlist"
  6478. else
  6479. rm -f "$nlist"T
  6480. fi
  6481. # Make sure that we snagged all the symbols we need.
  6482. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  6483. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  6484. cat <<_LT_EOF > conftest.$ac_ext
  6485. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  6486. #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  6487. /* DATA imports from DLLs on WIN32 con't be const, because runtime
  6488. relocations are performed -- see ld's documentation on pseudo-relocs. */
  6489. # define LT_DLSYM_CONST
  6490. #elif defined(__osf__)
  6491. /* This system does not cope well with relocations in const data. */
  6492. # define LT_DLSYM_CONST
  6493. #else
  6494. # define LT_DLSYM_CONST const
  6495. #endif
  6496. #ifdef __cplusplus
  6497. extern "C" {
  6498. #endif
  6499. _LT_EOF
  6500. # Now generate the symbol file.
  6501. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  6502. cat <<_LT_EOF >> conftest.$ac_ext
  6503. /* The mapping between symbol names and symbols. */
  6504. LT_DLSYM_CONST struct {
  6505. const char *name;
  6506. void *address;
  6507. }
  6508. lt__PROGRAM__LTX_preloaded_symbols[] =
  6509. {
  6510. { "@PROGRAM@", (void *) 0 },
  6511. _LT_EOF
  6512. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  6513. cat <<\_LT_EOF >> conftest.$ac_ext
  6514. {0, (void *) 0}
  6515. };
  6516. /* This works around a problem in FreeBSD linker */
  6517. #ifdef FREEBSD_WORKAROUND
  6518. static const void *lt_preloaded_setup() {
  6519. return lt__PROGRAM__LTX_preloaded_symbols;
  6520. }
  6521. #endif
  6522. #ifdef __cplusplus
  6523. }
  6524. #endif
  6525. _LT_EOF
  6526. # Now try linking the two files.
  6527. mv conftest.$ac_objext conftstm.$ac_objext
  6528. lt_globsym_save_LIBS=$LIBS
  6529. lt_globsym_save_CFLAGS=$CFLAGS
  6530. LIBS="conftstm.$ac_objext"
  6531. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  6532. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  6533. (eval $ac_link) 2>&5
  6534. ac_status=$?
  6535. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6536. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  6537. pipe_works=yes
  6538. fi
  6539. LIBS=$lt_globsym_save_LIBS
  6540. CFLAGS=$lt_globsym_save_CFLAGS
  6541. else
  6542. echo "cannot find nm_test_func in $nlist" >&5
  6543. fi
  6544. else
  6545. echo "cannot find nm_test_var in $nlist" >&5
  6546. fi
  6547. else
  6548. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  6549. fi
  6550. else
  6551. echo "$progname: failed program was:" >&5
  6552. cat conftest.$ac_ext >&5
  6553. fi
  6554. rm -rf conftest* conftst*
  6555. # Do not use the global_symbol_pipe unless it works.
  6556. if test "$pipe_works" = yes; then
  6557. break
  6558. else
  6559. lt_cv_sys_global_symbol_pipe=
  6560. fi
  6561. done
  6562. fi
  6563. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6564. lt_cv_sys_global_symbol_to_cdecl=
  6565. fi
  6566. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6567. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  6568. $as_echo "failed" >&6; }
  6569. else
  6570. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  6571. $as_echo "ok" >&6; }
  6572. fi
  6573. # Response file support.
  6574. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6575. nm_file_list_spec='@'
  6576. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  6577. nm_file_list_spec='@'
  6578. fi
  6579. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  6580. $as_echo_n "checking for sysroot... " >&6; }
  6581. # Check whether --with-sysroot was given.
  6582. if test "${with_sysroot+set}" = set; then :
  6583. withval=$with_sysroot;
  6584. else
  6585. with_sysroot=no
  6586. fi
  6587. lt_sysroot=
  6588. case ${with_sysroot} in #(
  6589. yes)
  6590. if test "$GCC" = yes; then
  6591. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  6592. fi
  6593. ;; #(
  6594. /*)
  6595. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  6596. ;; #(
  6597. no|'')
  6598. ;; #(
  6599. *)
  6600. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
  6601. $as_echo "${with_sysroot}" >&6; }
  6602. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  6603. ;;
  6604. esac
  6605. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  6606. $as_echo "${lt_sysroot:-no}" >&6; }
  6607. # Check whether --enable-libtool-lock was given.
  6608. if test "${enable_libtool_lock+set}" = set; then :
  6609. enableval=$enable_libtool_lock;
  6610. fi
  6611. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  6612. # Some flags need to be propagated to the compiler or linker for good
  6613. # libtool support.
  6614. case $host in
  6615. ia64-*-hpux*)
  6616. # Find out which ABI we are using.
  6617. echo 'int i;' > conftest.$ac_ext
  6618. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6619. (eval $ac_compile) 2>&5
  6620. ac_status=$?
  6621. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6622. test $ac_status = 0; }; then
  6623. case `/usr/bin/file conftest.$ac_objext` in
  6624. *ELF-32*)
  6625. HPUX_IA64_MODE="32"
  6626. ;;
  6627. *ELF-64*)
  6628. HPUX_IA64_MODE="64"
  6629. ;;
  6630. esac
  6631. fi
  6632. rm -rf conftest*
  6633. ;;
  6634. *-*-irix6*)
  6635. # Find out which ABI we are using.
  6636. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6637. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6638. (eval $ac_compile) 2>&5
  6639. ac_status=$?
  6640. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6641. test $ac_status = 0; }; then
  6642. if test "$lt_cv_prog_gnu_ld" = yes; then
  6643. case `/usr/bin/file conftest.$ac_objext` in
  6644. *32-bit*)
  6645. LD="${LD-ld} -melf32bsmip"
  6646. ;;
  6647. *N32*)
  6648. LD="${LD-ld} -melf32bmipn32"
  6649. ;;
  6650. *64-bit*)
  6651. LD="${LD-ld} -melf64bmip"
  6652. ;;
  6653. esac
  6654. else
  6655. case `/usr/bin/file conftest.$ac_objext` in
  6656. *32-bit*)
  6657. LD="${LD-ld} -32"
  6658. ;;
  6659. *N32*)
  6660. LD="${LD-ld} -n32"
  6661. ;;
  6662. *64-bit*)
  6663. LD="${LD-ld} -64"
  6664. ;;
  6665. esac
  6666. fi
  6667. fi
  6668. rm -rf conftest*
  6669. ;;
  6670. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  6671. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  6672. # Find out which ABI we are using.
  6673. echo 'int i;' > conftest.$ac_ext
  6674. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6675. (eval $ac_compile) 2>&5
  6676. ac_status=$?
  6677. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6678. test $ac_status = 0; }; then
  6679. case `/usr/bin/file conftest.o` in
  6680. *32-bit*)
  6681. case $host in
  6682. x86_64-*kfreebsd*-gnu)
  6683. LD="${LD-ld} -m elf_i386_fbsd"
  6684. ;;
  6685. x86_64-*linux*)
  6686. LD="${LD-ld} -m elf_i386"
  6687. ;;
  6688. powerpc64le-*linux*)
  6689. LD="${LD-ld} -m elf32lppclinux"
  6690. ;;
  6691. powerpc64-*linux*)
  6692. LD="${LD-ld} -m elf32ppclinux"
  6693. ;;
  6694. s390x-*linux*)
  6695. LD="${LD-ld} -m elf_s390"
  6696. ;;
  6697. sparc64-*linux*)
  6698. LD="${LD-ld} -m elf32_sparc"
  6699. ;;
  6700. esac
  6701. ;;
  6702. *64-bit*)
  6703. case $host in
  6704. x86_64-*kfreebsd*-gnu)
  6705. LD="${LD-ld} -m elf_x86_64_fbsd"
  6706. ;;
  6707. x86_64-*linux*)
  6708. LD="${LD-ld} -m elf_x86_64"
  6709. ;;
  6710. powerpcle-*linux*)
  6711. LD="${LD-ld} -m elf64lppc"
  6712. ;;
  6713. powerpc-*linux*)
  6714. LD="${LD-ld} -m elf64ppc"
  6715. ;;
  6716. s390*-*linux*|s390*-*tpf*)
  6717. LD="${LD-ld} -m elf64_s390"
  6718. ;;
  6719. sparc*-*linux*)
  6720. LD="${LD-ld} -m elf64_sparc"
  6721. ;;
  6722. esac
  6723. ;;
  6724. esac
  6725. fi
  6726. rm -rf conftest*
  6727. ;;
  6728. *-*-sco3.2v5*)
  6729. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6730. SAVE_CFLAGS="$CFLAGS"
  6731. CFLAGS="$CFLAGS -belf"
  6732. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  6733. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  6734. if ${lt_cv_cc_needs_belf+:} false; then :
  6735. $as_echo_n "(cached) " >&6
  6736. else
  6737. ac_ext=c
  6738. ac_cpp='$CPP $CPPFLAGS'
  6739. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6740. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6741. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6742. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6743. /* end confdefs.h. */
  6744. int
  6745. main ()
  6746. {
  6747. ;
  6748. return 0;
  6749. }
  6750. _ACEOF
  6751. if ac_fn_c_try_link "$LINENO"; then :
  6752. lt_cv_cc_needs_belf=yes
  6753. else
  6754. lt_cv_cc_needs_belf=no
  6755. fi
  6756. rm -f core conftest.err conftest.$ac_objext \
  6757. conftest$ac_exeext conftest.$ac_ext
  6758. ac_ext=c
  6759. ac_cpp='$CPP $CPPFLAGS'
  6760. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6761. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6762. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6763. fi
  6764. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  6765. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  6766. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  6767. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6768. CFLAGS="$SAVE_CFLAGS"
  6769. fi
  6770. ;;
  6771. *-*solaris*)
  6772. # Find out which ABI we are using.
  6773. echo 'int i;' > conftest.$ac_ext
  6774. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6775. (eval $ac_compile) 2>&5
  6776. ac_status=$?
  6777. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6778. test $ac_status = 0; }; then
  6779. case `/usr/bin/file conftest.o` in
  6780. *64-bit*)
  6781. case $lt_cv_prog_gnu_ld in
  6782. yes*)
  6783. case $host in
  6784. i?86-*-solaris*)
  6785. LD="${LD-ld} -m elf_x86_64"
  6786. ;;
  6787. sparc*-*-solaris*)
  6788. LD="${LD-ld} -m elf64_sparc"
  6789. ;;
  6790. esac
  6791. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  6792. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  6793. LD="${LD-ld}_sol2"
  6794. fi
  6795. ;;
  6796. *)
  6797. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6798. LD="${LD-ld} -64"
  6799. fi
  6800. ;;
  6801. esac
  6802. ;;
  6803. esac
  6804. fi
  6805. rm -rf conftest*
  6806. ;;
  6807. esac
  6808. need_locks="$enable_libtool_lock"
  6809. if test -n "$ac_tool_prefix"; then
  6810. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  6811. set dummy ${ac_tool_prefix}mt; ac_word=$2
  6812. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6813. $as_echo_n "checking for $ac_word... " >&6; }
  6814. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  6815. $as_echo_n "(cached) " >&6
  6816. else
  6817. if test -n "$MANIFEST_TOOL"; then
  6818. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  6819. else
  6820. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6821. for as_dir in $PATH
  6822. do
  6823. IFS=$as_save_IFS
  6824. test -z "$as_dir" && as_dir=.
  6825. for ac_exec_ext in '' $ac_executable_extensions; do
  6826. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6827. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  6828. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6829. break 2
  6830. fi
  6831. done
  6832. done
  6833. IFS=$as_save_IFS
  6834. fi
  6835. fi
  6836. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  6837. if test -n "$MANIFEST_TOOL"; then
  6838. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  6839. $as_echo "$MANIFEST_TOOL" >&6; }
  6840. else
  6841. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6842. $as_echo "no" >&6; }
  6843. fi
  6844. fi
  6845. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  6846. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  6847. # Extract the first word of "mt", so it can be a program name with args.
  6848. set dummy mt; ac_word=$2
  6849. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6850. $as_echo_n "checking for $ac_word... " >&6; }
  6851. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  6852. $as_echo_n "(cached) " >&6
  6853. else
  6854. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6855. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  6856. else
  6857. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6858. for as_dir in $PATH
  6859. do
  6860. IFS=$as_save_IFS
  6861. test -z "$as_dir" && as_dir=.
  6862. for ac_exec_ext in '' $ac_executable_extensions; do
  6863. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6864. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  6865. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6866. break 2
  6867. fi
  6868. done
  6869. done
  6870. IFS=$as_save_IFS
  6871. fi
  6872. fi
  6873. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  6874. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6875. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  6876. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  6877. else
  6878. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6879. $as_echo "no" >&6; }
  6880. fi
  6881. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  6882. MANIFEST_TOOL=":"
  6883. else
  6884. case $cross_compiling:$ac_tool_warned in
  6885. yes:)
  6886. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6887. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6888. ac_tool_warned=yes ;;
  6889. esac
  6890. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  6891. fi
  6892. else
  6893. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  6894. fi
  6895. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  6896. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  6897. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  6898. if ${lt_cv_path_mainfest_tool+:} false; then :
  6899. $as_echo_n "(cached) " >&6
  6900. else
  6901. lt_cv_path_mainfest_tool=no
  6902. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  6903. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  6904. cat conftest.err >&5
  6905. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  6906. lt_cv_path_mainfest_tool=yes
  6907. fi
  6908. rm -f conftest*
  6909. fi
  6910. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  6911. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  6912. if test "x$lt_cv_path_mainfest_tool" != xyes; then
  6913. MANIFEST_TOOL=:
  6914. fi
  6915. case $host_os in
  6916. rhapsody* | darwin*)
  6917. if test -n "$ac_tool_prefix"; then
  6918. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6919. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6920. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6921. $as_echo_n "checking for $ac_word... " >&6; }
  6922. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  6923. $as_echo_n "(cached) " >&6
  6924. else
  6925. if test -n "$DSYMUTIL"; then
  6926. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6927. else
  6928. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6929. for as_dir in $PATH
  6930. do
  6931. IFS=$as_save_IFS
  6932. test -z "$as_dir" && as_dir=.
  6933. for ac_exec_ext in '' $ac_executable_extensions; do
  6934. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6935. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6936. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6937. break 2
  6938. fi
  6939. done
  6940. done
  6941. IFS=$as_save_IFS
  6942. fi
  6943. fi
  6944. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6945. if test -n "$DSYMUTIL"; then
  6946. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  6947. $as_echo "$DSYMUTIL" >&6; }
  6948. else
  6949. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6950. $as_echo "no" >&6; }
  6951. fi
  6952. fi
  6953. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6954. ac_ct_DSYMUTIL=$DSYMUTIL
  6955. # Extract the first word of "dsymutil", so it can be a program name with args.
  6956. set dummy dsymutil; ac_word=$2
  6957. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6958. $as_echo_n "checking for $ac_word... " >&6; }
  6959. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  6960. $as_echo_n "(cached) " >&6
  6961. else
  6962. if test -n "$ac_ct_DSYMUTIL"; then
  6963. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6964. else
  6965. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6966. for as_dir in $PATH
  6967. do
  6968. IFS=$as_save_IFS
  6969. test -z "$as_dir" && as_dir=.
  6970. for ac_exec_ext in '' $ac_executable_extensions; do
  6971. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6972. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6973. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6974. break 2
  6975. fi
  6976. done
  6977. done
  6978. IFS=$as_save_IFS
  6979. fi
  6980. fi
  6981. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6982. if test -n "$ac_ct_DSYMUTIL"; then
  6983. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  6984. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  6985. else
  6986. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6987. $as_echo "no" >&6; }
  6988. fi
  6989. if test "x$ac_ct_DSYMUTIL" = x; then
  6990. DSYMUTIL=":"
  6991. else
  6992. case $cross_compiling:$ac_tool_warned in
  6993. yes:)
  6994. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6995. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6996. ac_tool_warned=yes ;;
  6997. esac
  6998. DSYMUTIL=$ac_ct_DSYMUTIL
  6999. fi
  7000. else
  7001. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  7002. fi
  7003. if test -n "$ac_tool_prefix"; then
  7004. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  7005. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  7006. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7007. $as_echo_n "checking for $ac_word... " >&6; }
  7008. if ${ac_cv_prog_NMEDIT+:} false; then :
  7009. $as_echo_n "(cached) " >&6
  7010. else
  7011. if test -n "$NMEDIT"; then
  7012. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  7013. else
  7014. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7015. for as_dir in $PATH
  7016. do
  7017. IFS=$as_save_IFS
  7018. test -z "$as_dir" && as_dir=.
  7019. for ac_exec_ext in '' $ac_executable_extensions; do
  7020. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7021. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  7022. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7023. break 2
  7024. fi
  7025. done
  7026. done
  7027. IFS=$as_save_IFS
  7028. fi
  7029. fi
  7030. NMEDIT=$ac_cv_prog_NMEDIT
  7031. if test -n "$NMEDIT"; then
  7032. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  7033. $as_echo "$NMEDIT" >&6; }
  7034. else
  7035. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7036. $as_echo "no" >&6; }
  7037. fi
  7038. fi
  7039. if test -z "$ac_cv_prog_NMEDIT"; then
  7040. ac_ct_NMEDIT=$NMEDIT
  7041. # Extract the first word of "nmedit", so it can be a program name with args.
  7042. set dummy nmedit; ac_word=$2
  7043. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7044. $as_echo_n "checking for $ac_word... " >&6; }
  7045. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  7046. $as_echo_n "(cached) " >&6
  7047. else
  7048. if test -n "$ac_ct_NMEDIT"; then
  7049. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  7050. else
  7051. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7052. for as_dir in $PATH
  7053. do
  7054. IFS=$as_save_IFS
  7055. test -z "$as_dir" && as_dir=.
  7056. for ac_exec_ext in '' $ac_executable_extensions; do
  7057. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7058. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  7059. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7060. break 2
  7061. fi
  7062. done
  7063. done
  7064. IFS=$as_save_IFS
  7065. fi
  7066. fi
  7067. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  7068. if test -n "$ac_ct_NMEDIT"; then
  7069. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  7070. $as_echo "$ac_ct_NMEDIT" >&6; }
  7071. else
  7072. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7073. $as_echo "no" >&6; }
  7074. fi
  7075. if test "x$ac_ct_NMEDIT" = x; then
  7076. NMEDIT=":"
  7077. else
  7078. case $cross_compiling:$ac_tool_warned in
  7079. yes:)
  7080. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7081. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7082. ac_tool_warned=yes ;;
  7083. esac
  7084. NMEDIT=$ac_ct_NMEDIT
  7085. fi
  7086. else
  7087. NMEDIT="$ac_cv_prog_NMEDIT"
  7088. fi
  7089. if test -n "$ac_tool_prefix"; then
  7090. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  7091. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  7092. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7093. $as_echo_n "checking for $ac_word... " >&6; }
  7094. if ${ac_cv_prog_LIPO+:} false; then :
  7095. $as_echo_n "(cached) " >&6
  7096. else
  7097. if test -n "$LIPO"; then
  7098. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  7099. else
  7100. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7101. for as_dir in $PATH
  7102. do
  7103. IFS=$as_save_IFS
  7104. test -z "$as_dir" && as_dir=.
  7105. for ac_exec_ext in '' $ac_executable_extensions; do
  7106. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7107. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  7108. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7109. break 2
  7110. fi
  7111. done
  7112. done
  7113. IFS=$as_save_IFS
  7114. fi
  7115. fi
  7116. LIPO=$ac_cv_prog_LIPO
  7117. if test -n "$LIPO"; then
  7118. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  7119. $as_echo "$LIPO" >&6; }
  7120. else
  7121. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7122. $as_echo "no" >&6; }
  7123. fi
  7124. fi
  7125. if test -z "$ac_cv_prog_LIPO"; then
  7126. ac_ct_LIPO=$LIPO
  7127. # Extract the first word of "lipo", so it can be a program name with args.
  7128. set dummy lipo; ac_word=$2
  7129. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7130. $as_echo_n "checking for $ac_word... " >&6; }
  7131. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  7132. $as_echo_n "(cached) " >&6
  7133. else
  7134. if test -n "$ac_ct_LIPO"; then
  7135. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  7136. else
  7137. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7138. for as_dir in $PATH
  7139. do
  7140. IFS=$as_save_IFS
  7141. test -z "$as_dir" && as_dir=.
  7142. for ac_exec_ext in '' $ac_executable_extensions; do
  7143. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7144. ac_cv_prog_ac_ct_LIPO="lipo"
  7145. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7146. break 2
  7147. fi
  7148. done
  7149. done
  7150. IFS=$as_save_IFS
  7151. fi
  7152. fi
  7153. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  7154. if test -n "$ac_ct_LIPO"; then
  7155. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  7156. $as_echo "$ac_ct_LIPO" >&6; }
  7157. else
  7158. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7159. $as_echo "no" >&6; }
  7160. fi
  7161. if test "x$ac_ct_LIPO" = x; then
  7162. LIPO=":"
  7163. else
  7164. case $cross_compiling:$ac_tool_warned in
  7165. yes:)
  7166. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7167. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7168. ac_tool_warned=yes ;;
  7169. esac
  7170. LIPO=$ac_ct_LIPO
  7171. fi
  7172. else
  7173. LIPO="$ac_cv_prog_LIPO"
  7174. fi
  7175. if test -n "$ac_tool_prefix"; then
  7176. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  7177. set dummy ${ac_tool_prefix}otool; ac_word=$2
  7178. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7179. $as_echo_n "checking for $ac_word... " >&6; }
  7180. if ${ac_cv_prog_OTOOL+:} false; then :
  7181. $as_echo_n "(cached) " >&6
  7182. else
  7183. if test -n "$OTOOL"; then
  7184. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  7185. else
  7186. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7187. for as_dir in $PATH
  7188. do
  7189. IFS=$as_save_IFS
  7190. test -z "$as_dir" && as_dir=.
  7191. for ac_exec_ext in '' $ac_executable_extensions; do
  7192. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7193. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  7194. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7195. break 2
  7196. fi
  7197. done
  7198. done
  7199. IFS=$as_save_IFS
  7200. fi
  7201. fi
  7202. OTOOL=$ac_cv_prog_OTOOL
  7203. if test -n "$OTOOL"; then
  7204. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  7205. $as_echo "$OTOOL" >&6; }
  7206. else
  7207. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7208. $as_echo "no" >&6; }
  7209. fi
  7210. fi
  7211. if test -z "$ac_cv_prog_OTOOL"; then
  7212. ac_ct_OTOOL=$OTOOL
  7213. # Extract the first word of "otool", so it can be a program name with args.
  7214. set dummy otool; ac_word=$2
  7215. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7216. $as_echo_n "checking for $ac_word... " >&6; }
  7217. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  7218. $as_echo_n "(cached) " >&6
  7219. else
  7220. if test -n "$ac_ct_OTOOL"; then
  7221. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  7222. else
  7223. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7224. for as_dir in $PATH
  7225. do
  7226. IFS=$as_save_IFS
  7227. test -z "$as_dir" && as_dir=.
  7228. for ac_exec_ext in '' $ac_executable_extensions; do
  7229. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7230. ac_cv_prog_ac_ct_OTOOL="otool"
  7231. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7232. break 2
  7233. fi
  7234. done
  7235. done
  7236. IFS=$as_save_IFS
  7237. fi
  7238. fi
  7239. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  7240. if test -n "$ac_ct_OTOOL"; then
  7241. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  7242. $as_echo "$ac_ct_OTOOL" >&6; }
  7243. else
  7244. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7245. $as_echo "no" >&6; }
  7246. fi
  7247. if test "x$ac_ct_OTOOL" = x; then
  7248. OTOOL=":"
  7249. else
  7250. case $cross_compiling:$ac_tool_warned in
  7251. yes:)
  7252. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7253. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7254. ac_tool_warned=yes ;;
  7255. esac
  7256. OTOOL=$ac_ct_OTOOL
  7257. fi
  7258. else
  7259. OTOOL="$ac_cv_prog_OTOOL"
  7260. fi
  7261. if test -n "$ac_tool_prefix"; then
  7262. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  7263. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  7264. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7265. $as_echo_n "checking for $ac_word... " >&6; }
  7266. if ${ac_cv_prog_OTOOL64+:} false; then :
  7267. $as_echo_n "(cached) " >&6
  7268. else
  7269. if test -n "$OTOOL64"; then
  7270. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  7271. else
  7272. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7273. for as_dir in $PATH
  7274. do
  7275. IFS=$as_save_IFS
  7276. test -z "$as_dir" && as_dir=.
  7277. for ac_exec_ext in '' $ac_executable_extensions; do
  7278. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7279. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  7280. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7281. break 2
  7282. fi
  7283. done
  7284. done
  7285. IFS=$as_save_IFS
  7286. fi
  7287. fi
  7288. OTOOL64=$ac_cv_prog_OTOOL64
  7289. if test -n "$OTOOL64"; then
  7290. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  7291. $as_echo "$OTOOL64" >&6; }
  7292. else
  7293. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7294. $as_echo "no" >&6; }
  7295. fi
  7296. fi
  7297. if test -z "$ac_cv_prog_OTOOL64"; then
  7298. ac_ct_OTOOL64=$OTOOL64
  7299. # Extract the first word of "otool64", so it can be a program name with args.
  7300. set dummy otool64; ac_word=$2
  7301. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7302. $as_echo_n "checking for $ac_word... " >&6; }
  7303. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  7304. $as_echo_n "(cached) " >&6
  7305. else
  7306. if test -n "$ac_ct_OTOOL64"; then
  7307. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  7308. else
  7309. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7310. for as_dir in $PATH
  7311. do
  7312. IFS=$as_save_IFS
  7313. test -z "$as_dir" && as_dir=.
  7314. for ac_exec_ext in '' $ac_executable_extensions; do
  7315. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7316. ac_cv_prog_ac_ct_OTOOL64="otool64"
  7317. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7318. break 2
  7319. fi
  7320. done
  7321. done
  7322. IFS=$as_save_IFS
  7323. fi
  7324. fi
  7325. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  7326. if test -n "$ac_ct_OTOOL64"; then
  7327. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  7328. $as_echo "$ac_ct_OTOOL64" >&6; }
  7329. else
  7330. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7331. $as_echo "no" >&6; }
  7332. fi
  7333. if test "x$ac_ct_OTOOL64" = x; then
  7334. OTOOL64=":"
  7335. else
  7336. case $cross_compiling:$ac_tool_warned in
  7337. yes:)
  7338. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7339. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7340. ac_tool_warned=yes ;;
  7341. esac
  7342. OTOOL64=$ac_ct_OTOOL64
  7343. fi
  7344. else
  7345. OTOOL64="$ac_cv_prog_OTOOL64"
  7346. fi
  7347. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  7348. $as_echo_n "checking for -single_module linker flag... " >&6; }
  7349. if ${lt_cv_apple_cc_single_mod+:} false; then :
  7350. $as_echo_n "(cached) " >&6
  7351. else
  7352. lt_cv_apple_cc_single_mod=no
  7353. if test -z "${LT_MULTI_MODULE}"; then
  7354. # By default we will add the -single_module flag. You can override
  7355. # by either setting the environment variable LT_MULTI_MODULE
  7356. # non-empty at configure time, or by adding -multi_module to the
  7357. # link flags.
  7358. rm -rf libconftest.dylib*
  7359. echo "int foo(void){return 1;}" > conftest.c
  7360. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7361. -dynamiclib -Wl,-single_module conftest.c" >&5
  7362. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7363. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  7364. _lt_result=$?
  7365. # If there is a non-empty error log, and "single_module"
  7366. # appears in it, assume the flag caused a linker warning
  7367. if test -s conftest.err && $GREP single_module conftest.err; then
  7368. cat conftest.err >&5
  7369. # Otherwise, if the output was created with a 0 exit code from
  7370. # the compiler, it worked.
  7371. elif test -f libconftest.dylib && test $_lt_result -eq 0; then
  7372. lt_cv_apple_cc_single_mod=yes
  7373. else
  7374. cat conftest.err >&5
  7375. fi
  7376. rm -rf libconftest.dylib*
  7377. rm -f conftest.*
  7378. fi
  7379. fi
  7380. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  7381. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  7382. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  7383. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  7384. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  7385. $as_echo_n "(cached) " >&6
  7386. else
  7387. lt_cv_ld_exported_symbols_list=no
  7388. save_LDFLAGS=$LDFLAGS
  7389. echo "_main" > conftest.sym
  7390. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  7391. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7392. /* end confdefs.h. */
  7393. int
  7394. main ()
  7395. {
  7396. ;
  7397. return 0;
  7398. }
  7399. _ACEOF
  7400. if ac_fn_c_try_link "$LINENO"; then :
  7401. lt_cv_ld_exported_symbols_list=yes
  7402. else
  7403. lt_cv_ld_exported_symbols_list=no
  7404. fi
  7405. rm -f core conftest.err conftest.$ac_objext \
  7406. conftest$ac_exeext conftest.$ac_ext
  7407. LDFLAGS="$save_LDFLAGS"
  7408. fi
  7409. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  7410. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  7411. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  7412. $as_echo_n "checking for -force_load linker flag... " >&6; }
  7413. if ${lt_cv_ld_force_load+:} false; then :
  7414. $as_echo_n "(cached) " >&6
  7415. else
  7416. lt_cv_ld_force_load=no
  7417. cat > conftest.c << _LT_EOF
  7418. int forced_loaded() { return 2;}
  7419. _LT_EOF
  7420. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  7421. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  7422. echo "$AR cru libconftest.a conftest.o" >&5
  7423. $AR cru libconftest.a conftest.o 2>&5
  7424. echo "$RANLIB libconftest.a" >&5
  7425. $RANLIB libconftest.a 2>&5
  7426. cat > conftest.c << _LT_EOF
  7427. int main() { return 0;}
  7428. _LT_EOF
  7429. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  7430. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  7431. _lt_result=$?
  7432. if test -s conftest.err && $GREP force_load conftest.err; then
  7433. cat conftest.err >&5
  7434. elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
  7435. lt_cv_ld_force_load=yes
  7436. else
  7437. cat conftest.err >&5
  7438. fi
  7439. rm -f conftest.err libconftest.a conftest conftest.c
  7440. rm -rf conftest.dSYM
  7441. fi
  7442. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  7443. $as_echo "$lt_cv_ld_force_load" >&6; }
  7444. case $host_os in
  7445. rhapsody* | darwin1.[012])
  7446. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  7447. darwin1.*)
  7448. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  7449. darwin*) # darwin 5.x on
  7450. # if running on 10.5 or later, the deployment target defaults
  7451. # to the OS version, if on x86, and 10.4, the deployment
  7452. # target defaults to 10.4. Don't you love it?
  7453. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  7454. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  7455. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  7456. 10.[012]*)
  7457. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  7458. 10.*)
  7459. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  7460. esac
  7461. ;;
  7462. esac
  7463. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  7464. _lt_dar_single_mod='$single_module'
  7465. fi
  7466. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  7467. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  7468. else
  7469. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  7470. fi
  7471. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  7472. _lt_dsymutil='~$DSYMUTIL $lib || :'
  7473. else
  7474. _lt_dsymutil=
  7475. fi
  7476. ;;
  7477. esac
  7478. ac_ext=c
  7479. ac_cpp='$CPP $CPPFLAGS'
  7480. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7481. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7482. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7483. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  7484. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  7485. # On Suns, sometimes $CPP names a directory.
  7486. if test -n "$CPP" && test -d "$CPP"; then
  7487. CPP=
  7488. fi
  7489. if test -z "$CPP"; then
  7490. if ${ac_cv_prog_CPP+:} false; then :
  7491. $as_echo_n "(cached) " >&6
  7492. else
  7493. # Double quotes because CPP needs to be expanded
  7494. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  7495. do
  7496. ac_preproc_ok=false
  7497. for ac_c_preproc_warn_flag in '' yes
  7498. do
  7499. # Use a header file that comes with gcc, so configuring glibc
  7500. # with a fresh cross-compiler works.
  7501. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7502. # <limits.h> exists even on freestanding compilers.
  7503. # On the NeXT, cc -E runs the code through the compiler's parser,
  7504. # not just through cpp. "Syntax error" is here to catch this case.
  7505. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7506. /* end confdefs.h. */
  7507. #ifdef __STDC__
  7508. # include <limits.h>
  7509. #else
  7510. # include <assert.h>
  7511. #endif
  7512. Syntax error
  7513. _ACEOF
  7514. if ac_fn_c_try_cpp "$LINENO"; then :
  7515. else
  7516. # Broken: fails on valid input.
  7517. continue
  7518. fi
  7519. rm -f conftest.err conftest.i conftest.$ac_ext
  7520. # OK, works on sane cases. Now check whether nonexistent headers
  7521. # can be detected and how.
  7522. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7523. /* end confdefs.h. */
  7524. #include <ac_nonexistent.h>
  7525. _ACEOF
  7526. if ac_fn_c_try_cpp "$LINENO"; then :
  7527. # Broken: success on invalid input.
  7528. continue
  7529. else
  7530. # Passes both tests.
  7531. ac_preproc_ok=:
  7532. break
  7533. fi
  7534. rm -f conftest.err conftest.i conftest.$ac_ext
  7535. done
  7536. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  7537. rm -f conftest.i conftest.err conftest.$ac_ext
  7538. if $ac_preproc_ok; then :
  7539. break
  7540. fi
  7541. done
  7542. ac_cv_prog_CPP=$CPP
  7543. fi
  7544. CPP=$ac_cv_prog_CPP
  7545. else
  7546. ac_cv_prog_CPP=$CPP
  7547. fi
  7548. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  7549. $as_echo "$CPP" >&6; }
  7550. ac_preproc_ok=false
  7551. for ac_c_preproc_warn_flag in '' yes
  7552. do
  7553. # Use a header file that comes with gcc, so configuring glibc
  7554. # with a fresh cross-compiler works.
  7555. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7556. # <limits.h> exists even on freestanding compilers.
  7557. # On the NeXT, cc -E runs the code through the compiler's parser,
  7558. # not just through cpp. "Syntax error" is here to catch this case.
  7559. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7560. /* end confdefs.h. */
  7561. #ifdef __STDC__
  7562. # include <limits.h>
  7563. #else
  7564. # include <assert.h>
  7565. #endif
  7566. Syntax error
  7567. _ACEOF
  7568. if ac_fn_c_try_cpp "$LINENO"; then :
  7569. else
  7570. # Broken: fails on valid input.
  7571. continue
  7572. fi
  7573. rm -f conftest.err conftest.i conftest.$ac_ext
  7574. # OK, works on sane cases. Now check whether nonexistent headers
  7575. # can be detected and how.
  7576. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7577. /* end confdefs.h. */
  7578. #include <ac_nonexistent.h>
  7579. _ACEOF
  7580. if ac_fn_c_try_cpp "$LINENO"; then :
  7581. # Broken: success on invalid input.
  7582. continue
  7583. else
  7584. # Passes both tests.
  7585. ac_preproc_ok=:
  7586. break
  7587. fi
  7588. rm -f conftest.err conftest.i conftest.$ac_ext
  7589. done
  7590. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  7591. rm -f conftest.i conftest.err conftest.$ac_ext
  7592. if $ac_preproc_ok; then :
  7593. else
  7594. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  7595. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  7596. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  7597. See \`config.log' for more details" "$LINENO" 5; }
  7598. fi
  7599. ac_ext=c
  7600. ac_cpp='$CPP $CPPFLAGS'
  7601. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7602. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7603. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7604. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  7605. $as_echo_n "checking for ANSI C header files... " >&6; }
  7606. if ${ac_cv_header_stdc+:} false; then :
  7607. $as_echo_n "(cached) " >&6
  7608. else
  7609. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7610. /* end confdefs.h. */
  7611. #include <stdlib.h>
  7612. #include <stdarg.h>
  7613. #include <string.h>
  7614. #include <float.h>
  7615. int
  7616. main ()
  7617. {
  7618. ;
  7619. return 0;
  7620. }
  7621. _ACEOF
  7622. if ac_fn_c_try_compile "$LINENO"; then :
  7623. ac_cv_header_stdc=yes
  7624. else
  7625. ac_cv_header_stdc=no
  7626. fi
  7627. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7628. if test $ac_cv_header_stdc = yes; then
  7629. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  7630. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7631. /* end confdefs.h. */
  7632. #include <string.h>
  7633. _ACEOF
  7634. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7635. $EGREP "memchr" >/dev/null 2>&1; then :
  7636. else
  7637. ac_cv_header_stdc=no
  7638. fi
  7639. rm -f conftest*
  7640. fi
  7641. if test $ac_cv_header_stdc = yes; then
  7642. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  7643. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7644. /* end confdefs.h. */
  7645. #include <stdlib.h>
  7646. _ACEOF
  7647. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7648. $EGREP "free" >/dev/null 2>&1; then :
  7649. else
  7650. ac_cv_header_stdc=no
  7651. fi
  7652. rm -f conftest*
  7653. fi
  7654. if test $ac_cv_header_stdc = yes; then
  7655. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  7656. if test "$cross_compiling" = yes; then :
  7657. :
  7658. else
  7659. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7660. /* end confdefs.h. */
  7661. #include <ctype.h>
  7662. #include <stdlib.h>
  7663. #if ((' ' & 0x0FF) == 0x020)
  7664. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  7665. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  7666. #else
  7667. # define ISLOWER(c) \
  7668. (('a' <= (c) && (c) <= 'i') \
  7669. || ('j' <= (c) && (c) <= 'r') \
  7670. || ('s' <= (c) && (c) <= 'z'))
  7671. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  7672. #endif
  7673. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  7674. int
  7675. main ()
  7676. {
  7677. int i;
  7678. for (i = 0; i < 256; i++)
  7679. if (XOR (islower (i), ISLOWER (i))
  7680. || toupper (i) != TOUPPER (i))
  7681. return 2;
  7682. return 0;
  7683. }
  7684. _ACEOF
  7685. if ac_fn_c_try_run "$LINENO"; then :
  7686. else
  7687. ac_cv_header_stdc=no
  7688. fi
  7689. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  7690. conftest.$ac_objext conftest.beam conftest.$ac_ext
  7691. fi
  7692. fi
  7693. fi
  7694. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  7695. $as_echo "$ac_cv_header_stdc" >&6; }
  7696. if test $ac_cv_header_stdc = yes; then
  7697. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  7698. fi
  7699. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  7700. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  7701. inttypes.h stdint.h unistd.h
  7702. do :
  7703. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7704. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  7705. "
  7706. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  7707. cat >>confdefs.h <<_ACEOF
  7708. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7709. _ACEOF
  7710. fi
  7711. done
  7712. for ac_header in dlfcn.h
  7713. do :
  7714. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  7715. "
  7716. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  7717. cat >>confdefs.h <<_ACEOF
  7718. #define HAVE_DLFCN_H 1
  7719. _ACEOF
  7720. fi
  7721. done
  7722. func_stripname_cnf ()
  7723. {
  7724. case ${2} in
  7725. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  7726. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  7727. esac
  7728. } # func_stripname_cnf
  7729. # Set options
  7730. enable_dlopen=no
  7731. enable_win32_dll=no
  7732. # Check whether --enable-shared was given.
  7733. if test "${enable_shared+set}" = set; then :
  7734. enableval=$enable_shared; p=${PACKAGE-default}
  7735. case $enableval in
  7736. yes) enable_shared=yes ;;
  7737. no) enable_shared=no ;;
  7738. *)
  7739. enable_shared=no
  7740. # Look at the argument we got. We use all the common list separators.
  7741. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7742. for pkg in $enableval; do
  7743. IFS="$lt_save_ifs"
  7744. if test "X$pkg" = "X$p"; then
  7745. enable_shared=yes
  7746. fi
  7747. done
  7748. IFS="$lt_save_ifs"
  7749. ;;
  7750. esac
  7751. else
  7752. enable_shared=yes
  7753. fi
  7754. # Check whether --with-pic was given.
  7755. if test "${with_pic+set}" = set; then :
  7756. withval=$with_pic; lt_p=${PACKAGE-default}
  7757. case $withval in
  7758. yes|no) pic_mode=$withval ;;
  7759. *)
  7760. pic_mode=default
  7761. # Look at the argument we got. We use all the common list separators.
  7762. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7763. for lt_pkg in $withval; do
  7764. IFS="$lt_save_ifs"
  7765. if test "X$lt_pkg" = "X$lt_p"; then
  7766. pic_mode=yes
  7767. fi
  7768. done
  7769. IFS="$lt_save_ifs"
  7770. ;;
  7771. esac
  7772. else
  7773. pic_mode=default
  7774. fi
  7775. test -z "$pic_mode" && pic_mode=default
  7776. # Check whether --enable-fast-install was given.
  7777. if test "${enable_fast_install+set}" = set; then :
  7778. enableval=$enable_fast_install; p=${PACKAGE-default}
  7779. case $enableval in
  7780. yes) enable_fast_install=yes ;;
  7781. no) enable_fast_install=no ;;
  7782. *)
  7783. enable_fast_install=no
  7784. # Look at the argument we got. We use all the common list separators.
  7785. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7786. for pkg in $enableval; do
  7787. IFS="$lt_save_ifs"
  7788. if test "X$pkg" = "X$p"; then
  7789. enable_fast_install=yes
  7790. fi
  7791. done
  7792. IFS="$lt_save_ifs"
  7793. ;;
  7794. esac
  7795. else
  7796. enable_fast_install=yes
  7797. fi
  7798. # This can be used to rebuild libtool when needed
  7799. LIBTOOL_DEPS="$ltmain"
  7800. # Always use our own libtool.
  7801. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7802. test -z "$LN_S" && LN_S="ln -s"
  7803. if test -n "${ZSH_VERSION+set}" ; then
  7804. setopt NO_GLOB_SUBST
  7805. fi
  7806. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7807. $as_echo_n "checking for objdir... " >&6; }
  7808. if ${lt_cv_objdir+:} false; then :
  7809. $as_echo_n "(cached) " >&6
  7810. else
  7811. rm -f .libs 2>/dev/null
  7812. mkdir .libs 2>/dev/null
  7813. if test -d .libs; then
  7814. lt_cv_objdir=.libs
  7815. else
  7816. # MS-DOS does not allow filenames that begin with a dot.
  7817. lt_cv_objdir=_libs
  7818. fi
  7819. rmdir .libs 2>/dev/null
  7820. fi
  7821. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7822. $as_echo "$lt_cv_objdir" >&6; }
  7823. objdir=$lt_cv_objdir
  7824. cat >>confdefs.h <<_ACEOF
  7825. #define LT_OBJDIR "$lt_cv_objdir/"
  7826. _ACEOF
  7827. case $host_os in
  7828. aix3*)
  7829. # AIX sometimes has problems with the GCC collect2 program. For some
  7830. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7831. # vanish in a puff of smoke.
  7832. if test "X${COLLECT_NAMES+set}" != Xset; then
  7833. COLLECT_NAMES=
  7834. export COLLECT_NAMES
  7835. fi
  7836. ;;
  7837. esac
  7838. # Global variables:
  7839. ofile=libtool
  7840. can_build_shared=yes
  7841. # All known linkers require a `.a' archive for static linking (except MSVC,
  7842. # which needs '.lib').
  7843. libext=a
  7844. with_gnu_ld="$lt_cv_prog_gnu_ld"
  7845. old_CC="$CC"
  7846. old_CFLAGS="$CFLAGS"
  7847. # Set sane defaults for various variables
  7848. test -z "$CC" && CC=cc
  7849. test -z "$LTCC" && LTCC=$CC
  7850. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7851. test -z "$LD" && LD=ld
  7852. test -z "$ac_objext" && ac_objext=o
  7853. for cc_temp in $compiler""; do
  7854. case $cc_temp in
  7855. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  7856. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  7857. \-*) ;;
  7858. *) break;;
  7859. esac
  7860. done
  7861. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  7862. # Only perform the check for file, if the check method requires it
  7863. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7864. case $deplibs_check_method in
  7865. file_magic*)
  7866. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7867. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7868. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  7869. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7870. $as_echo_n "(cached) " >&6
  7871. else
  7872. case $MAGIC_CMD in
  7873. [\\/*] | ?:[\\/]*)
  7874. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7875. ;;
  7876. *)
  7877. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7878. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7879. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7880. for ac_dir in $ac_dummy; do
  7881. IFS="$lt_save_ifs"
  7882. test -z "$ac_dir" && ac_dir=.
  7883. if test -f $ac_dir/${ac_tool_prefix}file; then
  7884. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  7885. if test -n "$file_magic_test_file"; then
  7886. case $deplibs_check_method in
  7887. "file_magic "*)
  7888. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7889. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7890. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7891. $EGREP "$file_magic_regex" > /dev/null; then
  7892. :
  7893. else
  7894. cat <<_LT_EOF 1>&2
  7895. *** Warning: the command libtool uses to detect shared libraries,
  7896. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7897. *** The result is that libtool may fail to recognize shared libraries
  7898. *** as such. This will affect the creation of libtool libraries that
  7899. *** depend on shared libraries, but programs linked with such libtool
  7900. *** libraries will work regardless of this problem. Nevertheless, you
  7901. *** may want to report the problem to your system manager and/or to
  7902. *** [email protected]
  7903. _LT_EOF
  7904. fi ;;
  7905. esac
  7906. fi
  7907. break
  7908. fi
  7909. done
  7910. IFS="$lt_save_ifs"
  7911. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7912. ;;
  7913. esac
  7914. fi
  7915. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7916. if test -n "$MAGIC_CMD"; then
  7917. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7918. $as_echo "$MAGIC_CMD" >&6; }
  7919. else
  7920. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7921. $as_echo "no" >&6; }
  7922. fi
  7923. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7924. if test -n "$ac_tool_prefix"; then
  7925. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7926. $as_echo_n "checking for file... " >&6; }
  7927. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7928. $as_echo_n "(cached) " >&6
  7929. else
  7930. case $MAGIC_CMD in
  7931. [\\/*] | ?:[\\/]*)
  7932. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7933. ;;
  7934. *)
  7935. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7936. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7937. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7938. for ac_dir in $ac_dummy; do
  7939. IFS="$lt_save_ifs"
  7940. test -z "$ac_dir" && ac_dir=.
  7941. if test -f $ac_dir/file; then
  7942. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  7943. if test -n "$file_magic_test_file"; then
  7944. case $deplibs_check_method in
  7945. "file_magic "*)
  7946. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7947. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7948. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7949. $EGREP "$file_magic_regex" > /dev/null; then
  7950. :
  7951. else
  7952. cat <<_LT_EOF 1>&2
  7953. *** Warning: the command libtool uses to detect shared libraries,
  7954. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7955. *** The result is that libtool may fail to recognize shared libraries
  7956. *** as such. This will affect the creation of libtool libraries that
  7957. *** depend on shared libraries, but programs linked with such libtool
  7958. *** libraries will work regardless of this problem. Nevertheless, you
  7959. *** may want to report the problem to your system manager and/or to
  7960. *** [email protected]
  7961. _LT_EOF
  7962. fi ;;
  7963. esac
  7964. fi
  7965. break
  7966. fi
  7967. done
  7968. IFS="$lt_save_ifs"
  7969. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7970. ;;
  7971. esac
  7972. fi
  7973. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7974. if test -n "$MAGIC_CMD"; then
  7975. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7976. $as_echo "$MAGIC_CMD" >&6; }
  7977. else
  7978. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7979. $as_echo "no" >&6; }
  7980. fi
  7981. else
  7982. MAGIC_CMD=:
  7983. fi
  7984. fi
  7985. fi
  7986. ;;
  7987. esac
  7988. # Use C for the default configuration in the libtool script
  7989. lt_save_CC="$CC"
  7990. ac_ext=c
  7991. ac_cpp='$CPP $CPPFLAGS'
  7992. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7993. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7994. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7995. # Source file extension for C test sources.
  7996. ac_ext=c
  7997. # Object file extension for compiled C test sources.
  7998. objext=o
  7999. objext=$objext
  8000. # Code to be used in simple compile tests
  8001. lt_simple_compile_test_code="int some_variable = 0;"
  8002. # Code to be used in simple link tests
  8003. lt_simple_link_test_code='int main(){return(0);}'
  8004. # If no C compiler was specified, use CC.
  8005. LTCC=${LTCC-"$CC"}
  8006. # If no C compiler flags were specified, use CFLAGS.
  8007. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  8008. # Allow CC to be a program name with arguments.
  8009. compiler=$CC
  8010. # Save the default compiler, since it gets overwritten when the other
  8011. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  8012. compiler_DEFAULT=$CC
  8013. # save warnings/boilerplate of simple test code
  8014. ac_outfile=conftest.$ac_objext
  8015. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  8016. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  8017. _lt_compiler_boilerplate=`cat conftest.err`
  8018. $RM conftest*
  8019. ac_outfile=conftest.$ac_objext
  8020. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  8021. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  8022. _lt_linker_boilerplate=`cat conftest.err`
  8023. $RM -r conftest*
  8024. ## CAVEAT EMPTOR:
  8025. ## There is no encapsulation within the following macros, do not change
  8026. ## the running order or otherwise move them around unless you know exactly
  8027. ## what you are doing...
  8028. if test -n "$compiler"; then
  8029. lt_prog_compiler_no_builtin_flag=
  8030. if test "$GCC" = yes; then
  8031. case $cc_basename in
  8032. nvcc*)
  8033. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  8034. *)
  8035. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  8036. esac
  8037. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  8038. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  8039. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  8040. $as_echo_n "(cached) " >&6
  8041. else
  8042. lt_cv_prog_compiler_rtti_exceptions=no
  8043. ac_outfile=conftest.$ac_objext
  8044. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8045. lt_compiler_flag="-fno-rtti -fno-exceptions"
  8046. # Insert the option either (1) after the last *FLAGS variable, or
  8047. # (2) before a word containing "conftest.", or (3) at the end.
  8048. # Note that $ac_compile itself does not contain backslashes and begins
  8049. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8050. # The option is referenced via a variable to avoid confusing sed.
  8051. lt_compile=`echo "$ac_compile" | $SED \
  8052. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8053. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8054. -e 's:$: $lt_compiler_flag:'`
  8055. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8056. (eval "$lt_compile" 2>conftest.err)
  8057. ac_status=$?
  8058. cat conftest.err >&5
  8059. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8060. if (exit $ac_status) && test -s "$ac_outfile"; then
  8061. # The compiler can only warn and ignore the option if not recognized
  8062. # So say no if there are warnings other than the usual output.
  8063. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8064. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8065. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8066. lt_cv_prog_compiler_rtti_exceptions=yes
  8067. fi
  8068. fi
  8069. $RM conftest*
  8070. fi
  8071. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  8072. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  8073. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  8074. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  8075. else
  8076. :
  8077. fi
  8078. fi
  8079. lt_prog_compiler_wl=
  8080. lt_prog_compiler_pic=
  8081. lt_prog_compiler_static=
  8082. if test "$GCC" = yes; then
  8083. lt_prog_compiler_wl='-Wl,'
  8084. lt_prog_compiler_static='-static'
  8085. case $host_os in
  8086. aix*)
  8087. # All AIX code is PIC.
  8088. if test "$host_cpu" = ia64; then
  8089. # AIX 5 now supports IA64 processor
  8090. lt_prog_compiler_static='-Bstatic'
  8091. fi
  8092. ;;
  8093. amigaos*)
  8094. case $host_cpu in
  8095. powerpc)
  8096. # see comment about AmigaOS4 .so support
  8097. lt_prog_compiler_pic='-fPIC'
  8098. ;;
  8099. m68k)
  8100. # FIXME: we need at least 68020 code to build shared libraries, but
  8101. # adding the `-m68020' flag to GCC prevents building anything better,
  8102. # like `-m68040'.
  8103. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  8104. ;;
  8105. esac
  8106. ;;
  8107. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  8108. # PIC is the default for these OSes.
  8109. ;;
  8110. mingw* | cygwin* | pw32* | os2* | cegcc*)
  8111. # This hack is so that the source file can tell whether it is being
  8112. # built for inclusion in a dll (and should export symbols for example).
  8113. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  8114. # (--disable-auto-import) libraries
  8115. lt_prog_compiler_pic='-DDLL_EXPORT'
  8116. ;;
  8117. darwin* | rhapsody*)
  8118. # PIC is the default on this platform
  8119. # Common symbols not allowed in MH_DYLIB files
  8120. lt_prog_compiler_pic='-fno-common'
  8121. ;;
  8122. haiku*)
  8123. # PIC is the default for Haiku.
  8124. # The "-static" flag exists, but is broken.
  8125. lt_prog_compiler_static=
  8126. ;;
  8127. hpux*)
  8128. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  8129. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  8130. # sets the default TLS model and affects inlining.
  8131. case $host_cpu in
  8132. hppa*64*)
  8133. # +Z the default
  8134. ;;
  8135. *)
  8136. lt_prog_compiler_pic='-fPIC'
  8137. ;;
  8138. esac
  8139. ;;
  8140. interix[3-9]*)
  8141. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  8142. # Instead, we relocate shared libraries at runtime.
  8143. ;;
  8144. msdosdjgpp*)
  8145. # Just because we use GCC doesn't mean we suddenly get shared libraries
  8146. # on systems that don't support them.
  8147. lt_prog_compiler_can_build_shared=no
  8148. enable_shared=no
  8149. ;;
  8150. *nto* | *qnx*)
  8151. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8152. # it will coredump.
  8153. lt_prog_compiler_pic='-fPIC -shared'
  8154. ;;
  8155. sysv4*MP*)
  8156. if test -d /usr/nec; then
  8157. lt_prog_compiler_pic=-Kconform_pic
  8158. fi
  8159. ;;
  8160. *)
  8161. lt_prog_compiler_pic='-fPIC'
  8162. ;;
  8163. esac
  8164. case $cc_basename in
  8165. nvcc*) # Cuda Compiler Driver 2.2
  8166. lt_prog_compiler_wl='-Xlinker '
  8167. if test -n "$lt_prog_compiler_pic"; then
  8168. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  8169. fi
  8170. ;;
  8171. esac
  8172. else
  8173. # PORTME Check for flag to pass linker flags through the system compiler.
  8174. case $host_os in
  8175. aix*)
  8176. lt_prog_compiler_wl='-Wl,'
  8177. if test "$host_cpu" = ia64; then
  8178. # AIX 5 now supports IA64 processor
  8179. lt_prog_compiler_static='-Bstatic'
  8180. else
  8181. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  8182. fi
  8183. ;;
  8184. mingw* | cygwin* | pw32* | os2* | cegcc*)
  8185. # This hack is so that the source file can tell whether it is being
  8186. # built for inclusion in a dll (and should export symbols for example).
  8187. lt_prog_compiler_pic='-DDLL_EXPORT'
  8188. ;;
  8189. hpux9* | hpux10* | hpux11*)
  8190. lt_prog_compiler_wl='-Wl,'
  8191. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  8192. # not for PA HP-UX.
  8193. case $host_cpu in
  8194. hppa*64*|ia64*)
  8195. # +Z the default
  8196. ;;
  8197. *)
  8198. lt_prog_compiler_pic='+Z'
  8199. ;;
  8200. esac
  8201. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  8202. lt_prog_compiler_static='${wl}-a ${wl}archive'
  8203. ;;
  8204. irix5* | irix6* | nonstopux*)
  8205. lt_prog_compiler_wl='-Wl,'
  8206. # PIC (with -KPIC) is the default.
  8207. lt_prog_compiler_static='-non_shared'
  8208. ;;
  8209. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  8210. case $cc_basename in
  8211. # old Intel for x86_64 which still supported -KPIC.
  8212. ecc*)
  8213. lt_prog_compiler_wl='-Wl,'
  8214. lt_prog_compiler_pic='-KPIC'
  8215. lt_prog_compiler_static='-static'
  8216. ;;
  8217. # icc used to be incompatible with GCC.
  8218. # ICC 10 doesn't accept -KPIC any more.
  8219. icc* | ifort*)
  8220. lt_prog_compiler_wl='-Wl,'
  8221. lt_prog_compiler_pic='-fPIC'
  8222. lt_prog_compiler_static='-static'
  8223. ;;
  8224. # Lahey Fortran 8.1.
  8225. lf95*)
  8226. lt_prog_compiler_wl='-Wl,'
  8227. lt_prog_compiler_pic='--shared'
  8228. lt_prog_compiler_static='--static'
  8229. ;;
  8230. nagfor*)
  8231. # NAG Fortran compiler
  8232. lt_prog_compiler_wl='-Wl,-Wl,,'
  8233. lt_prog_compiler_pic='-PIC'
  8234. lt_prog_compiler_static='-Bstatic'
  8235. ;;
  8236. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  8237. # Portland Group compilers (*not* the Pentium gcc compiler,
  8238. # which looks to be a dead project)
  8239. lt_prog_compiler_wl='-Wl,'
  8240. lt_prog_compiler_pic='-fpic'
  8241. lt_prog_compiler_static='-Bstatic'
  8242. ;;
  8243. ccc*)
  8244. lt_prog_compiler_wl='-Wl,'
  8245. # All Alpha code is PIC.
  8246. lt_prog_compiler_static='-non_shared'
  8247. ;;
  8248. xl* | bgxl* | bgf* | mpixl*)
  8249. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  8250. lt_prog_compiler_wl='-Wl,'
  8251. lt_prog_compiler_pic='-qpic'
  8252. lt_prog_compiler_static='-qstaticlink'
  8253. ;;
  8254. *)
  8255. case `$CC -V 2>&1 | sed 5q` in
  8256. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  8257. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  8258. lt_prog_compiler_pic='-KPIC'
  8259. lt_prog_compiler_static='-Bstatic'
  8260. lt_prog_compiler_wl=''
  8261. ;;
  8262. *Sun\ F* | *Sun*Fortran*)
  8263. lt_prog_compiler_pic='-KPIC'
  8264. lt_prog_compiler_static='-Bstatic'
  8265. lt_prog_compiler_wl='-Qoption ld '
  8266. ;;
  8267. *Sun\ C*)
  8268. # Sun C 5.9
  8269. lt_prog_compiler_pic='-KPIC'
  8270. lt_prog_compiler_static='-Bstatic'
  8271. lt_prog_compiler_wl='-Wl,'
  8272. ;;
  8273. *Intel*\ [CF]*Compiler*)
  8274. lt_prog_compiler_wl='-Wl,'
  8275. lt_prog_compiler_pic='-fPIC'
  8276. lt_prog_compiler_static='-static'
  8277. ;;
  8278. *Portland\ Group*)
  8279. lt_prog_compiler_wl='-Wl,'
  8280. lt_prog_compiler_pic='-fpic'
  8281. lt_prog_compiler_static='-Bstatic'
  8282. ;;
  8283. esac
  8284. ;;
  8285. esac
  8286. ;;
  8287. newsos6)
  8288. lt_prog_compiler_pic='-KPIC'
  8289. lt_prog_compiler_static='-Bstatic'
  8290. ;;
  8291. *nto* | *qnx*)
  8292. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8293. # it will coredump.
  8294. lt_prog_compiler_pic='-fPIC -shared'
  8295. ;;
  8296. osf3* | osf4* | osf5*)
  8297. lt_prog_compiler_wl='-Wl,'
  8298. # All OSF/1 code is PIC.
  8299. lt_prog_compiler_static='-non_shared'
  8300. ;;
  8301. rdos*)
  8302. lt_prog_compiler_static='-non_shared'
  8303. ;;
  8304. solaris*)
  8305. lt_prog_compiler_pic='-KPIC'
  8306. lt_prog_compiler_static='-Bstatic'
  8307. case $cc_basename in
  8308. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  8309. lt_prog_compiler_wl='-Qoption ld ';;
  8310. *)
  8311. lt_prog_compiler_wl='-Wl,';;
  8312. esac
  8313. ;;
  8314. sunos4*)
  8315. lt_prog_compiler_wl='-Qoption ld '
  8316. lt_prog_compiler_pic='-PIC'
  8317. lt_prog_compiler_static='-Bstatic'
  8318. ;;
  8319. sysv4 | sysv4.2uw2* | sysv4.3*)
  8320. lt_prog_compiler_wl='-Wl,'
  8321. lt_prog_compiler_pic='-KPIC'
  8322. lt_prog_compiler_static='-Bstatic'
  8323. ;;
  8324. sysv4*MP*)
  8325. if test -d /usr/nec ;then
  8326. lt_prog_compiler_pic='-Kconform_pic'
  8327. lt_prog_compiler_static='-Bstatic'
  8328. fi
  8329. ;;
  8330. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  8331. lt_prog_compiler_wl='-Wl,'
  8332. lt_prog_compiler_pic='-KPIC'
  8333. lt_prog_compiler_static='-Bstatic'
  8334. ;;
  8335. unicos*)
  8336. lt_prog_compiler_wl='-Wl,'
  8337. lt_prog_compiler_can_build_shared=no
  8338. ;;
  8339. uts4*)
  8340. lt_prog_compiler_pic='-pic'
  8341. lt_prog_compiler_static='-Bstatic'
  8342. ;;
  8343. *)
  8344. lt_prog_compiler_can_build_shared=no
  8345. ;;
  8346. esac
  8347. fi
  8348. case $host_os in
  8349. # For platforms which do not support PIC, -DPIC is meaningless:
  8350. *djgpp*)
  8351. lt_prog_compiler_pic=
  8352. ;;
  8353. *)
  8354. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  8355. ;;
  8356. esac
  8357. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  8358. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  8359. if ${lt_cv_prog_compiler_pic+:} false; then :
  8360. $as_echo_n "(cached) " >&6
  8361. else
  8362. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  8363. fi
  8364. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  8365. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  8366. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  8367. #
  8368. # Check to make sure the PIC flag actually works.
  8369. #
  8370. if test -n "$lt_prog_compiler_pic"; then
  8371. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  8372. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  8373. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  8374. $as_echo_n "(cached) " >&6
  8375. else
  8376. lt_cv_prog_compiler_pic_works=no
  8377. ac_outfile=conftest.$ac_objext
  8378. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8379. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  8380. # Insert the option either (1) after the last *FLAGS variable, or
  8381. # (2) before a word containing "conftest.", or (3) at the end.
  8382. # Note that $ac_compile itself does not contain backslashes and begins
  8383. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8384. # The option is referenced via a variable to avoid confusing sed.
  8385. lt_compile=`echo "$ac_compile" | $SED \
  8386. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8387. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8388. -e 's:$: $lt_compiler_flag:'`
  8389. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8390. (eval "$lt_compile" 2>conftest.err)
  8391. ac_status=$?
  8392. cat conftest.err >&5
  8393. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8394. if (exit $ac_status) && test -s "$ac_outfile"; then
  8395. # The compiler can only warn and ignore the option if not recognized
  8396. # So say no if there are warnings other than the usual output.
  8397. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8398. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8399. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8400. lt_cv_prog_compiler_pic_works=yes
  8401. fi
  8402. fi
  8403. $RM conftest*
  8404. fi
  8405. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  8406. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  8407. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  8408. case $lt_prog_compiler_pic in
  8409. "" | " "*) ;;
  8410. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  8411. esac
  8412. else
  8413. lt_prog_compiler_pic=
  8414. lt_prog_compiler_can_build_shared=no
  8415. fi
  8416. fi
  8417. #
  8418. # Check to make sure the static flag actually works.
  8419. #
  8420. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  8421. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  8422. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  8423. if ${lt_cv_prog_compiler_static_works+:} false; then :
  8424. $as_echo_n "(cached) " >&6
  8425. else
  8426. lt_cv_prog_compiler_static_works=no
  8427. save_LDFLAGS="$LDFLAGS"
  8428. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  8429. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8430. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8431. # The linker can only warn and ignore the option if not recognized
  8432. # So say no if there are warnings
  8433. if test -s conftest.err; then
  8434. # Append any errors to the config.log.
  8435. cat conftest.err 1>&5
  8436. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8437. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8438. if diff conftest.exp conftest.er2 >/dev/null; then
  8439. lt_cv_prog_compiler_static_works=yes
  8440. fi
  8441. else
  8442. lt_cv_prog_compiler_static_works=yes
  8443. fi
  8444. fi
  8445. $RM -r conftest*
  8446. LDFLAGS="$save_LDFLAGS"
  8447. fi
  8448. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  8449. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  8450. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  8451. :
  8452. else
  8453. lt_prog_compiler_static=
  8454. fi
  8455. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8456. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8457. if ${lt_cv_prog_compiler_c_o+:} false; then :
  8458. $as_echo_n "(cached) " >&6
  8459. else
  8460. lt_cv_prog_compiler_c_o=no
  8461. $RM -r conftest 2>/dev/null
  8462. mkdir conftest
  8463. cd conftest
  8464. mkdir out
  8465. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8466. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8467. # Insert the option either (1) after the last *FLAGS variable, or
  8468. # (2) before a word containing "conftest.", or (3) at the end.
  8469. # Note that $ac_compile itself does not contain backslashes and begins
  8470. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8471. lt_compile=`echo "$ac_compile" | $SED \
  8472. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8473. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8474. -e 's:$: $lt_compiler_flag:'`
  8475. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8476. (eval "$lt_compile" 2>out/conftest.err)
  8477. ac_status=$?
  8478. cat out/conftest.err >&5
  8479. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8480. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8481. then
  8482. # The compiler can only warn and ignore the option if not recognized
  8483. # So say no if there are warnings
  8484. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8485. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8486. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8487. lt_cv_prog_compiler_c_o=yes
  8488. fi
  8489. fi
  8490. chmod u+w . 2>&5
  8491. $RM conftest*
  8492. # SGI C++ compiler will create directory out/ii_files/ for
  8493. # template instantiation
  8494. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8495. $RM out/* && rmdir out
  8496. cd ..
  8497. $RM -r conftest
  8498. $RM conftest*
  8499. fi
  8500. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8501. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8502. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8503. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8504. if ${lt_cv_prog_compiler_c_o+:} false; then :
  8505. $as_echo_n "(cached) " >&6
  8506. else
  8507. lt_cv_prog_compiler_c_o=no
  8508. $RM -r conftest 2>/dev/null
  8509. mkdir conftest
  8510. cd conftest
  8511. mkdir out
  8512. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8513. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8514. # Insert the option either (1) after the last *FLAGS variable, or
  8515. # (2) before a word containing "conftest.", or (3) at the end.
  8516. # Note that $ac_compile itself does not contain backslashes and begins
  8517. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8518. lt_compile=`echo "$ac_compile" | $SED \
  8519. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8520. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8521. -e 's:$: $lt_compiler_flag:'`
  8522. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8523. (eval "$lt_compile" 2>out/conftest.err)
  8524. ac_status=$?
  8525. cat out/conftest.err >&5
  8526. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8527. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8528. then
  8529. # The compiler can only warn and ignore the option if not recognized
  8530. # So say no if there are warnings
  8531. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8532. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8533. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8534. lt_cv_prog_compiler_c_o=yes
  8535. fi
  8536. fi
  8537. chmod u+w . 2>&5
  8538. $RM conftest*
  8539. # SGI C++ compiler will create directory out/ii_files/ for
  8540. # template instantiation
  8541. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8542. $RM out/* && rmdir out
  8543. cd ..
  8544. $RM -r conftest
  8545. $RM conftest*
  8546. fi
  8547. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8548. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8549. hard_links="nottested"
  8550. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  8551. # do not overwrite the value of need_locks provided by the user
  8552. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  8553. $as_echo_n "checking if we can lock with hard links... " >&6; }
  8554. hard_links=yes
  8555. $RM conftest*
  8556. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8557. touch conftest.a
  8558. ln conftest.a conftest.b 2>&5 || hard_links=no
  8559. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8560. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  8561. $as_echo "$hard_links" >&6; }
  8562. if test "$hard_links" = no; then
  8563. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  8564. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  8565. need_locks=warn
  8566. fi
  8567. else
  8568. need_locks=no
  8569. fi
  8570. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  8571. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  8572. runpath_var=
  8573. allow_undefined_flag=
  8574. always_export_symbols=no
  8575. archive_cmds=
  8576. archive_expsym_cmds=
  8577. compiler_needs_object=no
  8578. enable_shared_with_static_runtimes=no
  8579. export_dynamic_flag_spec=
  8580. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8581. hardcode_automatic=no
  8582. hardcode_direct=no
  8583. hardcode_direct_absolute=no
  8584. hardcode_libdir_flag_spec=
  8585. hardcode_libdir_separator=
  8586. hardcode_minus_L=no
  8587. hardcode_shlibpath_var=unsupported
  8588. inherit_rpath=no
  8589. link_all_deplibs=unknown
  8590. module_cmds=
  8591. module_expsym_cmds=
  8592. old_archive_from_new_cmds=
  8593. old_archive_from_expsyms_cmds=
  8594. thread_safe_flag_spec=
  8595. whole_archive_flag_spec=
  8596. # include_expsyms should be a list of space-separated symbols to be *always*
  8597. # included in the symbol list
  8598. include_expsyms=
  8599. # exclude_expsyms can be an extended regexp of symbols to exclude
  8600. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  8601. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  8602. # as well as any symbol that contains `d'.
  8603. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  8604. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  8605. # platforms (ab)use it in PIC code, but their linkers get confused if
  8606. # the symbol is explicitly referenced. Since portable code cannot
  8607. # rely on this symbol name, it's probably fine to never include it in
  8608. # preloaded symbol tables.
  8609. # Exclude shared library initialization/finalization symbols.
  8610. extract_expsyms_cmds=
  8611. case $host_os in
  8612. cygwin* | mingw* | pw32* | cegcc*)
  8613. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  8614. # When not using gcc, we currently assume that we are using
  8615. # Microsoft Visual C++.
  8616. if test "$GCC" != yes; then
  8617. with_gnu_ld=no
  8618. fi
  8619. ;;
  8620. interix*)
  8621. # we just hope/assume this is gcc and not c89 (= MSVC++)
  8622. with_gnu_ld=yes
  8623. ;;
  8624. openbsd*)
  8625. with_gnu_ld=no
  8626. ;;
  8627. esac
  8628. ld_shlibs=yes
  8629. # On some targets, GNU ld is compatible enough with the native linker
  8630. # that we're better off using the native interface for both.
  8631. lt_use_gnu_ld_interface=no
  8632. if test "$with_gnu_ld" = yes; then
  8633. case $host_os in
  8634. aix*)
  8635. # The AIX port of GNU ld has always aspired to compatibility
  8636. # with the native linker. However, as the warning in the GNU ld
  8637. # block says, versions before 2.19.5* couldn't really create working
  8638. # shared libraries, regardless of the interface used.
  8639. case `$LD -v 2>&1` in
  8640. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  8641. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  8642. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  8643. *)
  8644. lt_use_gnu_ld_interface=yes
  8645. ;;
  8646. esac
  8647. ;;
  8648. *)
  8649. lt_use_gnu_ld_interface=yes
  8650. ;;
  8651. esac
  8652. fi
  8653. if test "$lt_use_gnu_ld_interface" = yes; then
  8654. # If archive_cmds runs LD, not CC, wlarc should be empty
  8655. wlarc='${wl}'
  8656. # Set some defaults for GNU ld with shared library support. These
  8657. # are reset later if shared libraries are not supported. Putting them
  8658. # here allows them to be overridden if necessary.
  8659. runpath_var=LD_RUN_PATH
  8660. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8661. export_dynamic_flag_spec='${wl}--export-dynamic'
  8662. # ancient GNU ld didn't support --whole-archive et. al.
  8663. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  8664. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  8665. else
  8666. whole_archive_flag_spec=
  8667. fi
  8668. supports_anon_versioning=no
  8669. case `$LD -v 2>&1` in
  8670. *GNU\ gold*) supports_anon_versioning=yes ;;
  8671. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  8672. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  8673. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  8674. *\ 2.11.*) ;; # other 2.11 versions
  8675. *) supports_anon_versioning=yes ;;
  8676. esac
  8677. # See if GNU ld supports shared libraries.
  8678. case $host_os in
  8679. aix[3-9]*)
  8680. # On AIX/PPC, the GNU linker is very broken
  8681. if test "$host_cpu" != ia64; then
  8682. ld_shlibs=no
  8683. cat <<_LT_EOF 1>&2
  8684. *** Warning: the GNU linker, at least up to release 2.19, is reported
  8685. *** to be unable to reliably create shared libraries on AIX.
  8686. *** Therefore, libtool is disabling shared libraries support. If you
  8687. *** really care for shared libraries, you may want to install binutils
  8688. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  8689. *** You will then need to restart the configuration process.
  8690. _LT_EOF
  8691. fi
  8692. ;;
  8693. amigaos*)
  8694. case $host_cpu in
  8695. powerpc)
  8696. # see comment about AmigaOS4 .so support
  8697. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8698. archive_expsym_cmds=''
  8699. ;;
  8700. m68k)
  8701. 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)'
  8702. hardcode_libdir_flag_spec='-L$libdir'
  8703. hardcode_minus_L=yes
  8704. ;;
  8705. esac
  8706. ;;
  8707. beos*)
  8708. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8709. allow_undefined_flag=unsupported
  8710. # Joseph Beckenbach <[email protected]> says some releases of gcc
  8711. # support --undefined. This deserves some investigation. FIXME
  8712. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8713. else
  8714. ld_shlibs=no
  8715. fi
  8716. ;;
  8717. cygwin* | mingw* | pw32* | cegcc*)
  8718. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  8719. # as there is no search path for DLLs.
  8720. hardcode_libdir_flag_spec='-L$libdir'
  8721. export_dynamic_flag_spec='${wl}--export-all-symbols'
  8722. allow_undefined_flag=unsupported
  8723. always_export_symbols=no
  8724. enable_shared_with_static_runtimes=yes
  8725. 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'
  8726. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  8727. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  8728. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8729. # If the export-symbols file already is a .def file (1st line
  8730. # is EXPORTS), use it as is; otherwise, prepend...
  8731. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8732. cp $export_symbols $output_objdir/$soname.def;
  8733. else
  8734. echo EXPORTS > $output_objdir/$soname.def;
  8735. cat $export_symbols >> $output_objdir/$soname.def;
  8736. fi~
  8737. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8738. else
  8739. ld_shlibs=no
  8740. fi
  8741. ;;
  8742. haiku*)
  8743. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8744. link_all_deplibs=yes
  8745. ;;
  8746. interix[3-9]*)
  8747. hardcode_direct=no
  8748. hardcode_shlibpath_var=no
  8749. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8750. export_dynamic_flag_spec='${wl}-E'
  8751. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8752. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8753. # default) and relocated if they conflict, which is a slow very memory
  8754. # consuming and fragmenting process. To avoid this, we pick a random,
  8755. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8756. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8757. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8758. 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'
  8759. ;;
  8760. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  8761. tmp_diet=no
  8762. if test "$host_os" = linux-dietlibc; then
  8763. case $cc_basename in
  8764. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8765. esac
  8766. fi
  8767. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8768. && test "$tmp_diet" = no
  8769. then
  8770. tmp_addflag=' $pic_flag'
  8771. tmp_sharedflag='-shared'
  8772. case $cc_basename,$host_cpu in
  8773. pgcc*) # Portland Group C compiler
  8774. 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'
  8775. tmp_addflag=' $pic_flag'
  8776. ;;
  8777. pgf77* | pgf90* | pgf95* | pgfortran*)
  8778. # Portland Group f77 and f90 compilers
  8779. 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'
  8780. tmp_addflag=' $pic_flag -Mnomain' ;;
  8781. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8782. tmp_addflag=' -i_dynamic' ;;
  8783. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8784. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8785. ifc* | ifort*) # Intel Fortran compiler
  8786. tmp_addflag=' -nofor_main' ;;
  8787. lf95*) # Lahey Fortran 8.1
  8788. whole_archive_flag_spec=
  8789. tmp_sharedflag='--shared' ;;
  8790. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8791. tmp_sharedflag='-qmkshrobj'
  8792. tmp_addflag= ;;
  8793. nvcc*) # Cuda Compiler Driver 2.2
  8794. 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'
  8795. compiler_needs_object=yes
  8796. ;;
  8797. esac
  8798. case `$CC -V 2>&1 | sed 5q` in
  8799. *Sun\ C*) # Sun C 5.9
  8800. 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'
  8801. compiler_needs_object=yes
  8802. tmp_sharedflag='-G' ;;
  8803. *Sun\ F*) # Sun Fortran 8.3
  8804. tmp_sharedflag='-G' ;;
  8805. esac
  8806. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8807. if test "x$supports_anon_versioning" = xyes; then
  8808. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8809. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8810. echo "local: *; };" >> $output_objdir/$libname.ver~
  8811. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  8812. fi
  8813. case $cc_basename in
  8814. xlf* | bgf* | bgxlf* | mpixlf*)
  8815. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8816. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8817. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8818. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  8819. if test "x$supports_anon_versioning" = xyes; then
  8820. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8821. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8822. echo "local: *; };" >> $output_objdir/$libname.ver~
  8823. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8824. fi
  8825. ;;
  8826. esac
  8827. else
  8828. ld_shlibs=no
  8829. fi
  8830. ;;
  8831. netbsd*)
  8832. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8833. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8834. wlarc=
  8835. else
  8836. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8837. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8838. fi
  8839. ;;
  8840. solaris*)
  8841. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8842. ld_shlibs=no
  8843. cat <<_LT_EOF 1>&2
  8844. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8845. *** create shared libraries on Solaris systems. Therefore, libtool
  8846. *** is disabling shared libraries support. We urge you to upgrade GNU
  8847. *** binutils to release 2.9.1 or newer. Another option is to modify
  8848. *** your PATH or compiler configuration so that the native linker is
  8849. *** used, and then restart.
  8850. _LT_EOF
  8851. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8852. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8853. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8854. else
  8855. ld_shlibs=no
  8856. fi
  8857. ;;
  8858. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8859. case `$LD -v 2>&1` in
  8860. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8861. ld_shlibs=no
  8862. cat <<_LT_EOF 1>&2
  8863. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  8864. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8865. *** is disabling shared libraries support. We urge you to upgrade GNU
  8866. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8867. *** your PATH or compiler configuration so that the native linker is
  8868. *** used, and then restart.
  8869. _LT_EOF
  8870. ;;
  8871. *)
  8872. # For security reasons, it is highly recommended that you always
  8873. # use absolute paths for naming shared libraries, and exclude the
  8874. # DT_RUNPATH tag from executables and libraries. But doing so
  8875. # requires that you compile everything twice, which is a pain.
  8876. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8877. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8878. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8879. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8880. else
  8881. ld_shlibs=no
  8882. fi
  8883. ;;
  8884. esac
  8885. ;;
  8886. sunos4*)
  8887. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8888. wlarc=
  8889. hardcode_direct=yes
  8890. hardcode_shlibpath_var=no
  8891. ;;
  8892. *)
  8893. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8894. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8895. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8896. else
  8897. ld_shlibs=no
  8898. fi
  8899. ;;
  8900. esac
  8901. if test "$ld_shlibs" = no; then
  8902. runpath_var=
  8903. hardcode_libdir_flag_spec=
  8904. export_dynamic_flag_spec=
  8905. whole_archive_flag_spec=
  8906. fi
  8907. else
  8908. # PORTME fill in a description of your system's linker (not GNU ld)
  8909. case $host_os in
  8910. aix3*)
  8911. allow_undefined_flag=unsupported
  8912. always_export_symbols=yes
  8913. 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'
  8914. # Note: this linker hardcodes the directories in LIBPATH if there
  8915. # are no directories specified by -L.
  8916. hardcode_minus_L=yes
  8917. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  8918. # Neither direct hardcoding nor static linking is supported with a
  8919. # broken collect2.
  8920. hardcode_direct=unsupported
  8921. fi
  8922. ;;
  8923. aix[4-9]*)
  8924. if test "$host_cpu" = ia64; then
  8925. # On IA64, the linker does run time linking by default, so we don't
  8926. # have to do anything special.
  8927. aix_use_runtimelinking=no
  8928. exp_sym_flag='-Bexport'
  8929. no_entry_flag=""
  8930. else
  8931. # If we're using GNU nm, then we don't want the "-C" option.
  8932. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  8933. # Also, AIX nm treats weak defined symbols like other global
  8934. # defined symbols, whereas GNU nm marks them as "W".
  8935. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8936. 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'
  8937. else
  8938. 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'
  8939. fi
  8940. aix_use_runtimelinking=no
  8941. # Test if we are trying to use run time linking or normal
  8942. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8943. # need to do runtime linking.
  8944. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8945. for ld_flag in $LDFLAGS; do
  8946. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  8947. aix_use_runtimelinking=yes
  8948. break
  8949. fi
  8950. done
  8951. ;;
  8952. esac
  8953. exp_sym_flag='-bexport'
  8954. no_entry_flag='-bnoentry'
  8955. fi
  8956. # When large executables or shared objects are built, AIX ld can
  8957. # have problems creating the table of contents. If linking a library
  8958. # or program results in "error TOC overflow" add -mminimal-toc to
  8959. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8960. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8961. archive_cmds=''
  8962. hardcode_direct=yes
  8963. hardcode_direct_absolute=yes
  8964. hardcode_libdir_separator=':'
  8965. link_all_deplibs=yes
  8966. file_list_spec='${wl}-f,'
  8967. if test "$GCC" = yes; then
  8968. case $host_os in aix4.[012]|aix4.[012].*)
  8969. # We only want to do this on AIX 4.2 and lower, the check
  8970. # below for broken collect2 doesn't work under 4.3+
  8971. collect2name=`${CC} -print-prog-name=collect2`
  8972. if test -f "$collect2name" &&
  8973. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8974. then
  8975. # We have reworked collect2
  8976. :
  8977. else
  8978. # We have old collect2
  8979. hardcode_direct=unsupported
  8980. # It fails to find uninstalled libraries when the uninstalled
  8981. # path is not listed in the libpath. Setting hardcode_minus_L
  8982. # to unsupported forces relinking
  8983. hardcode_minus_L=yes
  8984. hardcode_libdir_flag_spec='-L$libdir'
  8985. hardcode_libdir_separator=
  8986. fi
  8987. ;;
  8988. esac
  8989. shared_flag='-shared'
  8990. if test "$aix_use_runtimelinking" = yes; then
  8991. shared_flag="$shared_flag "'${wl}-G'
  8992. fi
  8993. else
  8994. # not using gcc
  8995. if test "$host_cpu" = ia64; then
  8996. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8997. # chokes on -Wl,-G. The following line is correct:
  8998. shared_flag='-G'
  8999. else
  9000. if test "$aix_use_runtimelinking" = yes; then
  9001. shared_flag='${wl}-G'
  9002. else
  9003. shared_flag='${wl}-bM:SRE'
  9004. fi
  9005. fi
  9006. fi
  9007. export_dynamic_flag_spec='${wl}-bexpall'
  9008. # It seems that -bexpall does not export symbols beginning with
  9009. # underscore (_), so it is better to generate a list of symbols to export.
  9010. always_export_symbols=yes
  9011. if test "$aix_use_runtimelinking" = yes; then
  9012. # Warning - without using the other runtime loading flags (-brtl),
  9013. # -berok will link without error, but may produce a broken library.
  9014. allow_undefined_flag='-berok'
  9015. # Determine the default libpath from the value encoded in an
  9016. # empty executable.
  9017. if test "${lt_cv_aix_libpath+set}" = set; then
  9018. aix_libpath=$lt_cv_aix_libpath
  9019. else
  9020. if ${lt_cv_aix_libpath_+:} false; then :
  9021. $as_echo_n "(cached) " >&6
  9022. else
  9023. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9024. /* end confdefs.h. */
  9025. int
  9026. main ()
  9027. {
  9028. ;
  9029. return 0;
  9030. }
  9031. _ACEOF
  9032. if ac_fn_c_try_link "$LINENO"; then :
  9033. lt_aix_libpath_sed='
  9034. /Import File Strings/,/^$/ {
  9035. /^0/ {
  9036. s/^0 *\([^ ]*\) *$/\1/
  9037. p
  9038. }
  9039. }'
  9040. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9041. # Check for a 64-bit object if we didn't find anything.
  9042. if test -z "$lt_cv_aix_libpath_"; then
  9043. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9044. fi
  9045. fi
  9046. rm -f core conftest.err conftest.$ac_objext \
  9047. conftest$ac_exeext conftest.$ac_ext
  9048. if test -z "$lt_cv_aix_libpath_"; then
  9049. lt_cv_aix_libpath_="/usr/lib:/lib"
  9050. fi
  9051. fi
  9052. aix_libpath=$lt_cv_aix_libpath_
  9053. fi
  9054. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  9055. 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"
  9056. else
  9057. if test "$host_cpu" = ia64; then
  9058. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  9059. allow_undefined_flag="-z nodefs"
  9060. 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"
  9061. else
  9062. # Determine the default libpath from the value encoded in an
  9063. # empty executable.
  9064. if test "${lt_cv_aix_libpath+set}" = set; then
  9065. aix_libpath=$lt_cv_aix_libpath
  9066. else
  9067. if ${lt_cv_aix_libpath_+:} false; then :
  9068. $as_echo_n "(cached) " >&6
  9069. else
  9070. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9071. /* end confdefs.h. */
  9072. int
  9073. main ()
  9074. {
  9075. ;
  9076. return 0;
  9077. }
  9078. _ACEOF
  9079. if ac_fn_c_try_link "$LINENO"; then :
  9080. lt_aix_libpath_sed='
  9081. /Import File Strings/,/^$/ {
  9082. /^0/ {
  9083. s/^0 *\([^ ]*\) *$/\1/
  9084. p
  9085. }
  9086. }'
  9087. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9088. # Check for a 64-bit object if we didn't find anything.
  9089. if test -z "$lt_cv_aix_libpath_"; then
  9090. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9091. fi
  9092. fi
  9093. rm -f core conftest.err conftest.$ac_objext \
  9094. conftest$ac_exeext conftest.$ac_ext
  9095. if test -z "$lt_cv_aix_libpath_"; then
  9096. lt_cv_aix_libpath_="/usr/lib:/lib"
  9097. fi
  9098. fi
  9099. aix_libpath=$lt_cv_aix_libpath_
  9100. fi
  9101. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  9102. # Warning - without using the other run time loading flags,
  9103. # -berok will link without error, but may produce a broken library.
  9104. no_undefined_flag=' ${wl}-bernotok'
  9105. allow_undefined_flag=' ${wl}-berok'
  9106. if test "$with_gnu_ld" = yes; then
  9107. # We only use this code for GNU lds that support --whole-archive.
  9108. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  9109. else
  9110. # Exported symbols can be pulled into shared objects from archives
  9111. whole_archive_flag_spec='$convenience'
  9112. fi
  9113. archive_cmds_need_lc=yes
  9114. # This is similar to how AIX traditionally builds its shared libraries.
  9115. 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'
  9116. fi
  9117. fi
  9118. ;;
  9119. amigaos*)
  9120. case $host_cpu in
  9121. powerpc)
  9122. # see comment about AmigaOS4 .so support
  9123. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9124. archive_expsym_cmds=''
  9125. ;;
  9126. m68k)
  9127. 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)'
  9128. hardcode_libdir_flag_spec='-L$libdir'
  9129. hardcode_minus_L=yes
  9130. ;;
  9131. esac
  9132. ;;
  9133. bsdi[45]*)
  9134. export_dynamic_flag_spec=-rdynamic
  9135. ;;
  9136. cygwin* | mingw* | pw32* | cegcc*)
  9137. # When not using gcc, we currently assume that we are using
  9138. # Microsoft Visual C++.
  9139. # hardcode_libdir_flag_spec is actually meaningless, as there is
  9140. # no search path for DLLs.
  9141. case $cc_basename in
  9142. cl*)
  9143. # Native MSVC
  9144. hardcode_libdir_flag_spec=' '
  9145. allow_undefined_flag=unsupported
  9146. always_export_symbols=yes
  9147. file_list_spec='@'
  9148. # Tell ltmain to make .lib files, not .a files.
  9149. libext=lib
  9150. # Tell ltmain to make .dll files, not .so files.
  9151. shrext_cmds=".dll"
  9152. # FIXME: Setting linknames here is a bad hack.
  9153. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  9154. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  9155. sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  9156. else
  9157. sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  9158. fi~
  9159. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  9160. linknames='
  9161. # The linker will not automatically build a static lib if we build a DLL.
  9162. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  9163. enable_shared_with_static_runtimes=yes
  9164. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  9165. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  9166. # Don't use ranlib
  9167. old_postinstall_cmds='chmod 644 $oldlib'
  9168. postlink_cmds='lt_outputfile="@OUTPUT@"~
  9169. lt_tool_outputfile="@TOOL_OUTPUT@"~
  9170. case $lt_outputfile in
  9171. *.exe|*.EXE) ;;
  9172. *)
  9173. lt_outputfile="$lt_outputfile.exe"
  9174. lt_tool_outputfile="$lt_tool_outputfile.exe"
  9175. ;;
  9176. esac~
  9177. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  9178. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  9179. $RM "$lt_outputfile.manifest";
  9180. fi'
  9181. ;;
  9182. *)
  9183. # Assume MSVC wrapper
  9184. hardcode_libdir_flag_spec=' '
  9185. allow_undefined_flag=unsupported
  9186. # Tell ltmain to make .lib files, not .a files.
  9187. libext=lib
  9188. # Tell ltmain to make .dll files, not .so files.
  9189. shrext_cmds=".dll"
  9190. # FIXME: Setting linknames here is a bad hack.
  9191. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  9192. # The linker will automatically build a .lib file if we build a DLL.
  9193. old_archive_from_new_cmds='true'
  9194. # FIXME: Should let the user specify the lib program.
  9195. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  9196. enable_shared_with_static_runtimes=yes
  9197. ;;
  9198. esac
  9199. ;;
  9200. darwin* | rhapsody*)
  9201. archive_cmds_need_lc=no
  9202. hardcode_direct=no
  9203. hardcode_automatic=yes
  9204. hardcode_shlibpath_var=unsupported
  9205. if test "$lt_cv_ld_force_load" = "yes"; then
  9206. 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\"`'
  9207. else
  9208. whole_archive_flag_spec=''
  9209. fi
  9210. link_all_deplibs=yes
  9211. allow_undefined_flag="$_lt_dar_allow_undefined"
  9212. case $cc_basename in
  9213. ifort*) _lt_dar_can_shared=yes ;;
  9214. *) _lt_dar_can_shared=$GCC ;;
  9215. esac
  9216. if test "$_lt_dar_can_shared" = "yes"; then
  9217. output_verbose_link_cmd=func_echo_all
  9218. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  9219. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  9220. 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}"
  9221. 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}"
  9222. else
  9223. ld_shlibs=no
  9224. fi
  9225. ;;
  9226. dgux*)
  9227. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9228. hardcode_libdir_flag_spec='-L$libdir'
  9229. hardcode_shlibpath_var=no
  9230. ;;
  9231. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  9232. # support. Future versions do this automatically, but an explicit c++rt0.o
  9233. # does not break anything, and helps significantly (at the cost of a little
  9234. # extra space).
  9235. freebsd2.2*)
  9236. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  9237. hardcode_libdir_flag_spec='-R$libdir'
  9238. hardcode_direct=yes
  9239. hardcode_shlibpath_var=no
  9240. ;;
  9241. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  9242. freebsd2.*)
  9243. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9244. hardcode_direct=yes
  9245. hardcode_minus_L=yes
  9246. hardcode_shlibpath_var=no
  9247. ;;
  9248. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  9249. freebsd* | dragonfly*)
  9250. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9251. hardcode_libdir_flag_spec='-R$libdir'
  9252. hardcode_direct=yes
  9253. hardcode_shlibpath_var=no
  9254. ;;
  9255. hpux9*)
  9256. if test "$GCC" = yes; then
  9257. 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'
  9258. else
  9259. 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'
  9260. fi
  9261. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  9262. hardcode_libdir_separator=:
  9263. hardcode_direct=yes
  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. export_dynamic_flag_spec='${wl}-E'
  9268. ;;
  9269. hpux10*)
  9270. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  9271. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9272. else
  9273. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9274. fi
  9275. if test "$with_gnu_ld" = no; then
  9276. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  9277. hardcode_libdir_separator=:
  9278. hardcode_direct=yes
  9279. hardcode_direct_absolute=yes
  9280. export_dynamic_flag_spec='${wl}-E'
  9281. # hardcode_minus_L: Not really in the search PATH,
  9282. # but as the default location of the library.
  9283. hardcode_minus_L=yes
  9284. fi
  9285. ;;
  9286. hpux11*)
  9287. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  9288. case $host_cpu in
  9289. hppa*64*)
  9290. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9291. ;;
  9292. ia64*)
  9293. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9294. ;;
  9295. *)
  9296. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9297. ;;
  9298. esac
  9299. else
  9300. case $host_cpu in
  9301. hppa*64*)
  9302. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9303. ;;
  9304. ia64*)
  9305. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9306. ;;
  9307. *)
  9308. # Older versions of the 11.00 compiler do not understand -b yet
  9309. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  9310. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  9311. $as_echo_n "checking if $CC understands -b... " >&6; }
  9312. if ${lt_cv_prog_compiler__b+:} false; then :
  9313. $as_echo_n "(cached) " >&6
  9314. else
  9315. lt_cv_prog_compiler__b=no
  9316. save_LDFLAGS="$LDFLAGS"
  9317. LDFLAGS="$LDFLAGS -b"
  9318. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  9319. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  9320. # The linker can only warn and ignore the option if not recognized
  9321. # So say no if there are warnings
  9322. if test -s conftest.err; then
  9323. # Append any errors to the config.log.
  9324. cat conftest.err 1>&5
  9325. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  9326. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9327. if diff conftest.exp conftest.er2 >/dev/null; then
  9328. lt_cv_prog_compiler__b=yes
  9329. fi
  9330. else
  9331. lt_cv_prog_compiler__b=yes
  9332. fi
  9333. fi
  9334. $RM -r conftest*
  9335. LDFLAGS="$save_LDFLAGS"
  9336. fi
  9337. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  9338. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  9339. if test x"$lt_cv_prog_compiler__b" = xyes; then
  9340. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9341. else
  9342. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9343. fi
  9344. ;;
  9345. esac
  9346. fi
  9347. if test "$with_gnu_ld" = no; then
  9348. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  9349. hardcode_libdir_separator=:
  9350. case $host_cpu in
  9351. hppa*64*|ia64*)
  9352. hardcode_direct=no
  9353. hardcode_shlibpath_var=no
  9354. ;;
  9355. *)
  9356. hardcode_direct=yes
  9357. hardcode_direct_absolute=yes
  9358. export_dynamic_flag_spec='${wl}-E'
  9359. # hardcode_minus_L: Not really in the search PATH,
  9360. # but as the default location of the library.
  9361. hardcode_minus_L=yes
  9362. ;;
  9363. esac
  9364. fi
  9365. ;;
  9366. irix5* | irix6* | nonstopux*)
  9367. if test "$GCC" = yes; then
  9368. 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'
  9369. # Try to use the -exported_symbol ld option, if it does not
  9370. # work, assume that -exports_file does not work either and
  9371. # implicitly export all symbols.
  9372. # This should be the same for all languages, so no per-tag cache variable.
  9373. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  9374. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  9375. if ${lt_cv_irix_exported_symbol+:} false; then :
  9376. $as_echo_n "(cached) " >&6
  9377. else
  9378. save_LDFLAGS="$LDFLAGS"
  9379. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  9380. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9381. /* end confdefs.h. */
  9382. int foo (void) { return 0; }
  9383. _ACEOF
  9384. if ac_fn_c_try_link "$LINENO"; then :
  9385. lt_cv_irix_exported_symbol=yes
  9386. else
  9387. lt_cv_irix_exported_symbol=no
  9388. fi
  9389. rm -f core conftest.err conftest.$ac_objext \
  9390. conftest$ac_exeext conftest.$ac_ext
  9391. LDFLAGS="$save_LDFLAGS"
  9392. fi
  9393. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  9394. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  9395. if test "$lt_cv_irix_exported_symbol" = yes; then
  9396. 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'
  9397. fi
  9398. else
  9399. 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'
  9400. 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'
  9401. fi
  9402. archive_cmds_need_lc='no'
  9403. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9404. hardcode_libdir_separator=:
  9405. inherit_rpath=yes
  9406. link_all_deplibs=yes
  9407. ;;
  9408. netbsd*)
  9409. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9410. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  9411. else
  9412. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  9413. fi
  9414. hardcode_libdir_flag_spec='-R$libdir'
  9415. hardcode_direct=yes
  9416. hardcode_shlibpath_var=no
  9417. ;;
  9418. newsos6)
  9419. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9420. hardcode_direct=yes
  9421. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9422. hardcode_libdir_separator=:
  9423. hardcode_shlibpath_var=no
  9424. ;;
  9425. *nto* | *qnx*)
  9426. ;;
  9427. openbsd*)
  9428. if test -f /usr/libexec/ld.so; then
  9429. hardcode_direct=yes
  9430. hardcode_shlibpath_var=no
  9431. hardcode_direct_absolute=yes
  9432. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9433. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9434. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  9435. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  9436. export_dynamic_flag_spec='${wl}-E'
  9437. else
  9438. case $host_os in
  9439. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  9440. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9441. hardcode_libdir_flag_spec='-R$libdir'
  9442. ;;
  9443. *)
  9444. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9445. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  9446. ;;
  9447. esac
  9448. fi
  9449. else
  9450. ld_shlibs=no
  9451. fi
  9452. ;;
  9453. os2*)
  9454. hardcode_libdir_flag_spec='-L$libdir'
  9455. hardcode_minus_L=yes
  9456. allow_undefined_flag=unsupported
  9457. 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'
  9458. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  9459. ;;
  9460. osf3*)
  9461. if test "$GCC" = yes; then
  9462. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  9463. 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'
  9464. else
  9465. allow_undefined_flag=' -expect_unresolved \*'
  9466. 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'
  9467. fi
  9468. archive_cmds_need_lc='no'
  9469. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9470. hardcode_libdir_separator=:
  9471. ;;
  9472. osf4* | osf5*) # as osf3* with the addition of -msym flag
  9473. if test "$GCC" = yes; then
  9474. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  9475. 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'
  9476. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9477. else
  9478. allow_undefined_flag=' -expect_unresolved \*'
  9479. 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'
  9480. 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~
  9481. $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'
  9482. # Both c and cxx compiler support -rpath directly
  9483. hardcode_libdir_flag_spec='-rpath $libdir'
  9484. fi
  9485. archive_cmds_need_lc='no'
  9486. hardcode_libdir_separator=:
  9487. ;;
  9488. solaris*)
  9489. no_undefined_flag=' -z defs'
  9490. if test "$GCC" = yes; then
  9491. wlarc='${wl}'
  9492. archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9493. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9494. $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'
  9495. else
  9496. case `$CC -V 2>&1` in
  9497. *"Compilers 5.0"*)
  9498. wlarc=''
  9499. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9500. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9501. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  9502. ;;
  9503. *)
  9504. wlarc='${wl}'
  9505. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9506. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9507. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9508. ;;
  9509. esac
  9510. fi
  9511. hardcode_libdir_flag_spec='-R$libdir'
  9512. hardcode_shlibpath_var=no
  9513. case $host_os in
  9514. solaris2.[0-5] | solaris2.[0-5].*) ;;
  9515. *)
  9516. # The compiler driver will combine and reorder linker options,
  9517. # but understands `-z linker_flag'. GCC discards it without `$wl',
  9518. # but is careful enough not to reorder.
  9519. # Supported since Solaris 2.6 (maybe 2.5.1?)
  9520. if test "$GCC" = yes; then
  9521. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  9522. else
  9523. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  9524. fi
  9525. ;;
  9526. esac
  9527. link_all_deplibs=yes
  9528. ;;
  9529. sunos4*)
  9530. if test "x$host_vendor" = xsequent; then
  9531. # Use $CC to link under sequent, because it throws in some extra .o
  9532. # files that make .init and .fini sections work.
  9533. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9534. else
  9535. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  9536. fi
  9537. hardcode_libdir_flag_spec='-L$libdir'
  9538. hardcode_direct=yes
  9539. hardcode_minus_L=yes
  9540. hardcode_shlibpath_var=no
  9541. ;;
  9542. sysv4)
  9543. case $host_vendor in
  9544. sni)
  9545. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9546. hardcode_direct=yes # is this really true???
  9547. ;;
  9548. siemens)
  9549. ## LD is ld it makes a PLAMLIB
  9550. ## CC just makes a GrossModule.
  9551. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  9552. reload_cmds='$CC -r -o $output$reload_objs'
  9553. hardcode_direct=no
  9554. ;;
  9555. motorola)
  9556. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9557. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  9558. ;;
  9559. esac
  9560. runpath_var='LD_RUN_PATH'
  9561. hardcode_shlibpath_var=no
  9562. ;;
  9563. sysv4.3*)
  9564. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9565. hardcode_shlibpath_var=no
  9566. export_dynamic_flag_spec='-Bexport'
  9567. ;;
  9568. sysv4*MP*)
  9569. if test -d /usr/nec; then
  9570. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9571. hardcode_shlibpath_var=no
  9572. runpath_var=LD_RUN_PATH
  9573. hardcode_runpath_var=yes
  9574. ld_shlibs=yes
  9575. fi
  9576. ;;
  9577. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  9578. no_undefined_flag='${wl}-z,text'
  9579. archive_cmds_need_lc=no
  9580. hardcode_shlibpath_var=no
  9581. runpath_var='LD_RUN_PATH'
  9582. if test "$GCC" = yes; then
  9583. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9584. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9585. else
  9586. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9587. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9588. fi
  9589. ;;
  9590. sysv5* | sco3.2v5* | sco5v6*)
  9591. # Note: We can NOT use -z defs as we might desire, because we do not
  9592. # link with -lc, and that would cause any symbols used from libc to
  9593. # always be unresolved, which means just about no library would
  9594. # ever link correctly. If we're not using GNU ld we use -z text
  9595. # though, which does catch some bad symbols but isn't as heavy-handed
  9596. # as -z defs.
  9597. no_undefined_flag='${wl}-z,text'
  9598. allow_undefined_flag='${wl}-z,nodefs'
  9599. archive_cmds_need_lc=no
  9600. hardcode_shlibpath_var=no
  9601. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  9602. hardcode_libdir_separator=':'
  9603. link_all_deplibs=yes
  9604. export_dynamic_flag_spec='${wl}-Bexport'
  9605. runpath_var='LD_RUN_PATH'
  9606. if test "$GCC" = yes; then
  9607. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9608. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9609. else
  9610. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9611. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9612. fi
  9613. ;;
  9614. uts4*)
  9615. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9616. hardcode_libdir_flag_spec='-L$libdir'
  9617. hardcode_shlibpath_var=no
  9618. ;;
  9619. *)
  9620. ld_shlibs=no
  9621. ;;
  9622. esac
  9623. if test x$host_vendor = xsni; then
  9624. case $host in
  9625. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  9626. export_dynamic_flag_spec='${wl}-Blargedynsym'
  9627. ;;
  9628. esac
  9629. fi
  9630. fi
  9631. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  9632. $as_echo "$ld_shlibs" >&6; }
  9633. test "$ld_shlibs" = no && can_build_shared=no
  9634. with_gnu_ld=$with_gnu_ld
  9635. #
  9636. # Do we need to explicitly link libc?
  9637. #
  9638. case "x$archive_cmds_need_lc" in
  9639. x|xyes)
  9640. # Assume -lc should be added
  9641. archive_cmds_need_lc=yes
  9642. if test "$enable_shared" = yes && test "$GCC" = yes; then
  9643. case $archive_cmds in
  9644. *'~'*)
  9645. # FIXME: we may have to deal with multi-command sequences.
  9646. ;;
  9647. '$CC '*)
  9648. # Test whether the compiler implicitly links with -lc since on some
  9649. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  9650. # to ld, don't add -lc before -lgcc.
  9651. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  9652. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  9653. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  9654. $as_echo_n "(cached) " >&6
  9655. else
  9656. $RM conftest*
  9657. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9658. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9659. (eval $ac_compile) 2>&5
  9660. ac_status=$?
  9661. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9662. test $ac_status = 0; } 2>conftest.err; then
  9663. soname=conftest
  9664. lib=conftest
  9665. libobjs=conftest.$ac_objext
  9666. deplibs=
  9667. wl=$lt_prog_compiler_wl
  9668. pic_flag=$lt_prog_compiler_pic
  9669. compiler_flags=-v
  9670. linker_flags=-v
  9671. verstring=
  9672. output_objdir=.
  9673. libname=conftest
  9674. lt_save_allow_undefined_flag=$allow_undefined_flag
  9675. allow_undefined_flag=
  9676. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  9677. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9678. ac_status=$?
  9679. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9680. test $ac_status = 0; }
  9681. then
  9682. lt_cv_archive_cmds_need_lc=no
  9683. else
  9684. lt_cv_archive_cmds_need_lc=yes
  9685. fi
  9686. allow_undefined_flag=$lt_save_allow_undefined_flag
  9687. else
  9688. cat conftest.err 1>&5
  9689. fi
  9690. $RM conftest*
  9691. fi
  9692. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  9693. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  9694. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  9695. ;;
  9696. esac
  9697. fi
  9698. ;;
  9699. esac
  9700. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  9701. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  9702. if test "$GCC" = yes; then
  9703. case $host_os in
  9704. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  9705. *) lt_awk_arg="/^libraries:/" ;;
  9706. esac
  9707. case $host_os in
  9708. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  9709. *) lt_sed_strip_eq="s,=/,/,g" ;;
  9710. esac
  9711. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  9712. case $lt_search_path_spec in
  9713. *\;*)
  9714. # if the path contains ";" then we assume it to be the separator
  9715. # otherwise default to the standard path separator (i.e. ":") - it is
  9716. # assumed that no part of a normal pathname contains ";" but that should
  9717. # okay in the real world where ";" in dirpaths is itself problematic.
  9718. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  9719. ;;
  9720. *)
  9721. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  9722. ;;
  9723. esac
  9724. # Ok, now we have the path, separated by spaces, we can step through it
  9725. # and add multilib dir if necessary.
  9726. lt_tmp_lt_search_path_spec=
  9727. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9728. for lt_sys_path in $lt_search_path_spec; do
  9729. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  9730. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  9731. else
  9732. test -d "$lt_sys_path" && \
  9733. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  9734. fi
  9735. done
  9736. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  9737. BEGIN {RS=" "; FS="/|\n";} {
  9738. lt_foo="";
  9739. lt_count=0;
  9740. for (lt_i = NF; lt_i > 0; lt_i--) {
  9741. if ($lt_i != "" && $lt_i != ".") {
  9742. if ($lt_i == "..") {
  9743. lt_count++;
  9744. } else {
  9745. if (lt_count == 0) {
  9746. lt_foo="/" $lt_i lt_foo;
  9747. } else {
  9748. lt_count--;
  9749. }
  9750. }
  9751. }
  9752. }
  9753. if (lt_foo != "") { lt_freq[lt_foo]++; }
  9754. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9755. }'`
  9756. # AWK program above erroneously prepends '/' to C:/dos/paths
  9757. # for these hosts.
  9758. case $host_os in
  9759. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  9760. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  9761. esac
  9762. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  9763. else
  9764. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9765. fi
  9766. library_names_spec=
  9767. libname_spec='lib$name'
  9768. soname_spec=
  9769. shrext_cmds=".so"
  9770. postinstall_cmds=
  9771. postuninstall_cmds=
  9772. finish_cmds=
  9773. finish_eval=
  9774. shlibpath_var=
  9775. shlibpath_overrides_runpath=unknown
  9776. version_type=none
  9777. dynamic_linker="$host_os ld.so"
  9778. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9779. need_lib_prefix=unknown
  9780. hardcode_into_libs=no
  9781. # when you set need_version to no, make sure it does not cause -set_version
  9782. # flags to be left without arguments
  9783. need_version=unknown
  9784. case $host_os in
  9785. aix3*)
  9786. version_type=linux # correct to gnu/linux during the next big refactor
  9787. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  9788. shlibpath_var=LIBPATH
  9789. # AIX 3 has no versioning support, so we append a major version to the name.
  9790. soname_spec='${libname}${release}${shared_ext}$major'
  9791. ;;
  9792. aix[4-9]*)
  9793. version_type=linux # correct to gnu/linux during the next big refactor
  9794. need_lib_prefix=no
  9795. need_version=no
  9796. hardcode_into_libs=yes
  9797. if test "$host_cpu" = ia64; then
  9798. # AIX 5 supports IA64
  9799. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  9800. shlibpath_var=LD_LIBRARY_PATH
  9801. else
  9802. # With GCC up to 2.95.x, collect2 would create an import file
  9803. # for dependence libraries. The import file would start with
  9804. # the line `#! .'. This would cause the generated library to
  9805. # depend on `.', always an invalid library. This was fixed in
  9806. # development snapshots of GCC prior to 3.0.
  9807. case $host_os in
  9808. aix4 | aix4.[01] | aix4.[01].*)
  9809. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9810. echo ' yes '
  9811. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  9812. :
  9813. else
  9814. can_build_shared=no
  9815. fi
  9816. ;;
  9817. esac
  9818. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  9819. # soname into executable. Probably we can add versioning support to
  9820. # collect2, so additional links can be useful in future.
  9821. if test "$aix_use_runtimelinking" = yes; then
  9822. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9823. # instead of lib<name>.a to let people know that these are not
  9824. # typical AIX shared libraries.
  9825. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9826. else
  9827. # We preserve .a as extension for shared libraries through AIX4.2
  9828. # and later when we are not doing run time linking.
  9829. library_names_spec='${libname}${release}.a $libname.a'
  9830. soname_spec='${libname}${release}${shared_ext}$major'
  9831. fi
  9832. shlibpath_var=LIBPATH
  9833. fi
  9834. ;;
  9835. amigaos*)
  9836. case $host_cpu in
  9837. powerpc)
  9838. # Since July 2007 AmigaOS4 officially supports .so libraries.
  9839. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  9840. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9841. ;;
  9842. m68k)
  9843. library_names_spec='$libname.ixlibrary $libname.a'
  9844. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9845. 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'
  9846. ;;
  9847. esac
  9848. ;;
  9849. beos*)
  9850. library_names_spec='${libname}${shared_ext}'
  9851. dynamic_linker="$host_os ld.so"
  9852. shlibpath_var=LIBRARY_PATH
  9853. ;;
  9854. bsdi[45]*)
  9855. version_type=linux # correct to gnu/linux during the next big refactor
  9856. need_version=no
  9857. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9858. soname_spec='${libname}${release}${shared_ext}$major'
  9859. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9860. shlibpath_var=LD_LIBRARY_PATH
  9861. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9862. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9863. # the default ld.so.conf also contains /usr/contrib/lib and
  9864. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9865. # libtool to hard-code these into programs
  9866. ;;
  9867. cygwin* | mingw* | pw32* | cegcc*)
  9868. version_type=windows
  9869. shrext_cmds=".dll"
  9870. need_version=no
  9871. need_lib_prefix=no
  9872. case $GCC,$cc_basename in
  9873. yes,*)
  9874. # gcc
  9875. library_names_spec='$libname.dll.a'
  9876. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9877. postinstall_cmds='base_file=`basename \${file}`~
  9878. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  9879. dldir=$destdir/`dirname \$dlpath`~
  9880. test -d \$dldir || mkdir -p \$dldir~
  9881. $install_prog $dir/$dlname \$dldir/$dlname~
  9882. chmod a+x \$dldir/$dlname~
  9883. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9884. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9885. fi'
  9886. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9887. dlpath=$dir/\$dldll~
  9888. $RM \$dlpath'
  9889. shlibpath_overrides_runpath=yes
  9890. case $host_os in
  9891. cygwin*)
  9892. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  9893. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9894. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  9895. ;;
  9896. mingw* | cegcc*)
  9897. # MinGW DLLs use traditional 'lib' prefix
  9898. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9899. ;;
  9900. pw32*)
  9901. # pw32 DLLs use 'pw' prefix rather than 'lib'
  9902. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9903. ;;
  9904. esac
  9905. dynamic_linker='Win32 ld.exe'
  9906. ;;
  9907. *,cl*)
  9908. # Native MSVC
  9909. libname_spec='$name'
  9910. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9911. library_names_spec='${libname}.dll.lib'
  9912. case $build_os in
  9913. mingw*)
  9914. sys_lib_search_path_spec=
  9915. lt_save_ifs=$IFS
  9916. IFS=';'
  9917. for lt_path in $LIB
  9918. do
  9919. IFS=$lt_save_ifs
  9920. # Let DOS variable expansion print the short 8.3 style file name.
  9921. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  9922. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  9923. done
  9924. IFS=$lt_save_ifs
  9925. # Convert to MSYS style.
  9926. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  9927. ;;
  9928. cygwin*)
  9929. # Convert to unix form, then to dos form, then back to unix form
  9930. # but this time dos style (no spaces!) so that the unix form looks
  9931. # like /cygdrive/c/PROGRA~1:/cygdr...
  9932. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  9933. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  9934. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9935. ;;
  9936. *)
  9937. sys_lib_search_path_spec="$LIB"
  9938. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  9939. # It is most probably a Windows format PATH.
  9940. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  9941. else
  9942. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9943. fi
  9944. # FIXME: find the short name or the path components, as spaces are
  9945. # common. (e.g. "Program Files" -> "PROGRA~1")
  9946. ;;
  9947. esac
  9948. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9949. postinstall_cmds='base_file=`basename \${file}`~
  9950. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  9951. dldir=$destdir/`dirname \$dlpath`~
  9952. test -d \$dldir || mkdir -p \$dldir~
  9953. $install_prog $dir/$dlname \$dldir/$dlname'
  9954. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9955. dlpath=$dir/\$dldll~
  9956. $RM \$dlpath'
  9957. shlibpath_overrides_runpath=yes
  9958. dynamic_linker='Win32 link.exe'
  9959. ;;
  9960. *)
  9961. # Assume MSVC wrapper
  9962. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  9963. dynamic_linker='Win32 ld.exe'
  9964. ;;
  9965. esac
  9966. # FIXME: first we should search . and the directory the executable is in
  9967. shlibpath_var=PATH
  9968. ;;
  9969. darwin* | rhapsody*)
  9970. dynamic_linker="$host_os dyld"
  9971. version_type=darwin
  9972. need_lib_prefix=no
  9973. need_version=no
  9974. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  9975. soname_spec='${libname}${release}${major}$shared_ext'
  9976. shlibpath_overrides_runpath=yes
  9977. shlibpath_var=DYLD_LIBRARY_PATH
  9978. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  9979. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  9980. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  9981. ;;
  9982. dgux*)
  9983. version_type=linux # correct to gnu/linux during the next big refactor
  9984. need_lib_prefix=no
  9985. need_version=no
  9986. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  9987. soname_spec='${libname}${release}${shared_ext}$major'
  9988. shlibpath_var=LD_LIBRARY_PATH
  9989. ;;
  9990. freebsd* | dragonfly*)
  9991. # DragonFly does not have aout. When/if they implement a new
  9992. # versioning mechanism, adjust this.
  9993. if test -x /usr/bin/objformat; then
  9994. objformat=`/usr/bin/objformat`
  9995. else
  9996. case $host_os in
  9997. freebsd[23].*) objformat=aout ;;
  9998. *) objformat=elf ;;
  9999. esac
  10000. fi
  10001. version_type=freebsd-$objformat
  10002. case $version_type in
  10003. freebsd-elf*)
  10004. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  10005. need_version=no
  10006. need_lib_prefix=no
  10007. ;;
  10008. freebsd-*)
  10009. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  10010. need_version=yes
  10011. ;;
  10012. esac
  10013. shlibpath_var=LD_LIBRARY_PATH
  10014. case $host_os in
  10015. freebsd2.*)
  10016. shlibpath_overrides_runpath=yes
  10017. ;;
  10018. freebsd3.[01]* | freebsdelf3.[01]*)
  10019. shlibpath_overrides_runpath=yes
  10020. hardcode_into_libs=yes
  10021. ;;
  10022. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  10023. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  10024. shlibpath_overrides_runpath=no
  10025. hardcode_into_libs=yes
  10026. ;;
  10027. *) # from 4.6 on, and DragonFly
  10028. shlibpath_overrides_runpath=yes
  10029. hardcode_into_libs=yes
  10030. ;;
  10031. esac
  10032. ;;
  10033. gnu*)
  10034. version_type=linux # correct to gnu/linux during the next big refactor
  10035. need_lib_prefix=no
  10036. need_version=no
  10037. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  10038. soname_spec='${libname}${release}${shared_ext}$major'
  10039. shlibpath_var=LD_LIBRARY_PATH
  10040. shlibpath_overrides_runpath=no
  10041. hardcode_into_libs=yes
  10042. ;;
  10043. haiku*)
  10044. version_type=linux # correct to gnu/linux during the next big refactor
  10045. need_lib_prefix=no
  10046. need_version=no
  10047. dynamic_linker="$host_os runtime_loader"
  10048. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  10049. soname_spec='${libname}${release}${shared_ext}$major'
  10050. shlibpath_var=LIBRARY_PATH
  10051. shlibpath_overrides_runpath=yes
  10052. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  10053. hardcode_into_libs=yes
  10054. ;;
  10055. hpux9* | hpux10* | hpux11*)
  10056. # Give a soname corresponding to the major version so that dld.sl refuses to
  10057. # link against other versions.
  10058. version_type=sunos
  10059. need_lib_prefix=no
  10060. need_version=no
  10061. case $host_cpu in
  10062. ia64*)
  10063. shrext_cmds='.so'
  10064. hardcode_into_libs=yes
  10065. dynamic_linker="$host_os dld.so"
  10066. shlibpath_var=LD_LIBRARY_PATH
  10067. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10068. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10069. soname_spec='${libname}${release}${shared_ext}$major'
  10070. if test "X$HPUX_IA64_MODE" = X32; then
  10071. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  10072. else
  10073. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  10074. fi
  10075. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10076. ;;
  10077. hppa*64*)
  10078. shrext_cmds='.sl'
  10079. hardcode_into_libs=yes
  10080. dynamic_linker="$host_os dld.sl"
  10081. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  10082. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10083. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10084. soname_spec='${libname}${release}${shared_ext}$major'
  10085. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  10086. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10087. ;;
  10088. *)
  10089. shrext_cmds='.sl'
  10090. dynamic_linker="$host_os dld.sl"
  10091. shlibpath_var=SHLIB_PATH
  10092. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  10093. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10094. soname_spec='${libname}${release}${shared_ext}$major'
  10095. ;;
  10096. esac
  10097. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  10098. postinstall_cmds='chmod 555 $lib'
  10099. # or fails outright, so override atomically:
  10100. install_override_mode=555
  10101. ;;
  10102. interix[3-9]*)
  10103. version_type=linux # correct to gnu/linux during the next big refactor
  10104. need_lib_prefix=no
  10105. need_version=no
  10106. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  10107. soname_spec='${libname}${release}${shared_ext}$major'
  10108. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  10109. shlibpath_var=LD_LIBRARY_PATH
  10110. shlibpath_overrides_runpath=no
  10111. hardcode_into_libs=yes
  10112. ;;
  10113. irix5* | irix6* | nonstopux*)
  10114. case $host_os in
  10115. nonstopux*) version_type=nonstopux ;;
  10116. *)
  10117. if test "$lt_cv_prog_gnu_ld" = yes; then
  10118. version_type=linux # correct to gnu/linux during the next big refactor
  10119. else
  10120. version_type=irix
  10121. fi ;;
  10122. esac
  10123. need_lib_prefix=no
  10124. need_version=no
  10125. soname_spec='${libname}${release}${shared_ext}$major'
  10126. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  10127. case $host_os in
  10128. irix5* | nonstopux*)
  10129. libsuff= shlibsuff=
  10130. ;;
  10131. *)
  10132. case $LD in # libtool.m4 will add one of these switches to LD
  10133. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  10134. libsuff= shlibsuff= libmagic=32-bit;;
  10135. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  10136. libsuff=32 shlibsuff=N32 libmagic=N32;;
  10137. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  10138. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  10139. *) libsuff= shlibsuff= libmagic=never-match;;
  10140. esac
  10141. ;;
  10142. esac
  10143. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  10144. shlibpath_overrides_runpath=no
  10145. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  10146. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  10147. hardcode_into_libs=yes
  10148. ;;
  10149. # No shared lib support for Linux oldld, aout, or coff.
  10150. linux*oldld* | linux*aout* | linux*coff*)
  10151. dynamic_linker=no
  10152. ;;
  10153. # This must be glibc/ELF.
  10154. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  10155. version_type=linux # correct to gnu/linux during the next big refactor
  10156. need_lib_prefix=no
  10157. need_version=no
  10158. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10159. soname_spec='${libname}${release}${shared_ext}$major'
  10160. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  10161. shlibpath_var=LD_LIBRARY_PATH
  10162. shlibpath_overrides_runpath=no
  10163. # Some binutils ld are patched to set DT_RUNPATH
  10164. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  10165. $as_echo_n "(cached) " >&6
  10166. else
  10167. lt_cv_shlibpath_overrides_runpath=no
  10168. save_LDFLAGS=$LDFLAGS
  10169. save_libdir=$libdir
  10170. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  10171. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  10172. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10173. /* end confdefs.h. */
  10174. int
  10175. main ()
  10176. {
  10177. ;
  10178. return 0;
  10179. }
  10180. _ACEOF
  10181. if ac_fn_c_try_link "$LINENO"; then :
  10182. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  10183. lt_cv_shlibpath_overrides_runpath=yes
  10184. fi
  10185. fi
  10186. rm -f core conftest.err conftest.$ac_objext \
  10187. conftest$ac_exeext conftest.$ac_ext
  10188. LDFLAGS=$save_LDFLAGS
  10189. libdir=$save_libdir
  10190. fi
  10191. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  10192. # This implies no fast_install, which is unacceptable.
  10193. # Some rework will be needed to allow for fast_install
  10194. # before this can be enabled.
  10195. hardcode_into_libs=yes
  10196. # Add ABI-specific directories to the system library path.
  10197. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  10198. # Append ld.so.conf contents to the search path
  10199. if test -f /etc/ld.so.conf; then
  10200. 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' ' '`
  10201. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  10202. fi
  10203. # We used to test for /lib/ld.so.1 and disable shared libraries on
  10204. # powerpc, because MkLinux only supported shared libraries with the
  10205. # GNU dynamic linker. Since this was broken with cross compilers,
  10206. # most powerpc-linux boxes support dynamic linking these days and
  10207. # people can always --disable-shared, the test was removed, and we
  10208. # assume the GNU/Linux dynamic linker is in use.
  10209. dynamic_linker='GNU/Linux ld.so'
  10210. ;;
  10211. netbsd*)
  10212. version_type=sunos
  10213. need_lib_prefix=no
  10214. need_version=no
  10215. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10216. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  10217. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10218. dynamic_linker='NetBSD (a.out) ld.so'
  10219. else
  10220. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  10221. soname_spec='${libname}${release}${shared_ext}$major'
  10222. dynamic_linker='NetBSD ld.elf_so'
  10223. fi
  10224. shlibpath_var=LD_LIBRARY_PATH
  10225. shlibpath_overrides_runpath=yes
  10226. hardcode_into_libs=yes
  10227. ;;
  10228. newsos6)
  10229. version_type=linux # correct to gnu/linux during the next big refactor
  10230. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10231. shlibpath_var=LD_LIBRARY_PATH
  10232. shlibpath_overrides_runpath=yes
  10233. ;;
  10234. *nto* | *qnx*)
  10235. version_type=qnx
  10236. need_lib_prefix=no
  10237. need_version=no
  10238. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10239. soname_spec='${libname}${release}${shared_ext}$major'
  10240. shlibpath_var=LD_LIBRARY_PATH
  10241. shlibpath_overrides_runpath=no
  10242. hardcode_into_libs=yes
  10243. dynamic_linker='ldqnx.so'
  10244. ;;
  10245. openbsd*)
  10246. version_type=sunos
  10247. sys_lib_dlsearch_path_spec="/usr/lib"
  10248. need_lib_prefix=no
  10249. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  10250. case $host_os in
  10251. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  10252. *) need_version=no ;;
  10253. esac
  10254. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  10255. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10256. shlibpath_var=LD_LIBRARY_PATH
  10257. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  10258. case $host_os in
  10259. openbsd2.[89] | openbsd2.[89].*)
  10260. shlibpath_overrides_runpath=no
  10261. ;;
  10262. *)
  10263. shlibpath_overrides_runpath=yes
  10264. ;;
  10265. esac
  10266. else
  10267. shlibpath_overrides_runpath=yes
  10268. fi
  10269. ;;
  10270. os2*)
  10271. libname_spec='$name'
  10272. shrext_cmds=".dll"
  10273. need_lib_prefix=no
  10274. library_names_spec='$libname${shared_ext} $libname.a'
  10275. dynamic_linker='OS/2 ld.exe'
  10276. shlibpath_var=LIBPATH
  10277. ;;
  10278. osf3* | osf4* | osf5*)
  10279. version_type=osf
  10280. need_lib_prefix=no
  10281. need_version=no
  10282. soname_spec='${libname}${release}${shared_ext}$major'
  10283. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10284. shlibpath_var=LD_LIBRARY_PATH
  10285. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  10286. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  10287. ;;
  10288. rdos*)
  10289. dynamic_linker=no
  10290. ;;
  10291. solaris*)
  10292. version_type=linux # correct to gnu/linux during the next big refactor
  10293. need_lib_prefix=no
  10294. need_version=no
  10295. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10296. soname_spec='${libname}${release}${shared_ext}$major'
  10297. shlibpath_var=LD_LIBRARY_PATH
  10298. shlibpath_overrides_runpath=yes
  10299. hardcode_into_libs=yes
  10300. # ldd complains unless libraries are executable
  10301. postinstall_cmds='chmod +x $lib'
  10302. ;;
  10303. sunos4*)
  10304. version_type=sunos
  10305. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  10306. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  10307. shlibpath_var=LD_LIBRARY_PATH
  10308. shlibpath_overrides_runpath=yes
  10309. if test "$with_gnu_ld" = yes; then
  10310. need_lib_prefix=no
  10311. fi
  10312. need_version=yes
  10313. ;;
  10314. sysv4 | sysv4.3*)
  10315. version_type=linux # correct to gnu/linux during the next big refactor
  10316. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10317. soname_spec='${libname}${release}${shared_ext}$major'
  10318. shlibpath_var=LD_LIBRARY_PATH
  10319. case $host_vendor in
  10320. sni)
  10321. shlibpath_overrides_runpath=no
  10322. need_lib_prefix=no
  10323. runpath_var=LD_RUN_PATH
  10324. ;;
  10325. siemens)
  10326. need_lib_prefix=no
  10327. ;;
  10328. motorola)
  10329. need_lib_prefix=no
  10330. need_version=no
  10331. shlibpath_overrides_runpath=no
  10332. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  10333. ;;
  10334. esac
  10335. ;;
  10336. sysv4*MP*)
  10337. if test -d /usr/nec ;then
  10338. version_type=linux # correct to gnu/linux during the next big refactor
  10339. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  10340. soname_spec='$libname${shared_ext}.$major'
  10341. shlibpath_var=LD_LIBRARY_PATH
  10342. fi
  10343. ;;
  10344. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  10345. version_type=freebsd-elf
  10346. need_lib_prefix=no
  10347. need_version=no
  10348. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  10349. soname_spec='${libname}${release}${shared_ext}$major'
  10350. shlibpath_var=LD_LIBRARY_PATH
  10351. shlibpath_overrides_runpath=yes
  10352. hardcode_into_libs=yes
  10353. if test "$with_gnu_ld" = yes; then
  10354. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  10355. else
  10356. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  10357. case $host_os in
  10358. sco3.2v5*)
  10359. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  10360. ;;
  10361. esac
  10362. fi
  10363. sys_lib_dlsearch_path_spec='/usr/lib'
  10364. ;;
  10365. tpf*)
  10366. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  10367. version_type=linux # correct to gnu/linux during the next big refactor
  10368. need_lib_prefix=no
  10369. need_version=no
  10370. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10371. shlibpath_var=LD_LIBRARY_PATH
  10372. shlibpath_overrides_runpath=no
  10373. hardcode_into_libs=yes
  10374. ;;
  10375. uts4*)
  10376. version_type=linux # correct to gnu/linux during the next big refactor
  10377. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10378. soname_spec='${libname}${release}${shared_ext}$major'
  10379. shlibpath_var=LD_LIBRARY_PATH
  10380. ;;
  10381. *)
  10382. dynamic_linker=no
  10383. ;;
  10384. esac
  10385. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  10386. $as_echo "$dynamic_linker" >&6; }
  10387. test "$dynamic_linker" = no && can_build_shared=no
  10388. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  10389. if test "$GCC" = yes; then
  10390. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  10391. fi
  10392. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  10393. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  10394. fi
  10395. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  10396. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  10397. fi
  10398. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  10399. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  10400. hardcode_action=
  10401. if test -n "$hardcode_libdir_flag_spec" ||
  10402. test -n "$runpath_var" ||
  10403. test "X$hardcode_automatic" = "Xyes" ; then
  10404. # We can hardcode non-existent directories.
  10405. if test "$hardcode_direct" != no &&
  10406. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  10407. # have to relink, otherwise we might link with an installed library
  10408. # when we should be linking with a yet-to-be-installed one
  10409. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  10410. test "$hardcode_minus_L" != no; then
  10411. # Linking always hardcodes the temporary library directory.
  10412. hardcode_action=relink
  10413. else
  10414. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  10415. hardcode_action=immediate
  10416. fi
  10417. else
  10418. # We cannot hardcode anything, or else we can only hardcode existing
  10419. # directories.
  10420. hardcode_action=unsupported
  10421. fi
  10422. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  10423. $as_echo "$hardcode_action" >&6; }
  10424. if test "$hardcode_action" = relink ||
  10425. test "$inherit_rpath" = yes; then
  10426. # Fast installation is not supported
  10427. enable_fast_install=no
  10428. elif test "$shlibpath_overrides_runpath" = yes ||
  10429. test "$enable_shared" = no; then
  10430. # Fast installation is not necessary
  10431. enable_fast_install=needless
  10432. fi
  10433. if test "x$enable_dlopen" != xyes; then
  10434. enable_dlopen=unknown
  10435. enable_dlopen_self=unknown
  10436. enable_dlopen_self_static=unknown
  10437. else
  10438. lt_cv_dlopen=no
  10439. lt_cv_dlopen_libs=
  10440. case $host_os in
  10441. beos*)
  10442. lt_cv_dlopen="load_add_on"
  10443. lt_cv_dlopen_libs=
  10444. lt_cv_dlopen_self=yes
  10445. ;;
  10446. mingw* | pw32* | cegcc*)
  10447. lt_cv_dlopen="LoadLibrary"
  10448. lt_cv_dlopen_libs=
  10449. ;;
  10450. cygwin*)
  10451. lt_cv_dlopen="dlopen"
  10452. lt_cv_dlopen_libs=
  10453. ;;
  10454. darwin*)
  10455. # if libdl is installed we need to link against it
  10456. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10457. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10458. if ${ac_cv_lib_dl_dlopen+:} false; then :
  10459. $as_echo_n "(cached) " >&6
  10460. else
  10461. ac_check_lib_save_LIBS=$LIBS
  10462. LIBS="-ldl $LIBS"
  10463. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10464. /* end confdefs.h. */
  10465. /* Override any GCC internal prototype to avoid an error.
  10466. Use char because int might match the return type of a GCC
  10467. builtin and then its argument prototype would still apply. */
  10468. #ifdef __cplusplus
  10469. extern "C"
  10470. #endif
  10471. char dlopen ();
  10472. int
  10473. main ()
  10474. {
  10475. return dlopen ();
  10476. ;
  10477. return 0;
  10478. }
  10479. _ACEOF
  10480. if ac_fn_c_try_link "$LINENO"; then :
  10481. ac_cv_lib_dl_dlopen=yes
  10482. else
  10483. ac_cv_lib_dl_dlopen=no
  10484. fi
  10485. rm -f core conftest.err conftest.$ac_objext \
  10486. conftest$ac_exeext conftest.$ac_ext
  10487. LIBS=$ac_check_lib_save_LIBS
  10488. fi
  10489. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10490. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10491. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10492. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  10493. else
  10494. lt_cv_dlopen="dyld"
  10495. lt_cv_dlopen_libs=
  10496. lt_cv_dlopen_self=yes
  10497. fi
  10498. ;;
  10499. *)
  10500. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  10501. if test "x$ac_cv_func_shl_load" = xyes; then :
  10502. lt_cv_dlopen="shl_load"
  10503. else
  10504. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  10505. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  10506. if ${ac_cv_lib_dld_shl_load+:} false; then :
  10507. $as_echo_n "(cached) " >&6
  10508. else
  10509. ac_check_lib_save_LIBS=$LIBS
  10510. LIBS="-ldld $LIBS"
  10511. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10512. /* end confdefs.h. */
  10513. /* Override any GCC internal prototype to avoid an error.
  10514. Use char because int might match the return type of a GCC
  10515. builtin and then its argument prototype would still apply. */
  10516. #ifdef __cplusplus
  10517. extern "C"
  10518. #endif
  10519. char shl_load ();
  10520. int
  10521. main ()
  10522. {
  10523. return shl_load ();
  10524. ;
  10525. return 0;
  10526. }
  10527. _ACEOF
  10528. if ac_fn_c_try_link "$LINENO"; then :
  10529. ac_cv_lib_dld_shl_load=yes
  10530. else
  10531. ac_cv_lib_dld_shl_load=no
  10532. fi
  10533. rm -f core conftest.err conftest.$ac_objext \
  10534. conftest$ac_exeext conftest.$ac_ext
  10535. LIBS=$ac_check_lib_save_LIBS
  10536. fi
  10537. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  10538. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  10539. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  10540. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  10541. else
  10542. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  10543. if test "x$ac_cv_func_dlopen" = xyes; then :
  10544. lt_cv_dlopen="dlopen"
  10545. else
  10546. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10547. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10548. if ${ac_cv_lib_dl_dlopen+:} false; then :
  10549. $as_echo_n "(cached) " >&6
  10550. else
  10551. ac_check_lib_save_LIBS=$LIBS
  10552. LIBS="-ldl $LIBS"
  10553. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10554. /* end confdefs.h. */
  10555. /* Override any GCC internal prototype to avoid an error.
  10556. Use char because int might match the return type of a GCC
  10557. builtin and then its argument prototype would still apply. */
  10558. #ifdef __cplusplus
  10559. extern "C"
  10560. #endif
  10561. char dlopen ();
  10562. int
  10563. main ()
  10564. {
  10565. return dlopen ();
  10566. ;
  10567. return 0;
  10568. }
  10569. _ACEOF
  10570. if ac_fn_c_try_link "$LINENO"; then :
  10571. ac_cv_lib_dl_dlopen=yes
  10572. else
  10573. ac_cv_lib_dl_dlopen=no
  10574. fi
  10575. rm -f core conftest.err conftest.$ac_objext \
  10576. conftest$ac_exeext conftest.$ac_ext
  10577. LIBS=$ac_check_lib_save_LIBS
  10578. fi
  10579. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10580. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10581. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10582. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  10583. else
  10584. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  10585. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  10586. if ${ac_cv_lib_svld_dlopen+:} false; then :
  10587. $as_echo_n "(cached) " >&6
  10588. else
  10589. ac_check_lib_save_LIBS=$LIBS
  10590. LIBS="-lsvld $LIBS"
  10591. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10592. /* end confdefs.h. */
  10593. /* Override any GCC internal prototype to avoid an error.
  10594. Use char because int might match the return type of a GCC
  10595. builtin and then its argument prototype would still apply. */
  10596. #ifdef __cplusplus
  10597. extern "C"
  10598. #endif
  10599. char dlopen ();
  10600. int
  10601. main ()
  10602. {
  10603. return dlopen ();
  10604. ;
  10605. return 0;
  10606. }
  10607. _ACEOF
  10608. if ac_fn_c_try_link "$LINENO"; then :
  10609. ac_cv_lib_svld_dlopen=yes
  10610. else
  10611. ac_cv_lib_svld_dlopen=no
  10612. fi
  10613. rm -f core conftest.err conftest.$ac_objext \
  10614. conftest$ac_exeext conftest.$ac_ext
  10615. LIBS=$ac_check_lib_save_LIBS
  10616. fi
  10617. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  10618. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  10619. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  10620. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  10621. else
  10622. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  10623. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  10624. if ${ac_cv_lib_dld_dld_link+:} false; then :
  10625. $as_echo_n "(cached) " >&6
  10626. else
  10627. ac_check_lib_save_LIBS=$LIBS
  10628. LIBS="-ldld $LIBS"
  10629. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10630. /* end confdefs.h. */
  10631. /* Override any GCC internal prototype to avoid an error.
  10632. Use char because int might match the return type of a GCC
  10633. builtin and then its argument prototype would still apply. */
  10634. #ifdef __cplusplus
  10635. extern "C"
  10636. #endif
  10637. char dld_link ();
  10638. int
  10639. main ()
  10640. {
  10641. return dld_link ();
  10642. ;
  10643. return 0;
  10644. }
  10645. _ACEOF
  10646. if ac_fn_c_try_link "$LINENO"; then :
  10647. ac_cv_lib_dld_dld_link=yes
  10648. else
  10649. ac_cv_lib_dld_dld_link=no
  10650. fi
  10651. rm -f core conftest.err conftest.$ac_objext \
  10652. conftest$ac_exeext conftest.$ac_ext
  10653. LIBS=$ac_check_lib_save_LIBS
  10654. fi
  10655. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  10656. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  10657. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  10658. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  10659. fi
  10660. fi
  10661. fi
  10662. fi
  10663. fi
  10664. fi
  10665. ;;
  10666. esac
  10667. if test "x$lt_cv_dlopen" != xno; then
  10668. enable_dlopen=yes
  10669. else
  10670. enable_dlopen=no
  10671. fi
  10672. case $lt_cv_dlopen in
  10673. dlopen)
  10674. save_CPPFLAGS="$CPPFLAGS"
  10675. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  10676. save_LDFLAGS="$LDFLAGS"
  10677. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  10678. save_LIBS="$LIBS"
  10679. LIBS="$lt_cv_dlopen_libs $LIBS"
  10680. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  10681. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  10682. if ${lt_cv_dlopen_self+:} false; then :
  10683. $as_echo_n "(cached) " >&6
  10684. else
  10685. if test "$cross_compiling" = yes; then :
  10686. lt_cv_dlopen_self=cross
  10687. else
  10688. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10689. lt_status=$lt_dlunknown
  10690. cat > conftest.$ac_ext <<_LT_EOF
  10691. #line $LINENO "configure"
  10692. #include "confdefs.h"
  10693. #if HAVE_DLFCN_H
  10694. #include <dlfcn.h>
  10695. #endif
  10696. #include <stdio.h>
  10697. #ifdef RTLD_GLOBAL
  10698. # define LT_DLGLOBAL RTLD_GLOBAL
  10699. #else
  10700. # ifdef DL_GLOBAL
  10701. # define LT_DLGLOBAL DL_GLOBAL
  10702. # else
  10703. # define LT_DLGLOBAL 0
  10704. # endif
  10705. #endif
  10706. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10707. find out it does not work in some platform. */
  10708. #ifndef LT_DLLAZY_OR_NOW
  10709. # ifdef RTLD_LAZY
  10710. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10711. # else
  10712. # ifdef DL_LAZY
  10713. # define LT_DLLAZY_OR_NOW DL_LAZY
  10714. # else
  10715. # ifdef RTLD_NOW
  10716. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10717. # else
  10718. # ifdef DL_NOW
  10719. # define LT_DLLAZY_OR_NOW DL_NOW
  10720. # else
  10721. # define LT_DLLAZY_OR_NOW 0
  10722. # endif
  10723. # endif
  10724. # endif
  10725. # endif
  10726. #endif
  10727. /* When -fvisbility=hidden is used, assume the code has been annotated
  10728. correspondingly for the symbols needed. */
  10729. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10730. int fnord () __attribute__((visibility("default")));
  10731. #endif
  10732. int fnord () { return 42; }
  10733. int main ()
  10734. {
  10735. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10736. int status = $lt_dlunknown;
  10737. if (self)
  10738. {
  10739. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10740. else
  10741. {
  10742. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10743. else puts (dlerror ());
  10744. }
  10745. /* dlclose (self); */
  10746. }
  10747. else
  10748. puts (dlerror ());
  10749. return status;
  10750. }
  10751. _LT_EOF
  10752. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10753. (eval $ac_link) 2>&5
  10754. ac_status=$?
  10755. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10756. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10757. (./conftest; exit; ) >&5 2>/dev/null
  10758. lt_status=$?
  10759. case x$lt_status in
  10760. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  10761. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  10762. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  10763. esac
  10764. else :
  10765. # compilation failed
  10766. lt_cv_dlopen_self=no
  10767. fi
  10768. fi
  10769. rm -fr conftest*
  10770. fi
  10771. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  10772. $as_echo "$lt_cv_dlopen_self" >&6; }
  10773. if test "x$lt_cv_dlopen_self" = xyes; then
  10774. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  10775. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  10776. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  10777. if ${lt_cv_dlopen_self_static+:} false; then :
  10778. $as_echo_n "(cached) " >&6
  10779. else
  10780. if test "$cross_compiling" = yes; then :
  10781. lt_cv_dlopen_self_static=cross
  10782. else
  10783. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10784. lt_status=$lt_dlunknown
  10785. cat > conftest.$ac_ext <<_LT_EOF
  10786. #line $LINENO "configure"
  10787. #include "confdefs.h"
  10788. #if HAVE_DLFCN_H
  10789. #include <dlfcn.h>
  10790. #endif
  10791. #include <stdio.h>
  10792. #ifdef RTLD_GLOBAL
  10793. # define LT_DLGLOBAL RTLD_GLOBAL
  10794. #else
  10795. # ifdef DL_GLOBAL
  10796. # define LT_DLGLOBAL DL_GLOBAL
  10797. # else
  10798. # define LT_DLGLOBAL 0
  10799. # endif
  10800. #endif
  10801. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10802. find out it does not work in some platform. */
  10803. #ifndef LT_DLLAZY_OR_NOW
  10804. # ifdef RTLD_LAZY
  10805. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10806. # else
  10807. # ifdef DL_LAZY
  10808. # define LT_DLLAZY_OR_NOW DL_LAZY
  10809. # else
  10810. # ifdef RTLD_NOW
  10811. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10812. # else
  10813. # ifdef DL_NOW
  10814. # define LT_DLLAZY_OR_NOW DL_NOW
  10815. # else
  10816. # define LT_DLLAZY_OR_NOW 0
  10817. # endif
  10818. # endif
  10819. # endif
  10820. # endif
  10821. #endif
  10822. /* When -fvisbility=hidden is used, assume the code has been annotated
  10823. correspondingly for the symbols needed. */
  10824. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10825. int fnord () __attribute__((visibility("default")));
  10826. #endif
  10827. int fnord () { return 42; }
  10828. int main ()
  10829. {
  10830. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10831. int status = $lt_dlunknown;
  10832. if (self)
  10833. {
  10834. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10835. else
  10836. {
  10837. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10838. else puts (dlerror ());
  10839. }
  10840. /* dlclose (self); */
  10841. }
  10842. else
  10843. puts (dlerror ());
  10844. return status;
  10845. }
  10846. _LT_EOF
  10847. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10848. (eval $ac_link) 2>&5
  10849. ac_status=$?
  10850. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10851. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10852. (./conftest; exit; ) >&5 2>/dev/null
  10853. lt_status=$?
  10854. case x$lt_status in
  10855. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  10856. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  10857. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  10858. esac
  10859. else :
  10860. # compilation failed
  10861. lt_cv_dlopen_self_static=no
  10862. fi
  10863. fi
  10864. rm -fr conftest*
  10865. fi
  10866. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  10867. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  10868. fi
  10869. CPPFLAGS="$save_CPPFLAGS"
  10870. LDFLAGS="$save_LDFLAGS"
  10871. LIBS="$save_LIBS"
  10872. ;;
  10873. esac
  10874. case $lt_cv_dlopen_self in
  10875. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  10876. *) enable_dlopen_self=unknown ;;
  10877. esac
  10878. case $lt_cv_dlopen_self_static in
  10879. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  10880. *) enable_dlopen_self_static=unknown ;;
  10881. esac
  10882. fi
  10883. striplib=
  10884. old_striplib=
  10885. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  10886. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  10887. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  10888. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  10889. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  10890. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10891. $as_echo "yes" >&6; }
  10892. else
  10893. # FIXME - insert some real tests, host_os isn't really good enough
  10894. case $host_os in
  10895. darwin*)
  10896. if test -n "$STRIP" ; then
  10897. striplib="$STRIP -x"
  10898. old_striplib="$STRIP -S"
  10899. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10900. $as_echo "yes" >&6; }
  10901. else
  10902. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10903. $as_echo "no" >&6; }
  10904. fi
  10905. ;;
  10906. *)
  10907. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10908. $as_echo "no" >&6; }
  10909. ;;
  10910. esac
  10911. fi
  10912. # Report which library types will actually be built
  10913. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  10914. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  10915. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  10916. $as_echo "$can_build_shared" >&6; }
  10917. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  10918. $as_echo_n "checking whether to build shared libraries... " >&6; }
  10919. test "$can_build_shared" = "no" && enable_shared=no
  10920. # On AIX, shared libraries and static libraries use the same namespace, and
  10921. # are all built from PIC.
  10922. case $host_os in
  10923. aix3*)
  10924. test "$enable_shared" = yes && enable_static=no
  10925. if test -n "$RANLIB"; then
  10926. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  10927. postinstall_cmds='$RANLIB $lib'
  10928. fi
  10929. ;;
  10930. aix[4-9]*)
  10931. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  10932. test "$enable_shared" = yes && enable_static=no
  10933. fi
  10934. ;;
  10935. esac
  10936. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  10937. $as_echo "$enable_shared" >&6; }
  10938. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  10939. $as_echo_n "checking whether to build static libraries... " >&6; }
  10940. # Make sure either enable_shared or enable_static is yes.
  10941. test "$enable_shared" = yes || enable_static=yes
  10942. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  10943. $as_echo "$enable_static" >&6; }
  10944. fi
  10945. ac_ext=c
  10946. ac_cpp='$CPP $CPPFLAGS'
  10947. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10948. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10949. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10950. CC="$lt_save_CC"
  10951. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  10952. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  10953. (test "X$CXX" != "Xg++"))) ; then
  10954. ac_ext=cpp
  10955. ac_cpp='$CXXCPP $CPPFLAGS'
  10956. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10957. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10958. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10959. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  10960. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  10961. if test -z "$CXXCPP"; then
  10962. if ${ac_cv_prog_CXXCPP+:} false; then :
  10963. $as_echo_n "(cached) " >&6
  10964. else
  10965. # Double quotes because CXXCPP needs to be expanded
  10966. for CXXCPP in "$CXX -E" "/lib/cpp"
  10967. do
  10968. ac_preproc_ok=false
  10969. for ac_cxx_preproc_warn_flag in '' yes
  10970. do
  10971. # Use a header file that comes with gcc, so configuring glibc
  10972. # with a fresh cross-compiler works.
  10973. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10974. # <limits.h> exists even on freestanding compilers.
  10975. # On the NeXT, cc -E runs the code through the compiler's parser,
  10976. # not just through cpp. "Syntax error" is here to catch this case.
  10977. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10978. /* end confdefs.h. */
  10979. #ifdef __STDC__
  10980. # include <limits.h>
  10981. #else
  10982. # include <assert.h>
  10983. #endif
  10984. Syntax error
  10985. _ACEOF
  10986. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10987. else
  10988. # Broken: fails on valid input.
  10989. continue
  10990. fi
  10991. rm -f conftest.err conftest.i conftest.$ac_ext
  10992. # OK, works on sane cases. Now check whether nonexistent headers
  10993. # can be detected and how.
  10994. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10995. /* end confdefs.h. */
  10996. #include <ac_nonexistent.h>
  10997. _ACEOF
  10998. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10999. # Broken: success on invalid input.
  11000. continue
  11001. else
  11002. # Passes both tests.
  11003. ac_preproc_ok=:
  11004. break
  11005. fi
  11006. rm -f conftest.err conftest.i conftest.$ac_ext
  11007. done
  11008. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  11009. rm -f conftest.i conftest.err conftest.$ac_ext
  11010. if $ac_preproc_ok; then :
  11011. break
  11012. fi
  11013. done
  11014. ac_cv_prog_CXXCPP=$CXXCPP
  11015. fi
  11016. CXXCPP=$ac_cv_prog_CXXCPP
  11017. else
  11018. ac_cv_prog_CXXCPP=$CXXCPP
  11019. fi
  11020. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  11021. $as_echo "$CXXCPP" >&6; }
  11022. ac_preproc_ok=false
  11023. for ac_cxx_preproc_warn_flag in '' yes
  11024. do
  11025. # Use a header file that comes with gcc, so configuring glibc
  11026. # with a fresh cross-compiler works.
  11027. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11028. # <limits.h> exists even on freestanding compilers.
  11029. # On the NeXT, cc -E runs the code through the compiler's parser,
  11030. # not just through cpp. "Syntax error" is here to catch this case.
  11031. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11032. /* end confdefs.h. */
  11033. #ifdef __STDC__
  11034. # include <limits.h>
  11035. #else
  11036. # include <assert.h>
  11037. #endif
  11038. Syntax error
  11039. _ACEOF
  11040. if ac_fn_cxx_try_cpp "$LINENO"; then :
  11041. else
  11042. # Broken: fails on valid input.
  11043. continue
  11044. fi
  11045. rm -f conftest.err conftest.i conftest.$ac_ext
  11046. # OK, works on sane cases. Now check whether nonexistent headers
  11047. # can be detected and how.
  11048. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11049. /* end confdefs.h. */
  11050. #include <ac_nonexistent.h>
  11051. _ACEOF
  11052. if ac_fn_cxx_try_cpp "$LINENO"; then :
  11053. # Broken: success on invalid input.
  11054. continue
  11055. else
  11056. # Passes both tests.
  11057. ac_preproc_ok=:
  11058. break
  11059. fi
  11060. rm -f conftest.err conftest.i conftest.$ac_ext
  11061. done
  11062. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  11063. rm -f conftest.i conftest.err conftest.$ac_ext
  11064. if $ac_preproc_ok; then :
  11065. else
  11066. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11067. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  11068. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  11069. See \`config.log' for more details" "$LINENO" 5; }
  11070. fi
  11071. ac_ext=c
  11072. ac_cpp='$CPP $CPPFLAGS'
  11073. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11074. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11075. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11076. else
  11077. _lt_caught_CXX_error=yes
  11078. fi
  11079. ac_ext=cpp
  11080. ac_cpp='$CXXCPP $CPPFLAGS'
  11081. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11082. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11083. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  11084. archive_cmds_need_lc_CXX=no
  11085. allow_undefined_flag_CXX=
  11086. always_export_symbols_CXX=no
  11087. archive_expsym_cmds_CXX=
  11088. compiler_needs_object_CXX=no
  11089. export_dynamic_flag_spec_CXX=
  11090. hardcode_direct_CXX=no
  11091. hardcode_direct_absolute_CXX=no
  11092. hardcode_libdir_flag_spec_CXX=
  11093. hardcode_libdir_separator_CXX=
  11094. hardcode_minus_L_CXX=no
  11095. hardcode_shlibpath_var_CXX=unsupported
  11096. hardcode_automatic_CXX=no
  11097. inherit_rpath_CXX=no
  11098. module_cmds_CXX=
  11099. module_expsym_cmds_CXX=
  11100. link_all_deplibs_CXX=unknown
  11101. old_archive_cmds_CXX=$old_archive_cmds
  11102. reload_flag_CXX=$reload_flag
  11103. reload_cmds_CXX=$reload_cmds
  11104. no_undefined_flag_CXX=
  11105. whole_archive_flag_spec_CXX=
  11106. enable_shared_with_static_runtimes_CXX=no
  11107. # Source file extension for C++ test sources.
  11108. ac_ext=cpp
  11109. # Object file extension for compiled C++ test sources.
  11110. objext=o
  11111. objext_CXX=$objext
  11112. # No sense in running all these tests if we already determined that
  11113. # the CXX compiler isn't working. Some variables (like enable_shared)
  11114. # are currently assumed to apply to all compilers on this platform,
  11115. # and will be corrupted by setting them based on a non-working compiler.
  11116. if test "$_lt_caught_CXX_error" != yes; then
  11117. # Code to be used in simple compile tests
  11118. lt_simple_compile_test_code="int some_variable = 0;"
  11119. # Code to be used in simple link tests
  11120. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  11121. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  11122. # If no C compiler was specified, use CC.
  11123. LTCC=${LTCC-"$CC"}
  11124. # If no C compiler flags were specified, use CFLAGS.
  11125. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  11126. # Allow CC to be a program name with arguments.
  11127. compiler=$CC
  11128. # save warnings/boilerplate of simple test code
  11129. ac_outfile=conftest.$ac_objext
  11130. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  11131. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11132. _lt_compiler_boilerplate=`cat conftest.err`
  11133. $RM conftest*
  11134. ac_outfile=conftest.$ac_objext
  11135. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  11136. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11137. _lt_linker_boilerplate=`cat conftest.err`
  11138. $RM -r conftest*
  11139. # Allow CC to be a program name with arguments.
  11140. lt_save_CC=$CC
  11141. lt_save_CFLAGS=$CFLAGS
  11142. lt_save_LD=$LD
  11143. lt_save_GCC=$GCC
  11144. GCC=$GXX
  11145. lt_save_with_gnu_ld=$with_gnu_ld
  11146. lt_save_path_LD=$lt_cv_path_LD
  11147. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  11148. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  11149. else
  11150. $as_unset lt_cv_prog_gnu_ld
  11151. fi
  11152. if test -n "${lt_cv_path_LDCXX+set}"; then
  11153. lt_cv_path_LD=$lt_cv_path_LDCXX
  11154. else
  11155. $as_unset lt_cv_path_LD
  11156. fi
  11157. test -z "${LDCXX+set}" || LD=$LDCXX
  11158. CC=${CXX-"c++"}
  11159. CFLAGS=$CXXFLAGS
  11160. compiler=$CC
  11161. compiler_CXX=$CC
  11162. for cc_temp in $compiler""; do
  11163. case $cc_temp in
  11164. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  11165. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  11166. \-*) ;;
  11167. *) break;;
  11168. esac
  11169. done
  11170. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  11171. if test -n "$compiler"; then
  11172. # We don't want -fno-exception when compiling C++ code, so set the
  11173. # no_builtin_flag separately
  11174. if test "$GXX" = yes; then
  11175. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  11176. else
  11177. lt_prog_compiler_no_builtin_flag_CXX=
  11178. fi
  11179. if test "$GXX" = yes; then
  11180. # Set up default GNU C++ configuration
  11181. # Check whether --with-gnu-ld was given.
  11182. if test "${with_gnu_ld+set}" = set; then :
  11183. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  11184. else
  11185. with_gnu_ld=no
  11186. fi
  11187. ac_prog=ld
  11188. if test "$GCC" = yes; then
  11189. # Check if gcc -print-prog-name=ld gives a path.
  11190. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  11191. $as_echo_n "checking for ld used by $CC... " >&6; }
  11192. case $host in
  11193. *-*-mingw*)
  11194. # gcc leaves a trailing carriage return which upsets mingw
  11195. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  11196. *)
  11197. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  11198. esac
  11199. case $ac_prog in
  11200. # Accept absolute paths.
  11201. [\\/]* | ?:[\\/]*)
  11202. re_direlt='/[^/][^/]*/\.\./'
  11203. # Canonicalize the pathname of ld
  11204. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  11205. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  11206. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  11207. done
  11208. test -z "$LD" && LD="$ac_prog"
  11209. ;;
  11210. "")
  11211. # If it fails, then pretend we aren't using GCC.
  11212. ac_prog=ld
  11213. ;;
  11214. *)
  11215. # If it is relative, then search for the first ld in PATH.
  11216. with_gnu_ld=unknown
  11217. ;;
  11218. esac
  11219. elif test "$with_gnu_ld" = yes; then
  11220. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  11221. $as_echo_n "checking for GNU ld... " >&6; }
  11222. else
  11223. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  11224. $as_echo_n "checking for non-GNU ld... " >&6; }
  11225. fi
  11226. if ${lt_cv_path_LD+:} false; then :
  11227. $as_echo_n "(cached) " >&6
  11228. else
  11229. if test -z "$LD"; then
  11230. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  11231. for ac_dir in $PATH; do
  11232. IFS="$lt_save_ifs"
  11233. test -z "$ac_dir" && ac_dir=.
  11234. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  11235. lt_cv_path_LD="$ac_dir/$ac_prog"
  11236. # Check to see if the program is GNU ld. I'd rather use --version,
  11237. # but apparently some variants of GNU ld only accept -v.
  11238. # Break only if it was the GNU/non-GNU ld that we prefer.
  11239. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  11240. *GNU* | *'with BFD'*)
  11241. test "$with_gnu_ld" != no && break
  11242. ;;
  11243. *)
  11244. test "$with_gnu_ld" != yes && break
  11245. ;;
  11246. esac
  11247. fi
  11248. done
  11249. IFS="$lt_save_ifs"
  11250. else
  11251. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  11252. fi
  11253. fi
  11254. LD="$lt_cv_path_LD"
  11255. if test -n "$LD"; then
  11256. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  11257. $as_echo "$LD" >&6; }
  11258. else
  11259. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11260. $as_echo "no" >&6; }
  11261. fi
  11262. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  11263. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  11264. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  11265. if ${lt_cv_prog_gnu_ld+:} false; then :
  11266. $as_echo_n "(cached) " >&6
  11267. else
  11268. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  11269. case `$LD -v 2>&1 </dev/null` in
  11270. *GNU* | *'with BFD'*)
  11271. lt_cv_prog_gnu_ld=yes
  11272. ;;
  11273. *)
  11274. lt_cv_prog_gnu_ld=no
  11275. ;;
  11276. esac
  11277. fi
  11278. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  11279. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  11280. with_gnu_ld=$lt_cv_prog_gnu_ld
  11281. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  11282. # archiving commands below assume that GNU ld is being used.
  11283. if test "$with_gnu_ld" = yes; then
  11284. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11285. 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'
  11286. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11287. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11288. # If archive_cmds runs LD, not CC, wlarc should be empty
  11289. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  11290. # investigate it a little bit more. (MM)
  11291. wlarc='${wl}'
  11292. # ancient GNU ld didn't support --whole-archive et. al.
  11293. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  11294. $GREP 'no-whole-archive' > /dev/null; then
  11295. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11296. else
  11297. whole_archive_flag_spec_CXX=
  11298. fi
  11299. else
  11300. with_gnu_ld=no
  11301. wlarc=
  11302. # A generic and very simple default shared library creation
  11303. # command for GNU C++ for the case where it uses the native
  11304. # linker, instead of GNU ld. If possible, this setting should
  11305. # overridden to take advantage of the native linker features on
  11306. # the platform it is being used on.
  11307. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11308. fi
  11309. # Commands to make compiler produce verbose output that lists
  11310. # what "hidden" libraries, object files and flags are used when
  11311. # linking a shared library.
  11312. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11313. else
  11314. GXX=no
  11315. with_gnu_ld=no
  11316. wlarc=
  11317. fi
  11318. # PORTME: fill in a description of your system's C++ link characteristics
  11319. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  11320. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  11321. ld_shlibs_CXX=yes
  11322. case $host_os in
  11323. aix3*)
  11324. # FIXME: insert proper C++ library support
  11325. ld_shlibs_CXX=no
  11326. ;;
  11327. aix[4-9]*)
  11328. if test "$host_cpu" = ia64; then
  11329. # On IA64, the linker does run time linking by default, so we don't
  11330. # have to do anything special.
  11331. aix_use_runtimelinking=no
  11332. exp_sym_flag='-Bexport'
  11333. no_entry_flag=""
  11334. else
  11335. aix_use_runtimelinking=no
  11336. # Test if we are trying to use run time linking or normal
  11337. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  11338. # need to do runtime linking.
  11339. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  11340. for ld_flag in $LDFLAGS; do
  11341. case $ld_flag in
  11342. *-brtl*)
  11343. aix_use_runtimelinking=yes
  11344. break
  11345. ;;
  11346. esac
  11347. done
  11348. ;;
  11349. esac
  11350. exp_sym_flag='-bexport'
  11351. no_entry_flag='-bnoentry'
  11352. fi
  11353. # When large executables or shared objects are built, AIX ld can
  11354. # have problems creating the table of contents. If linking a library
  11355. # or program results in "error TOC overflow" add -mminimal-toc to
  11356. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  11357. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  11358. archive_cmds_CXX=''
  11359. hardcode_direct_CXX=yes
  11360. hardcode_direct_absolute_CXX=yes
  11361. hardcode_libdir_separator_CXX=':'
  11362. link_all_deplibs_CXX=yes
  11363. file_list_spec_CXX='${wl}-f,'
  11364. if test "$GXX" = yes; then
  11365. case $host_os in aix4.[012]|aix4.[012].*)
  11366. # We only want to do this on AIX 4.2 and lower, the check
  11367. # below for broken collect2 doesn't work under 4.3+
  11368. collect2name=`${CC} -print-prog-name=collect2`
  11369. if test -f "$collect2name" &&
  11370. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  11371. then
  11372. # We have reworked collect2
  11373. :
  11374. else
  11375. # We have old collect2
  11376. hardcode_direct_CXX=unsupported
  11377. # It fails to find uninstalled libraries when the uninstalled
  11378. # path is not listed in the libpath. Setting hardcode_minus_L
  11379. # to unsupported forces relinking
  11380. hardcode_minus_L_CXX=yes
  11381. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11382. hardcode_libdir_separator_CXX=
  11383. fi
  11384. esac
  11385. shared_flag='-shared'
  11386. if test "$aix_use_runtimelinking" = yes; then
  11387. shared_flag="$shared_flag "'${wl}-G'
  11388. fi
  11389. else
  11390. # not using gcc
  11391. if test "$host_cpu" = ia64; then
  11392. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  11393. # chokes on -Wl,-G. The following line is correct:
  11394. shared_flag='-G'
  11395. else
  11396. if test "$aix_use_runtimelinking" = yes; then
  11397. shared_flag='${wl}-G'
  11398. else
  11399. shared_flag='${wl}-bM:SRE'
  11400. fi
  11401. fi
  11402. fi
  11403. export_dynamic_flag_spec_CXX='${wl}-bexpall'
  11404. # It seems that -bexpall does not export symbols beginning with
  11405. # underscore (_), so it is better to generate a list of symbols to
  11406. # export.
  11407. always_export_symbols_CXX=yes
  11408. if test "$aix_use_runtimelinking" = yes; then
  11409. # Warning - without using the other runtime loading flags (-brtl),
  11410. # -berok will link without error, but may produce a broken library.
  11411. allow_undefined_flag_CXX='-berok'
  11412. # Determine the default libpath from the value encoded in an empty
  11413. # executable.
  11414. if test "${lt_cv_aix_libpath+set}" = set; then
  11415. aix_libpath=$lt_cv_aix_libpath
  11416. else
  11417. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11418. $as_echo_n "(cached) " >&6
  11419. else
  11420. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11421. /* end confdefs.h. */
  11422. int
  11423. main ()
  11424. {
  11425. ;
  11426. return 0;
  11427. }
  11428. _ACEOF
  11429. if ac_fn_cxx_try_link "$LINENO"; then :
  11430. lt_aix_libpath_sed='
  11431. /Import File Strings/,/^$/ {
  11432. /^0/ {
  11433. s/^0 *\([^ ]*\) *$/\1/
  11434. p
  11435. }
  11436. }'
  11437. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11438. # Check for a 64-bit object if we didn't find anything.
  11439. if test -z "$lt_cv_aix_libpath__CXX"; then
  11440. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11441. fi
  11442. fi
  11443. rm -f core conftest.err conftest.$ac_objext \
  11444. conftest$ac_exeext conftest.$ac_ext
  11445. if test -z "$lt_cv_aix_libpath__CXX"; then
  11446. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  11447. fi
  11448. fi
  11449. aix_libpath=$lt_cv_aix_libpath__CXX
  11450. fi
  11451. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11452. 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"
  11453. else
  11454. if test "$host_cpu" = ia64; then
  11455. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  11456. allow_undefined_flag_CXX="-z nodefs"
  11457. 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"
  11458. else
  11459. # Determine the default libpath from the value encoded in an
  11460. # empty executable.
  11461. if test "${lt_cv_aix_libpath+set}" = set; then
  11462. aix_libpath=$lt_cv_aix_libpath
  11463. else
  11464. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11465. $as_echo_n "(cached) " >&6
  11466. else
  11467. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11468. /* end confdefs.h. */
  11469. int
  11470. main ()
  11471. {
  11472. ;
  11473. return 0;
  11474. }
  11475. _ACEOF
  11476. if ac_fn_cxx_try_link "$LINENO"; then :
  11477. lt_aix_libpath_sed='
  11478. /Import File Strings/,/^$/ {
  11479. /^0/ {
  11480. s/^0 *\([^ ]*\) *$/\1/
  11481. p
  11482. }
  11483. }'
  11484. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11485. # Check for a 64-bit object if we didn't find anything.
  11486. if test -z "$lt_cv_aix_libpath__CXX"; then
  11487. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11488. fi
  11489. fi
  11490. rm -f core conftest.err conftest.$ac_objext \
  11491. conftest$ac_exeext conftest.$ac_ext
  11492. if test -z "$lt_cv_aix_libpath__CXX"; then
  11493. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  11494. fi
  11495. fi
  11496. aix_libpath=$lt_cv_aix_libpath__CXX
  11497. fi
  11498. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11499. # Warning - without using the other run time loading flags,
  11500. # -berok will link without error, but may produce a broken library.
  11501. no_undefined_flag_CXX=' ${wl}-bernotok'
  11502. allow_undefined_flag_CXX=' ${wl}-berok'
  11503. if test "$with_gnu_ld" = yes; then
  11504. # We only use this code for GNU lds that support --whole-archive.
  11505. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11506. else
  11507. # Exported symbols can be pulled into shared objects from archives
  11508. whole_archive_flag_spec_CXX='$convenience'
  11509. fi
  11510. archive_cmds_need_lc_CXX=yes
  11511. # This is similar to how AIX traditionally builds its shared
  11512. # libraries.
  11513. 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'
  11514. fi
  11515. fi
  11516. ;;
  11517. beos*)
  11518. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11519. allow_undefined_flag_CXX=unsupported
  11520. # Joseph Beckenbach <[email protected]> says some releases of gcc
  11521. # support --undefined. This deserves some investigation. FIXME
  11522. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11523. else
  11524. ld_shlibs_CXX=no
  11525. fi
  11526. ;;
  11527. chorus*)
  11528. case $cc_basename in
  11529. *)
  11530. # FIXME: insert proper C++ library support
  11531. ld_shlibs_CXX=no
  11532. ;;
  11533. esac
  11534. ;;
  11535. cygwin* | mingw* | pw32* | cegcc*)
  11536. case $GXX,$cc_basename in
  11537. ,cl* | no,cl*)
  11538. # Native MSVC
  11539. # hardcode_libdir_flag_spec is actually meaningless, as there is
  11540. # no search path for DLLs.
  11541. hardcode_libdir_flag_spec_CXX=' '
  11542. allow_undefined_flag_CXX=unsupported
  11543. always_export_symbols_CXX=yes
  11544. file_list_spec_CXX='@'
  11545. # Tell ltmain to make .lib files, not .a files.
  11546. libext=lib
  11547. # Tell ltmain to make .dll files, not .so files.
  11548. shrext_cmds=".dll"
  11549. # FIXME: Setting linknames here is a bad hack.
  11550. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  11551. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11552. $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  11553. else
  11554. $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  11555. fi~
  11556. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  11557. linknames='
  11558. # The linker will not automatically build a static lib if we build a DLL.
  11559. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  11560. enable_shared_with_static_runtimes_CXX=yes
  11561. # Don't use ranlib
  11562. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  11563. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  11564. lt_tool_outputfile="@TOOL_OUTPUT@"~
  11565. case $lt_outputfile in
  11566. *.exe|*.EXE) ;;
  11567. *)
  11568. lt_outputfile="$lt_outputfile.exe"
  11569. lt_tool_outputfile="$lt_tool_outputfile.exe"
  11570. ;;
  11571. esac~
  11572. func_to_tool_file "$lt_outputfile"~
  11573. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  11574. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  11575. $RM "$lt_outputfile.manifest";
  11576. fi'
  11577. ;;
  11578. *)
  11579. # g++
  11580. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  11581. # as there is no search path for DLLs.
  11582. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11583. export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
  11584. allow_undefined_flag_CXX=unsupported
  11585. always_export_symbols_CXX=no
  11586. enable_shared_with_static_runtimes_CXX=yes
  11587. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  11588. 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'
  11589. # If the export-symbols file already is a .def file (1st line
  11590. # is EXPORTS), use it as is; otherwise, prepend...
  11591. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11592. cp $export_symbols $output_objdir/$soname.def;
  11593. else
  11594. echo EXPORTS > $output_objdir/$soname.def;
  11595. cat $export_symbols >> $output_objdir/$soname.def;
  11596. fi~
  11597. $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'
  11598. else
  11599. ld_shlibs_CXX=no
  11600. fi
  11601. ;;
  11602. esac
  11603. ;;
  11604. darwin* | rhapsody*)
  11605. archive_cmds_need_lc_CXX=no
  11606. hardcode_direct_CXX=no
  11607. hardcode_automatic_CXX=yes
  11608. hardcode_shlibpath_var_CXX=unsupported
  11609. if test "$lt_cv_ld_force_load" = "yes"; then
  11610. 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\"`'
  11611. else
  11612. whole_archive_flag_spec_CXX=''
  11613. fi
  11614. link_all_deplibs_CXX=yes
  11615. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  11616. case $cc_basename in
  11617. ifort*) _lt_dar_can_shared=yes ;;
  11618. *) _lt_dar_can_shared=$GCC ;;
  11619. esac
  11620. if test "$_lt_dar_can_shared" = "yes"; then
  11621. output_verbose_link_cmd=func_echo_all
  11622. 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}"
  11623. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  11624. 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}"
  11625. 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}"
  11626. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  11627. 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}"
  11628. 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}"
  11629. fi
  11630. else
  11631. ld_shlibs_CXX=no
  11632. fi
  11633. ;;
  11634. dgux*)
  11635. case $cc_basename in
  11636. ec++*)
  11637. # FIXME: insert proper C++ library support
  11638. ld_shlibs_CXX=no
  11639. ;;
  11640. ghcx*)
  11641. # Green Hills C++ Compiler
  11642. # FIXME: insert proper C++ library support
  11643. ld_shlibs_CXX=no
  11644. ;;
  11645. *)
  11646. # FIXME: insert proper C++ library support
  11647. ld_shlibs_CXX=no
  11648. ;;
  11649. esac
  11650. ;;
  11651. freebsd2.*)
  11652. # C++ shared libraries reported to be fairly broken before
  11653. # switch to ELF
  11654. ld_shlibs_CXX=no
  11655. ;;
  11656. freebsd-elf*)
  11657. archive_cmds_need_lc_CXX=no
  11658. ;;
  11659. freebsd* | dragonfly*)
  11660. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  11661. # conventions
  11662. ld_shlibs_CXX=yes
  11663. ;;
  11664. gnu*)
  11665. ;;
  11666. haiku*)
  11667. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11668. link_all_deplibs_CXX=yes
  11669. ;;
  11670. hpux9*)
  11671. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11672. hardcode_libdir_separator_CXX=:
  11673. export_dynamic_flag_spec_CXX='${wl}-E'
  11674. hardcode_direct_CXX=yes
  11675. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11676. # but as the default
  11677. # location of the library.
  11678. case $cc_basename in
  11679. CC*)
  11680. # FIXME: insert proper C++ library support
  11681. ld_shlibs_CXX=no
  11682. ;;
  11683. aCC*)
  11684. 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'
  11685. # Commands to make compiler produce verbose output that lists
  11686. # what "hidden" libraries, object files and flags are used when
  11687. # linking a shared library.
  11688. #
  11689. # There doesn't appear to be a way to prevent this compiler from
  11690. # explicitly linking system object files so we need to strip them
  11691. # from the output so that they don't get included in the library
  11692. # dependencies.
  11693. 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"'
  11694. ;;
  11695. *)
  11696. if test "$GXX" = yes; then
  11697. 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'
  11698. else
  11699. # FIXME: insert proper C++ library support
  11700. ld_shlibs_CXX=no
  11701. fi
  11702. ;;
  11703. esac
  11704. ;;
  11705. hpux10*|hpux11*)
  11706. if test $with_gnu_ld = no; then
  11707. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11708. hardcode_libdir_separator_CXX=:
  11709. case $host_cpu in
  11710. hppa*64*|ia64*)
  11711. ;;
  11712. *)
  11713. export_dynamic_flag_spec_CXX='${wl}-E'
  11714. ;;
  11715. esac
  11716. fi
  11717. case $host_cpu in
  11718. hppa*64*|ia64*)
  11719. hardcode_direct_CXX=no
  11720. hardcode_shlibpath_var_CXX=no
  11721. ;;
  11722. *)
  11723. hardcode_direct_CXX=yes
  11724. hardcode_direct_absolute_CXX=yes
  11725. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11726. # but as the default
  11727. # location of the library.
  11728. ;;
  11729. esac
  11730. case $cc_basename in
  11731. CC*)
  11732. # FIXME: insert proper C++ library support
  11733. ld_shlibs_CXX=no
  11734. ;;
  11735. aCC*)
  11736. case $host_cpu in
  11737. hppa*64*)
  11738. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11739. ;;
  11740. ia64*)
  11741. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11742. ;;
  11743. *)
  11744. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11745. ;;
  11746. esac
  11747. # Commands to make compiler produce verbose output that lists
  11748. # what "hidden" libraries, object files and flags are used when
  11749. # linking a shared library.
  11750. #
  11751. # There doesn't appear to be a way to prevent this compiler from
  11752. # explicitly linking system object files so we need to strip them
  11753. # from the output so that they don't get included in the library
  11754. # dependencies.
  11755. 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"'
  11756. ;;
  11757. *)
  11758. if test "$GXX" = yes; then
  11759. if test $with_gnu_ld = no; then
  11760. case $host_cpu in
  11761. hppa*64*)
  11762. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11763. ;;
  11764. ia64*)
  11765. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11766. ;;
  11767. *)
  11768. 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'
  11769. ;;
  11770. esac
  11771. fi
  11772. else
  11773. # FIXME: insert proper C++ library support
  11774. ld_shlibs_CXX=no
  11775. fi
  11776. ;;
  11777. esac
  11778. ;;
  11779. interix[3-9]*)
  11780. hardcode_direct_CXX=no
  11781. hardcode_shlibpath_var_CXX=no
  11782. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11783. export_dynamic_flag_spec_CXX='${wl}-E'
  11784. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  11785. # Instead, shared libraries are loaded at an image base (0x10000000 by
  11786. # default) and relocated if they conflict, which is a slow very memory
  11787. # consuming and fragmenting process. To avoid this, we pick a random,
  11788. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  11789. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  11790. 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'
  11791. 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'
  11792. ;;
  11793. irix5* | irix6*)
  11794. case $cc_basename in
  11795. CC*)
  11796. # SGI C++
  11797. 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'
  11798. # Archives containing C++ object files must be created using
  11799. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  11800. # necessary to make sure instantiated templates are included
  11801. # in the archive.
  11802. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  11803. ;;
  11804. *)
  11805. if test "$GXX" = yes; then
  11806. if test "$with_gnu_ld" = no; then
  11807. 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'
  11808. else
  11809. 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'
  11810. fi
  11811. fi
  11812. link_all_deplibs_CXX=yes
  11813. ;;
  11814. esac
  11815. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11816. hardcode_libdir_separator_CXX=:
  11817. inherit_rpath_CXX=yes
  11818. ;;
  11819. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  11820. case $cc_basename in
  11821. KCC*)
  11822. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11823. # KCC will only create a shared library if the output file
  11824. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11825. # to its proper name (with version) after linking.
  11826. 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'
  11827. 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'
  11828. # Commands to make compiler produce verbose output that lists
  11829. # what "hidden" libraries, object files and flags are used when
  11830. # linking a shared library.
  11831. #
  11832. # There doesn't appear to be a way to prevent this compiler from
  11833. # explicitly linking system object files so we need to strip them
  11834. # from the output so that they don't get included in the library
  11835. # dependencies.
  11836. 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"'
  11837. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11838. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11839. # Archives containing C++ object files must be created using
  11840. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  11841. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  11842. ;;
  11843. icpc* | ecpc* )
  11844. # Intel C++
  11845. with_gnu_ld=yes
  11846. # version 8.0 and above of icpc choke on multiply defined symbols
  11847. # if we add $predep_objects and $postdep_objects, however 7.1 and
  11848. # earlier do not add the objects themselves.
  11849. case `$CC -V 2>&1` in
  11850. *"Version 7."*)
  11851. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11852. 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'
  11853. ;;
  11854. *) # Version 8.0 or newer
  11855. tmp_idyn=
  11856. case $host_cpu in
  11857. ia64*) tmp_idyn=' -i_dynamic';;
  11858. esac
  11859. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11860. 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'
  11861. ;;
  11862. esac
  11863. archive_cmds_need_lc_CXX=no
  11864. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11865. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11866. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11867. ;;
  11868. pgCC* | pgcpp*)
  11869. # Portland Group C++ compiler
  11870. case `$CC -V` in
  11871. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  11872. prelink_cmds_CXX='tpldir=Template.dir~
  11873. rm -rf $tpldir~
  11874. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  11875. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  11876. old_archive_cmds_CXX='tpldir=Template.dir~
  11877. rm -rf $tpldir~
  11878. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  11879. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  11880. $RANLIB $oldlib'
  11881. archive_cmds_CXX='tpldir=Template.dir~
  11882. rm -rf $tpldir~
  11883. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11884. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11885. archive_expsym_cmds_CXX='tpldir=Template.dir~
  11886. rm -rf $tpldir~
  11887. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11888. $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'
  11889. ;;
  11890. *) # Version 6 and above use weak symbols
  11891. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11892. 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'
  11893. ;;
  11894. esac
  11895. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  11896. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11897. 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'
  11898. ;;
  11899. cxx*)
  11900. # Compaq C++
  11901. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11902. 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'
  11903. runpath_var=LD_RUN_PATH
  11904. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11905. hardcode_libdir_separator_CXX=:
  11906. # Commands to make compiler produce verbose output that lists
  11907. # what "hidden" libraries, object files and flags are used when
  11908. # linking a shared library.
  11909. #
  11910. # There doesn't appear to be a way to prevent this compiler from
  11911. # explicitly linking system object files so we need to strip them
  11912. # from the output so that they don't get included in the library
  11913. # dependencies.
  11914. 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'
  11915. ;;
  11916. xl* | mpixl* | bgxl*)
  11917. # IBM XL 8.0 on PPC, with GNU ld
  11918. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11919. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11920. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11921. if test "x$supports_anon_versioning" = xyes; then
  11922. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  11923. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  11924. echo "local: *; };" >> $output_objdir/$libname.ver~
  11925. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  11926. fi
  11927. ;;
  11928. *)
  11929. case `$CC -V 2>&1 | sed 5q` in
  11930. *Sun\ C*)
  11931. # Sun C++ 5.9
  11932. no_undefined_flag_CXX=' -zdefs'
  11933. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11934. 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'
  11935. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11936. 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'
  11937. compiler_needs_object_CXX=yes
  11938. # Not sure whether something based on
  11939. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  11940. # would be better.
  11941. output_verbose_link_cmd='func_echo_all'
  11942. # Archives containing C++ object files must be created using
  11943. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11944. # necessary to make sure instantiated templates are included
  11945. # in the archive.
  11946. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11947. ;;
  11948. esac
  11949. ;;
  11950. esac
  11951. ;;
  11952. lynxos*)
  11953. # FIXME: insert proper C++ library support
  11954. ld_shlibs_CXX=no
  11955. ;;
  11956. m88k*)
  11957. # FIXME: insert proper C++ library support
  11958. ld_shlibs_CXX=no
  11959. ;;
  11960. mvs*)
  11961. case $cc_basename in
  11962. cxx*)
  11963. # FIXME: insert proper C++ library support
  11964. ld_shlibs_CXX=no
  11965. ;;
  11966. *)
  11967. # FIXME: insert proper C++ library support
  11968. ld_shlibs_CXX=no
  11969. ;;
  11970. esac
  11971. ;;
  11972. netbsd*)
  11973. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11974. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  11975. wlarc=
  11976. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11977. hardcode_direct_CXX=yes
  11978. hardcode_shlibpath_var_CXX=no
  11979. fi
  11980. # Workaround some broken pre-1.5 toolchains
  11981. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  11982. ;;
  11983. *nto* | *qnx*)
  11984. ld_shlibs_CXX=yes
  11985. ;;
  11986. openbsd2*)
  11987. # C++ shared libraries are fairly broken
  11988. ld_shlibs_CXX=no
  11989. ;;
  11990. openbsd*)
  11991. if test -f /usr/libexec/ld.so; then
  11992. hardcode_direct_CXX=yes
  11993. hardcode_shlibpath_var_CXX=no
  11994. hardcode_direct_absolute_CXX=yes
  11995. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11996. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11997. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11998. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  11999. export_dynamic_flag_spec_CXX='${wl}-E'
  12000. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  12001. fi
  12002. output_verbose_link_cmd=func_echo_all
  12003. else
  12004. ld_shlibs_CXX=no
  12005. fi
  12006. ;;
  12007. osf3* | osf4* | osf5*)
  12008. case $cc_basename in
  12009. KCC*)
  12010. # Kuck and Associates, Inc. (KAI) C++ Compiler
  12011. # KCC will only create a shared library if the output file
  12012. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  12013. # to its proper name (with version) after linking.
  12014. 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'
  12015. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  12016. hardcode_libdir_separator_CXX=:
  12017. # Archives containing C++ object files must be created using
  12018. # the KAI C++ compiler.
  12019. case $host in
  12020. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  12021. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  12022. esac
  12023. ;;
  12024. RCC*)
  12025. # Rational C++ 2.4.1
  12026. # FIXME: insert proper C++ library support
  12027. ld_shlibs_CXX=no
  12028. ;;
  12029. cxx*)
  12030. case $host in
  12031. osf3*)
  12032. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  12033. 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'
  12034. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  12035. ;;
  12036. *)
  12037. allow_undefined_flag_CXX=' -expect_unresolved \*'
  12038. 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'
  12039. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  12040. echo "-hidden">> $lib.exp~
  12041. $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~
  12042. $RM $lib.exp'
  12043. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  12044. ;;
  12045. esac
  12046. hardcode_libdir_separator_CXX=:
  12047. # Commands to make compiler produce verbose output that lists
  12048. # what "hidden" libraries, object files and flags are used when
  12049. # linking a shared library.
  12050. #
  12051. # There doesn't appear to be a way to prevent this compiler from
  12052. # explicitly linking system object files so we need to strip them
  12053. # from the output so that they don't get included in the library
  12054. # dependencies.
  12055. 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"'
  12056. ;;
  12057. *)
  12058. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  12059. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  12060. case $host in
  12061. osf3*)
  12062. 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'
  12063. ;;
  12064. *)
  12065. 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'
  12066. ;;
  12067. esac
  12068. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  12069. hardcode_libdir_separator_CXX=:
  12070. # Commands to make compiler produce verbose output that lists
  12071. # what "hidden" libraries, object files and flags are used when
  12072. # linking a shared library.
  12073. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  12074. else
  12075. # FIXME: insert proper C++ library support
  12076. ld_shlibs_CXX=no
  12077. fi
  12078. ;;
  12079. esac
  12080. ;;
  12081. psos*)
  12082. # FIXME: insert proper C++ library support
  12083. ld_shlibs_CXX=no
  12084. ;;
  12085. sunos4*)
  12086. case $cc_basename in
  12087. CC*)
  12088. # Sun C++ 4.x
  12089. # FIXME: insert proper C++ library support
  12090. ld_shlibs_CXX=no
  12091. ;;
  12092. lcc*)
  12093. # Lucid
  12094. # FIXME: insert proper C++ library support
  12095. ld_shlibs_CXX=no
  12096. ;;
  12097. *)
  12098. # FIXME: insert proper C++ library support
  12099. ld_shlibs_CXX=no
  12100. ;;
  12101. esac
  12102. ;;
  12103. solaris*)
  12104. case $cc_basename in
  12105. CC* | sunCC*)
  12106. # Sun C++ 4.2, 5.x and Centerline C++
  12107. archive_cmds_need_lc_CXX=yes
  12108. no_undefined_flag_CXX=' -zdefs'
  12109. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12110. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12111. $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'
  12112. hardcode_libdir_flag_spec_CXX='-R$libdir'
  12113. hardcode_shlibpath_var_CXX=no
  12114. case $host_os in
  12115. solaris2.[0-5] | solaris2.[0-5].*) ;;
  12116. *)
  12117. # The compiler driver will combine and reorder linker options,
  12118. # but understands `-z linker_flag'.
  12119. # Supported since Solaris 2.6 (maybe 2.5.1?)
  12120. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  12121. ;;
  12122. esac
  12123. link_all_deplibs_CXX=yes
  12124. output_verbose_link_cmd='func_echo_all'
  12125. # Archives containing C++ object files must be created using
  12126. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  12127. # necessary to make sure instantiated templates are included
  12128. # in the archive.
  12129. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  12130. ;;
  12131. gcx*)
  12132. # Green Hills C++ Compiler
  12133. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  12134. # The C++ compiler must be used to create the archive.
  12135. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  12136. ;;
  12137. *)
  12138. # GNU C++ compiler with Solaris linker
  12139. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  12140. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  12141. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  12142. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  12143. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12144. $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  12145. # Commands to make compiler produce verbose output that lists
  12146. # what "hidden" libraries, object files and flags are used when
  12147. # linking a shared library.
  12148. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  12149. else
  12150. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  12151. # platform.
  12152. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  12153. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12154. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  12155. # Commands to make compiler produce verbose output that lists
  12156. # what "hidden" libraries, object files and flags are used when
  12157. # linking a shared library.
  12158. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  12159. fi
  12160. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  12161. case $host_os in
  12162. solaris2.[0-5] | solaris2.[0-5].*) ;;
  12163. *)
  12164. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  12165. ;;
  12166. esac
  12167. fi
  12168. ;;
  12169. esac
  12170. ;;
  12171. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  12172. no_undefined_flag_CXX='${wl}-z,text'
  12173. archive_cmds_need_lc_CXX=no
  12174. hardcode_shlibpath_var_CXX=no
  12175. runpath_var='LD_RUN_PATH'
  12176. case $cc_basename in
  12177. CC*)
  12178. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12179. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12180. ;;
  12181. *)
  12182. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12183. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12184. ;;
  12185. esac
  12186. ;;
  12187. sysv5* | sco3.2v5* | sco5v6*)
  12188. # Note: We can NOT use -z defs as we might desire, because we do not
  12189. # link with -lc, and that would cause any symbols used from libc to
  12190. # always be unresolved, which means just about no library would
  12191. # ever link correctly. If we're not using GNU ld we use -z text
  12192. # though, which does catch some bad symbols but isn't as heavy-handed
  12193. # as -z defs.
  12194. no_undefined_flag_CXX='${wl}-z,text'
  12195. allow_undefined_flag_CXX='${wl}-z,nodefs'
  12196. archive_cmds_need_lc_CXX=no
  12197. hardcode_shlibpath_var_CXX=no
  12198. hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  12199. hardcode_libdir_separator_CXX=':'
  12200. link_all_deplibs_CXX=yes
  12201. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  12202. runpath_var='LD_RUN_PATH'
  12203. case $cc_basename in
  12204. CC*)
  12205. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12206. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12207. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  12208. '"$old_archive_cmds_CXX"
  12209. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  12210. '"$reload_cmds_CXX"
  12211. ;;
  12212. *)
  12213. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12214. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12215. ;;
  12216. esac
  12217. ;;
  12218. tandem*)
  12219. case $cc_basename in
  12220. NCC*)
  12221. # NonStop-UX NCC 3.20
  12222. # FIXME: insert proper C++ library support
  12223. ld_shlibs_CXX=no
  12224. ;;
  12225. *)
  12226. # FIXME: insert proper C++ library support
  12227. ld_shlibs_CXX=no
  12228. ;;
  12229. esac
  12230. ;;
  12231. vxworks*)
  12232. # FIXME: insert proper C++ library support
  12233. ld_shlibs_CXX=no
  12234. ;;
  12235. *)
  12236. # FIXME: insert proper C++ library support
  12237. ld_shlibs_CXX=no
  12238. ;;
  12239. esac
  12240. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12241. $as_echo "$ld_shlibs_CXX" >&6; }
  12242. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12243. GCC_CXX="$GXX"
  12244. LD_CXX="$LD"
  12245. ## CAVEAT EMPTOR:
  12246. ## There is no encapsulation within the following macros, do not change
  12247. ## the running order or otherwise move them around unless you know exactly
  12248. ## what you are doing...
  12249. # Dependencies to place before and after the object being linked:
  12250. predep_objects_CXX=
  12251. postdep_objects_CXX=
  12252. predeps_CXX=
  12253. postdeps_CXX=
  12254. compiler_lib_search_path_CXX=
  12255. cat > conftest.$ac_ext <<_LT_EOF
  12256. class Foo
  12257. {
  12258. public:
  12259. Foo (void) { a = 0; }
  12260. private:
  12261. int a;
  12262. };
  12263. _LT_EOF
  12264. _lt_libdeps_save_CFLAGS=$CFLAGS
  12265. case "$CC $CFLAGS " in #(
  12266. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  12267. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  12268. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  12269. esac
  12270. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12271. (eval $ac_compile) 2>&5
  12272. ac_status=$?
  12273. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12274. test $ac_status = 0; }; then
  12275. # Parse the compiler output and extract the necessary
  12276. # objects, libraries and library flags.
  12277. # Sentinel used to keep track of whether or not we are before
  12278. # the conftest object file.
  12279. pre_test_object_deps_done=no
  12280. for p in `eval "$output_verbose_link_cmd"`; do
  12281. case ${prev}${p} in
  12282. -L* | -R* | -l*)
  12283. # Some compilers place space between "-{L,R}" and the path.
  12284. # Remove the space.
  12285. if test $p = "-L" ||
  12286. test $p = "-R"; then
  12287. prev=$p
  12288. continue
  12289. fi
  12290. # Expand the sysroot to ease extracting the directories later.
  12291. if test -z "$prev"; then
  12292. case $p in
  12293. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  12294. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  12295. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  12296. esac
  12297. fi
  12298. case $p in
  12299. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  12300. esac
  12301. if test "$pre_test_object_deps_done" = no; then
  12302. case ${prev} in
  12303. -L | -R)
  12304. # Internal compiler library paths should come after those
  12305. # provided the user. The postdeps already come after the
  12306. # user supplied libs so there is no need to process them.
  12307. if test -z "$compiler_lib_search_path_CXX"; then
  12308. compiler_lib_search_path_CXX="${prev}${p}"
  12309. else
  12310. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  12311. fi
  12312. ;;
  12313. # The "-l" case would never come before the object being
  12314. # linked, so don't bother handling this case.
  12315. esac
  12316. else
  12317. if test -z "$postdeps_CXX"; then
  12318. postdeps_CXX="${prev}${p}"
  12319. else
  12320. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  12321. fi
  12322. fi
  12323. prev=
  12324. ;;
  12325. *.lto.$objext) ;; # Ignore GCC LTO objects
  12326. *.$objext)
  12327. # This assumes that the test object file only shows up
  12328. # once in the compiler output.
  12329. if test "$p" = "conftest.$objext"; then
  12330. pre_test_object_deps_done=yes
  12331. continue
  12332. fi
  12333. if test "$pre_test_object_deps_done" = no; then
  12334. if test -z "$predep_objects_CXX"; then
  12335. predep_objects_CXX="$p"
  12336. else
  12337. predep_objects_CXX="$predep_objects_CXX $p"
  12338. fi
  12339. else
  12340. if test -z "$postdep_objects_CXX"; then
  12341. postdep_objects_CXX="$p"
  12342. else
  12343. postdep_objects_CXX="$postdep_objects_CXX $p"
  12344. fi
  12345. fi
  12346. ;;
  12347. *) ;; # Ignore the rest.
  12348. esac
  12349. done
  12350. # Clean up.
  12351. rm -f a.out a.exe
  12352. else
  12353. echo "libtool.m4: error: problem compiling CXX test program"
  12354. fi
  12355. $RM -f confest.$objext
  12356. CFLAGS=$_lt_libdeps_save_CFLAGS
  12357. # PORTME: override above test on systems where it is broken
  12358. case $host_os in
  12359. interix[3-9]*)
  12360. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  12361. # hack all around it, let's just trust "g++" to DTRT.
  12362. predep_objects_CXX=
  12363. postdep_objects_CXX=
  12364. postdeps_CXX=
  12365. ;;
  12366. linux*)
  12367. case `$CC -V 2>&1 | sed 5q` in
  12368. *Sun\ C*)
  12369. # Sun C++ 5.9
  12370. # The more standards-conforming stlport4 library is
  12371. # incompatible with the Cstd library. Avoid specifying
  12372. # it if it's in CXXFLAGS. Ignore libCrun as
  12373. # -library=stlport4 depends on it.
  12374. case " $CXX $CXXFLAGS " in
  12375. *" -library=stlport4 "*)
  12376. solaris_use_stlport4=yes
  12377. ;;
  12378. esac
  12379. if test "$solaris_use_stlport4" != yes; then
  12380. postdeps_CXX='-library=Cstd -library=Crun'
  12381. fi
  12382. ;;
  12383. esac
  12384. ;;
  12385. solaris*)
  12386. case $cc_basename in
  12387. CC* | sunCC*)
  12388. # The more standards-conforming stlport4 library is
  12389. # incompatible with the Cstd library. Avoid specifying
  12390. # it if it's in CXXFLAGS. Ignore libCrun as
  12391. # -library=stlport4 depends on it.
  12392. case " $CXX $CXXFLAGS " in
  12393. *" -library=stlport4 "*)
  12394. solaris_use_stlport4=yes
  12395. ;;
  12396. esac
  12397. # Adding this requires a known-good setup of shared libraries for
  12398. # Sun compiler versions before 5.6, else PIC objects from an old
  12399. # archive will be linked into the output, leading to subtle bugs.
  12400. if test "$solaris_use_stlport4" != yes; then
  12401. postdeps_CXX='-library=Cstd -library=Crun'
  12402. fi
  12403. ;;
  12404. esac
  12405. ;;
  12406. esac
  12407. case " $postdeps_CXX " in
  12408. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  12409. esac
  12410. compiler_lib_search_dirs_CXX=
  12411. if test -n "${compiler_lib_search_path_CXX}"; then
  12412. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  12413. fi
  12414. lt_prog_compiler_wl_CXX=
  12415. lt_prog_compiler_pic_CXX=
  12416. lt_prog_compiler_static_CXX=
  12417. # C++ specific cases for pic, static, wl, etc.
  12418. if test "$GXX" = yes; then
  12419. lt_prog_compiler_wl_CXX='-Wl,'
  12420. lt_prog_compiler_static_CXX='-static'
  12421. case $host_os in
  12422. aix*)
  12423. # All AIX code is PIC.
  12424. if test "$host_cpu" = ia64; then
  12425. # AIX 5 now supports IA64 processor
  12426. lt_prog_compiler_static_CXX='-Bstatic'
  12427. fi
  12428. ;;
  12429. amigaos*)
  12430. case $host_cpu in
  12431. powerpc)
  12432. # see comment about AmigaOS4 .so support
  12433. lt_prog_compiler_pic_CXX='-fPIC'
  12434. ;;
  12435. m68k)
  12436. # FIXME: we need at least 68020 code to build shared libraries, but
  12437. # adding the `-m68020' flag to GCC prevents building anything better,
  12438. # like `-m68040'.
  12439. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  12440. ;;
  12441. esac
  12442. ;;
  12443. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  12444. # PIC is the default for these OSes.
  12445. ;;
  12446. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12447. # This hack is so that the source file can tell whether it is being
  12448. # built for inclusion in a dll (and should export symbols for example).
  12449. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  12450. # (--disable-auto-import) libraries
  12451. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12452. ;;
  12453. darwin* | rhapsody*)
  12454. # PIC is the default on this platform
  12455. # Common symbols not allowed in MH_DYLIB files
  12456. lt_prog_compiler_pic_CXX='-fno-common'
  12457. ;;
  12458. *djgpp*)
  12459. # DJGPP does not support shared libraries at all
  12460. lt_prog_compiler_pic_CXX=
  12461. ;;
  12462. haiku*)
  12463. # PIC is the default for Haiku.
  12464. # The "-static" flag exists, but is broken.
  12465. lt_prog_compiler_static_CXX=
  12466. ;;
  12467. interix[3-9]*)
  12468. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  12469. # Instead, we relocate shared libraries at runtime.
  12470. ;;
  12471. sysv4*MP*)
  12472. if test -d /usr/nec; then
  12473. lt_prog_compiler_pic_CXX=-Kconform_pic
  12474. fi
  12475. ;;
  12476. hpux*)
  12477. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  12478. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  12479. # sets the default TLS model and affects inlining.
  12480. case $host_cpu in
  12481. hppa*64*)
  12482. ;;
  12483. *)
  12484. lt_prog_compiler_pic_CXX='-fPIC'
  12485. ;;
  12486. esac
  12487. ;;
  12488. *qnx* | *nto*)
  12489. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12490. # it will coredump.
  12491. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12492. ;;
  12493. *)
  12494. lt_prog_compiler_pic_CXX='-fPIC'
  12495. ;;
  12496. esac
  12497. else
  12498. case $host_os in
  12499. aix[4-9]*)
  12500. # All AIX code is PIC.
  12501. if test "$host_cpu" = ia64; then
  12502. # AIX 5 now supports IA64 processor
  12503. lt_prog_compiler_static_CXX='-Bstatic'
  12504. else
  12505. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  12506. fi
  12507. ;;
  12508. chorus*)
  12509. case $cc_basename in
  12510. cxch68*)
  12511. # Green Hills C++ Compiler
  12512. # _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"
  12513. ;;
  12514. esac
  12515. ;;
  12516. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12517. # This hack is so that the source file can tell whether it is being
  12518. # built for inclusion in a dll (and should export symbols for example).
  12519. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12520. ;;
  12521. dgux*)
  12522. case $cc_basename in
  12523. ec++*)
  12524. lt_prog_compiler_pic_CXX='-KPIC'
  12525. ;;
  12526. ghcx*)
  12527. # Green Hills C++ Compiler
  12528. lt_prog_compiler_pic_CXX='-pic'
  12529. ;;
  12530. *)
  12531. ;;
  12532. esac
  12533. ;;
  12534. freebsd* | dragonfly*)
  12535. # FreeBSD uses GNU C++
  12536. ;;
  12537. hpux9* | hpux10* | hpux11*)
  12538. case $cc_basename in
  12539. CC*)
  12540. lt_prog_compiler_wl_CXX='-Wl,'
  12541. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12542. if test "$host_cpu" != ia64; then
  12543. lt_prog_compiler_pic_CXX='+Z'
  12544. fi
  12545. ;;
  12546. aCC*)
  12547. lt_prog_compiler_wl_CXX='-Wl,'
  12548. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12549. case $host_cpu in
  12550. hppa*64*|ia64*)
  12551. # +Z the default
  12552. ;;
  12553. *)
  12554. lt_prog_compiler_pic_CXX='+Z'
  12555. ;;
  12556. esac
  12557. ;;
  12558. *)
  12559. ;;
  12560. esac
  12561. ;;
  12562. interix*)
  12563. # This is c89, which is MS Visual C++ (no shared libs)
  12564. # Anyone wants to do a port?
  12565. ;;
  12566. irix5* | irix6* | nonstopux*)
  12567. case $cc_basename in
  12568. CC*)
  12569. lt_prog_compiler_wl_CXX='-Wl,'
  12570. lt_prog_compiler_static_CXX='-non_shared'
  12571. # CC pic flag -KPIC is the default.
  12572. ;;
  12573. *)
  12574. ;;
  12575. esac
  12576. ;;
  12577. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  12578. case $cc_basename in
  12579. KCC*)
  12580. # KAI C++ Compiler
  12581. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12582. lt_prog_compiler_pic_CXX='-fPIC'
  12583. ;;
  12584. ecpc* )
  12585. # old Intel C++ for x86_64 which still supported -KPIC.
  12586. lt_prog_compiler_wl_CXX='-Wl,'
  12587. lt_prog_compiler_pic_CXX='-KPIC'
  12588. lt_prog_compiler_static_CXX='-static'
  12589. ;;
  12590. icpc* )
  12591. # Intel C++, used to be incompatible with GCC.
  12592. # ICC 10 doesn't accept -KPIC any more.
  12593. lt_prog_compiler_wl_CXX='-Wl,'
  12594. lt_prog_compiler_pic_CXX='-fPIC'
  12595. lt_prog_compiler_static_CXX='-static'
  12596. ;;
  12597. pgCC* | pgcpp*)
  12598. # Portland Group C++ compiler
  12599. lt_prog_compiler_wl_CXX='-Wl,'
  12600. lt_prog_compiler_pic_CXX='-fpic'
  12601. lt_prog_compiler_static_CXX='-Bstatic'
  12602. ;;
  12603. cxx*)
  12604. # Compaq C++
  12605. # Make sure the PIC flag is empty. It appears that all Alpha
  12606. # Linux and Compaq Tru64 Unix objects are PIC.
  12607. lt_prog_compiler_pic_CXX=
  12608. lt_prog_compiler_static_CXX='-non_shared'
  12609. ;;
  12610. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  12611. # IBM XL 8.0, 9.0 on PPC and BlueGene
  12612. lt_prog_compiler_wl_CXX='-Wl,'
  12613. lt_prog_compiler_pic_CXX='-qpic'
  12614. lt_prog_compiler_static_CXX='-qstaticlink'
  12615. ;;
  12616. *)
  12617. case `$CC -V 2>&1 | sed 5q` in
  12618. *Sun\ C*)
  12619. # Sun C++ 5.9
  12620. lt_prog_compiler_pic_CXX='-KPIC'
  12621. lt_prog_compiler_static_CXX='-Bstatic'
  12622. lt_prog_compiler_wl_CXX='-Qoption ld '
  12623. ;;
  12624. esac
  12625. ;;
  12626. esac
  12627. ;;
  12628. lynxos*)
  12629. ;;
  12630. m88k*)
  12631. ;;
  12632. mvs*)
  12633. case $cc_basename in
  12634. cxx*)
  12635. lt_prog_compiler_pic_CXX='-W c,exportall'
  12636. ;;
  12637. *)
  12638. ;;
  12639. esac
  12640. ;;
  12641. netbsd*)
  12642. ;;
  12643. *qnx* | *nto*)
  12644. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12645. # it will coredump.
  12646. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12647. ;;
  12648. osf3* | osf4* | osf5*)
  12649. case $cc_basename in
  12650. KCC*)
  12651. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12652. ;;
  12653. RCC*)
  12654. # Rational C++ 2.4.1
  12655. lt_prog_compiler_pic_CXX='-pic'
  12656. ;;
  12657. cxx*)
  12658. # Digital/Compaq C++
  12659. lt_prog_compiler_wl_CXX='-Wl,'
  12660. # Make sure the PIC flag is empty. It appears that all Alpha
  12661. # Linux and Compaq Tru64 Unix objects are PIC.
  12662. lt_prog_compiler_pic_CXX=
  12663. lt_prog_compiler_static_CXX='-non_shared'
  12664. ;;
  12665. *)
  12666. ;;
  12667. esac
  12668. ;;
  12669. psos*)
  12670. ;;
  12671. solaris*)
  12672. case $cc_basename in
  12673. CC* | sunCC*)
  12674. # Sun C++ 4.2, 5.x and Centerline C++
  12675. lt_prog_compiler_pic_CXX='-KPIC'
  12676. lt_prog_compiler_static_CXX='-Bstatic'
  12677. lt_prog_compiler_wl_CXX='-Qoption ld '
  12678. ;;
  12679. gcx*)
  12680. # Green Hills C++ Compiler
  12681. lt_prog_compiler_pic_CXX='-PIC'
  12682. ;;
  12683. *)
  12684. ;;
  12685. esac
  12686. ;;
  12687. sunos4*)
  12688. case $cc_basename in
  12689. CC*)
  12690. # Sun C++ 4.x
  12691. lt_prog_compiler_pic_CXX='-pic'
  12692. lt_prog_compiler_static_CXX='-Bstatic'
  12693. ;;
  12694. lcc*)
  12695. # Lucid
  12696. lt_prog_compiler_pic_CXX='-pic'
  12697. ;;
  12698. *)
  12699. ;;
  12700. esac
  12701. ;;
  12702. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  12703. case $cc_basename in
  12704. CC*)
  12705. lt_prog_compiler_wl_CXX='-Wl,'
  12706. lt_prog_compiler_pic_CXX='-KPIC'
  12707. lt_prog_compiler_static_CXX='-Bstatic'
  12708. ;;
  12709. esac
  12710. ;;
  12711. tandem*)
  12712. case $cc_basename in
  12713. NCC*)
  12714. # NonStop-UX NCC 3.20
  12715. lt_prog_compiler_pic_CXX='-KPIC'
  12716. ;;
  12717. *)
  12718. ;;
  12719. esac
  12720. ;;
  12721. vxworks*)
  12722. ;;
  12723. *)
  12724. lt_prog_compiler_can_build_shared_CXX=no
  12725. ;;
  12726. esac
  12727. fi
  12728. case $host_os in
  12729. # For platforms which do not support PIC, -DPIC is meaningless:
  12730. *djgpp*)
  12731. lt_prog_compiler_pic_CXX=
  12732. ;;
  12733. *)
  12734. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  12735. ;;
  12736. esac
  12737. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  12738. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  12739. if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
  12740. $as_echo_n "(cached) " >&6
  12741. else
  12742. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  12743. fi
  12744. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  12745. $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
  12746. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  12747. #
  12748. # Check to make sure the PIC flag actually works.
  12749. #
  12750. if test -n "$lt_prog_compiler_pic_CXX"; then
  12751. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  12752. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  12753. if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  12754. $as_echo_n "(cached) " >&6
  12755. else
  12756. lt_cv_prog_compiler_pic_works_CXX=no
  12757. ac_outfile=conftest.$ac_objext
  12758. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12759. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  12760. # Insert the option either (1) after the last *FLAGS variable, or
  12761. # (2) before a word containing "conftest.", or (3) at the end.
  12762. # Note that $ac_compile itself does not contain backslashes and begins
  12763. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12764. # The option is referenced via a variable to avoid confusing sed.
  12765. lt_compile=`echo "$ac_compile" | $SED \
  12766. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12767. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12768. -e 's:$: $lt_compiler_flag:'`
  12769. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12770. (eval "$lt_compile" 2>conftest.err)
  12771. ac_status=$?
  12772. cat conftest.err >&5
  12773. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12774. if (exit $ac_status) && test -s "$ac_outfile"; then
  12775. # The compiler can only warn and ignore the option if not recognized
  12776. # So say no if there are warnings other than the usual output.
  12777. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  12778. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12779. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  12780. lt_cv_prog_compiler_pic_works_CXX=yes
  12781. fi
  12782. fi
  12783. $RM conftest*
  12784. fi
  12785. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  12786. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  12787. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  12788. case $lt_prog_compiler_pic_CXX in
  12789. "" | " "*) ;;
  12790. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  12791. esac
  12792. else
  12793. lt_prog_compiler_pic_CXX=
  12794. lt_prog_compiler_can_build_shared_CXX=no
  12795. fi
  12796. fi
  12797. #
  12798. # Check to make sure the static flag actually works.
  12799. #
  12800. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  12801. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  12802. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  12803. if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  12804. $as_echo_n "(cached) " >&6
  12805. else
  12806. lt_cv_prog_compiler_static_works_CXX=no
  12807. save_LDFLAGS="$LDFLAGS"
  12808. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  12809. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  12810. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  12811. # The linker can only warn and ignore the option if not recognized
  12812. # So say no if there are warnings
  12813. if test -s conftest.err; then
  12814. # Append any errors to the config.log.
  12815. cat conftest.err 1>&5
  12816. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  12817. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12818. if diff conftest.exp conftest.er2 >/dev/null; then
  12819. lt_cv_prog_compiler_static_works_CXX=yes
  12820. fi
  12821. else
  12822. lt_cv_prog_compiler_static_works_CXX=yes
  12823. fi
  12824. fi
  12825. $RM -r conftest*
  12826. LDFLAGS="$save_LDFLAGS"
  12827. fi
  12828. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  12829. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  12830. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  12831. :
  12832. else
  12833. lt_prog_compiler_static_CXX=
  12834. fi
  12835. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12836. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12837. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12838. $as_echo_n "(cached) " >&6
  12839. else
  12840. lt_cv_prog_compiler_c_o_CXX=no
  12841. $RM -r conftest 2>/dev/null
  12842. mkdir conftest
  12843. cd conftest
  12844. mkdir out
  12845. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12846. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12847. # Insert the option either (1) after the last *FLAGS variable, or
  12848. # (2) before a word containing "conftest.", or (3) at the end.
  12849. # Note that $ac_compile itself does not contain backslashes and begins
  12850. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12851. lt_compile=`echo "$ac_compile" | $SED \
  12852. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12853. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12854. -e 's:$: $lt_compiler_flag:'`
  12855. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12856. (eval "$lt_compile" 2>out/conftest.err)
  12857. ac_status=$?
  12858. cat out/conftest.err >&5
  12859. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12860. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12861. then
  12862. # The compiler can only warn and ignore the option if not recognized
  12863. # So say no if there are warnings
  12864. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12865. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12866. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12867. lt_cv_prog_compiler_c_o_CXX=yes
  12868. fi
  12869. fi
  12870. chmod u+w . 2>&5
  12871. $RM conftest*
  12872. # SGI C++ compiler will create directory out/ii_files/ for
  12873. # template instantiation
  12874. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12875. $RM out/* && rmdir out
  12876. cd ..
  12877. $RM -r conftest
  12878. $RM conftest*
  12879. fi
  12880. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12881. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12882. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12883. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12884. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12885. $as_echo_n "(cached) " >&6
  12886. else
  12887. lt_cv_prog_compiler_c_o_CXX=no
  12888. $RM -r conftest 2>/dev/null
  12889. mkdir conftest
  12890. cd conftest
  12891. mkdir out
  12892. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12893. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12894. # Insert the option either (1) after the last *FLAGS variable, or
  12895. # (2) before a word containing "conftest.", or (3) at the end.
  12896. # Note that $ac_compile itself does not contain backslashes and begins
  12897. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12898. lt_compile=`echo "$ac_compile" | $SED \
  12899. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12900. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12901. -e 's:$: $lt_compiler_flag:'`
  12902. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12903. (eval "$lt_compile" 2>out/conftest.err)
  12904. ac_status=$?
  12905. cat out/conftest.err >&5
  12906. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12907. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12908. then
  12909. # The compiler can only warn and ignore the option if not recognized
  12910. # So say no if there are warnings
  12911. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12912. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12913. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12914. lt_cv_prog_compiler_c_o_CXX=yes
  12915. fi
  12916. fi
  12917. chmod u+w . 2>&5
  12918. $RM conftest*
  12919. # SGI C++ compiler will create directory out/ii_files/ for
  12920. # template instantiation
  12921. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12922. $RM out/* && rmdir out
  12923. cd ..
  12924. $RM -r conftest
  12925. $RM conftest*
  12926. fi
  12927. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12928. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12929. hard_links="nottested"
  12930. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  12931. # do not overwrite the value of need_locks provided by the user
  12932. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  12933. $as_echo_n "checking if we can lock with hard links... " >&6; }
  12934. hard_links=yes
  12935. $RM conftest*
  12936. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12937. touch conftest.a
  12938. ln conftest.a conftest.b 2>&5 || hard_links=no
  12939. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12940. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  12941. $as_echo "$hard_links" >&6; }
  12942. if test "$hard_links" = no; then
  12943. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  12944. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  12945. need_locks=warn
  12946. fi
  12947. else
  12948. need_locks=no
  12949. fi
  12950. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12951. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12952. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12953. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  12954. case $host_os in
  12955. aix[4-9]*)
  12956. # If we're using GNU nm, then we don't want the "-C" option.
  12957. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  12958. # Also, AIX nm treats weak defined symbols like other global defined
  12959. # symbols, whereas GNU nm marks them as "W".
  12960. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  12961. 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'
  12962. else
  12963. 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'
  12964. fi
  12965. ;;
  12966. pw32*)
  12967. export_symbols_cmds_CXX="$ltdll_cmds"
  12968. ;;
  12969. cygwin* | mingw* | cegcc*)
  12970. case $cc_basename in
  12971. cl*)
  12972. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  12973. ;;
  12974. *)
  12975. 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'
  12976. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  12977. ;;
  12978. esac
  12979. ;;
  12980. *)
  12981. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12982. ;;
  12983. esac
  12984. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12985. $as_echo "$ld_shlibs_CXX" >&6; }
  12986. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12987. with_gnu_ld_CXX=$with_gnu_ld
  12988. #
  12989. # Do we need to explicitly link libc?
  12990. #
  12991. case "x$archive_cmds_need_lc_CXX" in
  12992. x|xyes)
  12993. # Assume -lc should be added
  12994. archive_cmds_need_lc_CXX=yes
  12995. if test "$enable_shared" = yes && test "$GCC" = yes; then
  12996. case $archive_cmds_CXX in
  12997. *'~'*)
  12998. # FIXME: we may have to deal with multi-command sequences.
  12999. ;;
  13000. '$CC '*)
  13001. # Test whether the compiler implicitly links with -lc since on some
  13002. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  13003. # to ld, don't add -lc before -lgcc.
  13004. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  13005. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  13006. if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  13007. $as_echo_n "(cached) " >&6
  13008. else
  13009. $RM conftest*
  13010. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  13011. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  13012. (eval $ac_compile) 2>&5
  13013. ac_status=$?
  13014. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13015. test $ac_status = 0; } 2>conftest.err; then
  13016. soname=conftest
  13017. lib=conftest
  13018. libobjs=conftest.$ac_objext
  13019. deplibs=
  13020. wl=$lt_prog_compiler_wl_CXX
  13021. pic_flag=$lt_prog_compiler_pic_CXX
  13022. compiler_flags=-v
  13023. linker_flags=-v
  13024. verstring=
  13025. output_objdir=.
  13026. libname=conftest
  13027. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  13028. allow_undefined_flag_CXX=
  13029. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  13030. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  13031. ac_status=$?
  13032. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13033. test $ac_status = 0; }
  13034. then
  13035. lt_cv_archive_cmds_need_lc_CXX=no
  13036. else
  13037. lt_cv_archive_cmds_need_lc_CXX=yes
  13038. fi
  13039. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  13040. else
  13041. cat conftest.err 1>&5
  13042. fi
  13043. $RM conftest*
  13044. fi
  13045. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  13046. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  13047. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  13048. ;;
  13049. esac
  13050. fi
  13051. ;;
  13052. esac
  13053. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  13054. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  13055. library_names_spec=
  13056. libname_spec='lib$name'
  13057. soname_spec=
  13058. shrext_cmds=".so"
  13059. postinstall_cmds=
  13060. postuninstall_cmds=
  13061. finish_cmds=
  13062. finish_eval=
  13063. shlibpath_var=
  13064. shlibpath_overrides_runpath=unknown
  13065. version_type=none
  13066. dynamic_linker="$host_os ld.so"
  13067. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  13068. need_lib_prefix=unknown
  13069. hardcode_into_libs=no
  13070. # when you set need_version to no, make sure it does not cause -set_version
  13071. # flags to be left without arguments
  13072. need_version=unknown
  13073. case $host_os in
  13074. aix3*)
  13075. version_type=linux # correct to gnu/linux during the next big refactor
  13076. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  13077. shlibpath_var=LIBPATH
  13078. # AIX 3 has no versioning support, so we append a major version to the name.
  13079. soname_spec='${libname}${release}${shared_ext}$major'
  13080. ;;
  13081. aix[4-9]*)
  13082. version_type=linux # correct to gnu/linux during the next big refactor
  13083. need_lib_prefix=no
  13084. need_version=no
  13085. hardcode_into_libs=yes
  13086. if test "$host_cpu" = ia64; then
  13087. # AIX 5 supports IA64
  13088. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  13089. shlibpath_var=LD_LIBRARY_PATH
  13090. else
  13091. # With GCC up to 2.95.x, collect2 would create an import file
  13092. # for dependence libraries. The import file would start with
  13093. # the line `#! .'. This would cause the generated library to
  13094. # depend on `.', always an invalid library. This was fixed in
  13095. # development snapshots of GCC prior to 3.0.
  13096. case $host_os in
  13097. aix4 | aix4.[01] | aix4.[01].*)
  13098. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  13099. echo ' yes '
  13100. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  13101. :
  13102. else
  13103. can_build_shared=no
  13104. fi
  13105. ;;
  13106. esac
  13107. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  13108. # soname into executable. Probably we can add versioning support to
  13109. # collect2, so additional links can be useful in future.
  13110. if test "$aix_use_runtimelinking" = yes; then
  13111. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  13112. # instead of lib<name>.a to let people know that these are not
  13113. # typical AIX shared libraries.
  13114. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13115. else
  13116. # We preserve .a as extension for shared libraries through AIX4.2
  13117. # and later when we are not doing run time linking.
  13118. library_names_spec='${libname}${release}.a $libname.a'
  13119. soname_spec='${libname}${release}${shared_ext}$major'
  13120. fi
  13121. shlibpath_var=LIBPATH
  13122. fi
  13123. ;;
  13124. amigaos*)
  13125. case $host_cpu in
  13126. powerpc)
  13127. # Since July 2007 AmigaOS4 officially supports .so libraries.
  13128. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  13129. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13130. ;;
  13131. m68k)
  13132. library_names_spec='$libname.ixlibrary $libname.a'
  13133. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  13134. 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'
  13135. ;;
  13136. esac
  13137. ;;
  13138. beos*)
  13139. library_names_spec='${libname}${shared_ext}'
  13140. dynamic_linker="$host_os ld.so"
  13141. shlibpath_var=LIBRARY_PATH
  13142. ;;
  13143. bsdi[45]*)
  13144. version_type=linux # correct to gnu/linux during the next big refactor
  13145. need_version=no
  13146. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13147. soname_spec='${libname}${release}${shared_ext}$major'
  13148. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  13149. shlibpath_var=LD_LIBRARY_PATH
  13150. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  13151. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  13152. # the default ld.so.conf also contains /usr/contrib/lib and
  13153. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  13154. # libtool to hard-code these into programs
  13155. ;;
  13156. cygwin* | mingw* | pw32* | cegcc*)
  13157. version_type=windows
  13158. shrext_cmds=".dll"
  13159. need_version=no
  13160. need_lib_prefix=no
  13161. case $GCC,$cc_basename in
  13162. yes,*)
  13163. # gcc
  13164. library_names_spec='$libname.dll.a'
  13165. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  13166. postinstall_cmds='base_file=`basename \${file}`~
  13167. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  13168. dldir=$destdir/`dirname \$dlpath`~
  13169. test -d \$dldir || mkdir -p \$dldir~
  13170. $install_prog $dir/$dlname \$dldir/$dlname~
  13171. chmod a+x \$dldir/$dlname~
  13172. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  13173. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  13174. fi'
  13175. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  13176. dlpath=$dir/\$dldll~
  13177. $RM \$dlpath'
  13178. shlibpath_overrides_runpath=yes
  13179. case $host_os in
  13180. cygwin*)
  13181. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  13182. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13183. ;;
  13184. mingw* | cegcc*)
  13185. # MinGW DLLs use traditional 'lib' prefix
  13186. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13187. ;;
  13188. pw32*)
  13189. # pw32 DLLs use 'pw' prefix rather than 'lib'
  13190. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13191. ;;
  13192. esac
  13193. dynamic_linker='Win32 ld.exe'
  13194. ;;
  13195. *,cl*)
  13196. # Native MSVC
  13197. libname_spec='$name'
  13198. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13199. library_names_spec='${libname}.dll.lib'
  13200. case $build_os in
  13201. mingw*)
  13202. sys_lib_search_path_spec=
  13203. lt_save_ifs=$IFS
  13204. IFS=';'
  13205. for lt_path in $LIB
  13206. do
  13207. IFS=$lt_save_ifs
  13208. # Let DOS variable expansion print the short 8.3 style file name.
  13209. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  13210. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  13211. done
  13212. IFS=$lt_save_ifs
  13213. # Convert to MSYS style.
  13214. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  13215. ;;
  13216. cygwin*)
  13217. # Convert to unix form, then to dos form, then back to unix form
  13218. # but this time dos style (no spaces!) so that the unix form looks
  13219. # like /cygdrive/c/PROGRA~1:/cygdr...
  13220. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  13221. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  13222. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13223. ;;
  13224. *)
  13225. sys_lib_search_path_spec="$LIB"
  13226. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  13227. # It is most probably a Windows format PATH.
  13228. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  13229. else
  13230. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13231. fi
  13232. # FIXME: find the short name or the path components, as spaces are
  13233. # common. (e.g. "Program Files" -> "PROGRA~1")
  13234. ;;
  13235. esac
  13236. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  13237. postinstall_cmds='base_file=`basename \${file}`~
  13238. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  13239. dldir=$destdir/`dirname \$dlpath`~
  13240. test -d \$dldir || mkdir -p \$dldir~
  13241. $install_prog $dir/$dlname \$dldir/$dlname'
  13242. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  13243. dlpath=$dir/\$dldll~
  13244. $RM \$dlpath'
  13245. shlibpath_overrides_runpath=yes
  13246. dynamic_linker='Win32 link.exe'
  13247. ;;
  13248. *)
  13249. # Assume MSVC wrapper
  13250. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  13251. dynamic_linker='Win32 ld.exe'
  13252. ;;
  13253. esac
  13254. # FIXME: first we should search . and the directory the executable is in
  13255. shlibpath_var=PATH
  13256. ;;
  13257. darwin* | rhapsody*)
  13258. dynamic_linker="$host_os dyld"
  13259. version_type=darwin
  13260. need_lib_prefix=no
  13261. need_version=no
  13262. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  13263. soname_spec='${libname}${release}${major}$shared_ext'
  13264. shlibpath_overrides_runpath=yes
  13265. shlibpath_var=DYLD_LIBRARY_PATH
  13266. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  13267. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  13268. ;;
  13269. dgux*)
  13270. version_type=linux # correct to gnu/linux during the next big refactor
  13271. need_lib_prefix=no
  13272. need_version=no
  13273. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  13274. soname_spec='${libname}${release}${shared_ext}$major'
  13275. shlibpath_var=LD_LIBRARY_PATH
  13276. ;;
  13277. freebsd* | dragonfly*)
  13278. # DragonFly does not have aout. When/if they implement a new
  13279. # versioning mechanism, adjust this.
  13280. if test -x /usr/bin/objformat; then
  13281. objformat=`/usr/bin/objformat`
  13282. else
  13283. case $host_os in
  13284. freebsd[23].*) objformat=aout ;;
  13285. *) objformat=elf ;;
  13286. esac
  13287. fi
  13288. version_type=freebsd-$objformat
  13289. case $version_type in
  13290. freebsd-elf*)
  13291. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13292. need_version=no
  13293. need_lib_prefix=no
  13294. ;;
  13295. freebsd-*)
  13296. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  13297. need_version=yes
  13298. ;;
  13299. esac
  13300. shlibpath_var=LD_LIBRARY_PATH
  13301. case $host_os in
  13302. freebsd2.*)
  13303. shlibpath_overrides_runpath=yes
  13304. ;;
  13305. freebsd3.[01]* | freebsdelf3.[01]*)
  13306. shlibpath_overrides_runpath=yes
  13307. hardcode_into_libs=yes
  13308. ;;
  13309. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  13310. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  13311. shlibpath_overrides_runpath=no
  13312. hardcode_into_libs=yes
  13313. ;;
  13314. *) # from 4.6 on, and DragonFly
  13315. shlibpath_overrides_runpath=yes
  13316. hardcode_into_libs=yes
  13317. ;;
  13318. esac
  13319. ;;
  13320. gnu*)
  13321. version_type=linux # correct to gnu/linux during the next big refactor
  13322. need_lib_prefix=no
  13323. need_version=no
  13324. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  13325. soname_spec='${libname}${release}${shared_ext}$major'
  13326. shlibpath_var=LD_LIBRARY_PATH
  13327. shlibpath_overrides_runpath=no
  13328. hardcode_into_libs=yes
  13329. ;;
  13330. haiku*)
  13331. version_type=linux # correct to gnu/linux during the next big refactor
  13332. need_lib_prefix=no
  13333. need_version=no
  13334. dynamic_linker="$host_os runtime_loader"
  13335. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  13336. soname_spec='${libname}${release}${shared_ext}$major'
  13337. shlibpath_var=LIBRARY_PATH
  13338. shlibpath_overrides_runpath=yes
  13339. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  13340. hardcode_into_libs=yes
  13341. ;;
  13342. hpux9* | hpux10* | hpux11*)
  13343. # Give a soname corresponding to the major version so that dld.sl refuses to
  13344. # link against other versions.
  13345. version_type=sunos
  13346. need_lib_prefix=no
  13347. need_version=no
  13348. case $host_cpu in
  13349. ia64*)
  13350. shrext_cmds='.so'
  13351. hardcode_into_libs=yes
  13352. dynamic_linker="$host_os dld.so"
  13353. shlibpath_var=LD_LIBRARY_PATH
  13354. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13355. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13356. soname_spec='${libname}${release}${shared_ext}$major'
  13357. if test "X$HPUX_IA64_MODE" = X32; then
  13358. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  13359. else
  13360. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  13361. fi
  13362. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13363. ;;
  13364. hppa*64*)
  13365. shrext_cmds='.sl'
  13366. hardcode_into_libs=yes
  13367. dynamic_linker="$host_os dld.sl"
  13368. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  13369. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13370. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13371. soname_spec='${libname}${release}${shared_ext}$major'
  13372. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  13373. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13374. ;;
  13375. *)
  13376. shrext_cmds='.sl'
  13377. dynamic_linker="$host_os dld.sl"
  13378. shlibpath_var=SHLIB_PATH
  13379. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  13380. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13381. soname_spec='${libname}${release}${shared_ext}$major'
  13382. ;;
  13383. esac
  13384. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  13385. postinstall_cmds='chmod 555 $lib'
  13386. # or fails outright, so override atomically:
  13387. install_override_mode=555
  13388. ;;
  13389. interix[3-9]*)
  13390. version_type=linux # correct to gnu/linux during the next big refactor
  13391. need_lib_prefix=no
  13392. need_version=no
  13393. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13394. soname_spec='${libname}${release}${shared_ext}$major'
  13395. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  13396. shlibpath_var=LD_LIBRARY_PATH
  13397. shlibpath_overrides_runpath=no
  13398. hardcode_into_libs=yes
  13399. ;;
  13400. irix5* | irix6* | nonstopux*)
  13401. case $host_os in
  13402. nonstopux*) version_type=nonstopux ;;
  13403. *)
  13404. if test "$lt_cv_prog_gnu_ld" = yes; then
  13405. version_type=linux # correct to gnu/linux during the next big refactor
  13406. else
  13407. version_type=irix
  13408. fi ;;
  13409. esac
  13410. need_lib_prefix=no
  13411. need_version=no
  13412. soname_spec='${libname}${release}${shared_ext}$major'
  13413. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  13414. case $host_os in
  13415. irix5* | nonstopux*)
  13416. libsuff= shlibsuff=
  13417. ;;
  13418. *)
  13419. case $LD in # libtool.m4 will add one of these switches to LD
  13420. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  13421. libsuff= shlibsuff= libmagic=32-bit;;
  13422. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  13423. libsuff=32 shlibsuff=N32 libmagic=N32;;
  13424. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  13425. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  13426. *) libsuff= shlibsuff= libmagic=never-match;;
  13427. esac
  13428. ;;
  13429. esac
  13430. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  13431. shlibpath_overrides_runpath=no
  13432. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  13433. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  13434. hardcode_into_libs=yes
  13435. ;;
  13436. # No shared lib support for Linux oldld, aout, or coff.
  13437. linux*oldld* | linux*aout* | linux*coff*)
  13438. dynamic_linker=no
  13439. ;;
  13440. # This must be glibc/ELF.
  13441. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  13442. version_type=linux # correct to gnu/linux during the next big refactor
  13443. need_lib_prefix=no
  13444. need_version=no
  13445. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13446. soname_spec='${libname}${release}${shared_ext}$major'
  13447. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  13448. shlibpath_var=LD_LIBRARY_PATH
  13449. shlibpath_overrides_runpath=no
  13450. # Some binutils ld are patched to set DT_RUNPATH
  13451. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  13452. $as_echo_n "(cached) " >&6
  13453. else
  13454. lt_cv_shlibpath_overrides_runpath=no
  13455. save_LDFLAGS=$LDFLAGS
  13456. save_libdir=$libdir
  13457. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  13458. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  13459. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13460. /* end confdefs.h. */
  13461. int
  13462. main ()
  13463. {
  13464. ;
  13465. return 0;
  13466. }
  13467. _ACEOF
  13468. if ac_fn_cxx_try_link "$LINENO"; then :
  13469. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  13470. lt_cv_shlibpath_overrides_runpath=yes
  13471. fi
  13472. fi
  13473. rm -f core conftest.err conftest.$ac_objext \
  13474. conftest$ac_exeext conftest.$ac_ext
  13475. LDFLAGS=$save_LDFLAGS
  13476. libdir=$save_libdir
  13477. fi
  13478. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  13479. # This implies no fast_install, which is unacceptable.
  13480. # Some rework will be needed to allow for fast_install
  13481. # before this can be enabled.
  13482. hardcode_into_libs=yes
  13483. # Add ABI-specific directories to the system library path.
  13484. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  13485. # Append ld.so.conf contents to the search path
  13486. if test -f /etc/ld.so.conf; then
  13487. 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' ' '`
  13488. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  13489. fi
  13490. # We used to test for /lib/ld.so.1 and disable shared libraries on
  13491. # powerpc, because MkLinux only supported shared libraries with the
  13492. # GNU dynamic linker. Since this was broken with cross compilers,
  13493. # most powerpc-linux boxes support dynamic linking these days and
  13494. # people can always --disable-shared, the test was removed, and we
  13495. # assume the GNU/Linux dynamic linker is in use.
  13496. dynamic_linker='GNU/Linux ld.so'
  13497. ;;
  13498. netbsd*)
  13499. version_type=sunos
  13500. need_lib_prefix=no
  13501. need_version=no
  13502. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13503. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13504. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13505. dynamic_linker='NetBSD (a.out) ld.so'
  13506. else
  13507. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13508. soname_spec='${libname}${release}${shared_ext}$major'
  13509. dynamic_linker='NetBSD ld.elf_so'
  13510. fi
  13511. shlibpath_var=LD_LIBRARY_PATH
  13512. shlibpath_overrides_runpath=yes
  13513. hardcode_into_libs=yes
  13514. ;;
  13515. newsos6)
  13516. version_type=linux # correct to gnu/linux during the next big refactor
  13517. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13518. shlibpath_var=LD_LIBRARY_PATH
  13519. shlibpath_overrides_runpath=yes
  13520. ;;
  13521. *nto* | *qnx*)
  13522. version_type=qnx
  13523. need_lib_prefix=no
  13524. need_version=no
  13525. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13526. soname_spec='${libname}${release}${shared_ext}$major'
  13527. shlibpath_var=LD_LIBRARY_PATH
  13528. shlibpath_overrides_runpath=no
  13529. hardcode_into_libs=yes
  13530. dynamic_linker='ldqnx.so'
  13531. ;;
  13532. openbsd*)
  13533. version_type=sunos
  13534. sys_lib_dlsearch_path_spec="/usr/lib"
  13535. need_lib_prefix=no
  13536. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  13537. case $host_os in
  13538. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  13539. *) need_version=no ;;
  13540. esac
  13541. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13542. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13543. shlibpath_var=LD_LIBRARY_PATH
  13544. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  13545. case $host_os in
  13546. openbsd2.[89] | openbsd2.[89].*)
  13547. shlibpath_overrides_runpath=no
  13548. ;;
  13549. *)
  13550. shlibpath_overrides_runpath=yes
  13551. ;;
  13552. esac
  13553. else
  13554. shlibpath_overrides_runpath=yes
  13555. fi
  13556. ;;
  13557. os2*)
  13558. libname_spec='$name'
  13559. shrext_cmds=".dll"
  13560. need_lib_prefix=no
  13561. library_names_spec='$libname${shared_ext} $libname.a'
  13562. dynamic_linker='OS/2 ld.exe'
  13563. shlibpath_var=LIBPATH
  13564. ;;
  13565. osf3* | osf4* | osf5*)
  13566. version_type=osf
  13567. need_lib_prefix=no
  13568. need_version=no
  13569. soname_spec='${libname}${release}${shared_ext}$major'
  13570. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13571. shlibpath_var=LD_LIBRARY_PATH
  13572. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  13573. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  13574. ;;
  13575. rdos*)
  13576. dynamic_linker=no
  13577. ;;
  13578. solaris*)
  13579. version_type=linux # correct to gnu/linux during the next big refactor
  13580. need_lib_prefix=no
  13581. need_version=no
  13582. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13583. soname_spec='${libname}${release}${shared_ext}$major'
  13584. shlibpath_var=LD_LIBRARY_PATH
  13585. shlibpath_overrides_runpath=yes
  13586. hardcode_into_libs=yes
  13587. # ldd complains unless libraries are executable
  13588. postinstall_cmds='chmod +x $lib'
  13589. ;;
  13590. sunos4*)
  13591. version_type=sunos
  13592. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13593. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  13594. shlibpath_var=LD_LIBRARY_PATH
  13595. shlibpath_overrides_runpath=yes
  13596. if test "$with_gnu_ld" = yes; then
  13597. need_lib_prefix=no
  13598. fi
  13599. need_version=yes
  13600. ;;
  13601. sysv4 | sysv4.3*)
  13602. version_type=linux # correct to gnu/linux during the next big refactor
  13603. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13604. soname_spec='${libname}${release}${shared_ext}$major'
  13605. shlibpath_var=LD_LIBRARY_PATH
  13606. case $host_vendor in
  13607. sni)
  13608. shlibpath_overrides_runpath=no
  13609. need_lib_prefix=no
  13610. runpath_var=LD_RUN_PATH
  13611. ;;
  13612. siemens)
  13613. need_lib_prefix=no
  13614. ;;
  13615. motorola)
  13616. need_lib_prefix=no
  13617. need_version=no
  13618. shlibpath_overrides_runpath=no
  13619. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  13620. ;;
  13621. esac
  13622. ;;
  13623. sysv4*MP*)
  13624. if test -d /usr/nec ;then
  13625. version_type=linux # correct to gnu/linux during the next big refactor
  13626. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  13627. soname_spec='$libname${shared_ext}.$major'
  13628. shlibpath_var=LD_LIBRARY_PATH
  13629. fi
  13630. ;;
  13631. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  13632. version_type=freebsd-elf
  13633. need_lib_prefix=no
  13634. need_version=no
  13635. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13636. soname_spec='${libname}${release}${shared_ext}$major'
  13637. shlibpath_var=LD_LIBRARY_PATH
  13638. shlibpath_overrides_runpath=yes
  13639. hardcode_into_libs=yes
  13640. if test "$with_gnu_ld" = yes; then
  13641. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  13642. else
  13643. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  13644. case $host_os in
  13645. sco3.2v5*)
  13646. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  13647. ;;
  13648. esac
  13649. fi
  13650. sys_lib_dlsearch_path_spec='/usr/lib'
  13651. ;;
  13652. tpf*)
  13653. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  13654. version_type=linux # correct to gnu/linux during the next big refactor
  13655. need_lib_prefix=no
  13656. need_version=no
  13657. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13658. shlibpath_var=LD_LIBRARY_PATH
  13659. shlibpath_overrides_runpath=no
  13660. hardcode_into_libs=yes
  13661. ;;
  13662. uts4*)
  13663. version_type=linux # correct to gnu/linux during the next big refactor
  13664. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13665. soname_spec='${libname}${release}${shared_ext}$major'
  13666. shlibpath_var=LD_LIBRARY_PATH
  13667. ;;
  13668. *)
  13669. dynamic_linker=no
  13670. ;;
  13671. esac
  13672. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  13673. $as_echo "$dynamic_linker" >&6; }
  13674. test "$dynamic_linker" = no && can_build_shared=no
  13675. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  13676. if test "$GCC" = yes; then
  13677. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  13678. fi
  13679. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  13680. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  13681. fi
  13682. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  13683. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  13684. fi
  13685. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  13686. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  13687. hardcode_action_CXX=
  13688. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  13689. test -n "$runpath_var_CXX" ||
  13690. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  13691. # We can hardcode non-existent directories.
  13692. if test "$hardcode_direct_CXX" != no &&
  13693. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  13694. # have to relink, otherwise we might link with an installed library
  13695. # when we should be linking with a yet-to-be-installed one
  13696. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  13697. test "$hardcode_minus_L_CXX" != no; then
  13698. # Linking always hardcodes the temporary library directory.
  13699. hardcode_action_CXX=relink
  13700. else
  13701. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  13702. hardcode_action_CXX=immediate
  13703. fi
  13704. else
  13705. # We cannot hardcode anything, or else we can only hardcode existing
  13706. # directories.
  13707. hardcode_action_CXX=unsupported
  13708. fi
  13709. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  13710. $as_echo "$hardcode_action_CXX" >&6; }
  13711. if test "$hardcode_action_CXX" = relink ||
  13712. test "$inherit_rpath_CXX" = yes; then
  13713. # Fast installation is not supported
  13714. enable_fast_install=no
  13715. elif test "$shlibpath_overrides_runpath" = yes ||
  13716. test "$enable_shared" = no; then
  13717. # Fast installation is not necessary
  13718. enable_fast_install=needless
  13719. fi
  13720. fi # test -n "$compiler"
  13721. CC=$lt_save_CC
  13722. CFLAGS=$lt_save_CFLAGS
  13723. LDCXX=$LD
  13724. LD=$lt_save_LD
  13725. GCC=$lt_save_GCC
  13726. with_gnu_ld=$lt_save_with_gnu_ld
  13727. lt_cv_path_LDCXX=$lt_cv_path_LD
  13728. lt_cv_path_LD=$lt_save_path_LD
  13729. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  13730. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  13731. fi # test "$_lt_caught_CXX_error" != yes
  13732. ac_ext=c
  13733. ac_cpp='$CPP $CPPFLAGS'
  13734. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13735. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13736. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13737. ac_config_commands="$ac_config_commands libtool"
  13738. # Only expand once:
  13739. # Checks for header files.
  13740. ac_header_dirent=no
  13741. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  13742. as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  13743. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
  13744. $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
  13745. if eval \${$as_ac_Header+:} false; then :
  13746. $as_echo_n "(cached) " >&6
  13747. else
  13748. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13749. /* end confdefs.h. */
  13750. #include <sys/types.h>
  13751. #include <$ac_hdr>
  13752. int
  13753. main ()
  13754. {
  13755. if ((DIR *) 0)
  13756. return 0;
  13757. ;
  13758. return 0;
  13759. }
  13760. _ACEOF
  13761. if ac_fn_c_try_compile "$LINENO"; then :
  13762. eval "$as_ac_Header=yes"
  13763. else
  13764. eval "$as_ac_Header=no"
  13765. fi
  13766. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13767. fi
  13768. eval ac_res=\$$as_ac_Header
  13769. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  13770. $as_echo "$ac_res" >&6; }
  13771. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  13772. cat >>confdefs.h <<_ACEOF
  13773. #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  13774. _ACEOF
  13775. ac_header_dirent=$ac_hdr; break
  13776. fi
  13777. done
  13778. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  13779. if test $ac_header_dirent = dirent.h; then
  13780. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
  13781. $as_echo_n "checking for library containing opendir... " >&6; }
  13782. if ${ac_cv_search_opendir+:} false; then :
  13783. $as_echo_n "(cached) " >&6
  13784. else
  13785. ac_func_search_save_LIBS=$LIBS
  13786. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13787. /* end confdefs.h. */
  13788. /* Override any GCC internal prototype to avoid an error.
  13789. Use char because int might match the return type of a GCC
  13790. builtin and then its argument prototype would still apply. */
  13791. #ifdef __cplusplus
  13792. extern "C"
  13793. #endif
  13794. char opendir ();
  13795. int
  13796. main ()
  13797. {
  13798. return opendir ();
  13799. ;
  13800. return 0;
  13801. }
  13802. _ACEOF
  13803. for ac_lib in '' dir; do
  13804. if test -z "$ac_lib"; then
  13805. ac_res="none required"
  13806. else
  13807. ac_res=-l$ac_lib
  13808. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  13809. fi
  13810. if ac_fn_c_try_link "$LINENO"; then :
  13811. ac_cv_search_opendir=$ac_res
  13812. fi
  13813. rm -f core conftest.err conftest.$ac_objext \
  13814. conftest$ac_exeext
  13815. if ${ac_cv_search_opendir+:} false; then :
  13816. break
  13817. fi
  13818. done
  13819. if ${ac_cv_search_opendir+:} false; then :
  13820. else
  13821. ac_cv_search_opendir=no
  13822. fi
  13823. rm conftest.$ac_ext
  13824. LIBS=$ac_func_search_save_LIBS
  13825. fi
  13826. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
  13827. $as_echo "$ac_cv_search_opendir" >&6; }
  13828. ac_res=$ac_cv_search_opendir
  13829. if test "$ac_res" != no; then :
  13830. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  13831. fi
  13832. else
  13833. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
  13834. $as_echo_n "checking for library containing opendir... " >&6; }
  13835. if ${ac_cv_search_opendir+:} false; then :
  13836. $as_echo_n "(cached) " >&6
  13837. else
  13838. ac_func_search_save_LIBS=$LIBS
  13839. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13840. /* end confdefs.h. */
  13841. /* Override any GCC internal prototype to avoid an error.
  13842. Use char because int might match the return type of a GCC
  13843. builtin and then its argument prototype would still apply. */
  13844. #ifdef __cplusplus
  13845. extern "C"
  13846. #endif
  13847. char opendir ();
  13848. int
  13849. main ()
  13850. {
  13851. return opendir ();
  13852. ;
  13853. return 0;
  13854. }
  13855. _ACEOF
  13856. for ac_lib in '' x; do
  13857. if test -z "$ac_lib"; then
  13858. ac_res="none required"
  13859. else
  13860. ac_res=-l$ac_lib
  13861. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  13862. fi
  13863. if ac_fn_c_try_link "$LINENO"; then :
  13864. ac_cv_search_opendir=$ac_res
  13865. fi
  13866. rm -f core conftest.err conftest.$ac_objext \
  13867. conftest$ac_exeext
  13868. if ${ac_cv_search_opendir+:} false; then :
  13869. break
  13870. fi
  13871. done
  13872. if ${ac_cv_search_opendir+:} false; then :
  13873. else
  13874. ac_cv_search_opendir=no
  13875. fi
  13876. rm conftest.$ac_ext
  13877. LIBS=$ac_func_search_save_LIBS
  13878. fi
  13879. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
  13880. $as_echo "$ac_cv_search_opendir" >&6; }
  13881. ac_res=$ac_cv_search_opendir
  13882. if test "$ac_res" != no; then :
  13883. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  13884. fi
  13885. fi
  13886. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  13887. $as_echo_n "checking for ANSI C header files... " >&6; }
  13888. if ${ac_cv_header_stdc+:} false; then :
  13889. $as_echo_n "(cached) " >&6
  13890. else
  13891. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13892. /* end confdefs.h. */
  13893. #include <stdlib.h>
  13894. #include <stdarg.h>
  13895. #include <string.h>
  13896. #include <float.h>
  13897. int
  13898. main ()
  13899. {
  13900. ;
  13901. return 0;
  13902. }
  13903. _ACEOF
  13904. if ac_fn_c_try_compile "$LINENO"; then :
  13905. ac_cv_header_stdc=yes
  13906. else
  13907. ac_cv_header_stdc=no
  13908. fi
  13909. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13910. if test $ac_cv_header_stdc = yes; then
  13911. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  13912. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13913. /* end confdefs.h. */
  13914. #include <string.h>
  13915. _ACEOF
  13916. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13917. $EGREP "memchr" >/dev/null 2>&1; then :
  13918. else
  13919. ac_cv_header_stdc=no
  13920. fi
  13921. rm -f conftest*
  13922. fi
  13923. if test $ac_cv_header_stdc = yes; then
  13924. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  13925. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13926. /* end confdefs.h. */
  13927. #include <stdlib.h>
  13928. _ACEOF
  13929. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13930. $EGREP "free" >/dev/null 2>&1; then :
  13931. else
  13932. ac_cv_header_stdc=no
  13933. fi
  13934. rm -f conftest*
  13935. fi
  13936. if test $ac_cv_header_stdc = yes; then
  13937. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  13938. if test "$cross_compiling" = yes; then :
  13939. :
  13940. else
  13941. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13942. /* end confdefs.h. */
  13943. #include <ctype.h>
  13944. #include <stdlib.h>
  13945. #if ((' ' & 0x0FF) == 0x020)
  13946. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  13947. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  13948. #else
  13949. # define ISLOWER(c) \
  13950. (('a' <= (c) && (c) <= 'i') \
  13951. || ('j' <= (c) && (c) <= 'r') \
  13952. || ('s' <= (c) && (c) <= 'z'))
  13953. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  13954. #endif
  13955. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  13956. int
  13957. main ()
  13958. {
  13959. int i;
  13960. for (i = 0; i < 256; i++)
  13961. if (XOR (islower (i), ISLOWER (i))
  13962. || toupper (i) != TOUPPER (i))
  13963. return 2;
  13964. return 0;
  13965. }
  13966. _ACEOF
  13967. if ac_fn_c_try_run "$LINENO"; then :
  13968. else
  13969. ac_cv_header_stdc=no
  13970. fi
  13971. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13972. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13973. fi
  13974. fi
  13975. fi
  13976. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  13977. $as_echo "$ac_cv_header_stdc" >&6; }
  13978. if test $ac_cv_header_stdc = yes; then
  13979. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  13980. fi
  13981. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
  13982. $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
  13983. if ${ac_cv_header_sys_wait_h+:} false; then :
  13984. $as_echo_n "(cached) " >&6
  13985. else
  13986. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13987. /* end confdefs.h. */
  13988. #include <sys/types.h>
  13989. #include <sys/wait.h>
  13990. #ifndef WEXITSTATUS
  13991. # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
  13992. #endif
  13993. #ifndef WIFEXITED
  13994. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  13995. #endif
  13996. int
  13997. main ()
  13998. {
  13999. int s;
  14000. wait (&s);
  14001. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  14002. ;
  14003. return 0;
  14004. }
  14005. _ACEOF
  14006. if ac_fn_c_try_compile "$LINENO"; then :
  14007. ac_cv_header_sys_wait_h=yes
  14008. else
  14009. ac_cv_header_sys_wait_h=no
  14010. fi
  14011. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14012. fi
  14013. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
  14014. $as_echo "$ac_cv_header_sys_wait_h" >&6; }
  14015. if test $ac_cv_header_sys_wait_h = yes; then
  14016. $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
  14017. fi
  14018. 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
  14019. do :
  14020. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  14021. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  14022. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  14023. cat >>confdefs.h <<_ACEOF
  14024. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  14025. _ACEOF
  14026. fi
  14027. done
  14028. # Checks for typedefs, structures, and compiler characteristics.
  14029. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
  14030. $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
  14031. if ${ac_cv_header_stat_broken+:} false; then :
  14032. $as_echo_n "(cached) " >&6
  14033. else
  14034. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14035. /* end confdefs.h. */
  14036. #include <sys/types.h>
  14037. #include <sys/stat.h>
  14038. #if defined S_ISBLK && defined S_IFDIR
  14039. extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
  14040. #endif
  14041. #if defined S_ISBLK && defined S_IFCHR
  14042. extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
  14043. #endif
  14044. #if defined S_ISLNK && defined S_IFREG
  14045. extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
  14046. #endif
  14047. #if defined S_ISSOCK && defined S_IFREG
  14048. extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
  14049. #endif
  14050. _ACEOF
  14051. if ac_fn_c_try_compile "$LINENO"; then :
  14052. ac_cv_header_stat_broken=no
  14053. else
  14054. ac_cv_header_stat_broken=yes
  14055. fi
  14056. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14057. fi
  14058. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
  14059. $as_echo "$ac_cv_header_stat_broken" >&6; }
  14060. if test $ac_cv_header_stat_broken = yes; then
  14061. $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
  14062. fi
  14063. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  14064. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  14065. if ${ac_cv_c_const+:} false; then :
  14066. $as_echo_n "(cached) " >&6
  14067. else
  14068. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14069. /* end confdefs.h. */
  14070. int
  14071. main ()
  14072. {
  14073. #ifndef __cplusplus
  14074. /* Ultrix mips cc rejects this sort of thing. */
  14075. typedef int charset[2];
  14076. const charset cs = { 0, 0 };
  14077. /* SunOS 4.1.1 cc rejects this. */
  14078. char const *const *pcpcc;
  14079. char **ppc;
  14080. /* NEC SVR4.0.2 mips cc rejects this. */
  14081. struct point {int x, y;};
  14082. static struct point const zero = {0,0};
  14083. /* AIX XL C 1.02.0.0 rejects this.
  14084. It does not let you subtract one const X* pointer from another in
  14085. an arm of an if-expression whose if-part is not a constant
  14086. expression */
  14087. const char *g = "string";
  14088. pcpcc = &g + (g ? g-g : 0);
  14089. /* HPUX 7.0 cc rejects these. */
  14090. ++pcpcc;
  14091. ppc = (char**) pcpcc;
  14092. pcpcc = (char const *const *) ppc;
  14093. { /* SCO 3.2v4 cc rejects this sort of thing. */
  14094. char tx;
  14095. char *t = &tx;
  14096. char const *s = 0 ? (char *) 0 : (char const *) 0;
  14097. *t++ = 0;
  14098. if (s) return 0;
  14099. }
  14100. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  14101. int x[] = {25, 17};
  14102. const int *foo = &x[0];
  14103. ++foo;
  14104. }
  14105. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  14106. typedef const int *iptr;
  14107. iptr p = 0;
  14108. ++p;
  14109. }
  14110. { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
  14111. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  14112. struct s { int j; const int *ap[3]; } bx;
  14113. struct s *b = &bx; b->j = 5;
  14114. }
  14115. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  14116. const int foo = 10;
  14117. if (!foo) return 0;
  14118. }
  14119. return !cs[0] && !zero.x;
  14120. #endif
  14121. ;
  14122. return 0;
  14123. }
  14124. _ACEOF
  14125. if ac_fn_c_try_compile "$LINENO"; then :
  14126. ac_cv_c_const=yes
  14127. else
  14128. ac_cv_c_const=no
  14129. fi
  14130. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14131. fi
  14132. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  14133. $as_echo "$ac_cv_c_const" >&6; }
  14134. if test $ac_cv_c_const = no; then
  14135. $as_echo "#define const /**/" >>confdefs.h
  14136. fi
  14137. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
  14138. $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
  14139. if ${ac_cv_header_stdbool_h+:} false; then :
  14140. $as_echo_n "(cached) " >&6
  14141. else
  14142. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14143. /* end confdefs.h. */
  14144. #include <stdbool.h>
  14145. #ifndef bool
  14146. "error: bool is not defined"
  14147. #endif
  14148. #ifndef false
  14149. "error: false is not defined"
  14150. #endif
  14151. #if false
  14152. "error: false is not 0"
  14153. #endif
  14154. #ifndef true
  14155. "error: true is not defined"
  14156. #endif
  14157. #if true != 1
  14158. "error: true is not 1"
  14159. #endif
  14160. #ifndef __bool_true_false_are_defined
  14161. "error: __bool_true_false_are_defined is not defined"
  14162. #endif
  14163. struct s { _Bool s: 1; _Bool t; } s;
  14164. char a[true == 1 ? 1 : -1];
  14165. char b[false == 0 ? 1 : -1];
  14166. char c[__bool_true_false_are_defined == 1 ? 1 : -1];
  14167. char d[(bool) 0.5 == true ? 1 : -1];
  14168. /* See body of main program for 'e'. */
  14169. char f[(_Bool) 0.0 == false ? 1 : -1];
  14170. char g[true];
  14171. char h[sizeof (_Bool)];
  14172. char i[sizeof s.t];
  14173. enum { j = false, k = true, l = false * true, m = true * 256 };
  14174. /* The following fails for
  14175. HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
  14176. _Bool n[m];
  14177. char o[sizeof n == m * sizeof n[0] ? 1 : -1];
  14178. char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
  14179. /* Catch a bug in an HP-UX C compiler. See
  14180. http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
  14181. http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
  14182. */
  14183. _Bool q = true;
  14184. _Bool *pq = &q;
  14185. int
  14186. main ()
  14187. {
  14188. bool e = &s;
  14189. *pq |= q;
  14190. *pq |= ! q;
  14191. /* Refer to every declared value, to avoid compiler optimizations. */
  14192. return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
  14193. + !m + !n + !o + !p + !q + !pq);
  14194. ;
  14195. return 0;
  14196. }
  14197. _ACEOF
  14198. if ac_fn_c_try_compile "$LINENO"; then :
  14199. ac_cv_header_stdbool_h=yes
  14200. else
  14201. ac_cv_header_stdbool_h=no
  14202. fi
  14203. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14204. fi
  14205. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
  14206. $as_echo "$ac_cv_header_stdbool_h" >&6; }
  14207. ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
  14208. if test "x$ac_cv_type__Bool" = xyes; then :
  14209. cat >>confdefs.h <<_ACEOF
  14210. #define HAVE__BOOL 1
  14211. _ACEOF
  14212. fi
  14213. if test $ac_cv_header_stdbool_h = yes; then
  14214. $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
  14215. fi
  14216. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
  14217. $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
  14218. if ${ac_cv_type_uid_t+:} false; then :
  14219. $as_echo_n "(cached) " >&6
  14220. else
  14221. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14222. /* end confdefs.h. */
  14223. #include <sys/types.h>
  14224. _ACEOF
  14225. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14226. $EGREP "uid_t" >/dev/null 2>&1; then :
  14227. ac_cv_type_uid_t=yes
  14228. else
  14229. ac_cv_type_uid_t=no
  14230. fi
  14231. rm -f conftest*
  14232. fi
  14233. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
  14234. $as_echo "$ac_cv_type_uid_t" >&6; }
  14235. if test $ac_cv_type_uid_t = no; then
  14236. $as_echo "#define uid_t int" >>confdefs.h
  14237. $as_echo "#define gid_t int" >>confdefs.h
  14238. fi
  14239. ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
  14240. if test "x$ac_cv_type_pid_t" = xyes; then :
  14241. else
  14242. cat >>confdefs.h <<_ACEOF
  14243. #define pid_t int
  14244. _ACEOF
  14245. fi
  14246. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  14247. if test "x$ac_cv_type_size_t" = xyes; then :
  14248. else
  14249. cat >>confdefs.h <<_ACEOF
  14250. #define size_t unsigned int
  14251. _ACEOF
  14252. fi
  14253. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
  14254. $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
  14255. if ${ac_cv_header_time+:} false; then :
  14256. $as_echo_n "(cached) " >&6
  14257. else
  14258. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14259. /* end confdefs.h. */
  14260. #include <sys/types.h>
  14261. #include <sys/time.h>
  14262. #include <time.h>
  14263. int
  14264. main ()
  14265. {
  14266. if ((struct tm *) 0)
  14267. return 0;
  14268. ;
  14269. return 0;
  14270. }
  14271. _ACEOF
  14272. if ac_fn_c_try_compile "$LINENO"; then :
  14273. ac_cv_header_time=yes
  14274. else
  14275. ac_cv_header_time=no
  14276. fi
  14277. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14278. fi
  14279. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
  14280. $as_echo "$ac_cv_header_time" >&6; }
  14281. if test $ac_cv_header_time = yes; then
  14282. $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
  14283. fi
  14284. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
  14285. $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
  14286. if ${ac_cv_struct_tm+:} false; then :
  14287. $as_echo_n "(cached) " >&6
  14288. else
  14289. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14290. /* end confdefs.h. */
  14291. #include <sys/types.h>
  14292. #include <time.h>
  14293. int
  14294. main ()
  14295. {
  14296. struct tm tm;
  14297. int *p = &tm.tm_sec;
  14298. return !p;
  14299. ;
  14300. return 0;
  14301. }
  14302. _ACEOF
  14303. if ac_fn_c_try_compile "$LINENO"; then :
  14304. ac_cv_struct_tm=time.h
  14305. else
  14306. ac_cv_struct_tm=sys/time.h
  14307. fi
  14308. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14309. fi
  14310. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
  14311. $as_echo "$ac_cv_struct_tm" >&6; }
  14312. if test $ac_cv_struct_tm = sys/time.h; then
  14313. $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
  14314. fi
  14315. # Checks for library functions.
  14316. for ac_header in unistd.h
  14317. do :
  14318. ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
  14319. if test "x$ac_cv_header_unistd_h" = xyes; then :
  14320. cat >>confdefs.h <<_ACEOF
  14321. #define HAVE_UNISTD_H 1
  14322. _ACEOF
  14323. fi
  14324. done
  14325. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5
  14326. $as_echo_n "checking for working chown... " >&6; }
  14327. if ${ac_cv_func_chown_works+:} false; then :
  14328. $as_echo_n "(cached) " >&6
  14329. else
  14330. if test "$cross_compiling" = yes; then :
  14331. ac_cv_func_chown_works=no
  14332. else
  14333. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14334. /* end confdefs.h. */
  14335. $ac_includes_default
  14336. #include <fcntl.h>
  14337. int
  14338. main ()
  14339. {
  14340. char *f = "conftest.chown";
  14341. struct stat before, after;
  14342. if (creat (f, 0600) < 0)
  14343. return 1;
  14344. if (stat (f, &before) < 0)
  14345. return 1;
  14346. if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
  14347. return 1;
  14348. if (stat (f, &after) < 0)
  14349. return 1;
  14350. return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
  14351. ;
  14352. return 0;
  14353. }
  14354. _ACEOF
  14355. if ac_fn_c_try_run "$LINENO"; then :
  14356. ac_cv_func_chown_works=yes
  14357. else
  14358. ac_cv_func_chown_works=no
  14359. fi
  14360. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14361. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14362. fi
  14363. rm -f conftest.chown
  14364. fi
  14365. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5
  14366. $as_echo "$ac_cv_func_chown_works" >&6; }
  14367. if test $ac_cv_func_chown_works = yes; then
  14368. $as_echo "#define HAVE_CHOWN 1" >>confdefs.h
  14369. fi
  14370. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
  14371. $as_echo_n "checking whether closedir returns void... " >&6; }
  14372. if ${ac_cv_func_closedir_void+:} false; then :
  14373. $as_echo_n "(cached) " >&6
  14374. else
  14375. if test "$cross_compiling" = yes; then :
  14376. ac_cv_func_closedir_void=yes
  14377. else
  14378. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14379. /* end confdefs.h. */
  14380. $ac_includes_default
  14381. #include <$ac_header_dirent>
  14382. #ifndef __cplusplus
  14383. int closedir ();
  14384. #endif
  14385. int
  14386. main ()
  14387. {
  14388. return closedir (opendir (".")) != 0;
  14389. ;
  14390. return 0;
  14391. }
  14392. _ACEOF
  14393. if ac_fn_c_try_run "$LINENO"; then :
  14394. ac_cv_func_closedir_void=no
  14395. else
  14396. ac_cv_func_closedir_void=yes
  14397. fi
  14398. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14399. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14400. fi
  14401. fi
  14402. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
  14403. $as_echo "$ac_cv_func_closedir_void" >&6; }
  14404. if test $ac_cv_func_closedir_void = yes; then
  14405. $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
  14406. fi
  14407. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
  14408. $as_echo_n "checking for error_at_line... " >&6; }
  14409. if ${ac_cv_lib_error_at_line+:} false; then :
  14410. $as_echo_n "(cached) " >&6
  14411. else
  14412. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14413. /* end confdefs.h. */
  14414. #include <error.h>
  14415. int
  14416. main ()
  14417. {
  14418. error_at_line (0, 0, "", 0, "an error occurred");
  14419. ;
  14420. return 0;
  14421. }
  14422. _ACEOF
  14423. if ac_fn_c_try_link "$LINENO"; then :
  14424. ac_cv_lib_error_at_line=yes
  14425. else
  14426. ac_cv_lib_error_at_line=no
  14427. fi
  14428. rm -f core conftest.err conftest.$ac_objext \
  14429. conftest$ac_exeext conftest.$ac_ext
  14430. fi
  14431. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
  14432. $as_echo "$ac_cv_lib_error_at_line" >&6; }
  14433. if test $ac_cv_lib_error_at_line = no; then
  14434. case " $LIBOBJS " in
  14435. *" error.$ac_objext "* ) ;;
  14436. *) LIBOBJS="$LIBOBJS error.$ac_objext"
  14437. ;;
  14438. esac
  14439. fi
  14440. for ac_header in vfork.h
  14441. do :
  14442. ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
  14443. if test "x$ac_cv_header_vfork_h" = xyes; then :
  14444. cat >>confdefs.h <<_ACEOF
  14445. #define HAVE_VFORK_H 1
  14446. _ACEOF
  14447. fi
  14448. done
  14449. for ac_func in fork vfork
  14450. do :
  14451. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14452. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14453. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14454. cat >>confdefs.h <<_ACEOF
  14455. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14456. _ACEOF
  14457. fi
  14458. done
  14459. if test "x$ac_cv_func_fork" = xyes; then
  14460. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
  14461. $as_echo_n "checking for working fork... " >&6; }
  14462. if ${ac_cv_func_fork_works+:} false; then :
  14463. $as_echo_n "(cached) " >&6
  14464. else
  14465. if test "$cross_compiling" = yes; then :
  14466. ac_cv_func_fork_works=cross
  14467. else
  14468. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14469. /* end confdefs.h. */
  14470. $ac_includes_default
  14471. int
  14472. main ()
  14473. {
  14474. /* By Ruediger Kuhlmann. */
  14475. return fork () < 0;
  14476. ;
  14477. return 0;
  14478. }
  14479. _ACEOF
  14480. if ac_fn_c_try_run "$LINENO"; then :
  14481. ac_cv_func_fork_works=yes
  14482. else
  14483. ac_cv_func_fork_works=no
  14484. fi
  14485. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14486. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14487. fi
  14488. fi
  14489. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
  14490. $as_echo "$ac_cv_func_fork_works" >&6; }
  14491. else
  14492. ac_cv_func_fork_works=$ac_cv_func_fork
  14493. fi
  14494. if test "x$ac_cv_func_fork_works" = xcross; then
  14495. case $host in
  14496. *-*-amigaos* | *-*-msdosdjgpp*)
  14497. # Override, as these systems have only a dummy fork() stub
  14498. ac_cv_func_fork_works=no
  14499. ;;
  14500. *)
  14501. ac_cv_func_fork_works=yes
  14502. ;;
  14503. esac
  14504. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  14505. $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  14506. fi
  14507. ac_cv_func_vfork_works=$ac_cv_func_vfork
  14508. if test "x$ac_cv_func_vfork" = xyes; then
  14509. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
  14510. $as_echo_n "checking for working vfork... " >&6; }
  14511. if ${ac_cv_func_vfork_works+:} false; then :
  14512. $as_echo_n "(cached) " >&6
  14513. else
  14514. if test "$cross_compiling" = yes; then :
  14515. ac_cv_func_vfork_works=cross
  14516. else
  14517. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14518. /* end confdefs.h. */
  14519. /* Thanks to Paul Eggert for this test. */
  14520. $ac_includes_default
  14521. #include <sys/wait.h>
  14522. #ifdef HAVE_VFORK_H
  14523. # include <vfork.h>
  14524. #endif
  14525. /* On some sparc systems, changes by the child to local and incoming
  14526. argument registers are propagated back to the parent. The compiler
  14527. is told about this with #include <vfork.h>, but some compilers
  14528. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  14529. static variable whose address is put into a register that is
  14530. clobbered by the vfork. */
  14531. static void
  14532. #ifdef __cplusplus
  14533. sparc_address_test (int arg)
  14534. # else
  14535. sparc_address_test (arg) int arg;
  14536. #endif
  14537. {
  14538. static pid_t child;
  14539. if (!child) {
  14540. child = vfork ();
  14541. if (child < 0) {
  14542. perror ("vfork");
  14543. _exit(2);
  14544. }
  14545. if (!child) {
  14546. arg = getpid();
  14547. write(-1, "", 0);
  14548. _exit (arg);
  14549. }
  14550. }
  14551. }
  14552. int
  14553. main ()
  14554. {
  14555. pid_t parent = getpid ();
  14556. pid_t child;
  14557. sparc_address_test (0);
  14558. child = vfork ();
  14559. if (child == 0) {
  14560. /* Here is another test for sparc vfork register problems. This
  14561. test uses lots of local variables, at least as many local
  14562. variables as main has allocated so far including compiler
  14563. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  14564. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  14565. reuse the register of parent for one of the local variables,
  14566. since it will think that parent can't possibly be used any more
  14567. in this routine. Assigning to the local variable will thus
  14568. munge parent in the parent process. */
  14569. pid_t
  14570. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  14571. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  14572. /* Convince the compiler that p..p7 are live; otherwise, it might
  14573. use the same hardware register for all 8 local variables. */
  14574. if (p != p1 || p != p2 || p != p3 || p != p4
  14575. || p != p5 || p != p6 || p != p7)
  14576. _exit(1);
  14577. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  14578. from child file descriptors. If the child closes a descriptor
  14579. before it execs or exits, this munges the parent's descriptor
  14580. as well. Test for this by closing stdout in the child. */
  14581. _exit(close(fileno(stdout)) != 0);
  14582. } else {
  14583. int status;
  14584. struct stat st;
  14585. while (wait(&status) != child)
  14586. ;
  14587. return (
  14588. /* Was there some problem with vforking? */
  14589. child < 0
  14590. /* Did the child fail? (This shouldn't happen.) */
  14591. || status
  14592. /* Did the vfork/compiler bug occur? */
  14593. || parent != getpid()
  14594. /* Did the file descriptor bug occur? */
  14595. || fstat(fileno(stdout), &st) != 0
  14596. );
  14597. }
  14598. }
  14599. _ACEOF
  14600. if ac_fn_c_try_run "$LINENO"; then :
  14601. ac_cv_func_vfork_works=yes
  14602. else
  14603. ac_cv_func_vfork_works=no
  14604. fi
  14605. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14606. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14607. fi
  14608. fi
  14609. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
  14610. $as_echo "$ac_cv_func_vfork_works" >&6; }
  14611. fi;
  14612. if test "x$ac_cv_func_fork_works" = xcross; then
  14613. ac_cv_func_vfork_works=$ac_cv_func_vfork
  14614. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  14615. $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  14616. fi
  14617. if test "x$ac_cv_func_vfork_works" = xyes; then
  14618. $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
  14619. else
  14620. $as_echo "#define vfork fork" >>confdefs.h
  14621. fi
  14622. if test "x$ac_cv_func_fork_works" = xyes; then
  14623. $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
  14624. fi
  14625. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
  14626. $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
  14627. if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
  14628. $as_echo_n "(cached) " >&6
  14629. else
  14630. rm -f conftest.sym conftest.file
  14631. echo >conftest.file
  14632. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  14633. if test "$cross_compiling" = yes; then :
  14634. ac_cv_func_lstat_dereferences_slashed_symlink=no
  14635. else
  14636. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14637. /* end confdefs.h. */
  14638. $ac_includes_default
  14639. int
  14640. main ()
  14641. {
  14642. struct stat sbuf;
  14643. /* Linux will dereference the symlink and fail, as required by POSIX.
  14644. That is better in the sense that it means we will not
  14645. have to compile and use the lstat wrapper. */
  14646. return lstat ("conftest.sym/", &sbuf) == 0;
  14647. ;
  14648. return 0;
  14649. }
  14650. _ACEOF
  14651. if ac_fn_c_try_run "$LINENO"; then :
  14652. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  14653. else
  14654. ac_cv_func_lstat_dereferences_slashed_symlink=no
  14655. fi
  14656. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14657. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14658. fi
  14659. else
  14660. # If the `ln -s' command failed, then we probably don't even
  14661. # have an lstat function.
  14662. ac_cv_func_lstat_dereferences_slashed_symlink=no
  14663. fi
  14664. rm -f conftest.sym conftest.file
  14665. fi
  14666. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  14667. $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  14668. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  14669. cat >>confdefs.h <<_ACEOF
  14670. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  14671. _ACEOF
  14672. if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
  14673. case " $LIBOBJS " in
  14674. *" lstat.$ac_objext "* ) ;;
  14675. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  14676. ;;
  14677. esac
  14678. fi
  14679. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat accepts an empty string" >&5
  14680. $as_echo_n "checking whether lstat accepts an empty string... " >&6; }
  14681. if ${ac_cv_func_lstat_empty_string_bug+:} false; then :
  14682. $as_echo_n "(cached) " >&6
  14683. else
  14684. if test "$cross_compiling" = yes; then :
  14685. ac_cv_func_lstat_empty_string_bug=yes
  14686. else
  14687. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14688. /* end confdefs.h. */
  14689. $ac_includes_default
  14690. int
  14691. main ()
  14692. {
  14693. struct stat sbuf;
  14694. return lstat ("", &sbuf) == 0;
  14695. ;
  14696. return 0;
  14697. }
  14698. _ACEOF
  14699. if ac_fn_c_try_run "$LINENO"; then :
  14700. ac_cv_func_lstat_empty_string_bug=no
  14701. else
  14702. ac_cv_func_lstat_empty_string_bug=yes
  14703. fi
  14704. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14705. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14706. fi
  14707. fi
  14708. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_empty_string_bug" >&5
  14709. $as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
  14710. if test $ac_cv_func_lstat_empty_string_bug = yes; then
  14711. case " $LIBOBJS " in
  14712. *" lstat.$ac_objext "* ) ;;
  14713. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  14714. ;;
  14715. esac
  14716. cat >>confdefs.h <<_ACEOF
  14717. #define HAVE_LSTAT_EMPTY_STRING_BUG 1
  14718. _ACEOF
  14719. fi
  14720. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
  14721. $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
  14722. if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
  14723. $as_echo_n "(cached) " >&6
  14724. else
  14725. rm -f conftest.sym conftest.file
  14726. echo >conftest.file
  14727. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  14728. if test "$cross_compiling" = yes; then :
  14729. ac_cv_func_lstat_dereferences_slashed_symlink=no
  14730. else
  14731. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14732. /* end confdefs.h. */
  14733. $ac_includes_default
  14734. int
  14735. main ()
  14736. {
  14737. struct stat sbuf;
  14738. /* Linux will dereference the symlink and fail, as required by POSIX.
  14739. That is better in the sense that it means we will not
  14740. have to compile and use the lstat wrapper. */
  14741. return lstat ("conftest.sym/", &sbuf) == 0;
  14742. ;
  14743. return 0;
  14744. }
  14745. _ACEOF
  14746. if ac_fn_c_try_run "$LINENO"; then :
  14747. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  14748. else
  14749. ac_cv_func_lstat_dereferences_slashed_symlink=no
  14750. fi
  14751. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14752. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14753. fi
  14754. else
  14755. # If the `ln -s' command failed, then we probably don't even
  14756. # have an lstat function.
  14757. ac_cv_func_lstat_dereferences_slashed_symlink=no
  14758. fi
  14759. rm -f conftest.sym conftest.file
  14760. fi
  14761. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  14762. $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  14763. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  14764. cat >>confdefs.h <<_ACEOF
  14765. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  14766. _ACEOF
  14767. if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
  14768. case " $LIBOBJS " in
  14769. *" lstat.$ac_objext "* ) ;;
  14770. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  14771. ;;
  14772. esac
  14773. fi
  14774. for ac_header in stdlib.h
  14775. do :
  14776. ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
  14777. if test "x$ac_cv_header_stdlib_h" = xyes; then :
  14778. cat >>confdefs.h <<_ACEOF
  14779. #define HAVE_STDLIB_H 1
  14780. _ACEOF
  14781. fi
  14782. done
  14783. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
  14784. $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
  14785. if ${ac_cv_func_malloc_0_nonnull+:} false; then :
  14786. $as_echo_n "(cached) " >&6
  14787. else
  14788. if test "$cross_compiling" = yes; then :
  14789. ac_cv_func_malloc_0_nonnull=no
  14790. else
  14791. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14792. /* end confdefs.h. */
  14793. #if defined STDC_HEADERS || defined HAVE_STDLIB_H
  14794. # include <stdlib.h>
  14795. #else
  14796. char *malloc ();
  14797. #endif
  14798. int
  14799. main ()
  14800. {
  14801. return ! malloc (0);
  14802. ;
  14803. return 0;
  14804. }
  14805. _ACEOF
  14806. if ac_fn_c_try_run "$LINENO"; then :
  14807. ac_cv_func_malloc_0_nonnull=yes
  14808. else
  14809. ac_cv_func_malloc_0_nonnull=no
  14810. fi
  14811. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14812. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14813. fi
  14814. fi
  14815. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
  14816. $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
  14817. if test $ac_cv_func_malloc_0_nonnull = yes; then :
  14818. $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
  14819. else
  14820. $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
  14821. case " $LIBOBJS " in
  14822. *" malloc.$ac_objext "* ) ;;
  14823. *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
  14824. ;;
  14825. esac
  14826. $as_echo "#define malloc rpl_malloc" >>confdefs.h
  14827. fi
  14828. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
  14829. $as_echo_n "checking for working memcmp... " >&6; }
  14830. if ${ac_cv_func_memcmp_working+:} false; then :
  14831. $as_echo_n "(cached) " >&6
  14832. else
  14833. if test "$cross_compiling" = yes; then :
  14834. ac_cv_func_memcmp_working=no
  14835. else
  14836. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14837. /* end confdefs.h. */
  14838. $ac_includes_default
  14839. int
  14840. main ()
  14841. {
  14842. /* Some versions of memcmp are not 8-bit clean. */
  14843. char c0 = '\100', c1 = '\200', c2 = '\201';
  14844. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  14845. return 1;
  14846. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  14847. or more and with at least one buffer not starting on a 4-byte boundary.
  14848. William Lewis provided this test program. */
  14849. {
  14850. char foo[21];
  14851. char bar[21];
  14852. int i;
  14853. for (i = 0; i < 4; i++)
  14854. {
  14855. char *a = foo + i;
  14856. char *b = bar + i;
  14857. strcpy (a, "--------01111111");
  14858. strcpy (b, "--------10000000");
  14859. if (memcmp (a, b, 16) >= 0)
  14860. return 1;
  14861. }
  14862. return 0;
  14863. }
  14864. ;
  14865. return 0;
  14866. }
  14867. _ACEOF
  14868. if ac_fn_c_try_run "$LINENO"; then :
  14869. ac_cv_func_memcmp_working=yes
  14870. else
  14871. ac_cv_func_memcmp_working=no
  14872. fi
  14873. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14874. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14875. fi
  14876. fi
  14877. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
  14878. $as_echo "$ac_cv_func_memcmp_working" >&6; }
  14879. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  14880. *" memcmp.$ac_objext "* ) ;;
  14881. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  14882. ;;
  14883. esac
  14884. for ac_header in $ac_header_list
  14885. do :
  14886. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  14887. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  14888. "
  14889. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  14890. cat >>confdefs.h <<_ACEOF
  14891. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  14892. _ACEOF
  14893. fi
  14894. done
  14895. for ac_func in getpagesize
  14896. do :
  14897. ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
  14898. if test "x$ac_cv_func_getpagesize" = xyes; then :
  14899. cat >>confdefs.h <<_ACEOF
  14900. #define HAVE_GETPAGESIZE 1
  14901. _ACEOF
  14902. fi
  14903. done
  14904. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
  14905. $as_echo_n "checking for working mmap... " >&6; }
  14906. if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
  14907. $as_echo_n "(cached) " >&6
  14908. else
  14909. if test "$cross_compiling" = yes; then :
  14910. ac_cv_func_mmap_fixed_mapped=no
  14911. else
  14912. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14913. /* end confdefs.h. */
  14914. $ac_includes_default
  14915. /* malloc might have been renamed as rpl_malloc. */
  14916. #undef malloc
  14917. /* Thanks to Mike Haertel and Jim Avera for this test.
  14918. Here is a matrix of mmap possibilities:
  14919. mmap private not fixed
  14920. mmap private fixed at somewhere currently unmapped
  14921. mmap private fixed at somewhere already mapped
  14922. mmap shared not fixed
  14923. mmap shared fixed at somewhere currently unmapped
  14924. mmap shared fixed at somewhere already mapped
  14925. For private mappings, we should verify that changes cannot be read()
  14926. back from the file, nor mmap's back from the file at a different
  14927. address. (There have been systems where private was not correctly
  14928. implemented like the infamous i386 svr4.0, and systems where the
  14929. VM page cache was not coherent with the file system buffer cache
  14930. like early versions of FreeBSD and possibly contemporary NetBSD.)
  14931. For shared mappings, we should conversely verify that changes get
  14932. propagated back to all the places they're supposed to be.
  14933. Grep wants private fixed already mapped.
  14934. The main things grep needs to know about mmap are:
  14935. * does it exist and is it safe to write into the mmap'd area
  14936. * how to use it (BSD variants) */
  14937. #include <fcntl.h>
  14938. #include <sys/mman.h>
  14939. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  14940. char *malloc ();
  14941. #endif
  14942. /* This mess was copied from the GNU getpagesize.h. */
  14943. #ifndef HAVE_GETPAGESIZE
  14944. # ifdef _SC_PAGESIZE
  14945. # define getpagesize() sysconf(_SC_PAGESIZE)
  14946. # else /* no _SC_PAGESIZE */
  14947. # ifdef HAVE_SYS_PARAM_H
  14948. # include <sys/param.h>
  14949. # ifdef EXEC_PAGESIZE
  14950. # define getpagesize() EXEC_PAGESIZE
  14951. # else /* no EXEC_PAGESIZE */
  14952. # ifdef NBPG
  14953. # define getpagesize() NBPG * CLSIZE
  14954. # ifndef CLSIZE
  14955. # define CLSIZE 1
  14956. # endif /* no CLSIZE */
  14957. # else /* no NBPG */
  14958. # ifdef NBPC
  14959. # define getpagesize() NBPC
  14960. # else /* no NBPC */
  14961. # ifdef PAGESIZE
  14962. # define getpagesize() PAGESIZE
  14963. # endif /* PAGESIZE */
  14964. # endif /* no NBPC */
  14965. # endif /* no NBPG */
  14966. # endif /* no EXEC_PAGESIZE */
  14967. # else /* no HAVE_SYS_PARAM_H */
  14968. # define getpagesize() 8192 /* punt totally */
  14969. # endif /* no HAVE_SYS_PARAM_H */
  14970. # endif /* no _SC_PAGESIZE */
  14971. #endif /* no HAVE_GETPAGESIZE */
  14972. int
  14973. main ()
  14974. {
  14975. char *data, *data2, *data3;
  14976. const char *cdata2;
  14977. int i, pagesize;
  14978. int fd, fd2;
  14979. pagesize = getpagesize ();
  14980. /* First, make a file with some known garbage in it. */
  14981. data = (char *) malloc (pagesize);
  14982. if (!data)
  14983. return 1;
  14984. for (i = 0; i < pagesize; ++i)
  14985. *(data + i) = rand ();
  14986. umask (0);
  14987. fd = creat ("conftest.mmap", 0600);
  14988. if (fd < 0)
  14989. return 2;
  14990. if (write (fd, data, pagesize) != pagesize)
  14991. return 3;
  14992. close (fd);
  14993. /* Next, check that the tail of a page is zero-filled. File must have
  14994. non-zero length, otherwise we risk SIGBUS for entire page. */
  14995. fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
  14996. if (fd2 < 0)
  14997. return 4;
  14998. cdata2 = "";
  14999. if (write (fd2, cdata2, 1) != 1)
  15000. return 5;
  15001. data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
  15002. if (data2 == MAP_FAILED)
  15003. return 6;
  15004. for (i = 0; i < pagesize; ++i)
  15005. if (*(data2 + i))
  15006. return 7;
  15007. close (fd2);
  15008. if (munmap (data2, pagesize))
  15009. return 8;
  15010. /* Next, try to mmap the file at a fixed address which already has
  15011. something else allocated at it. If we can, also make sure that
  15012. we see the same garbage. */
  15013. fd = open ("conftest.mmap", O_RDWR);
  15014. if (fd < 0)
  15015. return 9;
  15016. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  15017. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  15018. return 10;
  15019. for (i = 0; i < pagesize; ++i)
  15020. if (*(data + i) != *(data2 + i))
  15021. return 11;
  15022. /* Finally, make sure that changes to the mapped area do not
  15023. percolate back to the file as seen by read(). (This is a bug on
  15024. some variants of i386 svr4.0.) */
  15025. for (i = 0; i < pagesize; ++i)
  15026. *(data2 + i) = *(data2 + i) + 1;
  15027. data3 = (char *) malloc (pagesize);
  15028. if (!data3)
  15029. return 12;
  15030. if (read (fd, data3, pagesize) != pagesize)
  15031. return 13;
  15032. for (i = 0; i < pagesize; ++i)
  15033. if (*(data + i) != *(data3 + i))
  15034. return 14;
  15035. close (fd);
  15036. return 0;
  15037. }
  15038. _ACEOF
  15039. if ac_fn_c_try_run "$LINENO"; then :
  15040. ac_cv_func_mmap_fixed_mapped=yes
  15041. else
  15042. ac_cv_func_mmap_fixed_mapped=no
  15043. fi
  15044. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15045. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15046. fi
  15047. fi
  15048. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
  15049. $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
  15050. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  15051. $as_echo "#define HAVE_MMAP 1" >>confdefs.h
  15052. fi
  15053. rm -f conftest.mmap conftest.txt
  15054. { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
  15055. $as_echo_n "checking return type of signal handlers... " >&6; }
  15056. if ${ac_cv_type_signal+:} false; then :
  15057. $as_echo_n "(cached) " >&6
  15058. else
  15059. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15060. /* end confdefs.h. */
  15061. #include <sys/types.h>
  15062. #include <signal.h>
  15063. int
  15064. main ()
  15065. {
  15066. return *(signal (0, 0)) (0) == 1;
  15067. ;
  15068. return 0;
  15069. }
  15070. _ACEOF
  15071. if ac_fn_c_try_compile "$LINENO"; then :
  15072. ac_cv_type_signal=int
  15073. else
  15074. ac_cv_type_signal=void
  15075. fi
  15076. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15077. fi
  15078. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
  15079. $as_echo "$ac_cv_type_signal" >&6; }
  15080. cat >>confdefs.h <<_ACEOF
  15081. #define RETSIGTYPE $ac_cv_type_signal
  15082. _ACEOF
  15083. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
  15084. $as_echo_n "checking whether stat accepts an empty string... " >&6; }
  15085. if ${ac_cv_func_stat_empty_string_bug+:} false; then :
  15086. $as_echo_n "(cached) " >&6
  15087. else
  15088. if test "$cross_compiling" = yes; then :
  15089. ac_cv_func_stat_empty_string_bug=yes
  15090. else
  15091. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15092. /* end confdefs.h. */
  15093. $ac_includes_default
  15094. int
  15095. main ()
  15096. {
  15097. struct stat sbuf;
  15098. return stat ("", &sbuf) == 0;
  15099. ;
  15100. return 0;
  15101. }
  15102. _ACEOF
  15103. if ac_fn_c_try_run "$LINENO"; then :
  15104. ac_cv_func_stat_empty_string_bug=no
  15105. else
  15106. ac_cv_func_stat_empty_string_bug=yes
  15107. fi
  15108. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15109. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15110. fi
  15111. fi
  15112. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
  15113. $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
  15114. if test $ac_cv_func_stat_empty_string_bug = yes; then
  15115. case " $LIBOBJS " in
  15116. *" stat.$ac_objext "* ) ;;
  15117. *) LIBOBJS="$LIBOBJS stat.$ac_objext"
  15118. ;;
  15119. esac
  15120. cat >>confdefs.h <<_ACEOF
  15121. #define HAVE_STAT_EMPTY_STRING_BUG 1
  15122. _ACEOF
  15123. fi
  15124. ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
  15125. if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
  15126. ac_have_decl=1
  15127. else
  15128. ac_have_decl=0
  15129. fi
  15130. cat >>confdefs.h <<_ACEOF
  15131. #define HAVE_DECL_STRERROR_R $ac_have_decl
  15132. _ACEOF
  15133. for ac_func in strerror_r
  15134. do :
  15135. ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
  15136. if test "x$ac_cv_func_strerror_r" = xyes; then :
  15137. cat >>confdefs.h <<_ACEOF
  15138. #define HAVE_STRERROR_R 1
  15139. _ACEOF
  15140. fi
  15141. done
  15142. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
  15143. $as_echo_n "checking whether strerror_r returns char *... " >&6; }
  15144. if ${ac_cv_func_strerror_r_char_p+:} false; then :
  15145. $as_echo_n "(cached) " >&6
  15146. else
  15147. ac_cv_func_strerror_r_char_p=no
  15148. if test $ac_cv_have_decl_strerror_r = yes; then
  15149. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15150. /* end confdefs.h. */
  15151. $ac_includes_default
  15152. int
  15153. main ()
  15154. {
  15155. char buf[100];
  15156. char x = *strerror_r (0, buf, sizeof buf);
  15157. char *p = strerror_r (0, buf, sizeof buf);
  15158. return !p || x;
  15159. ;
  15160. return 0;
  15161. }
  15162. _ACEOF
  15163. if ac_fn_c_try_compile "$LINENO"; then :
  15164. ac_cv_func_strerror_r_char_p=yes
  15165. fi
  15166. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15167. else
  15168. # strerror_r is not declared. Choose between
  15169. # systems that have relatively inaccessible declarations for the
  15170. # function. BeOS and DEC UNIX 4.0 fall in this category, but the
  15171. # former has a strerror_r that returns char*, while the latter
  15172. # has a strerror_r that returns `int'.
  15173. # This test should segfault on the DEC system.
  15174. if test "$cross_compiling" = yes; then :
  15175. :
  15176. else
  15177. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15178. /* end confdefs.h. */
  15179. $ac_includes_default
  15180. extern char *strerror_r ();
  15181. int
  15182. main ()
  15183. {
  15184. char buf[100];
  15185. char x = *strerror_r (0, buf, sizeof buf);
  15186. return ! isalpha (x);
  15187. ;
  15188. return 0;
  15189. }
  15190. _ACEOF
  15191. if ac_fn_c_try_run "$LINENO"; then :
  15192. ac_cv_func_strerror_r_char_p=yes
  15193. fi
  15194. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15195. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15196. fi
  15197. fi
  15198. fi
  15199. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
  15200. $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
  15201. if test $ac_cv_func_strerror_r_char_p = yes; then
  15202. $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
  15203. fi
  15204. for ac_func in strftime
  15205. do :
  15206. ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
  15207. if test "x$ac_cv_func_strftime" = xyes; then :
  15208. cat >>confdefs.h <<_ACEOF
  15209. #define HAVE_STRFTIME 1
  15210. _ACEOF
  15211. else
  15212. # strftime is in -lintl on SCO UNIX.
  15213. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
  15214. $as_echo_n "checking for strftime in -lintl... " >&6; }
  15215. if ${ac_cv_lib_intl_strftime+:} false; then :
  15216. $as_echo_n "(cached) " >&6
  15217. else
  15218. ac_check_lib_save_LIBS=$LIBS
  15219. LIBS="-lintl $LIBS"
  15220. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15221. /* end confdefs.h. */
  15222. /* Override any GCC internal prototype to avoid an error.
  15223. Use char because int might match the return type of a GCC
  15224. builtin and then its argument prototype would still apply. */
  15225. #ifdef __cplusplus
  15226. extern "C"
  15227. #endif
  15228. char strftime ();
  15229. int
  15230. main ()
  15231. {
  15232. return strftime ();
  15233. ;
  15234. return 0;
  15235. }
  15236. _ACEOF
  15237. if ac_fn_c_try_link "$LINENO"; then :
  15238. ac_cv_lib_intl_strftime=yes
  15239. else
  15240. ac_cv_lib_intl_strftime=no
  15241. fi
  15242. rm -f core conftest.err conftest.$ac_objext \
  15243. conftest$ac_exeext conftest.$ac_ext
  15244. LIBS=$ac_check_lib_save_LIBS
  15245. fi
  15246. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
  15247. $as_echo "$ac_cv_lib_intl_strftime" >&6; }
  15248. if test "x$ac_cv_lib_intl_strftime" = xyes; then :
  15249. $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
  15250. LIBS="-lintl $LIBS"
  15251. fi
  15252. fi
  15253. done
  15254. for ac_func in vprintf
  15255. do :
  15256. ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
  15257. if test "x$ac_cv_func_vprintf" = xyes; then :
  15258. cat >>confdefs.h <<_ACEOF
  15259. #define HAVE_VPRINTF 1
  15260. _ACEOF
  15261. ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
  15262. if test "x$ac_cv_func__doprnt" = xyes; then :
  15263. $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
  15264. fi
  15265. fi
  15266. done
  15267. for ac_func in clock_gettime endpwent ftruncate getcwd gethostbyname inet_ntoa localtime_r memmove memset mkdir munmap putenv rmdir setrlimit socket strcasecmp strchr strcspn strdup strerror strncasecmp strpbrk strrchr strstr strtol tzset
  15268. do :
  15269. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  15270. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  15271. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  15272. cat >>confdefs.h <<_ACEOF
  15273. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  15274. _ACEOF
  15275. fi
  15276. done
  15277. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-debug" >&5
  15278. $as_echo_n "checking for --enable-debug... " >&6; }
  15279. # Check whether --enable-debug was given.
  15280. if test "${enable_debug+set}" = set; then :
  15281. enableval=$enable_debug;
  15282. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15283. $as_echo "yes" >&6; }
  15284. debug_defs="-g3 -DDEBUG -DMCC_DEBUG"
  15285. else
  15286. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15287. $as_echo "no" >&6; }
  15288. debug_defs=""
  15289. fi
  15290. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-asan" >&5
  15291. $as_echo_n "checking for --enable-asan... " >&6; }
  15292. # Check whether --enable-asan was given.
  15293. if test "${enable_asan+set}" = set; then :
  15294. enableval=$enable_asan;
  15295. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15296. $as_echo "yes" >&6; }
  15297. asan_defs="-fsanitize=address -fno-omit-frame-pointer"
  15298. else
  15299. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15300. $as_echo "no" >&6; }
  15301. asan_defs=""
  15302. fi
  15303. if test -f /usr/lib/rpm/redhat/redhat-hardened-cc1; then
  15304. RPM_HARDEND_CC_TRUE=
  15305. RPM_HARDEND_CC_FALSE='#'
  15306. else
  15307. RPM_HARDEND_CC_TRUE='#'
  15308. RPM_HARDEND_CC_FALSE=
  15309. fi
  15310. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-gcc-security" >&5
  15311. $as_echo_n "checking for --enable-gcc-security... " >&6; }
  15312. # Check whether --enable-gcc-security was given.
  15313. if test "${enable_gcc_security+set}" = set; then :
  15314. enableval=$enable_gcc_security;
  15315. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15316. $as_echo "yes" >&6; }
  15317. if test -z "$RPM_HARDEND_CC_TRUE"; then :
  15318. gccsec_defs="-Wall -Wp,-D_FORITY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -Werror=format-security -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 "
  15319. else
  15320. gccsec_defs="-Wall -Wp,-D_FORITY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -Werror=format-security"
  15321. fi
  15322. else
  15323. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15324. $as_echo "no" >&6; }
  15325. gccsec_defs=""
  15326. fi
  15327. # Used for legacy style packaging where we bundle all of the dependencies.
  15328. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-bundle" >&5
  15329. $as_echo_n "checking for --enable-bundle... " >&6; }
  15330. # Check whether --enable-bundle was given.
  15331. if test "${enable_bundle+set}" = set; then :
  15332. enableval=$enable_bundle;
  15333. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15334. $as_echo "yes" >&6; }
  15335. bundle="1";
  15336. else
  15337. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15338. $as_echo "no" >&6; }
  15339. bundle="";
  15340. fi
  15341. if test "$bundle" = "1"; then
  15342. BUNDLE_TRUE=
  15343. BUNDLE_FALSE='#'
  15344. else
  15345. BUNDLE_TRUE='#'
  15346. BUNDLE_FALSE=
  15347. fi
  15348. # these enables are for optional or experimental features
  15349. if test -z "$enable_pam_passthru" ; then
  15350. enable_pam_passthru=yes # if not set on cmdline, set default
  15351. fi
  15352. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-pam-passthru" >&5
  15353. $as_echo_n "checking for --enable-pam-passthru... " >&6; }
  15354. # Check whether --enable-pam-passthru was given.
  15355. if test "${enable_pam_passthru+set}" = set; then :
  15356. enableval=$enable_pam_passthru;
  15357. fi
  15358. if test "$enable_pam_passthru" = yes ; then
  15359. # check for pam header file used by plugins/pass_passthru/pam_ptimpl.c
  15360. ac_fn_c_check_header_mongrel "$LINENO" "security/pam_appl.h" "ac_cv_header_security_pam_appl_h" "$ac_includes_default"
  15361. if test "x$ac_cv_header_security_pam_appl_h" = xyes; then :
  15362. else
  15363. as_fn_error $? "Missing header file security/pam_appl.h" "$LINENO" 5
  15364. fi
  15365. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15366. $as_echo "yes" >&6; }
  15367. $as_echo "#define ENABLE_PAM_PASSTHRU 1" >>confdefs.h
  15368. else
  15369. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15370. $as_echo "no" >&6; }
  15371. fi
  15372. if test "$enable_pam_passthru" = "yes"; then
  15373. enable_pam_passthru_TRUE=
  15374. enable_pam_passthru_FALSE='#'
  15375. else
  15376. enable_pam_passthru_TRUE='#'
  15377. enable_pam_passthru_FALSE=
  15378. fi
  15379. if test -z "$enable_dna" ; then
  15380. enable_dna=yes # if not set on cmdline, set default
  15381. fi
  15382. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-dna" >&5
  15383. $as_echo_n "checking for --enable-dna... " >&6; }
  15384. # Check whether --enable-dna was given.
  15385. if test "${enable_dna+set}" = set; then :
  15386. enableval=$enable_dna;
  15387. fi
  15388. if test "$enable_dna" = yes ; then
  15389. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15390. $as_echo "yes" >&6; }
  15391. $as_echo "#define ENABLE_DNA 1" >>confdefs.h
  15392. else
  15393. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15394. $as_echo "no" >&6; }
  15395. fi
  15396. if test "$enable_dna" = "yes"; then
  15397. enable_dna_TRUE=
  15398. enable_dna_FALSE='#'
  15399. else
  15400. enable_dna_TRUE='#'
  15401. enable_dna_FALSE=
  15402. fi
  15403. if test -z "$enable_ldapi" ; then
  15404. enable_ldapi=yes # if not set on cmdline, set default
  15405. fi
  15406. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-ldapi" >&5
  15407. $as_echo_n "checking for --enable-ldapi... " >&6; }
  15408. # Check whether --enable-ldapi was given.
  15409. if test "${enable_ldapi+set}" = set; then :
  15410. enableval=$enable_ldapi;
  15411. fi
  15412. if test "$enable_ldapi" = yes ; then
  15413. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15414. $as_echo "yes" >&6; }
  15415. $as_echo "#define ENABLE_LDAPI 1" >>confdefs.h
  15416. else
  15417. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15418. $as_echo "no" >&6; }
  15419. fi
  15420. if test "$enable_ldapi" = "yes"; then
  15421. enable_ldapi_TRUE=
  15422. enable_ldapi_FALSE='#'
  15423. else
  15424. enable_ldapi_TRUE='#'
  15425. enable_ldapi_FALSE=
  15426. fi
  15427. if test -z "$enable_autobind" ; then
  15428. enable_autobind=no # if not set on cmdline, set default
  15429. fi
  15430. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-autobind" >&5
  15431. $as_echo_n "checking for --enable-autobind... " >&6; }
  15432. # Check whether --enable-autobind was given.
  15433. if test "${enable_autobind+set}" = set; then :
  15434. enableval=$enable_autobind;
  15435. fi
  15436. if test "$enable_ldapi" = yes -a "$enable_autobind" = yes ; then
  15437. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15438. $as_echo "yes" >&6; }
  15439. $as_echo "#define ENABLE_AUTOBIND 1" >>confdefs.h
  15440. else
  15441. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15442. $as_echo "no" >&6; }
  15443. fi
  15444. if test "$enable_autobind" = "yes"; then
  15445. enable_autobind_TRUE=
  15446. enable_autobind_FALSE='#'
  15447. else
  15448. enable_autobind_TRUE='#'
  15449. enable_autobind_FALSE=
  15450. fi
  15451. if test -z "$enable_auto_dn_suffix" ; then
  15452. enable_auto_dn_suffix=no # if not set on cmdline, set default
  15453. fi
  15454. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-auto-dn-suffix" >&5
  15455. $as_echo_n "checking for --enable-auto-dn-suffix... " >&6; }
  15456. # Check whether --enable-auto-dn-suffix was given.
  15457. if test "${enable_auto_dn_suffix+set}" = set; then :
  15458. enableval=$enable_auto_dn_suffix;
  15459. fi
  15460. if test "$enable_ldapi" = yes -a "$enable_autobind" = yes -a "$enable_auto_dn_suffix" = "yes"; then
  15461. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15462. $as_echo "yes" >&6; }
  15463. $as_echo "#define ENABLE_AUTO_DN_SUFFIX 1" >>confdefs.h
  15464. else
  15465. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15466. $as_echo "no" >&6; }
  15467. fi
  15468. if test "$enable_auto_dn_suffix" = "yes"; then
  15469. enable_auto_dn_suffix_TRUE=
  15470. enable_auto_dn_suffix_FALSE='#'
  15471. else
  15472. enable_auto_dn_suffix_TRUE='#'
  15473. enable_auto_dn_suffix_FALSE=
  15474. fi
  15475. if test -z "$enable_bitwise" ; then
  15476. enable_bitwise=yes # if not set on cmdline, set default
  15477. fi
  15478. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-bitwise" >&5
  15479. $as_echo_n "checking for --enable-bitwise... " >&6; }
  15480. # Check whether --enable-bitwise was given.
  15481. if test "${enable_bitwise+set}" = set; then :
  15482. enableval=$enable_bitwise;
  15483. fi
  15484. if test "$enable_bitwise" = yes ; then
  15485. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15486. $as_echo "yes" >&6; }
  15487. $as_echo "#define ENABLE_BITWISE 1" >>confdefs.h
  15488. else
  15489. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15490. $as_echo "no" >&6; }
  15491. fi
  15492. if test "$enable_bitwise" = "yes"; then
  15493. enable_bitwise_TRUE=
  15494. enable_bitwise_FALSE='#'
  15495. else
  15496. enable_bitwise_TRUE='#'
  15497. enable_bitwise_FALSE=
  15498. fi
  15499. if test -z "$enable_presence" ; then
  15500. enable_presence=no # if not set on cmdline, set default
  15501. fi
  15502. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-presence" >&5
  15503. $as_echo_n "checking for --enable-presence... " >&6; }
  15504. # Check whether --enable-presence was given.
  15505. if test "${enable_presence+set}" = set; then :
  15506. enableval=$enable_presence;
  15507. fi
  15508. if test "$enable_presence" = yes ; then
  15509. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15510. $as_echo "yes" >&6; }
  15511. $as_echo "#define ENABLE_PRESENCE 1" >>confdefs.h
  15512. else
  15513. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15514. $as_echo "no" >&6; }
  15515. fi
  15516. if test "$enable_presence" = "yes"; then
  15517. enable_presence_TRUE=
  15518. enable_presence_FALSE='#'
  15519. else
  15520. enable_presence_TRUE='#'
  15521. enable_presence_FALSE=
  15522. fi
  15523. if test -z "$enable_acctpolicy" ; then
  15524. enable_acctpolicy=yes # if not set on cmdline, set default
  15525. fi
  15526. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-acctpolicy" >&5
  15527. $as_echo_n "checking for --enable-acctpolicy... " >&6; }
  15528. # Check whether --enable-acctpolicy was given.
  15529. if test "${enable_acctpolicy+set}" = set; then :
  15530. enableval=$enable_acctpolicy;
  15531. fi
  15532. if test "$enable_acctpolicy" = yes ; then
  15533. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15534. $as_echo "yes" >&6; }
  15535. $as_echo "#define ENABLE_ACCTPOLICY 1" >>confdefs.h
  15536. else
  15537. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15538. $as_echo "no" >&6; }
  15539. fi
  15540. if test "$enable_acctpolicy" = "yes"; then
  15541. enable_acctpolicy_TRUE=
  15542. enable_acctpolicy_FALSE='#'
  15543. else
  15544. enable_acctpolicy_TRUE='#'
  15545. enable_acctpolicy_FALSE=
  15546. fi
  15547. if test -z "$enable_posix_winsync" ; then
  15548. enable_posix_winsync=yes # if not set on cmdline, set default
  15549. fi
  15550. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-posix-winsync" >&5
  15551. $as_echo_n "checking for --enable-posix-winsync... " >&6; }
  15552. # Check whether --enable-posix_winsync was given.
  15553. if test "${enable_posix_winsync+set}" = set; then :
  15554. enableval=$enable_posix_winsync;
  15555. fi
  15556. if test "$enable_posix_winsync" = yes ; then
  15557. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15558. $as_echo "yes" >&6; }
  15559. $as_echo "#define ENABLE_POSIX_WINSYNC 1" >>confdefs.h
  15560. else
  15561. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15562. $as_echo "no" >&6; }
  15563. fi
  15564. if test "$enable_posix_winsync" = "yes"; then
  15565. enable_posix_winsync_TRUE=
  15566. enable_posix_winsync_FALSE='#'
  15567. else
  15568. enable_posix_winsync_TRUE='#'
  15569. enable_posix_winsync_FALSE=
  15570. fi
  15571. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-nunc-stans" >&5
  15572. $as_echo_n "checking for --enable-nunc-stans... " >&6; }
  15573. # Check whether --enable-nunc_stans was given.
  15574. if test "${enable_nunc_stans+set}" = set; then :
  15575. enableval=$enable_nunc_stans;
  15576. fi
  15577. if test "$enable_nunc_stans" = yes ; then
  15578. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15579. $as_echo "yes" >&6; }
  15580. $as_echo "#define ENABLE_NUNC_STANS 1" >>confdefs.h
  15581. else
  15582. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15583. $as_echo "no" >&6; }
  15584. fi
  15585. if test "$enable_nunc_stans" = "yes"; then
  15586. enable_nunc_stans_TRUE=
  15587. enable_nunc_stans_FALSE='#'
  15588. else
  15589. enable_nunc_stans_TRUE='#'
  15590. enable_nunc_stans_FALSE=
  15591. fi
  15592. # the default prefix - override with --prefix or --with-fhs
  15593. # BEGIN COPYRIGHT BLOCK
  15594. # Copyright (C) 2006 Red Hat, Inc.
  15595. # All rights reserved.
  15596. #
  15597. # License: GPL (version 3 or any later version).
  15598. # See LICENSE for details.
  15599. # END COPYRIGHT BLOCK
  15600. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FHS..." >&5
  15601. $as_echo "$as_me: checking for FHS..." >&6;}
  15602. # check for --with-fhs
  15603. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-fhs" >&5
  15604. $as_echo_n "checking for --with-fhs... " >&6; }
  15605. # Check whether --with-fhs was given.
  15606. if test "${with_fhs+set}" = set; then :
  15607. withval=$with_fhs;
  15608. with_fhs=yes
  15609. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15610. $as_echo "yes" >&6; }
  15611. else
  15612. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15613. $as_echo "no" >&6; }
  15614. fi
  15615. if test "$with_fhs" = "yes"; then
  15616. $as_echo "#define IS_FHS 1" >>confdefs.h
  15617. fi
  15618. # check for --with-fhs-opt
  15619. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-fhs-opt" >&5
  15620. $as_echo_n "checking for --with-fhs-opt... " >&6; }
  15621. # Check whether --with-fhs-opt was given.
  15622. if test "${with_fhs_opt+set}" = set; then :
  15623. withval=$with_fhs_opt;
  15624. with_fhs_opt=yes
  15625. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15626. $as_echo "yes" >&6; }
  15627. else
  15628. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15629. $as_echo "no" >&6; }
  15630. fi
  15631. if test "$with_fhs_opt" = "yes"; then
  15632. $as_echo "#define IS_FHS_OPT 1" >>confdefs.h
  15633. fi
  15634. if test "$with_fhs" = "yes" -a "$with_fhs_opt" = "yes"; then
  15635. as_fn_error $? "Can't set both --with-fhs and --with-fhs-opt. Please only use one of these options." "$LINENO" 5
  15636. fi
  15637. localrundir='/run'
  15638. # installation paths - by default, we store everything
  15639. # under the prefix. The with-fhs option will use /usr,
  15640. # /etc, and /var. The with-fhs-opt option will use the
  15641. # prefix, but it's sysconfdir and localstatedir will be
  15642. # /etc/opt, and /var/opt.
  15643. if test "$with_fhs_opt" = "yes"; then
  15644. # Override sysconfdir and localstatedir if FHS optional
  15645. # package was requested.
  15646. sysconfdir='/etc/opt'
  15647. localstatedir='/var/opt'
  15648. localrundir='/var/opt/run'
  15649. # relative to datadir
  15650. sampledatadir=/data
  15651. # relative to datadir
  15652. scripttemplatedir=/script-templates
  15653. # relative to datadir
  15654. updatedir=/updates
  15655. # relative to libdir
  15656. serverdir=
  15657. # relative to includedir
  15658. serverincdir=
  15659. # relative to libdir
  15660. serverplugindir=/plugins
  15661. # relative to datadir
  15662. infdir=/inf
  15663. # relative to datadir
  15664. mibdir=/mibs
  15665. # location of property/resource files, relative to datadir
  15666. propertydir=/properties
  15667. # relative to libdir
  15668. perldir=/perl
  15669. # relative to libdir
  15670. pythondir=/python
  15671. else
  15672. if test "$with_fhs" = "yes"; then
  15673. ac_default_prefix=/usr
  15674. prefix=$ac_default_prefix
  15675. exec_prefix=$prefix
  15676. sysconfdir='/etc'
  15677. localstatedir='/var'
  15678. localrundir='/run'
  15679. fi
  15680. # relative to datadir
  15681. sampledatadir=/$PACKAGE_NAME/data
  15682. # relative to datadir
  15683. scripttemplatedir=/$PACKAGE_NAME/script-templates
  15684. # relative to datadir
  15685. updatedir=/$PACKAGE_NAME/updates
  15686. # relative to libdir
  15687. serverdir=/$PACKAGE_NAME
  15688. # relative to includedir
  15689. serverincdir=/$PACKAGE_NAME
  15690. # relative to libdir
  15691. serverplugindir=/$PACKAGE_NAME/plugins
  15692. # relative to datadir
  15693. infdir=/$PACKAGE_NAME/inf
  15694. # relative to datadir
  15695. mibdir=/$PACKAGE_NAME/mibs
  15696. # location of property/resource files, relative to datadir
  15697. propertydir=/$PACKAGE_NAME/properties
  15698. # relative to libdir
  15699. perldir=/$PACKAGE_NAME/perl
  15700. # relative to libdir
  15701. pythondir=/$PACKAGE_NAME/python
  15702. fi
  15703. # if mandir is the default value, override it
  15704. # otherwise, the user must have set it - just use it
  15705. if test X"$mandir" = X'${prefix}/man' ; then
  15706. mandir='$(datadir)/man'
  15707. fi
  15708. # Shared paths for all layouts
  15709. # relative to sysconfdir
  15710. configdir=/$PACKAGE_NAME/config
  15711. # relative to sysconfdir
  15712. schemadir=/$PACKAGE_NAME/schema
  15713. # default user, group
  15714. defaultuser=dirsrv
  15715. defaultgroup=dirsrv
  15716. if test -z "$with_tmpfiles_d" ; then
  15717. if test -d $sysconfdir/tmpfiles.d ; then
  15718. with_tmpfiles_d='$(sysconfdir)/tmpfiles.d'
  15719. fi
  15720. fi
  15721. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-tmpfiles-d" >&5
  15722. $as_echo_n "checking for --with-tmpfiles-d... " >&6; }
  15723. # Check whether --with-tmpfiles-d was given.
  15724. if test "${with_tmpfiles_d+set}" = set; then :
  15725. withval=$with_tmpfiles_d;
  15726. fi
  15727. if test "$with_tmpfiles_d" = yes ; then
  15728. as_fn_error $? "You must specify --with-tmpfiles-d=/full/path/to/tmpfiles.d directory" "$LINENO" 5
  15729. elif test "$with_tmpfiles_d" = no ; then
  15730. with_tmpfiles_d=
  15731. else
  15732. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tmpfiles_d" >&5
  15733. $as_echo "$with_tmpfiles_d" >&6; }
  15734. fi
  15735. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-perldir" >&5
  15736. $as_echo_n "checking for --with-perldir... " >&6; }
  15737. # Check whether --with-perldir was given.
  15738. if test "${with_perldir+set}" = set; then :
  15739. withval=$with_perldir;
  15740. fi
  15741. if test -n "$with_perldir"; then
  15742. if test "$with_perldir" = yes ; then
  15743. as_fn_error $? "You must specify --with-perldir=/full/path/to/perl" "$LINENO" 5
  15744. elif test "$with_perldir" = no ; then
  15745. with_perldir=
  15746. else
  15747. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_perldir" >&5
  15748. $as_echo "$with_perldir" >&6; }
  15749. fi
  15750. else
  15751. with_perldir=
  15752. fi
  15753. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pythondir" >&5
  15754. $as_echo_n "checking for --with-pythondir... " >&6; }
  15755. # Check whether --with-pythondir was given.
  15756. if test "${with_pythondir+set}" = set; then :
  15757. withval=$with_pythondir;
  15758. fi
  15759. if test -n "$with_pythondir"; then
  15760. if test "$with_pythondir" = yes ; then
  15761. as_fn_error $? "You must specify --with-pythondir=/full/path/to/python" "$LINENO" 5
  15762. elif test "$with_pythondir" = no ; then
  15763. with_pythondir=
  15764. else
  15765. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_pythondir" >&5
  15766. $as_echo "$with_pythondir" >&6; }
  15767. fi
  15768. else
  15769. with_pythondir=
  15770. fi
  15771. # check for --with-instconfigdir
  15772. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-instconfigdir" >&5
  15773. $as_echo_n "checking for --with-instconfigdir... " >&6; }
  15774. # Check whether --with-instconfigdir was given.
  15775. if test "${with_instconfigdir+set}" = set; then :
  15776. withval=$with_instconfigdir;
  15777. if test $withval = yes ; then
  15778. as_fn_error $? "Please specify a full path with --with-instconfigdir" "$LINENO" 5
  15779. fi
  15780. instconfigdir="$withval"
  15781. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
  15782. $as_echo "$withval" >&6; }
  15783. else
  15784. instconfigdir='$(sysconfdir)/$(PACKAGE_NAME)'
  15785. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15786. $as_echo "no" >&6; }
  15787. fi
  15788. # WINNT should be true if building on Windows system not using
  15789. # cygnus, mingw, or the like and using cmd.exe as the shell
  15790. if false; then
  15791. WINNT_TRUE=
  15792. WINNT_FALSE='#'
  15793. else
  15794. WINNT_TRUE='#'
  15795. WINNT_FALSE=
  15796. fi
  15797. # Deal with platform dependent defines
  15798. # initdir is the location for the SysV init scripts - very heavily platform
  15799. # dependent and not specified in fhs or lsb
  15800. # and not used if systemd is used
  15801. initdir='$(sysconfdir)/rc.d'
  15802. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-initddir" >&5
  15803. $as_echo_n "checking for --with-initddir... " >&6; }
  15804. # Check whether --with-initddir was given.
  15805. if test "${with_initddir+set}" = set; then :
  15806. withval=$with_initddir;
  15807. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
  15808. $as_echo "$withval" >&6; }
  15809. else
  15810. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15811. $as_echo "no" >&6; }
  15812. fi
  15813. if test -n "$with_initddir" -a "$with_initddir" != "no"; then
  15814. INITDDIR_TRUE=
  15815. INITDDIR_FALSE='#'
  15816. else
  15817. INITDDIR_TRUE='#'
  15818. INITDDIR_FALSE=
  15819. fi
  15820. # on most platforms, we will just use perl from PATH
  15821. # On some platforms, we cannot. Why not just use any old
  15822. # perl? Because of perldap. We use a perldap that is
  15823. # compiled to either 32bit or 64bit, so we must use a native
  15824. # perl binary compiled with the same bitsize. On Solaris
  15825. # and HP-UX, /usr/bin/perl is 32 bit, so we cannot use
  15826. # those with our 64 bit compiled product.
  15827. if test -n "$with_perldir"; then
  15828. perlexec="$with_perldir/perl"
  15829. else
  15830. perlexec='/usr/bin/env perl'
  15831. fi
  15832. # we use stty in perl scripts to disable password echo
  15833. # this doesn't work unless the full absolute path of the
  15834. # stty command is used e.g. system("stty -echo") does not
  15835. # work but system("/bin/stty -echo") does work
  15836. # since the path of stty may not be the same on all
  15837. # platforms, we set the default here to /bin/stty and
  15838. # allow that value to be overridden in the platform
  15839. # specific section below
  15840. sttyexec=/bin/stty
  15841. case $host in
  15842. *-*-linux*)
  15843. $as_echo "#define Linux 1" >>confdefs.h
  15844. $as_echo "#define LINUX 1" >>confdefs.h
  15845. $as_echo "#define LINUX2_0 1" >>confdefs.h
  15846. $as_echo "#define LINUX2_2 1" >>confdefs.h
  15847. $as_echo "#define LINUX2_4 1" >>confdefs.h
  15848. $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
  15849. platform="linux"
  15850. initdir='$(sysconfdir)/rc.d/init.d'
  15851. # do arch specific linux stuff here
  15852. case $host in
  15853. i*86-*-linux*)
  15854. $as_echo "#define CPU_x86 /**/" >>confdefs.h
  15855. $as_echo "#define ATOMIC_64BIT_OPERATIONS 1" >>confdefs.h
  15856. ;;
  15857. x86_64-*-linux*)
  15858. $as_echo "#define CPU_x86_64 /**/" >>confdefs.h
  15859. $as_echo "#define ATOMIC_64BIT_OPERATIONS 1" >>confdefs.h
  15860. ;;
  15861. aarch64-*-linux*)
  15862. $as_echo "#define CPU_arm /**/" >>confdefs.h
  15863. ;;
  15864. arm*-linux*)
  15865. $as_echo "#define CPU_arm /**/" >>confdefs.h
  15866. ;;
  15867. esac
  15868. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC provided 64-bit atomic bool cas function ..." >&5
  15869. $as_echo_n "checking for GCC provided 64-bit atomic bool cas function ...... " >&6; }
  15870. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15871. /* end confdefs.h. */
  15872. int
  15873. main ()
  15874. {
  15875. long long ptrval = 0, val = 0, newval = 1; (void)__sync_bool_compare_and_swap_8(&ptrval, val, newval);
  15876. ;
  15877. return 0;
  15878. }
  15879. _ACEOF
  15880. if ac_fn_c_try_link "$LINENO"; then :
  15881. $as_echo "#define HAVE_64BIT_ATOMIC_CAS_FUNC 1" >>confdefs.h
  15882. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15883. $as_echo "yes" >&6; }
  15884. else
  15885. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15886. $as_echo "no" >&6; }
  15887. fi
  15888. rm -f core conftest.err conftest.$ac_objext \
  15889. conftest$ac_exeext conftest.$ac_ext
  15890. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC provided 64-bit atomic ops functions ..." >&5
  15891. $as_echo_n "checking for GCC provided 64-bit atomic ops functions ...... " >&6; }
  15892. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15893. /* end confdefs.h. */
  15894. int
  15895. main ()
  15896. {
  15897. long long ptrval = 0, val = 0; (void)__sync_add_and_fetch_8(&ptrval, val);
  15898. ;
  15899. return 0;
  15900. }
  15901. _ACEOF
  15902. if ac_fn_c_try_link "$LINENO"; then :
  15903. $as_echo "#define HAVE_64BIT_ATOMIC_OP_FUNCS 1" >>confdefs.h
  15904. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15905. $as_echo "yes" >&6; }
  15906. else
  15907. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15908. $as_echo "no" >&6; }
  15909. fi
  15910. rm -f core conftest.err conftest.$ac_objext \
  15911. conftest$ac_exeext conftest.$ac_ext
  15912. # some programs use the native thread library directly
  15913. THREADLIB=-lpthread
  15914. THREADLIB=$THREADLIB
  15915. LIBCRYPT=-lcrypt
  15916. LIBCRYPT=$LIBCRYPT
  15917. $as_echo "#define USE_POSIX_RWLOCKS 1" >>confdefs.h
  15918. ;;
  15919. ia64-hp-hpux*)
  15920. $as_echo "#define hpux 1" >>confdefs.h
  15921. $as_echo "#define HPUX 1" >>confdefs.h
  15922. $as_echo "#define HPUX11 1" >>confdefs.h
  15923. $as_echo "#define HPUX11_23 1" >>confdefs.h
  15924. $as_echo "#define CPU_ia64 /**/" >>confdefs.h
  15925. $as_echo "#define OS_hpux 1" >>confdefs.h
  15926. $as_echo "#define _POSIX_C_SOURCE 199506L" >>confdefs.h
  15927. $as_echo "#define _HPUX_SOURCE 1" >>confdefs.h
  15928. $as_echo "#define _INCLUDE_STDC__SOURCE_199901 1" >>confdefs.h
  15929. # assume 64 bit
  15930. perlexec='/opt/perl_64/bin/perl'
  15931. platform="hpux"
  15932. initconfigdir="/$PACKAGE_NAME/config"
  15933. # HPUX doesn't use /etc for this
  15934. initdir=/init.d
  15935. ;;
  15936. hppa*-hp-hpux*)
  15937. $as_echo "#define hpux 1" >>confdefs.h
  15938. $as_echo "#define HPUX 1" >>confdefs.h
  15939. $as_echo "#define HPUX11 1" >>confdefs.h
  15940. $as_echo "#define HPUX11_11 1" >>confdefs.h
  15941. $as_echo "#define CPU_hppa /**/" >>confdefs.h
  15942. $as_echo "#define OS_hpux 1" >>confdefs.h
  15943. $as_echo "#define _POSIX_C_SOURCE 199506L" >>confdefs.h
  15944. $as_echo "#define _HPUX_SOURCE 1" >>confdefs.h
  15945. $as_echo "#define _INCLUDE_STDC__SOURCE_199901 1" >>confdefs.h
  15946. $as_echo "#define ATOMIC_64BIT_OPERATIONS 1" >>confdefs.h
  15947. # assume 64 bit
  15948. initconfigdir="/$PACKAGE_NAME/config"
  15949. perlexec='/opt/perl_64/bin/perl'
  15950. platform="hpux"
  15951. # HPUX doesn't use /etc for this
  15952. initdir=/init.d
  15953. ;;
  15954. *-*-solaris*)
  15955. $as_echo "#define SVR4 1" >>confdefs.h
  15956. $as_echo "#define __svr4 1" >>confdefs.h
  15957. $as_echo "#define __svr4__ 1" >>confdefs.h
  15958. $as_echo "#define _SVID_GETTOD 1" >>confdefs.h
  15959. $as_echo "#define SOLARIS 1" >>confdefs.h
  15960. $as_echo "#define OS_solaris 1" >>confdefs.h
  15961. $as_echo "#define sunos5 1" >>confdefs.h
  15962. $as_echo "#define OSVERSION 509" >>confdefs.h
  15963. $as_echo "#define _REENTRANT 1" >>confdefs.h
  15964. $as_echo "#define NO_DOMAINNAME 1" >>confdefs.h
  15965. LIBSOCKET=-lsocket
  15966. LIBSOCKET=$LIBSOCKET
  15967. LIBNSL=-lnsl
  15968. LIBNSL=$LIBNSL
  15969. LIBDL=-ldl
  15970. LIBDL=$LIBDL
  15971. LIBCSTD=-lCstd
  15972. LIBCSTD=$LIBCSTD
  15973. LIBCRUN=-lCrun
  15974. LIBCRUN=$LIBCRUN
  15975. platform="solaris"
  15976. initdir='$(sysconfdir)/init.d'
  15977. case $host in
  15978. i?86-*-solaris2.1[0-9]*)
  15979. $as_echo "#define HAVE_GETPEERUCRED 1" >>confdefs.h
  15980. ;;
  15981. sparc-*-solaris*)
  15982. $as_echo "#define ATOMIC_64BIT_OPERATIONS 1" >>confdefs.h
  15983. $as_echo "#define CPU_sparc /**/" >>confdefs.h
  15984. TARGET='SPARC'
  15985. ;;
  15986. esac
  15987. ;;
  15988. *)
  15989. platform=""
  15990. ;;
  15991. esac
  15992. # cmd line overrides default setting above
  15993. if test -n "$with_initddir" ; then
  15994. initdir="$with_initddir"
  15995. fi
  15996. # sysv init scripts not used when systemd is used
  15997. # set default initconfigdir if not already set
  15998. # value will be set so as to be relative to $(sysconfdir)
  15999. if test -z "$initconfigdir" ; then
  16000. if test -d /etc/sysconfig ; then
  16001. initconfigdir=/sysconfig
  16002. elif test -d /etc/default ; then
  16003. initconfigdir=/default
  16004. else
  16005. initconfigdir="/$PACKAGE_NAME/config"
  16006. fi
  16007. fi
  16008. if test "$platform" = "hpux"; then
  16009. HPUX_TRUE=
  16010. HPUX_FALSE='#'
  16011. else
  16012. HPUX_TRUE='#'
  16013. HPUX_FALSE=
  16014. fi
  16015. if test "$platform" = "solaris"; then
  16016. SOLARIS_TRUE=
  16017. SOLARIS_FALSE='#'
  16018. else
  16019. SOLARIS_TRUE='#'
  16020. SOLARIS_FALSE=
  16021. fi
  16022. # Check for library dependencies
  16023. # BEGIN COPYRIGHT BLOCK
  16024. # Copyright (C) 2007 Red Hat, Inc.
  16025. # All rights reserved.
  16026. #
  16027. # License: GPL (version 3 or any later version).
  16028. # See LICENSE for details.
  16029. # END COPYRIGHT BLOCK
  16030. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NSPR..." >&5
  16031. $as_echo "$as_me: checking for NSPR..." >&6;}
  16032. # check for --with-nspr
  16033. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-nspr" >&5
  16034. $as_echo_n "checking for --with-nspr... " >&6; }
  16035. # Check whether --with-nspr was given.
  16036. if test "${with_nspr+set}" = set; then :
  16037. withval=$with_nspr;
  16038. if test "$withval" = "yes"
  16039. then
  16040. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16041. $as_echo "yes" >&6; }
  16042. elif test "$withval" = "no"
  16043. then
  16044. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16045. $as_echo "no" >&6; }
  16046. as_fn_error $? "NSPR is required." "$LINENO" 5
  16047. elif test -e "$withval"/include/nspr.h -a -d "$withval"/lib
  16048. then
  16049. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16050. $as_echo "using $withval" >&6; }
  16051. NSPRDIR=$withval
  16052. nspr_inc="-I$NSPRDIR/include"
  16053. nspr_lib="-L$NSPRDIR/lib"
  16054. nspr_libdir="$NSPRDIR/lib"
  16055. else
  16056. echo
  16057. as_fn_error $? "$withval not found" "$LINENO" 5
  16058. fi
  16059. else
  16060. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16061. $as_echo "yes" >&6; }
  16062. fi
  16063. # check for --with-nspr-inc
  16064. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-nspr-inc" >&5
  16065. $as_echo_n "checking for --with-nspr-inc... " >&6; }
  16066. # Check whether --with-nspr-inc was given.
  16067. if test "${with_nspr_inc+set}" = set; then :
  16068. withval=$with_nspr_inc;
  16069. if test -e "$withval"/nspr.h
  16070. then
  16071. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16072. $as_echo "using $withval" >&6; }
  16073. nspr_inc="-I$withval"
  16074. else
  16075. echo
  16076. as_fn_error $? "$withval not found" "$LINENO" 5
  16077. fi
  16078. else
  16079. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16080. $as_echo "no" >&6; }
  16081. fi
  16082. # check for --with-nspr-lib
  16083. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-nspr-lib" >&5
  16084. $as_echo_n "checking for --with-nspr-lib... " >&6; }
  16085. # Check whether --with-nspr-lib was given.
  16086. if test "${with_nspr_lib+set}" = set; then :
  16087. withval=$with_nspr_lib;
  16088. if test -d "$withval"
  16089. then
  16090. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16091. $as_echo "using $withval" >&6; }
  16092. nspr_lib="-L$withval"
  16093. nspr_libdir="$withval"
  16094. else
  16095. echo
  16096. as_fn_error $? "$withval not found" "$LINENO" 5
  16097. fi
  16098. else
  16099. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16100. $as_echo "no" >&6; }
  16101. fi
  16102. # if NSPR is not found yet, try pkg-config
  16103. # last resort
  16104. if test -z "$nspr_inc" -o -z "$nspr_lib" -o -z "$nspr_libdir"; then
  16105. # Extract the first word of "pkg-config", so it can be a program name with args.
  16106. set dummy pkg-config; ac_word=$2
  16107. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16108. $as_echo_n "checking for $ac_word... " >&6; }
  16109. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  16110. $as_echo_n "(cached) " >&6
  16111. else
  16112. case $PKG_CONFIG in
  16113. [\\/]* | ?:[\\/]*)
  16114. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  16115. ;;
  16116. *)
  16117. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16118. for as_dir in $PATH
  16119. do
  16120. IFS=$as_save_IFS
  16121. test -z "$as_dir" && as_dir=.
  16122. for ac_exec_ext in '' $ac_executable_extensions; do
  16123. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16124. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  16125. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16126. break 2
  16127. fi
  16128. done
  16129. done
  16130. IFS=$as_save_IFS
  16131. ;;
  16132. esac
  16133. fi
  16134. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  16135. if test -n "$PKG_CONFIG"; then
  16136. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  16137. $as_echo "$PKG_CONFIG" >&6; }
  16138. else
  16139. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16140. $as_echo "no" >&6; }
  16141. fi
  16142. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nspr with pkg-config" >&5
  16143. $as_echo_n "checking for nspr with pkg-config... " >&6; }
  16144. if test -n "$PKG_CONFIG"; then
  16145. if $PKG_CONFIG --exists nspr; then
  16146. nspr_inc=`$PKG_CONFIG --cflags-only-I nspr`
  16147. nspr_lib=`$PKG_CONFIG --libs-only-L nspr`
  16148. nspr_libdir=`$PKG_CONFIG --libs-only-L nspr | sed -e s/-L// | sed -e s/\ .*$//`
  16149. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using system NSPR" >&5
  16150. $as_echo "using system NSPR" >&6; }
  16151. elif $PKG_CONFIG --exists dirsec-nspr; then
  16152. nspr_inc=`$PKG_CONFIG --cflags-only-I dirsec-nspr`
  16153. nspr_lib=`$PKG_CONFIG --libs-only-L dirsec-nspr`
  16154. nspr_libdir=`$PKG_CONFIG --libs-only-L dirsec-nspr | sed -e s/-L// | sed -e s/\ .*$//`
  16155. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using system dirsec NSPR" >&5
  16156. $as_echo "using system dirsec NSPR" >&6; }
  16157. else
  16158. as_fn_error $? "NSPR not found, specify with --with-nspr." "$LINENO" 5
  16159. fi
  16160. fi
  16161. fi
  16162. # BEGIN COPYRIGHT BLOCK
  16163. # Copyright (C) 2007 Red Hat, Inc.
  16164. # All rights reserved.
  16165. #
  16166. # License: GPL (version 3 or any later version).
  16167. # See LICENSE for details.
  16168. # END COPYRIGHT BLOCK
  16169. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NSS..." >&5
  16170. $as_echo "$as_me: checking for NSS..." >&6;}
  16171. # check for --with-nss
  16172. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-nss" >&5
  16173. $as_echo_n "checking for --with-nss... " >&6; }
  16174. # Check whether --with-nss was given.
  16175. if test "${with_nss+set}" = set; then :
  16176. withval=$with_nss;
  16177. if test "$withval" = "yes"
  16178. then
  16179. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16180. $as_echo "yes" >&6; }
  16181. elif test "$withval" = "no"
  16182. then
  16183. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16184. $as_echo "no" >&6; }
  16185. as_fn_error $? "NSS is required." "$LINENO" 5
  16186. elif test -e "$withval"/include/nss.h -a -d "$withval"/lib
  16187. then
  16188. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16189. $as_echo "using $withval" >&6; }
  16190. NSSDIR=$withval
  16191. nss_inc="-I$NSSDIR/include"
  16192. nss_lib="-L$NSSDIR/lib"
  16193. nss_libdir="$NSSDIR/lib"
  16194. else
  16195. echo
  16196. as_fn_error $? "$withval not found" "$LINENO" 5
  16197. fi
  16198. else
  16199. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16200. $as_echo "yes" >&6; }
  16201. fi
  16202. # check for --with-nss-inc
  16203. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-nss-inc" >&5
  16204. $as_echo_n "checking for --with-nss-inc... " >&6; }
  16205. # Check whether --with-nss-inc was given.
  16206. if test "${with_nss_inc+set}" = set; then :
  16207. withval=$with_nss_inc;
  16208. if test -e "$withval"/nss.h
  16209. then
  16210. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16211. $as_echo "using $withval" >&6; }
  16212. nss_inc="-I$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. # check for --with-nss-lib
  16222. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-nss-lib" >&5
  16223. $as_echo_n "checking for --with-nss-lib... " >&6; }
  16224. # Check whether --with-nss-lib was given.
  16225. if test "${with_nss_lib+set}" = set; then :
  16226. withval=$with_nss_lib;
  16227. if test -d "$withval"
  16228. then
  16229. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16230. $as_echo "using $withval" >&6; }
  16231. nss_lib="-L$withval"
  16232. nss_libdir="$withval"
  16233. else
  16234. echo
  16235. as_fn_error $? "$withval not found" "$LINENO" 5
  16236. fi
  16237. else
  16238. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16239. $as_echo "no" >&6; }
  16240. fi
  16241. # if NSS is not found yet, try pkg-config
  16242. # last resort
  16243. if test -z "$nss_inc" -o -z "$nss_lib" -o -z "$nss_libdir"; then
  16244. # Extract the first word of "pkg-config", so it can be a program name with args.
  16245. set dummy pkg-config; ac_word=$2
  16246. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16247. $as_echo_n "checking for $ac_word... " >&6; }
  16248. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  16249. $as_echo_n "(cached) " >&6
  16250. else
  16251. case $PKG_CONFIG in
  16252. [\\/]* | ?:[\\/]*)
  16253. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  16254. ;;
  16255. *)
  16256. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16257. for as_dir in $PATH
  16258. do
  16259. IFS=$as_save_IFS
  16260. test -z "$as_dir" && as_dir=.
  16261. for ac_exec_ext in '' $ac_executable_extensions; do
  16262. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16263. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  16264. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16265. break 2
  16266. fi
  16267. done
  16268. done
  16269. IFS=$as_save_IFS
  16270. ;;
  16271. esac
  16272. fi
  16273. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  16274. if test -n "$PKG_CONFIG"; then
  16275. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  16276. $as_echo "$PKG_CONFIG" >&6; }
  16277. else
  16278. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16279. $as_echo "no" >&6; }
  16280. fi
  16281. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nss with pkg-config" >&5
  16282. $as_echo_n "checking for nss with pkg-config... " >&6; }
  16283. if test -n "$PKG_CONFIG"; then
  16284. if $PKG_CONFIG --exists nss; then
  16285. nss_inc=`$PKG_CONFIG --cflags-only-I nss`
  16286. nss_lib=`$PKG_CONFIG --libs-only-L nss`
  16287. nss_libdir=`$PKG_CONFIG --libs-only-L nss | sed -e s/-L// | sed -e s/\ .*$//`
  16288. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using system NSS" >&5
  16289. $as_echo "using system NSS" >&6; }
  16290. elif $PKG_CONFIG --exists dirsec-nss; then
  16291. nss_inc=`$PKG_CONFIG --cflags-only-I dirsec-nss`
  16292. nss_lib=`$PKG_CONFIG --libs-only-L dirsec-nss`
  16293. nss_libdir=`$PKG_CONFIG --libs-only-L dirsec-nss | sed -e s/-L// | sed -e s/\ .*$//`
  16294. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using system dirsec NSS" >&5
  16295. $as_echo "using system dirsec NSS" >&6; }
  16296. else
  16297. as_fn_error $? "NSS not found, specify with --with-nss." "$LINENO" 5
  16298. fi
  16299. fi
  16300. fi
  16301. # BEGIN COPYRIGHT BLOCK
  16302. # Copyright (C) 2009 Red Hat, Inc.
  16303. # All rights reserved.
  16304. #
  16305. # License: GPL (version 3 or any later version).
  16306. # See LICENSE for details.
  16307. # END COPYRIGHT BLOCK
  16308. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenLDAP..." >&5
  16309. $as_echo "$as_me: checking for OpenLDAP..." >&6;}
  16310. # check for --with-openldap
  16311. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-openldap" >&5
  16312. $as_echo_n "checking for --with-openldap... " >&6; }
  16313. # Check whether --with-openldap was given.
  16314. if test "${with_openldap+set}" = set; then :
  16315. withval=$with_openldap;
  16316. if test "$withval" = yes
  16317. then
  16318. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using system OpenLDAP" >&5
  16319. $as_echo "using system OpenLDAP" >&6; }
  16320. elif test "$withval" = no
  16321. then
  16322. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16323. $as_echo "no" >&6; }
  16324. elif test -e "$withval"/include/ldap.h -a -d "$withval"/lib
  16325. then
  16326. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16327. $as_echo "using $withval" >&6; }
  16328. OPENLDAPDIR=$withval
  16329. openldap_incdir="$OPENLDAPDIR/include"
  16330. openldap_inc="-I$openldap_incdir"
  16331. openldap_lib="-L$OPENLDAPDIR/lib"
  16332. openldap_libdir="$OPENLDAPDIR/lib"
  16333. openldap_bindir="$OPENLDAPDIR/bin"
  16334. with_openldap=yes
  16335. else
  16336. echo
  16337. as_fn_error $? "$withval not found" "$LINENO" 5
  16338. fi
  16339. else
  16340. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16341. $as_echo "no" >&6; }
  16342. fi
  16343. # check for --with-openldap-inc
  16344. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-openldap-inc" >&5
  16345. $as_echo_n "checking for --with-openldap-inc... " >&6; }
  16346. # Check whether --with-openldap-inc was given.
  16347. if test "${with_openldap_inc+set}" = set; then :
  16348. withval=$with_openldap_inc;
  16349. if test -e "$withval"/ldap.h
  16350. then
  16351. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16352. $as_echo "using $withval" >&6; }
  16353. openldap_incdir="$withval"
  16354. openldap_inc="-I$withval"
  16355. with_openldap=yes
  16356. else
  16357. echo
  16358. as_fn_error $? "$withval not found" "$LINENO" 5
  16359. fi
  16360. else
  16361. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16362. $as_echo "no" >&6; }
  16363. fi
  16364. # check for --with-openldap-lib
  16365. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-openldap-lib" >&5
  16366. $as_echo_n "checking for --with-openldap-lib... " >&6; }
  16367. # Check whether --with-openldap-lib was given.
  16368. if test "${with_openldap_lib+set}" = set; then :
  16369. withval=$with_openldap_lib;
  16370. if test -d "$withval"
  16371. then
  16372. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16373. $as_echo "using $withval" >&6; }
  16374. openldap_lib="-L$withval"
  16375. openldap_libdir="$withval"
  16376. with_openldap=yes
  16377. else
  16378. echo
  16379. as_fn_error $? "$withval not found" "$LINENO" 5
  16380. fi
  16381. else
  16382. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16383. $as_echo "no" >&6; }
  16384. fi
  16385. # check for --with-openldap-bin
  16386. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-openldap-bin" >&5
  16387. $as_echo_n "checking for --with-openldap-bin... " >&6; }
  16388. # Check whether --with-openldap-bin was given.
  16389. if test "${with_openldap_bin+set}" = set; then :
  16390. withval=$with_openldap_bin;
  16391. if test -d "$withval"
  16392. then
  16393. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16394. $as_echo "using $withval" >&6; }
  16395. openldap_bindir="$withval"
  16396. with_openldap=yes
  16397. else
  16398. echo
  16399. as_fn_error $? "$withval not found" "$LINENO" 5
  16400. fi
  16401. else
  16402. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16403. $as_echo "no" >&6; }
  16404. fi
  16405. # if OPENLDAP is not found yet, try pkg-config
  16406. if test "$with_openldap" = yes ; then # user wants to use openldap, but didn't specify paths
  16407. if test -z "$openldap_inc" -o -z "$openldap_lib" -o -z "$openldap_libdir" -o -z "$openldap_bindir"; then
  16408. # Extract the first word of "pkg-config", so it can be a program name with args.
  16409. set dummy pkg-config; ac_word=$2
  16410. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16411. $as_echo_n "checking for $ac_word... " >&6; }
  16412. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  16413. $as_echo_n "(cached) " >&6
  16414. else
  16415. case $PKG_CONFIG in
  16416. [\\/]* | ?:[\\/]*)
  16417. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  16418. ;;
  16419. *)
  16420. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16421. for as_dir in $PATH
  16422. do
  16423. IFS=$as_save_IFS
  16424. test -z "$as_dir" && as_dir=.
  16425. for ac_exec_ext in '' $ac_executable_extensions; do
  16426. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16427. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  16428. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16429. break 2
  16430. fi
  16431. done
  16432. done
  16433. IFS=$as_save_IFS
  16434. ;;
  16435. esac
  16436. fi
  16437. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  16438. if test -n "$PKG_CONFIG"; then
  16439. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  16440. $as_echo "$PKG_CONFIG" >&6; }
  16441. else
  16442. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16443. $as_echo "no" >&6; }
  16444. fi
  16445. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenLDAP with pkg-config" >&5
  16446. $as_echo_n "checking for OpenLDAP with pkg-config... " >&6; }
  16447. if test -n "$PKG_CONFIG" && $PKG_CONFIG --exists openldap; then
  16448. openldap_inc=`$PKG_CONFIG --cflags-only-I openldap`
  16449. openldap_lib=`$PKG_CONFIG --libs-only-L openldap`
  16450. openldap_libdir=`$PKG_CONFIG --libs-only-L openldap | sed -e s/-L// | sed -e s/\ .*$//`
  16451. openldap_bindir=`$PKG_CONFIG --variable=bindir openldap`
  16452. openldap_incdir=`$PKG_CONFIG --variable=includedir openldap`
  16453. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using system OpenLDAP from pkg-config" >&5
  16454. $as_echo "using system OpenLDAP from pkg-config" >&6; }
  16455. else
  16456. openldap_incdir="/usr/include"
  16457. openldap_inc="-I$openldap_incdir"
  16458. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no OpenLDAP pkg-config files" >&5
  16459. $as_echo "no OpenLDAP pkg-config files" >&6; }
  16460. fi
  16461. fi
  16462. fi
  16463. if test "$with_openldap" = yes ; then
  16464. save_cppflags="$CPPFLAGS"
  16465. CPPFLAGS="$openldap_inc $nss_inc $nspr_inc"
  16466. ac_fn_c_check_header_mongrel "$LINENO" "ldap_features.h" "ac_cv_header_ldap_features_h" "$ac_includes_default"
  16467. if test "x$ac_cv_header_ldap_features_h" = xyes; then :
  16468. else
  16469. as_fn_error $? "specified with-openldap but ldap_features.h not found" "$LINENO" 5
  16470. fi
  16471. ol_ver_maj=`grep LDAP_VENDOR_VERSION_MAJOR $openldap_incdir/ldap_features.h | awk '{print $3}'`
  16472. ol_ver_min=`grep LDAP_VENDOR_VERSION_MINOR $openldap_incdir/ldap_features.h | awk '{print $3}'`
  16473. ol_ver_pat=`grep LDAP_VENDOR_VERSION_PATCH $openldap_incdir/ldap_features.h | awk '{print $3}'`
  16474. ol_libver="-${ol_ver_maj}.${ol_ver_min}"
  16475. save_ldflags="$LDFLAGS"
  16476. LDFLAGS="$openldap_lib $LDFLAGS"
  16477. as_ac_Lib=`$as_echo "ac_cv_lib_ldap$ol_libver''_ldap_initialize" | $as_tr_sh`
  16478. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_initialize in -lldap$ol_libver" >&5
  16479. $as_echo_n "checking for ldap_initialize in -lldap$ol_libver... " >&6; }
  16480. if eval \${$as_ac_Lib+:} false; then :
  16481. $as_echo_n "(cached) " >&6
  16482. else
  16483. ac_check_lib_save_LIBS=$LIBS
  16484. LIBS="-lldap$ol_libver $LIBS"
  16485. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16486. /* end confdefs.h. */
  16487. /* Override any GCC internal prototype to avoid an error.
  16488. Use char because int might match the return type of a GCC
  16489. builtin and then its argument prototype would still apply. */
  16490. #ifdef __cplusplus
  16491. extern "C"
  16492. #endif
  16493. char ldap_initialize ();
  16494. int
  16495. main ()
  16496. {
  16497. return ldap_initialize ();
  16498. ;
  16499. return 0;
  16500. }
  16501. _ACEOF
  16502. if ac_fn_c_try_link "$LINENO"; then :
  16503. eval "$as_ac_Lib=yes"
  16504. else
  16505. eval "$as_ac_Lib=no"
  16506. fi
  16507. rm -f core conftest.err conftest.$ac_objext \
  16508. conftest$ac_exeext conftest.$ac_ext
  16509. LIBS=$ac_check_lib_save_LIBS
  16510. fi
  16511. eval ac_res=\$$as_ac_Lib
  16512. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  16513. $as_echo "$ac_res" >&6; }
  16514. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  16515. have_ldap_lib=1
  16516. fi
  16517. if test -z "$have_ldap_lib" ; then
  16518. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_initialize in -lldap" >&5
  16519. $as_echo_n "checking for ldap_initialize in -lldap... " >&6; }
  16520. if ${ac_cv_lib_ldap_ldap_initialize+:} false; then :
  16521. $as_echo_n "(cached) " >&6
  16522. else
  16523. ac_check_lib_save_LIBS=$LIBS
  16524. LIBS="-lldap $LIBS"
  16525. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16526. /* end confdefs.h. */
  16527. /* Override any GCC internal prototype to avoid an error.
  16528. Use char because int might match the return type of a GCC
  16529. builtin and then its argument prototype would still apply. */
  16530. #ifdef __cplusplus
  16531. extern "C"
  16532. #endif
  16533. char ldap_initialize ();
  16534. int
  16535. main ()
  16536. {
  16537. return ldap_initialize ();
  16538. ;
  16539. return 0;
  16540. }
  16541. _ACEOF
  16542. if ac_fn_c_try_link "$LINENO"; then :
  16543. ac_cv_lib_ldap_ldap_initialize=yes
  16544. else
  16545. ac_cv_lib_ldap_ldap_initialize=no
  16546. fi
  16547. rm -f core conftest.err conftest.$ac_objext \
  16548. conftest$ac_exeext conftest.$ac_ext
  16549. LIBS=$ac_check_lib_save_LIBS
  16550. fi
  16551. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_ldap_initialize" >&5
  16552. $as_echo "$ac_cv_lib_ldap_ldap_initialize" >&6; }
  16553. if test "x$ac_cv_lib_ldap_ldap_initialize" = xyes; then :
  16554. unset ol_libver
  16555. else
  16556. as_fn_error $? "specified with-openldap but libldap not found" "$LINENO" 5
  16557. fi
  16558. fi
  16559. as_ac_Lib=`$as_echo "ac_cv_lib_ldap$ol_libver''_ldap_url_parse_ext" | $as_tr_sh`
  16560. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_url_parse_ext in -lldap$ol_libver" >&5
  16561. $as_echo_n "checking for ldap_url_parse_ext in -lldap$ol_libver... " >&6; }
  16562. if eval \${$as_ac_Lib+:} false; then :
  16563. $as_echo_n "(cached) " >&6
  16564. else
  16565. ac_check_lib_save_LIBS=$LIBS
  16566. LIBS="-lldap$ol_libver $LIBS"
  16567. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16568. /* end confdefs.h. */
  16569. /* Override any GCC internal prototype to avoid an error.
  16570. Use char because int might match the return type of a GCC
  16571. builtin and then its argument prototype would still apply. */
  16572. #ifdef __cplusplus
  16573. extern "C"
  16574. #endif
  16575. char ldap_url_parse_ext ();
  16576. int
  16577. main ()
  16578. {
  16579. return ldap_url_parse_ext ();
  16580. ;
  16581. return 0;
  16582. }
  16583. _ACEOF
  16584. if ac_fn_c_try_link "$LINENO"; then :
  16585. eval "$as_ac_Lib=yes"
  16586. else
  16587. eval "$as_ac_Lib=no"
  16588. fi
  16589. rm -f core conftest.err conftest.$ac_objext \
  16590. conftest$ac_exeext conftest.$ac_ext
  16591. LIBS=$ac_check_lib_save_LIBS
  16592. fi
  16593. eval ac_res=\$$as_ac_Lib
  16594. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  16595. $as_echo "$ac_res" >&6; }
  16596. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  16597. $as_echo "#define HAVE_LDAP_URL_PARSE_EXT 1" >>confdefs.h
  16598. fi
  16599. ldap_lib_ldif=""
  16600. LDFLAGS="$LDFLAGS -lldap$ol_libver"
  16601. as_ac_Lib=`$as_echo "ac_cv_lib_ldif$ol_libver''__init" | $as_tr_sh`
  16602. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _init in -lldif$ol_libver" >&5
  16603. $as_echo_n "checking for _init in -lldif$ol_libver... " >&6; }
  16604. if eval \${$as_ac_Lib+:} false; then :
  16605. $as_echo_n "(cached) " >&6
  16606. else
  16607. ac_check_lib_save_LIBS=$LIBS
  16608. LIBS="-lldif$ol_libver $LIBS"
  16609. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16610. /* end confdefs.h. */
  16611. /* Override any GCC internal prototype to avoid an error.
  16612. Use char because int might match the return type of a GCC
  16613. builtin and then its argument prototype would still apply. */
  16614. #ifdef __cplusplus
  16615. extern "C"
  16616. #endif
  16617. char _init ();
  16618. int
  16619. main ()
  16620. {
  16621. return _init ();
  16622. ;
  16623. return 0;
  16624. }
  16625. _ACEOF
  16626. if ac_fn_c_try_link "$LINENO"; then :
  16627. eval "$as_ac_Lib=yes"
  16628. else
  16629. eval "$as_ac_Lib=no"
  16630. fi
  16631. rm -f core conftest.err conftest.$ac_objext \
  16632. conftest$ac_exeext conftest.$ac_ext
  16633. LIBS=$ac_check_lib_save_LIBS
  16634. fi
  16635. eval ac_res=\$$as_ac_Lib
  16636. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  16637. $as_echo "$ac_res" >&6; }
  16638. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  16639. ldap_lib_ldif=-lldif$ol_libver
  16640. else
  16641. ldap_lib_ldif=
  16642. fi
  16643. LDFLAGS="$save_ldflags"
  16644. CPPFLAGS="$save_cppflags"
  16645. $as_echo "#define USE_OPENLDAP 1" >>confdefs.h
  16646. # where to find ldapsearch, et. al.
  16647. ldaptool_bindir=$openldap_bindir
  16648. # default options to pass to the tools
  16649. # use -x because all of our scripts use simple bind
  16650. ldaptool_opts=-x
  16651. # get plain output from ldapsearch - no version, no comments
  16652. plainldif_opts=-LLL
  16653. fi
  16654. # BEGIN COPYRIGHT BLOCK
  16655. # Copyright (C) 2007 Red Hat, Inc.
  16656. # All rights reserved.
  16657. #
  16658. # License: GPL (version 3 or any later version).
  16659. # See LICENSE for details.
  16660. # END COPYRIGHT BLOCK
  16661. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mozilla LDAPSDK..." >&5
  16662. $as_echo "$as_me: checking for Mozilla LDAPSDK..." >&6;}
  16663. # check for --with-ldapsdk
  16664. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-ldapsdk" >&5
  16665. $as_echo_n "checking for --with-ldapsdk... " >&6; }
  16666. # Check whether --with-ldapsdk was given.
  16667. if test "${with_ldapsdk+set}" = set; then :
  16668. withval=$with_ldapsdk;
  16669. if test "$withval" = yes
  16670. then
  16671. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16672. $as_echo "yes" >&6; }
  16673. elif test "$withval" = no
  16674. then
  16675. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16676. $as_echo "no" >&6; }
  16677. elif test -e "$withval"/include/ldap.h -a -d "$withval"/lib
  16678. then
  16679. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16680. $as_echo "using $withval" >&6; }
  16681. LDAPSDKDIR=$withval
  16682. ldapsdk_inc="-I$LDAPSDKDIR/include"
  16683. ldapsdk_lib="-L$LDAPSDKDIR/lib"
  16684. ldapsdk_libdir="$LDAPSDKDIR/lib"
  16685. ldapsdk_bindir="$LDAPSDKDIR/bin"
  16686. with_ldapsdk=yes
  16687. else
  16688. echo
  16689. as_fn_error $? "$withval not found" "$LINENO" 5
  16690. fi
  16691. if test "$with_ldapsdk" = yes -a "$with_openldap" = yes
  16692. then
  16693. as_fn_error $? "Cannot use both LDAPSDK and OpenLDAP." "$LINENO" 5
  16694. fi
  16695. if test "$with_ldapsdk" != yes -a "$with_openldap" != yes
  16696. then
  16697. as_fn_error $? "Either LDAPSDK or OpenLDAP must be used." "$LINENO" 5
  16698. fi
  16699. else
  16700. if test "$with_openldap" = yes
  16701. then
  16702. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16703. $as_echo "no" >&6; }
  16704. else
  16705. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16706. $as_echo "yes" >&6; }
  16707. with_ldapsdk=yes
  16708. fi
  16709. fi
  16710. # check for --with-ldapsdk-inc
  16711. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-ldapsdk-inc" >&5
  16712. $as_echo_n "checking for --with-ldapsdk-inc... " >&6; }
  16713. # Check whether --with-ldapsdk-inc was given.
  16714. if test "${with_ldapsdk_inc+set}" = set; then :
  16715. withval=$with_ldapsdk_inc;
  16716. if test -e "$withval"/ldap.h
  16717. then
  16718. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16719. $as_echo "using $withval" >&6; }
  16720. ldapsdk_inc="-I$withval"
  16721. with_ldapsdk=yes
  16722. else
  16723. echo
  16724. as_fn_error $? "$withval not found" "$LINENO" 5
  16725. fi
  16726. else
  16727. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16728. $as_echo "no" >&6; }
  16729. fi
  16730. # check for --with-ldapsdk-lib
  16731. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-ldapsdk-lib" >&5
  16732. $as_echo_n "checking for --with-ldapsdk-lib... " >&6; }
  16733. # Check whether --with-ldapsdk-lib was given.
  16734. if test "${with_ldapsdk_lib+set}" = set; then :
  16735. withval=$with_ldapsdk_lib;
  16736. if test -d "$withval"
  16737. then
  16738. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16739. $as_echo "using $withval" >&6; }
  16740. ldapsdk_lib="-L$withval"
  16741. ldapsdk_libdir="$withval"
  16742. with_ldapsdk=yes
  16743. else
  16744. echo
  16745. as_fn_error $? "$withval not found" "$LINENO" 5
  16746. fi
  16747. else
  16748. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16749. $as_echo "no" >&6; }
  16750. fi
  16751. # check for --with-ldapsdk-bin
  16752. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-ldapsdk-bin" >&5
  16753. $as_echo_n "checking for --with-ldapsdk-bin... " >&6; }
  16754. # Check whether --with-ldapsdk-bin was given.
  16755. if test "${with_ldapsdk_bin+set}" = set; then :
  16756. withval=$with_ldapsdk_bin;
  16757. if test -d "$withval"
  16758. then
  16759. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16760. $as_echo "using $withval" >&6; }
  16761. ldapsdk_bindir="$withval"
  16762. with_ldapsdk=yes
  16763. else
  16764. echo
  16765. as_fn_error $? "$withval not found" "$LINENO" 5
  16766. fi
  16767. else
  16768. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16769. $as_echo "no" >&6; }
  16770. fi
  16771. # if LDAPSDK is not found yet, try pkg-config
  16772. # last resort
  16773. if test "$with_ldapsdk" = yes ; then
  16774. if test -z "$ldapsdk_inc" -o -z "$ldapsdk_lib" -o -z "$ldapsdk_libdir" -o -z "$ldapsdk_bindir"; then
  16775. # Extract the first word of "pkg-config", so it can be a program name with args.
  16776. set dummy pkg-config; ac_word=$2
  16777. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16778. $as_echo_n "checking for $ac_word... " >&6; }
  16779. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  16780. $as_echo_n "(cached) " >&6
  16781. else
  16782. case $PKG_CONFIG in
  16783. [\\/]* | ?:[\\/]*)
  16784. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  16785. ;;
  16786. *)
  16787. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16788. for as_dir in $PATH
  16789. do
  16790. IFS=$as_save_IFS
  16791. test -z "$as_dir" && as_dir=.
  16792. for ac_exec_ext in '' $ac_executable_extensions; do
  16793. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16794. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  16795. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16796. break 2
  16797. fi
  16798. done
  16799. done
  16800. IFS=$as_save_IFS
  16801. ;;
  16802. esac
  16803. fi
  16804. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  16805. if test -n "$PKG_CONFIG"; then
  16806. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  16807. $as_echo "$PKG_CONFIG" >&6; }
  16808. else
  16809. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16810. $as_echo "no" >&6; }
  16811. fi
  16812. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mozldap with pkg-config" >&5
  16813. $as_echo_n "checking for mozldap with pkg-config... " >&6; }
  16814. if test -n "$PKG_CONFIG"; then
  16815. if $PKG_CONFIG --exists mozldap6; then
  16816. mozldappkg=mozldap6
  16817. elif $PKG_CONFIG --exists mozldap; then
  16818. mozldappkg=mozldap
  16819. else
  16820. as_fn_error $? "LDAPSDK not found, specify with --with-ldapsdk-inc|-lib|-bin." "$LINENO" 5
  16821. fi
  16822. ldapsdk_inc=`$PKG_CONFIG --cflags-only-I $mozldappkg`
  16823. ldapsdk_lib=`$PKG_CONFIG --libs-only-L $mozldappkg`
  16824. ldapsdk_libdir=`$PKG_CONFIG --libs-only-L $mozldappkg | sed -e s/-L// | sed -e s/\ .*$//`
  16825. ldapsdk_bindir=`$PKG_CONFIG --variable=bindir $mozldappkg`
  16826. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using system $mozldappkg" >&5
  16827. $as_echo "using system $mozldappkg" >&6; }
  16828. fi
  16829. fi
  16830. fi
  16831. if test "$with_ldapsdk" = yes ; then
  16832. if test -z "$ldapsdk_inc" -o -z "$ldapsdk_lib"; then
  16833. as_fn_error $? "LDAPSDK not found, specify with --with-ldapsdk-inc|-lib|-bin." "$LINENO" 5
  16834. fi
  16835. if test -z "$ldapsdk_bindir" ; then
  16836. if -d $libdir/mozldap6 ; then
  16837. ldapsdk_bindir=$libdir/mozldap6
  16838. else
  16839. ldapsdk_bindir=$libdir/mozldap
  16840. fi
  16841. fi
  16842. save_cppflags="$CPPFLAGS"
  16843. CPPFLAGS="$ldapsdk_inc $nss_inc $nspr_inc"
  16844. ac_fn_c_check_header_compile "$LINENO" "ldap.h" "ac_cv_header_ldap_h" "#include <ldap-standard.h>
  16845. #if LDAP_VENDOR_VERSION < 600
  16846. #error The LDAP C SDK version is not supported
  16847. #endif
  16848. "
  16849. if test "x$ac_cv_header_ldap_h" = xyes; then :
  16850. isversion6=1
  16851. else
  16852. isversion6=
  16853. fi
  16854. CPPFLAGS="$save_cppflags"
  16855. if test -z "$isversion6" ; then
  16856. as_fn_error $? "The LDAPSDK version in $ldapsdk_inc/ldap-standard.h is not supported" "$LINENO" 5
  16857. fi
  16858. $as_echo "#define USE_MOZLDAP 1" >>confdefs.h
  16859. $as_echo "#define HAVE_LDAP_URL_PARSE_NO_DEFAULTS 1" >>confdefs.h
  16860. # where to find ldapsearch, et. al.
  16861. ldaptool_bindir=$ldapsdk_bindir
  16862. # default options to pass to the tools
  16863. ldaptool_opts=
  16864. # get plain output from ldapsearch - no version
  16865. plainldif_opts=-1
  16866. fi
  16867. # BEGIN COPYRIGHT BLOCK
  16868. # Copyright (C) 2007 Red Hat, Inc.
  16869. # All rights reserved.
  16870. #
  16871. # License: GPL (version 3 or any later version).
  16872. # See LICENSE for details.
  16873. # END COPYRIGHT BLOCK
  16874. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for db..." >&5
  16875. $as_echo "$as_me: checking for db..." >&6;}
  16876. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-db" >&5
  16877. $as_echo_n "checking for --with-db... " >&6; }
  16878. # Check whether --with-db was given.
  16879. if test "${with_db+set}" = set; then :
  16880. withval=$with_db;
  16881. if test "$withval" = "yes"; then
  16882. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16883. $as_echo "yes" >&6; }
  16884. elif test "$withval" = "no"; then
  16885. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16886. $as_echo "no" >&6; }
  16887. as_fn_error $? "db is required." "$LINENO" 5
  16888. elif test -d "$withval"/include -a -d "$withval"/lib; then
  16889. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16890. $as_echo "using $withval" >&6; }
  16891. DBDIR=$withval
  16892. db_lib="-L$DBDIR/lib"
  16893. db_libdir="$DBDIR/lib"
  16894. db_incdir="$DBDIR/include"
  16895. if ! test -e "$db_incdir/db.h" ; then
  16896. as_fn_error $? "$withval include dir not found" "$LINENO" 5
  16897. fi
  16898. db_inc="-I$db_incdir"
  16899. else
  16900. echo
  16901. as_fn_error $? "$withval not found" "$LINENO" 5
  16902. fi
  16903. else
  16904. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16905. $as_echo "yes" >&6; }
  16906. fi
  16907. # check for --with-db-inc
  16908. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-db-inc" >&5
  16909. $as_echo_n "checking for --with-db-inc... " >&6; }
  16910. # Check whether --with-db-inc was given.
  16911. if test "${with_db_inc+set}" = set; then :
  16912. withval=$with_db_inc;
  16913. if test -e "$withval"/db.h
  16914. then
  16915. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16916. $as_echo "using $withval" >&6; }
  16917. db_incdir="$withval"
  16918. db_inc="-I$withval"
  16919. else
  16920. echo
  16921. as_fn_error $? "$withval not found" "$LINENO" 5
  16922. fi
  16923. else
  16924. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16925. $as_echo "no" >&6; }
  16926. fi
  16927. # check for --with-db-lib
  16928. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-db-lib" >&5
  16929. $as_echo_n "checking for --with-db-lib... " >&6; }
  16930. # Check whether --with-db-lib was given.
  16931. if test "${with_db_lib+set}" = set; then :
  16932. withval=$with_db_lib;
  16933. if test -d "$withval"
  16934. then
  16935. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16936. $as_echo "using $withval" >&6; }
  16937. db_lib="-L$withval"
  16938. db_libdir="$withval"
  16939. else
  16940. echo
  16941. as_fn_error $? "$withval not found" "$LINENO" 5
  16942. fi
  16943. else
  16944. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16945. $as_echo "no" >&6; }
  16946. fi
  16947. if test -z "$db_inc"; then
  16948. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for db.h" >&5
  16949. $as_echo_n "checking for db.h... " >&6; }
  16950. if test -f "/usr/include/db4/db.h"; then
  16951. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using /usr/include/db4/db.h" >&5
  16952. $as_echo "using /usr/include/db4/db.h" >&6; }
  16953. db_incdir="/usr/include/db4"
  16954. db_inc="-I/usr/include/db4"
  16955. db_lib='-L$(libdir)'
  16956. db_libdir='$(libdir)'
  16957. elif test -f "/usr/include/libdb/db.h"; then
  16958. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using /usr/include/libdb/db.h" >&5
  16959. $as_echo "using /usr/include/libdb/db.h" >&6; }
  16960. db_incdir="/usr/include/libdb"
  16961. db_inc="-I/usr/include/libdb"
  16962. db_lib='-L$(libdir)'
  16963. db_libdir='$(libdir)'
  16964. elif test -f "/usr/include/db.h"; then
  16965. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using /usr/include/db.h" >&5
  16966. $as_echo "using /usr/include/db.h" >&6; }
  16967. db_incdir="/usr/include"
  16968. db_inc="-I/usr/include"
  16969. db_lib='-L$(libdir)'
  16970. db_libdir='$(libdir)'
  16971. else
  16972. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16973. $as_echo "no" >&6; }
  16974. as_fn_error $? "db not found, specify with --with-db." "$LINENO" 5
  16975. fi
  16976. fi
  16977. db_ver_maj=`grep DB_VERSION_MAJOR $db_incdir/db.h | awk '{print $3}'`
  16978. db_ver_min=`grep DB_VERSION_MINOR $db_incdir/db.h | awk '{print $3}'`
  16979. db_ver_pat=`grep DB_VERSION_PATCH $db_incdir/db.h | awk '{print $3}'`
  16980. db_libver=${db_ver_maj}.${db_ver_min}
  16981. save_ldflags="$LDFLAGS"
  16982. LDFLAGS="$db_lib $LDFLAGS"
  16983. as_ac_Lib=`$as_echo "ac_cv_lib_db-$db_libver''_db_create" | $as_tr_sh`
  16984. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for db_create in -ldb-$db_libver" >&5
  16985. $as_echo_n "checking for db_create in -ldb-$db_libver... " >&6; }
  16986. if eval \${$as_ac_Lib+:} false; then :
  16987. $as_echo_n "(cached) " >&6
  16988. else
  16989. ac_check_lib_save_LIBS=$LIBS
  16990. LIBS="-ldb-$db_libver $LIBNSL $LIBS"
  16991. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16992. /* end confdefs.h. */
  16993. /* Override any GCC internal prototype to avoid an error.
  16994. Use char because int might match the return type of a GCC
  16995. builtin and then its argument prototype would still apply. */
  16996. #ifdef __cplusplus
  16997. extern "C"
  16998. #endif
  16999. char db_create ();
  17000. int
  17001. main ()
  17002. {
  17003. return db_create ();
  17004. ;
  17005. return 0;
  17006. }
  17007. _ACEOF
  17008. if ac_fn_c_try_link "$LINENO"; then :
  17009. eval "$as_ac_Lib=yes"
  17010. else
  17011. eval "$as_ac_Lib=no"
  17012. fi
  17013. rm -f core conftest.err conftest.$ac_objext \
  17014. conftest$ac_exeext conftest.$ac_ext
  17015. LIBS=$ac_check_lib_save_LIBS
  17016. fi
  17017. eval ac_res=\$$as_ac_Lib
  17018. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  17019. $as_echo "$ac_res" >&6; }
  17020. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  17021. true
  17022. else
  17023. as_fn_error $? "$db_incdir/db.h is version $db_libver but libdb-$db_libver not found" "$LINENO" 5
  17024. fi
  17025. LDFLAGS="$save_ldflags"
  17026. # if DB is not found yet, try pkg-config
  17027. # last resort
  17028. # Although the other db_* variables are correctly assigned at this point,
  17029. # db_bindir needs to be set by pkg-config if possible (e.g., on 64-bit Solaris)
  17030. if test -n "$PKG_CONFIG"; then
  17031. if $PKG_CONFIG --exists db; then
  17032. db_bindir=`$PKG_CONFIG --variable=bindir db`
  17033. else
  17034. db_bindir=/usr/bin
  17035. fi
  17036. else
  17037. db_bindir=/usr/bin
  17038. fi
  17039. # BEGIN COPYRIGHT BLOCK
  17040. # Copyright (C) 2007 Red Hat, Inc.
  17041. # All rights reserved.
  17042. #
  17043. # License: GPL (version 3 or any later version).
  17044. # See LICENSE for details.
  17045. # END COPYRIGHT BLOCK
  17046. # -*- tab-width: 4; -*-
  17047. # Configure paths for SASL
  17048. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SASL..." >&5
  17049. $as_echo "$as_me: checking for SASL..." >&6;}
  17050. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-sasl" >&5
  17051. $as_echo_n "checking for --with-sasl... " >&6; }
  17052. # Check whether --with-sasl was given.
  17053. if test "${with_sasl+set}" = set; then :
  17054. withval=$with_sasl;
  17055. if test "$withval" = "yes"; then
  17056. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17057. $as_echo "yes" >&6; }
  17058. elif test "$withval" = "no"; then
  17059. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17060. $as_echo "no" >&6; }
  17061. as_fn_error $? "SASL is required." "$LINENO" 5
  17062. elif test -d "$withval" -a -d "$withval/lib" -a -d "$withval/include" ; then
  17063. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17064. $as_echo "using $withval" >&6; }
  17065. if test -f "$withval/include/sasl/sasl.h"; then
  17066. sasl_inc="-I$withval/include/sasl"
  17067. elif test -f "$withval/include/sasl.h"; then
  17068. sasl_inc="-I$withval/include"
  17069. else
  17070. as_fn_error $? "sasl.h not found" "$LINENO" 5
  17071. fi
  17072. sasl_lib="-L$withval/lib"
  17073. sasl_libdir="$withval/lib"
  17074. else
  17075. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17076. $as_echo "yes" >&6; }
  17077. as_fn_error $? "SASL not found in $withval" "$LINENO" 5
  17078. fi
  17079. else
  17080. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17081. $as_echo "yes" >&6; }
  17082. fi
  17083. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-sasl-inc" >&5
  17084. $as_echo_n "checking for --with-sasl-inc... " >&6; }
  17085. # Check whether --with-sasl-inc was given.
  17086. if test "${with_sasl_inc+set}" = set; then :
  17087. withval=$with_sasl_inc;
  17088. if test -f "$withval"/sasl.h; then
  17089. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17090. $as_echo "using $withval" >&6; }
  17091. sasl_inc="-I$withval"
  17092. else
  17093. echo
  17094. as_fn_error $? "$withval/sasl.h not found" "$LINENO" 5
  17095. fi
  17096. else
  17097. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17098. $as_echo "no" >&6; }
  17099. fi
  17100. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-sasl-lib" >&5
  17101. $as_echo_n "checking for --with-sasl-lib... " >&6; }
  17102. # Check whether --with-sasl-lib was given.
  17103. if test "${with_sasl_lib+set}" = set; then :
  17104. withval=$with_sasl_lib;
  17105. if test -d "$withval"; then
  17106. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17107. $as_echo "using $withval" >&6; }
  17108. sasl_lib="-L$withval"
  17109. sasl_libdir="$withval"
  17110. else
  17111. echo
  17112. as_fn_error $? "$withval not found" "$LINENO" 5
  17113. fi
  17114. else
  17115. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17116. $as_echo "no" >&6; }
  17117. fi
  17118. if test -z "$sasl_inc"; then
  17119. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sasl.h" >&5
  17120. $as_echo_n "checking for sasl.h... " >&6; }
  17121. if test -f /usr/include/sasl/sasl.h; then
  17122. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using /usr/include/sasl/sasl.h" >&5
  17123. $as_echo "using /usr/include/sasl/sasl.h" >&6; }
  17124. sasl_inc="-I/usr/include/sasl"
  17125. elif test -f /usr/include/sasl.h; then
  17126. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using /usr/include/sasl.h" >&5
  17127. $as_echo "using /usr/include/sasl.h" >&6; }
  17128. sasl_inc="-I/usr/include"
  17129. else
  17130. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17131. $as_echo "no" >&6; }
  17132. as_fn_error $? "SASL not found, specify with --with-sasl." "$LINENO" 5
  17133. fi
  17134. fi
  17135. # BEGIN COPYRIGHT BLOCK
  17136. # Copyright (C) 2007 Red Hat, Inc.
  17137. # All rights reserved.
  17138. #
  17139. # License: GPL (version 3 or any later version).
  17140. # See LICENSE for details.
  17141. # END COPYRIGHT BLOCK
  17142. #
  17143. # Configure paths for SVRCORE
  17144. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SVRCORE..." >&5
  17145. $as_echo "$as_me: checking for SVRCORE..." >&6;}
  17146. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-svrcore" >&5
  17147. $as_echo_n "checking for --with-svrcore... " >&6; }
  17148. # Check whether --with-svrcore was given.
  17149. if test "${with_svrcore+set}" = set; then :
  17150. withval=$with_svrcore;
  17151. if test "$withval" = "yes"; then
  17152. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17153. $as_echo "yes" >&6; }
  17154. elif test "$withval" = "no"; then
  17155. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17156. $as_echo "no" >&6; }
  17157. as_fn_error $? "SVRCORE is required." "$LINENO" 5
  17158. elif test -d "$withval" -a -d "$withval/lib" -a -d "$withval/include" ; then
  17159. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17160. $as_echo "using $withval" >&6; }
  17161. if test -f "$withval/include/svrcore.h"; then
  17162. svrcore_inc="-I$withval/include"
  17163. else
  17164. as_fn_error $? "svrcore.h not found" "$LINENO" 5
  17165. fi
  17166. svrcore_lib="-L$withval/lib"
  17167. else
  17168. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17169. $as_echo "yes" >&6; }
  17170. as_fn_error $? "SVRCORE not found in $withval" "$LINENO" 5
  17171. fi
  17172. else
  17173. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17174. $as_echo "yes" >&6; }
  17175. fi
  17176. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-svrcore-inc" >&5
  17177. $as_echo_n "checking for --with-svrcore-inc... " >&6; }
  17178. # Check whether --with-svrcore-inc was given.
  17179. if test "${with_svrcore_inc+set}" = set; then :
  17180. withval=$with_svrcore_inc;
  17181. if test -f "$withval"/svrcore.h; then
  17182. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17183. $as_echo "using $withval" >&6; }
  17184. svrcore_inc="-I$withval"
  17185. else
  17186. echo
  17187. as_fn_error $? "$withval/svrcore.h not found" "$LINENO" 5
  17188. fi
  17189. else
  17190. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17191. $as_echo "no" >&6; }
  17192. fi
  17193. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-svrcore-lib" >&5
  17194. $as_echo_n "checking for --with-svrcore-lib... " >&6; }
  17195. # Check whether --with-svrcore-lib was given.
  17196. if test "${with_svrcore_lib+set}" = set; then :
  17197. withval=$with_svrcore_lib;
  17198. if test -d "$withval"; then
  17199. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17200. $as_echo "using $withval" >&6; }
  17201. svrcore_lib="-L$withval"
  17202. else
  17203. echo
  17204. as_fn_error $? "$withval not found" "$LINENO" 5
  17205. fi
  17206. else
  17207. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17208. $as_echo "no" >&6; }
  17209. fi
  17210. if test -z "$svrcore_inc" -o -z "$svrcore_lib"; then
  17211. # Extract the first word of "pkg-config", so it can be a program name with args.
  17212. set dummy pkg-config; ac_word=$2
  17213. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17214. $as_echo_n "checking for $ac_word... " >&6; }
  17215. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  17216. $as_echo_n "(cached) " >&6
  17217. else
  17218. case $PKG_CONFIG in
  17219. [\\/]* | ?:[\\/]*)
  17220. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  17221. ;;
  17222. *)
  17223. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17224. for as_dir in $PATH
  17225. do
  17226. IFS=$as_save_IFS
  17227. test -z "$as_dir" && as_dir=.
  17228. for ac_exec_ext in '' $ac_executable_extensions; do
  17229. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17230. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  17231. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17232. break 2
  17233. fi
  17234. done
  17235. done
  17236. IFS=$as_save_IFS
  17237. ;;
  17238. esac
  17239. fi
  17240. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  17241. if test -n "$PKG_CONFIG"; then
  17242. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  17243. $as_echo "$PKG_CONFIG" >&6; }
  17244. else
  17245. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17246. $as_echo "no" >&6; }
  17247. fi
  17248. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SVRCORE with pkg-config" >&5
  17249. $as_echo_n "checking for SVRCORE with pkg-config... " >&6; }
  17250. if test -n "$PKG_CONFIG"; then
  17251. if $PKG_CONFIG --exists svrcore; then
  17252. svrcore_inc=`$PKG_CONFIG --cflags-only-I svrcore`
  17253. svrcore_lib=`$PKG_CONFIG --libs-only-L svrcore`
  17254. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using system svrcore" >&5
  17255. $as_echo "using system svrcore" >&6; }
  17256. fi
  17257. fi
  17258. fi
  17259. if test -z "$svrcore_inc" -o -z "$svrcore_lib"; then
  17260. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SVRCORE_GetRegisteredPinObj in -lsvrcore" >&5
  17261. $as_echo_n "checking for SVRCORE_GetRegisteredPinObj in -lsvrcore... " >&6; }
  17262. if ${ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj+:} false; then :
  17263. $as_echo_n "(cached) " >&6
  17264. else
  17265. ac_check_lib_save_LIBS=$LIBS
  17266. LIBS="-lsvrcore $nss_inc $nspr_inc $nss_lib -lnss3 -lsoftokn3 $nspr_lib -lplds4 -lplc4 -lnspr4 $LIBS"
  17267. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17268. /* end confdefs.h. */
  17269. /* Override any GCC internal prototype to avoid an error.
  17270. Use char because int might match the return type of a GCC
  17271. builtin and then its argument prototype would still apply. */
  17272. #ifdef __cplusplus
  17273. extern "C"
  17274. #endif
  17275. char SVRCORE_GetRegisteredPinObj ();
  17276. int
  17277. main ()
  17278. {
  17279. return SVRCORE_GetRegisteredPinObj ();
  17280. ;
  17281. return 0;
  17282. }
  17283. _ACEOF
  17284. if ac_fn_c_try_link "$LINENO"; then :
  17285. ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj=yes
  17286. else
  17287. ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj=no
  17288. fi
  17289. rm -f core conftest.err conftest.$ac_objext \
  17290. conftest$ac_exeext conftest.$ac_ext
  17291. LIBS=$ac_check_lib_save_LIBS
  17292. fi
  17293. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj" >&5
  17294. $as_echo "$ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj" >&6; }
  17295. if test "x$ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj" = xyes; then :
  17296. havesvrcore=1
  17297. fi
  17298. if test -n "$havesvrcore" ; then
  17299. save_cppflags="$CPPFLAGS"
  17300. CPPFLAGS="$nss_inc $nspr_inc"
  17301. ac_fn_c_check_header_mongrel "$LINENO" "svrcore.h" "ac_cv_header_svrcore_h" "$ac_includes_default"
  17302. if test "x$ac_cv_header_svrcore_h" = xyes; then :
  17303. havesvrcore=1
  17304. else
  17305. havesvrcore=
  17306. fi
  17307. CPPFLAGS="$save_cppflags"
  17308. fi
  17309. if test -z "$havesvrcore" ; then
  17310. as_fn_error $? "SVRCORE not found, specify with --with-svrcore." "$LINENO" 5
  17311. fi
  17312. fi
  17313. if test -z "$svrcore_inc" -o -z "$svrcore_lib"; then
  17314. if test -f /usr/include/svrcore.h; then
  17315. svrcore_inc="-I/usr/include"
  17316. svrcore_lib="-L/usr/lib"
  17317. else
  17318. as_fn_error $? "SVRCORE not found, specify with --with-svrcore." "$LINENO" 5
  17319. fi
  17320. fi
  17321. # BEGIN COPYRIGHT BLOCK
  17322. # Copyright (C) 2006 Red Hat, Inc.
  17323. # All rights reserved.
  17324. #
  17325. # License: GPL (version 3 or any later version).
  17326. # See LICENSE for details.
  17327. # END COPYRIGHT BLOCK
  17328. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBICU..." >&5
  17329. $as_echo "$as_me: checking for LIBICU..." >&6;}
  17330. # check for --with-icu
  17331. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-icu" >&5
  17332. $as_echo_n "checking for --with-icu... " >&6; }
  17333. # Check whether --with-icu was given.
  17334. if test "${with_icu+set}" = set; then :
  17335. withval=$with_icu;
  17336. if test "$withval" = "yes"
  17337. then
  17338. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17339. $as_echo "yes" >&6; }
  17340. elif test "$withval" = "no"
  17341. then
  17342. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17343. $as_echo "no" >&6; }
  17344. as_fn_error $? "ICU is required." "$LINENO" 5
  17345. elif test -d "$withval"/lib
  17346. then
  17347. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17348. $as_echo "using $withval" >&6; }
  17349. ICUDIR=$withval
  17350. icu_lib="-L$ICUDIR/lib"
  17351. icu_inc="-I$withval/include"
  17352. icu_bin="$withval/bin"
  17353. else
  17354. echo
  17355. as_fn_error $? "$withval not found" "$LINENO" 5
  17356. fi
  17357. else
  17358. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17359. $as_echo "yes" >&6; }
  17360. fi
  17361. # check for --with-icu-inc
  17362. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-icu-inc" >&5
  17363. $as_echo_n "checking for --with-icu-inc... " >&6; }
  17364. # Check whether --with-icu-inc was given.
  17365. if test "${with_icu_inc+set}" = set; then :
  17366. withval=$with_icu_inc;
  17367. if test -d "$withval"
  17368. then
  17369. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17370. $as_echo "using $withval" >&6; }
  17371. icu_inc="-I$withval"
  17372. else
  17373. echo
  17374. as_fn_error $? "$withval not found" "$LINENO" 5
  17375. fi
  17376. else
  17377. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17378. $as_echo "no" >&6; }
  17379. fi
  17380. # check for --with-icu-lib
  17381. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-icu-lib" >&5
  17382. $as_echo_n "checking for --with-icu-lib... " >&6; }
  17383. # Check whether --with-icu-lib was given.
  17384. if test "${with_icu_lib+set}" = set; then :
  17385. withval=$with_icu_lib;
  17386. if test -d "$withval"
  17387. then
  17388. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17389. $as_echo "using $withval" >&6; }
  17390. icu_lib="-L$withval"
  17391. else
  17392. echo
  17393. as_fn_error $? "$withval not found" "$LINENO" 5
  17394. fi
  17395. else
  17396. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17397. $as_echo "no" >&6; }
  17398. fi
  17399. # check for --with-icu-bin
  17400. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-icu-bin" >&5
  17401. $as_echo_n "checking for --with-icu-bin... " >&6; }
  17402. # Check whether --with-icu-bin was given.
  17403. if test "${with_icu_bin+set}" = set; then :
  17404. withval=$with_icu_bin;
  17405. if test -d "$withval"
  17406. then
  17407. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17408. $as_echo "using $withval" >&6; }
  17409. icu_bin="$withval"
  17410. else
  17411. echo
  17412. as_fn_error $? "$withval not found" "$LINENO" 5
  17413. fi
  17414. else
  17415. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17416. $as_echo "no" >&6; }
  17417. fi
  17418. # if ICU is not found yet, try pkg-config
  17419. # last resort
  17420. if test -z "$icu_lib"; then
  17421. # Extract the first word of "icu-config", so it can be a program name with args.
  17422. set dummy icu-config; ac_word=$2
  17423. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17424. $as_echo_n "checking for $ac_word... " >&6; }
  17425. if ${ac_cv_path_ICU_CONFIG+:} false; then :
  17426. $as_echo_n "(cached) " >&6
  17427. else
  17428. case $ICU_CONFIG in
  17429. [\\/]* | ?:[\\/]*)
  17430. ac_cv_path_ICU_CONFIG="$ICU_CONFIG" # Let the user override the test with a path.
  17431. ;;
  17432. *)
  17433. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17434. for as_dir in $PATH
  17435. do
  17436. IFS=$as_save_IFS
  17437. test -z "$as_dir" && as_dir=.
  17438. for ac_exec_ext in '' $ac_executable_extensions; do
  17439. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17440. ac_cv_path_ICU_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  17441. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17442. break 2
  17443. fi
  17444. done
  17445. done
  17446. IFS=$as_save_IFS
  17447. ;;
  17448. esac
  17449. fi
  17450. ICU_CONFIG=$ac_cv_path_ICU_CONFIG
  17451. if test -n "$ICU_CONFIG"; then
  17452. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICU_CONFIG" >&5
  17453. $as_echo "$ICU_CONFIG" >&6; }
  17454. else
  17455. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17456. $as_echo "no" >&6; }
  17457. fi
  17458. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for icu with icu-config" >&5
  17459. $as_echo_n "checking for icu with icu-config... " >&6; }
  17460. if test -n "$ICU_CONFIG"; then
  17461. icu_lib=`$ICU_CONFIG --ldflags-searchpath`
  17462. icu_inc=`$ICU_CONFIG --cppflags-searchpath`
  17463. icu_bin=`$ICU_CONFIG --bindir`
  17464. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using system ICU" >&5
  17465. $as_echo "using system ICU" >&6; }
  17466. else
  17467. as_fn_error $? "ICU not found, specify with --with-icu." "$LINENO" 5
  17468. fi
  17469. fi
  17470. # BEGIN COPYRIGHT BLOCK
  17471. # Copyright (C) 2006 Red Hat, Inc.
  17472. # All rights reserved.
  17473. #
  17474. # License: GPL (version 3 or any later version).
  17475. # See LICENSE for details.
  17476. # END COPYRIGHT BLOCK
  17477. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Net-SNMP..." >&5
  17478. $as_echo "$as_me: checking for Net-SNMP..." >&6;}
  17479. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-netsnmp" >&5
  17480. $as_echo_n "checking for --with-netsnmp... " >&6; }
  17481. # Check whether --with-netsnmp was given.
  17482. if test "${with_netsnmp+set}" = set; then :
  17483. withval=$with_netsnmp;
  17484. if test "$withval" = "yes"; then
  17485. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17486. $as_echo "yes" >&6; }
  17487. elif test "$withval" = "no"; then
  17488. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17489. $as_echo "no" >&6; }
  17490. as_fn_error $? "Net-SNMP is required." "$LINENO" 5
  17491. elif test -d "$withval" -a -d "$withval/lib" -a -d "$withval/include"; then
  17492. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17493. $as_echo "using $withval" >&6; }
  17494. NETSNMPDIR=$withval
  17495. if test -f "$withval/include/net-snmp/net-snmp-includes.h"; then
  17496. netsnmp_inc="-I$withval/include"
  17497. else
  17498. as_fn_error $? "net-snmp-config.h not found" "$LINENO" 5
  17499. fi
  17500. netsnmp_lib="-L$withval/lib"
  17501. netsnmp_libdir="$withval/lib"
  17502. else
  17503. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17504. $as_echo "yes" >&6; }
  17505. as_fn_error $? "$withval not found" "$LINENO" 5
  17506. fi
  17507. else
  17508. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17509. $as_echo "yes" >&6; }
  17510. fi
  17511. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-netsnmp-inc" >&5
  17512. $as_echo_n "checking for --with-netsnmp-inc... " >&6; }
  17513. # Check whether --with-netsnmp-inc was given.
  17514. if test "${with_netsnmp_inc+set}" = set; then :
  17515. withval=$with_netsnmp_inc;
  17516. if test -f "$withval/net-snmp/net-snmp-includes.h"; then
  17517. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17518. $as_echo "using $withval" >&6; }
  17519. netsnmp_inc="-I$withval"
  17520. else
  17521. echo
  17522. as_fn_error $? "$withval/net-snmp/net-snmp-includes.h not found" "$LINENO" 5
  17523. fi
  17524. else
  17525. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17526. $as_echo "no" >&6; }
  17527. fi
  17528. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-netsnmp-lib" >&5
  17529. $as_echo_n "checking for --with-netsnmp-lib... " >&6; }
  17530. # Check whether --with-netsnmp-lib was given.
  17531. if test "${with_netsnmp_lib+set}" = set; then :
  17532. withval=$with_netsnmp_lib;
  17533. if test -d "$withval"
  17534. then
  17535. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17536. $as_echo "using $withval" >&6; }
  17537. netsnmp_lib="-L$withval"
  17538. netsnmp_libdir="$withval"
  17539. else
  17540. echo
  17541. as_fn_error $? "$withval not found" "$LINENO" 5
  17542. fi
  17543. else
  17544. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17545. $as_echo "no" >&6; }
  17546. fi
  17547. if test -z "$netsnmp_inc" -o -z "$netsnmp_lib"; then
  17548. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for net-snmp-includes.h" >&5
  17549. $as_echo_n "checking for net-snmp-includes.h... " >&6; }
  17550. if test -f /usr/include/net-snmp/net-snmp-includes.h; then
  17551. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using /usr/include/net-snmp/net-snmp-includes.h" >&5
  17552. $as_echo "using /usr/include/net-snmp/net-snmp-includes.h" >&6; }
  17553. netsnmp_inc="-I/usr/include"
  17554. else
  17555. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17556. $as_echo "no" >&6; }
  17557. as_fn_error $? "net-snmp not found, specify with --with-netsnmp." "$LINENO" 5
  17558. fi
  17559. fi
  17560. if test -n "$netsnmp_inc"; then
  17561. if test -x "$NETSNMPDIR/bin/net-snmp-config"; then
  17562. NETSNMP_CONFIG=$NETSNMPDIR/bin/net-snmp-config
  17563. else
  17564. # Extract the first word of "net-snmp-config", so it can be a program name with args.
  17565. set dummy net-snmp-config; ac_word=$2
  17566. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17567. $as_echo_n "checking for $ac_word... " >&6; }
  17568. if ${ac_cv_path_NETSNMP_CONFIG+:} false; then :
  17569. $as_echo_n "(cached) " >&6
  17570. else
  17571. case $NETSNMP_CONFIG in
  17572. [\\/]* | ?:[\\/]*)
  17573. ac_cv_path_NETSNMP_CONFIG="$NETSNMP_CONFIG" # Let the user override the test with a path.
  17574. ;;
  17575. *)
  17576. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17577. for as_dir in $PATH
  17578. do
  17579. IFS=$as_save_IFS
  17580. test -z "$as_dir" && as_dir=.
  17581. for ac_exec_ext in '' $ac_executable_extensions; do
  17582. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17583. ac_cv_path_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  17584. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17585. break 2
  17586. fi
  17587. done
  17588. done
  17589. IFS=$as_save_IFS
  17590. ;;
  17591. esac
  17592. fi
  17593. NETSNMP_CONFIG=$ac_cv_path_NETSNMP_CONFIG
  17594. if test -n "$NETSNMP_CONFIG"; then
  17595. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NETSNMP_CONFIG" >&5
  17596. $as_echo "$NETSNMP_CONFIG" >&6; }
  17597. else
  17598. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17599. $as_echo "no" >&6; }
  17600. fi
  17601. fi
  17602. if test -n "$NETSNMP_CONFIG"; then
  17603. netsnmp_link=`$NETSNMP_CONFIG --agent-libs`
  17604. else
  17605. as_fn_error $? "net-snmp-config not found, specify with --with-netsnmp." "$LINENO" 5
  17606. fi
  17607. else
  17608. as_fn_error $? "Net-SNMP not found, specify with --with-netsnmp." "$LINENO" 5
  17609. fi
  17610. # BEGIN COPYRIGHT BLOCK
  17611. # Copyright (C) 2008 Red Hat, Inc.
  17612. # All rights reserved.
  17613. #
  17614. # License: GPL (version 3 or any later version).
  17615. # See LICENSE for details.
  17616. # END COPYRIGHT BLOCK
  17617. # -*- tab-width: 4; -*-
  17618. # Configure paths for Kerberos
  17619. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Kerberos..." >&5
  17620. $as_echo "$as_me: checking for Kerberos..." >&6;}
  17621. if test -z "$with_kerberos" ; then
  17622. with_kerberos=yes # if not set on cmdline, set default
  17623. fi
  17624. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-kerberos" >&5
  17625. $as_echo_n "checking for --with-kerberos... " >&6; }
  17626. # Check whether --with-kerberos was given.
  17627. if test "${with_kerberos+set}" = set; then :
  17628. withval=$with_kerberos;
  17629. if test "x$withval" = "xyes"; then
  17630. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17631. $as_echo "yes" >&6; }
  17632. elif test "x$withval" = "xno"; then
  17633. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17634. $as_echo "no" >&6; }
  17635. with_kerberos=
  17636. elif test -d "$withval" -a -d "$withval/lib" -a -d "$withval/include" ; then
  17637. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17638. $as_echo "using $withval" >&6; }
  17639. kerberos_incdir="$withval/include"
  17640. kerberos_libdir="$withval/lib"
  17641. else
  17642. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17643. $as_echo "yes" >&6; }
  17644. as_fn_error $? "kerberos not found in $withval" "$LINENO" 5
  17645. fi
  17646. else
  17647. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17648. $as_echo "no" >&6; }
  17649. with_kerberos=
  17650. fi
  17651. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-kerberos-inc" >&5
  17652. $as_echo_n "checking for --with-kerberos-inc... " >&6; }
  17653. # Check whether --with-kerberos-inc was given.
  17654. if test "${with_kerberos_inc+set}" = set; then :
  17655. withval=$with_kerberos_inc;
  17656. if test -f "$withval"/krb5.h; then
  17657. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17658. $as_echo "using $withval" >&6; }
  17659. kerberos_incdir="$withval"
  17660. with_kerberos=yes # implies use of kerberos
  17661. else
  17662. echo
  17663. as_fn_error $? "$withval/krb5.h not found" "$LINENO" 5
  17664. fi
  17665. else
  17666. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17667. $as_echo "no" >&6; }
  17668. fi
  17669. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-kerberos-lib" >&5
  17670. $as_echo_n "checking for --with-kerberos-lib... " >&6; }
  17671. # Check whether --with-kerberos-lib was given.
  17672. if test "${with_kerberos_lib+set}" = set; then :
  17673. withval=$with_kerberos_lib;
  17674. if test -d "$withval"; then
  17675. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17676. $as_echo "using $withval" >&6; }
  17677. kerberos_libdir="$withval"
  17678. with_kerberos=yes # implies use of kerberos
  17679. else
  17680. echo
  17681. as_fn_error $? "$withval not found" "$LINENO" 5
  17682. fi
  17683. else
  17684. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17685. $as_echo "no" >&6; }
  17686. fi
  17687. if test -n "$with_kerberos" ; then
  17688. if test -z "$kerberos_incdir" -o -z "$kerberos_libdir" ; then
  17689. if test -z "$KRB5_CONFIG_BIN" ; then
  17690. # Extract the first word of "krb5-config", so it can be a program name with args.
  17691. set dummy krb5-config; ac_word=$2
  17692. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17693. $as_echo_n "checking for $ac_word... " >&6; }
  17694. if ${ac_cv_path_KRB5_CONFIG_BIN+:} false; then :
  17695. $as_echo_n "(cached) " >&6
  17696. else
  17697. case $KRB5_CONFIG_BIN in
  17698. [\\/]* | ?:[\\/]*)
  17699. ac_cv_path_KRB5_CONFIG_BIN="$KRB5_CONFIG_BIN" # Let the user override the test with a path.
  17700. ;;
  17701. *)
  17702. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17703. for as_dir in $PATH
  17704. do
  17705. IFS=$as_save_IFS
  17706. test -z "$as_dir" && as_dir=.
  17707. for ac_exec_ext in '' $ac_executable_extensions; do
  17708. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17709. ac_cv_path_KRB5_CONFIG_BIN="$as_dir/$ac_word$ac_exec_ext"
  17710. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17711. break 2
  17712. fi
  17713. done
  17714. done
  17715. IFS=$as_save_IFS
  17716. ;;
  17717. esac
  17718. fi
  17719. KRB5_CONFIG_BIN=$ac_cv_path_KRB5_CONFIG_BIN
  17720. if test -n "$KRB5_CONFIG_BIN"; then
  17721. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KRB5_CONFIG_BIN" >&5
  17722. $as_echo "$KRB5_CONFIG_BIN" >&6; }
  17723. else
  17724. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17725. $as_echo "no" >&6; }
  17726. fi
  17727. fi
  17728. if test -n "$KRB5_CONFIG_BIN" ; then
  17729. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kerberos with $KRB5_CONFIG_BIN" >&5
  17730. $as_echo_n "checking for kerberos with $KRB5_CONFIG_BIN... " >&6; }
  17731. if test -z "$kerberos_libdir" ; then
  17732. kerberos_lib=`$KRB5_CONFIG_BIN --libs krb5`
  17733. fi
  17734. if test -z "$kerberos_incdir" ; then
  17735. kerberos_inc=`$KRB5_CONFIG_BIN --cflags krb5`
  17736. fi
  17737. if test -n "$kerberos_lib" ; then
  17738. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using kerberos found with $KRB5_CONFIG_BIN" >&5
  17739. $as_echo "using kerberos found with $KRB5_CONFIG_BIN" >&6; }
  17740. have_krb5=yes
  17741. fi
  17742. fi
  17743. fi
  17744. fi
  17745. if test -n "$with_kerberos" -a -z "$kerberos_lib" ; then
  17746. # save these in order to set them to use the check macros below
  17747. # like AC_CHECK_HEADERS, AC_CHECK_LIB, and AC_CHECK_FUNCS
  17748. save_CPPFLAGS="$CPPFLAGS"
  17749. if test -n "$kerberos_incdir" ; then
  17750. CPPFLAGS="-I$kerberos_incdir $CPPFLAGS"
  17751. fi
  17752. save_LDFLAGS="$LDFLAGS"
  17753. if test -n "$kerberos_libdir" ; then
  17754. LDFLAGS="-L$kerberos_libdir $LDFLAGS"
  17755. fi
  17756. krb5_impl=mit
  17757. for ac_header in heim_err.h
  17758. do :
  17759. ac_fn_c_check_header_mongrel "$LINENO" "heim_err.h" "ac_cv_header_heim_err_h" "$ac_includes_default"
  17760. if test "x$ac_cv_header_heim_err_h" = xyes; then :
  17761. cat >>confdefs.h <<_ACEOF
  17762. #define HAVE_HEIM_ERR_H 1
  17763. _ACEOF
  17764. fi
  17765. done
  17766. if test $ac_cv_header_heim_err_h = yes ; then
  17767. krb5_impl=heimdal
  17768. fi
  17769. if test "x$krb5_impl" = "xmit"; then
  17770. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lk5crypto" >&5
  17771. $as_echo_n "checking for main in -lk5crypto... " >&6; }
  17772. if ${ac_cv_lib_k5crypto_main+:} false; then :
  17773. $as_echo_n "(cached) " >&6
  17774. else
  17775. ac_check_lib_save_LIBS=$LIBS
  17776. LIBS="-lk5crypto $LIBS"
  17777. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17778. /* end confdefs.h. */
  17779. int
  17780. main ()
  17781. {
  17782. return main ();
  17783. ;
  17784. return 0;
  17785. }
  17786. _ACEOF
  17787. if ac_fn_c_try_link "$LINENO"; then :
  17788. ac_cv_lib_k5crypto_main=yes
  17789. else
  17790. ac_cv_lib_k5crypto_main=no
  17791. fi
  17792. rm -f core conftest.err conftest.$ac_objext \
  17793. conftest$ac_exeext conftest.$ac_ext
  17794. LIBS=$ac_check_lib_save_LIBS
  17795. fi
  17796. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_main" >&5
  17797. $as_echo "$ac_cv_lib_k5crypto_main" >&6; }
  17798. if test "x$ac_cv_lib_k5crypto_main" = xyes; then :
  17799. krb5crypto=k5crypto
  17800. else
  17801. krb5crypto=crypto
  17802. fi
  17803. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lkrb5" >&5
  17804. $as_echo_n "checking for main in -lkrb5... " >&6; }
  17805. if ${ac_cv_lib_krb5_main+:} false; then :
  17806. $as_echo_n "(cached) " >&6
  17807. else
  17808. ac_check_lib_save_LIBS=$LIBS
  17809. LIBS="-lkrb5 -l$krb5crypto -lcom_err $LIBS"
  17810. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17811. /* end confdefs.h. */
  17812. int
  17813. main ()
  17814. {
  17815. return main ();
  17816. ;
  17817. return 0;
  17818. }
  17819. _ACEOF
  17820. if ac_fn_c_try_link "$LINENO"; then :
  17821. ac_cv_lib_krb5_main=yes
  17822. else
  17823. ac_cv_lib_krb5_main=no
  17824. fi
  17825. rm -f core conftest.err conftest.$ac_objext \
  17826. conftest$ac_exeext conftest.$ac_ext
  17827. LIBS=$ac_check_lib_save_LIBS
  17828. fi
  17829. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_main" >&5
  17830. $as_echo "$ac_cv_lib_krb5_main" >&6; }
  17831. if test "x$ac_cv_lib_krb5_main" = xyes; then :
  17832. have_krb5=yes
  17833. kerberos_lib="-lkrb5 -l$krb5crypto -lcom_err"
  17834. else
  17835. have_krb5=no
  17836. fi
  17837. elif test "x$krb5_impl" = "xheimdal"; then
  17838. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ldes" >&5
  17839. $as_echo_n "checking for main in -ldes... " >&6; }
  17840. if ${ac_cv_lib_des_main+:} false; then :
  17841. $as_echo_n "(cached) " >&6
  17842. else
  17843. ac_check_lib_save_LIBS=$LIBS
  17844. LIBS="-ldes $LIBS"
  17845. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17846. /* end confdefs.h. */
  17847. int
  17848. main ()
  17849. {
  17850. return main ();
  17851. ;
  17852. return 0;
  17853. }
  17854. _ACEOF
  17855. if ac_fn_c_try_link "$LINENO"; then :
  17856. ac_cv_lib_des_main=yes
  17857. else
  17858. ac_cv_lib_des_main=no
  17859. fi
  17860. rm -f core conftest.err conftest.$ac_objext \
  17861. conftest$ac_exeext conftest.$ac_ext
  17862. LIBS=$ac_check_lib_save_LIBS
  17863. fi
  17864. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_main" >&5
  17865. $as_echo "$ac_cv_lib_des_main" >&6; }
  17866. if test "x$ac_cv_lib_des_main" = xyes; then :
  17867. krb5crypto=des
  17868. else
  17869. krb5crypto=crypto
  17870. fi
  17871. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lkrb5" >&5
  17872. $as_echo_n "checking for main in -lkrb5... " >&6; }
  17873. if ${ac_cv_lib_krb5_main+:} false; then :
  17874. $as_echo_n "(cached) " >&6
  17875. else
  17876. ac_check_lib_save_LIBS=$LIBS
  17877. LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
  17878. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17879. /* end confdefs.h. */
  17880. int
  17881. main ()
  17882. {
  17883. return main ();
  17884. ;
  17885. return 0;
  17886. }
  17887. _ACEOF
  17888. if ac_fn_c_try_link "$LINENO"; then :
  17889. ac_cv_lib_krb5_main=yes
  17890. else
  17891. ac_cv_lib_krb5_main=no
  17892. fi
  17893. rm -f core conftest.err conftest.$ac_objext \
  17894. conftest$ac_exeext conftest.$ac_ext
  17895. LIBS=$ac_check_lib_save_LIBS
  17896. fi
  17897. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_main" >&5
  17898. $as_echo "$ac_cv_lib_krb5_main" >&6; }
  17899. if test "x$ac_cv_lib_krb5_main" = xyes; then :
  17900. have_krb5=yes
  17901. kerberos_lib="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err"
  17902. else
  17903. have_krb5=no
  17904. fi
  17905. $as_echo "#define HAVE_HEIMDAL_KERBEROS 1" >>confdefs.h
  17906. else
  17907. have_krb5=no
  17908. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unrecognized Kerberos5 Implementation" >&5
  17909. $as_echo "$as_me: WARNING: Unrecognized Kerberos5 Implementation" >&2;}
  17910. fi
  17911. # reset to original values
  17912. CPPFLAGS="$save_CPPFLAGS"
  17913. LDFLAGS="$save_LDFLAGS"
  17914. if test -n "$kerberos_incdir" ; then
  17915. kerberos_inc="-I$kerberos_incdir"
  17916. fi
  17917. if test -n "$kerberos_libdir" ; then
  17918. kerberos_lib="-L$kerberos_libdir $kerberos_lib"
  17919. fi
  17920. fi
  17921. if test -n "$with_kerberos" ; then
  17922. if test "x$have_krb5" = "xyes" ; then
  17923. $as_echo "#define HAVE_KRB5 1" >>confdefs.h
  17924. else
  17925. as_fn_error $? "Required Kerberos 5 support not available" "$LINENO" 5
  17926. fi
  17927. save_LIBS="$LIBS"
  17928. LIBS="$kerberos_lib"
  17929. save_CPPFLAGS="$CPPFLAGS"
  17930. CPPFLAGS="$kerberos_inc $CPPFLAGS"
  17931. for ac_func in krb5_cc_new_unique
  17932. do :
  17933. ac_fn_c_check_func "$LINENO" "krb5_cc_new_unique" "ac_cv_func_krb5_cc_new_unique"
  17934. if test "x$ac_cv_func_krb5_cc_new_unique" = xyes; then :
  17935. cat >>confdefs.h <<_ACEOF
  17936. #define HAVE_KRB5_CC_NEW_UNIQUE 1
  17937. _ACEOF
  17938. fi
  17939. done
  17940. LIBS="$save_LIBS"
  17941. CPPFLAGS="$save_CPPFLAGS"
  17942. fi
  17943. # BEGIN COPYRIGHT BLOCK
  17944. # Copyright (C) 2007 Red Hat, Inc.
  17945. # All rights reserved.
  17946. #
  17947. # License: GPL (version 3 or any later version).
  17948. # See LICENSE for details.
  17949. # END COPYRIGHT BLOCK
  17950. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCRE..." >&5
  17951. $as_echo "$as_me: checking for PCRE..." >&6;}
  17952. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pcre" >&5
  17953. $as_echo_n "checking for --with-pcre... " >&6; }
  17954. # Check whether --with-pcre was given.
  17955. if test "${with_pcre+set}" = set; then :
  17956. withval=$with_pcre;
  17957. if test "$withval" = "yes"; then
  17958. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17959. $as_echo "yes" >&6; }
  17960. elif test "$withval" = "no"; then
  17961. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17962. $as_echo "no" >&6; }
  17963. as_fn_error $? "PCRE is required." "$LINENO" 5
  17964. elif test -d "$withval"/include -a -d "$withval"/lib; then
  17965. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17966. $as_echo "using $withval" >&6; }
  17967. PCREDIR=$withval
  17968. pcre_lib="-L$PCREDIR/lib"
  17969. pcre_libdir="$PCREDIR/lib"
  17970. pcre_incdir="$PCREDIR/include"
  17971. if ! test -e "$pcre_incdir/pcre.h" ; then
  17972. as_fn_error $? "$withval include dir not found" "$LINENO" 5
  17973. fi
  17974. pcre_inc="-I$pcre_incdir"
  17975. else
  17976. echo
  17977. as_fn_error $? "$withval not found" "$LINENO" 5
  17978. fi
  17979. else
  17980. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17981. $as_echo "yes" >&6; }
  17982. fi
  17983. #
  17984. # if PCRE is not found yet, try pkg-config
  17985. if test -z "$pcre_inc" -o -z "$pcre_lib" -o -z "$pcre_libdir"; then
  17986. # Extract the first word of "pkg-config", so it can be a program name with args.
  17987. set dummy pkg-config; ac_word=$2
  17988. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17989. $as_echo_n "checking for $ac_word... " >&6; }
  17990. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  17991. $as_echo_n "(cached) " >&6
  17992. else
  17993. case $PKG_CONFIG in
  17994. [\\/]* | ?:[\\/]*)
  17995. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  17996. ;;
  17997. *)
  17998. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17999. for as_dir in $PATH
  18000. do
  18001. IFS=$as_save_IFS
  18002. test -z "$as_dir" && as_dir=.
  18003. for ac_exec_ext in '' $ac_executable_extensions; do
  18004. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18005. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  18006. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18007. break 2
  18008. fi
  18009. done
  18010. done
  18011. IFS=$as_save_IFS
  18012. ;;
  18013. esac
  18014. fi
  18015. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  18016. if test -n "$PKG_CONFIG"; then
  18017. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  18018. $as_echo "$PKG_CONFIG" >&6; }
  18019. else
  18020. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18021. $as_echo "no" >&6; }
  18022. fi
  18023. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcre with pkg-config" >&5
  18024. $as_echo_n "checking for pcre with pkg-config... " >&6; }
  18025. if test -n "$PKG_CONFIG"; then
  18026. if $PKG_CONFIG --exists pcre; then
  18027. pcre_inc=`$PKG_CONFIG --cflags-only-I pcre`
  18028. pcre_lib=`$PKG_CONFIG --libs-only-L pcre`
  18029. pcre_libdir=`$PKG_CONFIG --libs-only-L pcre | sed -e s/-L// | sed -e s/\ .*$//`
  18030. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using system PCRE" >&5
  18031. $as_echo "using system PCRE" >&6; }
  18032. elif $PKG_CONFIG --exists libpcre; then
  18033. pcre_inc=`$PKG_CONFIG --cflags-only-I libpcre`
  18034. pcre_lib=`$PKG_CONFIG --libs-only-L libpcre`
  18035. pcre_libdir=`$PKG_CONFIG --libs-only-L libpcre | sed -e s/-L// | sed -e s/\ .*$//`
  18036. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using system PCRE" >&5
  18037. $as_echo "using system PCRE" >&6; }
  18038. else
  18039. as_fn_error $? "PCRE not found, specify with --with-pcre." "$LINENO" 5
  18040. fi
  18041. fi
  18042. fi
  18043. if test -z "$pcre_inc"; then
  18044. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcre.h" >&5
  18045. $as_echo_n "checking for pcre.h... " >&6; }
  18046. if test -f "/usr/include/pcre/pcre.h"; then
  18047. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using /usr/include/pcre/pcre.h" >&5
  18048. $as_echo "using /usr/include/pcre/pcre.h" >&6; }
  18049. pcre_incdir="/usr/include/pcre"
  18050. pcre_inc="-I/usr/include/pcre"
  18051. pcre_lib='-L$(libdir)'
  18052. pcre_libdir='$(libdir)'
  18053. elif test -f "/usr/include/pcre.h"; then
  18054. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using /usr/include/pcre.h" >&5
  18055. $as_echo "using /usr/include/pcre.h" >&6; }
  18056. pcre_incdir="/usr/include"
  18057. pcre_inc="-I/usr/include"
  18058. pcre_lib='-L$(libdir)'
  18059. pcre_libdir='$(libdir)'
  18060. else
  18061. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18062. $as_echo "no" >&6; }
  18063. as_fn_error $? "PCRE not found, specify with --with-pcre." "$LINENO" 5
  18064. fi
  18065. fi
  18066. # BEGIN COPYRIGHT BLOCK
  18067. # Copyright (C) 2009 Red Hat, Inc.
  18068. # All rights reserved.
  18069. #
  18070. # License: GPL (version 3 or any later version).
  18071. # See LICENSE for details.
  18072. # END COPYRIGHT BLOCK
  18073. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SELinux..." >&5
  18074. $as_echo "$as_me: checking for SELinux..." >&6;}
  18075. # check for --with-selinux
  18076. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-selinux" >&5
  18077. $as_echo_n "checking for --with-selinux... " >&6; }
  18078. # Check whether --with-selinux was given.
  18079. if test "${with_selinux+set}" = set; then :
  18080. withval=$with_selinux;
  18081. if test "$withval" = "no"; then
  18082. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18083. $as_echo "no" >&6; }
  18084. else
  18085. with_selinux=yes
  18086. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18087. $as_echo "yes" >&6; }
  18088. fi
  18089. else
  18090. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18091. $as_echo "no" >&6; }
  18092. fi
  18093. # BEGIN COPYRIGHT BLOCK
  18094. # License: GPL (version 3 or any later version).
  18095. # See LICENSE for details.
  18096. # END COPYRIGHT BLOCK
  18097. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nunc-stans..." >&5
  18098. $as_echo "$as_me: checking for nunc-stans..." >&6;}
  18099. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-nunc-stans" >&5
  18100. $as_echo_n "checking for --with-nunc-stans... " >&6; }
  18101. # Check whether --with-nunc-stans was given.
  18102. if test "${with_nunc_stans+set}" = set; then :
  18103. withval=$with_nunc_stans;
  18104. if test "$withval" = "yes"; then
  18105. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18106. $as_echo "yes" >&6; }
  18107. elif test "$withval" = "no"; then
  18108. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18109. $as_echo "no" >&6; }
  18110. elif test -d "$withval"; then
  18111. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  18112. $as_echo "using $withval" >&6; }
  18113. nunc_stans_lib="-L$withval/lib"
  18114. nunc_stans_libdir="$withval/lib"
  18115. nunc_stans_incdir="$withval/include"
  18116. if ! test -e "$nunc_stans_incdir/nunc-stans/nunc-stans.h" ; then
  18117. as_fn_error $? "$withval include dir not found" "$LINENO" 5
  18118. fi
  18119. nunc_stans_inc="-I$nunc_stans_incdir"
  18120. else
  18121. echo
  18122. as_fn_error $? "$withval not found" "$LINENO" 5
  18123. fi
  18124. else
  18125. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18126. $as_echo "no" >&6; }
  18127. fi
  18128. # check for --with-nunc-stans-inc
  18129. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-nunc-stans-inc" >&5
  18130. $as_echo_n "checking for --with-nunc-stans-inc... " >&6; }
  18131. # Check whether --with-nunc-stans-inc was given.
  18132. if test "${with_nunc_stans_inc+set}" = set; then :
  18133. withval=$with_nunc_stans_inc;
  18134. if test -e "$withval"/nunc-stans/nunc-stans.h
  18135. then
  18136. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  18137. $as_echo "using $withval" >&6; }
  18138. nunc_stans_incdir="$withval"
  18139. nunc_stans_inc="-I$withval"
  18140. else
  18141. echo
  18142. as_fn_error $? "$withval not found" "$LINENO" 5
  18143. fi
  18144. else
  18145. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18146. $as_echo "no" >&6; }
  18147. fi
  18148. # check for --with-nunc-stans-lib
  18149. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-nunc-stans-lib" >&5
  18150. $as_echo_n "checking for --with-nunc-stans-lib... " >&6; }
  18151. # Check whether --with-nunc-stans-lib was given.
  18152. if test "${with_nunc_stans_lib+set}" = set; then :
  18153. withval=$with_nunc_stans_lib;
  18154. if test -d "$withval"
  18155. then
  18156. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  18157. $as_echo "using $withval" >&6; }
  18158. nunc_stans_lib="-L$withval"
  18159. nunc_stans_libdir="$withval"
  18160. else
  18161. echo
  18162. as_fn_error $? "$withval not found" "$LINENO" 5
  18163. fi
  18164. else
  18165. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18166. $as_echo "no" >&6; }
  18167. fi
  18168. # BEGIN COPYRIGHT BLOCK
  18169. # Copyright (C) 2015 Red Hat, Inc.
  18170. # All rights reserved.
  18171. #
  18172. # License: GPL (version 3 or any later version).
  18173. # See LICENSE for details.
  18174. # END COPYRIGHT BLOCK
  18175. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Systemd..." >&5
  18176. $as_echo "$as_me: checking for Systemd..." >&6;}
  18177. # check for --with-systemd
  18178. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-systemd" >&5
  18179. $as_echo_n "checking for --with-systemd... " >&6; }
  18180. # Check whether --with-systemd was given.
  18181. if test "${with_systemd+set}" = set; then :
  18182. withval=$with_systemd;
  18183. if test "$withval" = yes
  18184. then
  18185. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using systemd native features" >&5
  18186. $as_echo "using systemd native features" >&6; }
  18187. with_systemd=yes
  18188. else
  18189. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18190. $as_echo "no" >&6; }
  18191. fi
  18192. else
  18193. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18194. $as_echo "no" >&6; }
  18195. fi
  18196. if test "$with_systemd" = yes; then
  18197. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-journald" >&5
  18198. $as_echo_n "checking for --with-journald... " >&6; }
  18199. # Check whether --with-journald was given.
  18200. if test "${with_journald+set}" = set; then :
  18201. withval=$with_journald;
  18202. if test "$withval" = yes
  18203. then
  18204. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using journald logging: WARNING, this may cause system instability" >&5
  18205. $as_echo "using journald logging: WARNING, this may cause system instability" >&6; }
  18206. with_systemd=yes
  18207. else
  18208. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18209. $as_echo "no" >&6; }
  18210. fi
  18211. else
  18212. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18213. $as_echo "no" >&6; }
  18214. fi
  18215. # Extract the first word of "pkg-config", so it can be a program name with args.
  18216. set dummy pkg-config; ac_word=$2
  18217. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18218. $as_echo_n "checking for $ac_word... " >&6; }
  18219. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  18220. $as_echo_n "(cached) " >&6
  18221. else
  18222. case $PKG_CONFIG in
  18223. [\\/]* | ?:[\\/]*)
  18224. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  18225. ;;
  18226. *)
  18227. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18228. for as_dir in $PATH
  18229. do
  18230. IFS=$as_save_IFS
  18231. test -z "$as_dir" && as_dir=.
  18232. for ac_exec_ext in '' $ac_executable_extensions; do
  18233. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18234. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  18235. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18236. break 2
  18237. fi
  18238. done
  18239. done
  18240. IFS=$as_save_IFS
  18241. ;;
  18242. esac
  18243. fi
  18244. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  18245. if test -n "$PKG_CONFIG"; then
  18246. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  18247. $as_echo "$PKG_CONFIG" >&6; }
  18248. else
  18249. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18250. $as_echo "no" >&6; }
  18251. fi
  18252. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Systemd with pkg-config" >&5
  18253. $as_echo_n "checking for Systemd with pkg-config... " >&6; }
  18254. if test "$with_journald" = yes; then
  18255. if test -n "$PKG_CONFIG" && $PKG_CONFIG --exists systemd libsystemd-journal libsystemd-daemon ; then
  18256. systemd_inc=`$PKG_CONFIG --cflags-only-I systemd libsystemd-journal libsystemd-daemon`
  18257. systemd_lib=`$PKG_CONFIG --libs-only-l systemd libsystemd-journal libsystemd-daemon`
  18258. systemd_defs="-DWITH_SYSTEMD -DHAVE_JOURNALD"
  18259. else
  18260. as_fn_error $? "no Systemd / Journald pkg-config files" "$LINENO" 5
  18261. fi
  18262. else
  18263. if test -n "$PKG_CONFIG" && $PKG_CONFIG --exists systemd libsystemd-daemon ; then
  18264. systemd_inc=`$PKG_CONFIG --cflags-only-I systemd libsystemd-daemon`
  18265. systemd_lib=`$PKG_CONFIG --libs-only-l systemd libsystemd-daemon`
  18266. systemd_defs="-DWITH_SYSTEMD"
  18267. else
  18268. as_fn_error $? "no Systemd pkg-config files" "$LINENO" 5
  18269. fi
  18270. fi
  18271. # Check for the pkg config provided unit paths
  18272. if test -n "$PKG_CONFIG" ; then
  18273. default_systemdsystemunitdir=`$PKG_CONFIG --variable=systemdsystemunitdir systemd`
  18274. default_systemdsystemconfdir=`$PKG_CONFIG --variable=systemdsystemconfdir systemd`
  18275. fi
  18276. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-systemdsystemunitdir" >&5
  18277. $as_echo_n "checking for --with-systemdsystemunitdir... " >&6; }
  18278. # Check whether --with-systemdsystemunitdir was given.
  18279. if test "${with_systemdsystemunitdir+set}" = set; then :
  18280. withval=$with_systemdsystemunitdir;
  18281. fi
  18282. if test "$with_systemdsystemunitdir" = yes ; then
  18283. if test -n "$default_systemdsystemunitdir" ; then
  18284. with_systemdsystemunitdir=$default_systemdsystemunitdir
  18285. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_systemdsystemunitdir" >&5
  18286. $as_echo "$with_systemdsystemunitdir" >&6; }
  18287. else
  18288. as_fn_error $? "You must specify --with-systemdsystemconfdir=/full/path/to/systemd/system directory" "$LINENO" 5
  18289. fi
  18290. elif test "$with_systemdsystemunitdir" = no ; then
  18291. with_systemdsystemunitdir=
  18292. else
  18293. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_systemdsystemunitdir" >&5
  18294. $as_echo "$with_systemdsystemunitdir" >&6; }
  18295. fi
  18296. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-systemdsystemconfdir" >&5
  18297. $as_echo_n "checking for --with-systemdsystemconfdir... " >&6; }
  18298. # Check whether --with-systemdsystemconfdir was given.
  18299. if test "${with_systemdsystemconfdir+set}" = set; then :
  18300. withval=$with_systemdsystemconfdir;
  18301. fi
  18302. if test "$with_systemdsystemconfdir" = yes ; then
  18303. if test -n "$default_systemdsystemconfdir" ; then
  18304. with_systemdsystemconfdir=$default_systemdsystemconfdir
  18305. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_systemdsystemconfdir" >&5
  18306. $as_echo "$with_systemdsystemconfdir" >&6; }
  18307. else
  18308. as_fn_error $? "You must specify --with-systemdsystemconfdir=/full/path/to/systemd/system directory" "$LINENO" 5
  18309. fi
  18310. elif test "$with_systemdsystemconfdir" = no ; then
  18311. with_systemdsystemconfdir=
  18312. else
  18313. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_systemdsystemconfdir" >&5
  18314. $as_echo "$with_systemdsystemconfdir" >&6; }
  18315. fi
  18316. if test -n "$with_systemdsystemunitdir" -o -n "$with_systemdsystemconfdir" ; then
  18317. if test -z "$with_systemdgroupname" ; then
  18318. with_systemdgroupname=$PACKAGE_NAME.target
  18319. fi
  18320. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-systemdgroupname" >&5
  18321. $as_echo_n "checking for --with-systemdgroupname... " >&6; }
  18322. # Check whether --with-systemdgroupname was given.
  18323. if test "${with_systemdgroupname+set}" = set; then :
  18324. withval=$with_systemdgroupname;
  18325. fi
  18326. if test "$with_systemdgroupname" = yes ; then
  18327. as_fn_error $? "You must specify --with-systemdgroupname=name.of.group" "$LINENO" 5
  18328. elif test "$with_systemdgroupname" = no ; then
  18329. as_fn_error $? "You must specify --with-systemdgroupname=name.of.group" "$LINENO" 5
  18330. else
  18331. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_systemdgroupname" >&5
  18332. $as_echo "$with_systemdgroupname" >&6; }
  18333. fi
  18334. fi
  18335. fi
  18336. # End of with_systemd
  18337. if test -n "$with_systemd"; then
  18338. SYSTEMD_TRUE=
  18339. SYSTEMD_FALSE='#'
  18340. else
  18341. SYSTEMD_TRUE='#'
  18342. SYSTEMD_FALSE=
  18343. fi
  18344. if test -n "$with_journald"; then
  18345. JOURNALD_TRUE=
  18346. JOURNALD_FALSE='#'
  18347. else
  18348. JOURNALD_TRUE='#'
  18349. JOURNALD_FALSE=
  18350. fi
  18351. PACKAGE_BASE_VERSION=`echo $PACKAGE_VERSION | awk -F\. '{print $1"."$2}'`
  18352. # set sasl_path for wrapper scripts
  18353. if test -z "$sasl_libdir" ; then
  18354. sasl_path="$libdir/sasl2"
  18355. else
  18356. sasl_path="$sasl_libdir/sasl2"
  18357. fi
  18358. if test "$with_selinux" = "yes"; then
  18359. SELINUX_TRUE=
  18360. SELINUX_FALSE='#'
  18361. else
  18362. SELINUX_TRUE='#'
  18363. SELINUX_FALSE=
  18364. fi
  18365. if test "$with_openldap" = "yes"; then
  18366. OPENLDAP_TRUE=
  18367. OPENLDAP_FALSE='#'
  18368. else
  18369. OPENLDAP_TRUE='#'
  18370. OPENLDAP_FALSE=
  18371. fi
  18372. if test "$platform" = "solaris"; then
  18373. SOLARIS_TRUE=
  18374. SOLARIS_FALSE='#'
  18375. else
  18376. SOLARIS_TRUE='#'
  18377. SOLARIS_FALSE=
  18378. fi
  18379. if test "x$TARGET" = xSPARC; then
  18380. SPARC_TRUE=
  18381. SPARC_FALSE='#'
  18382. else
  18383. SPARC_TRUE='#'
  18384. SPARC_FALSE=
  18385. fi
  18386. # write out paths for binary components
  18387. # AC_DEFINE([USE_OLD_UNHASHED], [], [Use old unhashed code])
  18388. $as_echo "#define LDAP_DEBUG 1" >>confdefs.h
  18389. $as_echo "#define LDAP_DONT_USE_SMARTHEAP 1" >>confdefs.h
  18390. # libtool on fedora/rhel contains some gcc-isms which cause problems
  18391. # if not using gcc (e.g. Forte on Solaris, aCC on HP-UX)
  18392. # we remove them here
  18393. if test "$GCC" != yes ; then
  18394. { $as_echo "$as_me:${as_lineno-$LINENO}: Not using gcc - fixing libtool to remove gcc-isms . . ." >&5
  18395. $as_echo "$as_me: Not using gcc - fixing libtool to remove gcc-isms . . ." >&6;}
  18396. cp -p libtool libtool.orig
  18397. cp -p libtool libtool.tmp
  18398. # dnl note the special chars [ and ] - since m4 treats [ and ] specially,
  18399. # we have to use the quadrigraph [ for [ and ] for ] - and you thought
  18400. # perl produced write-only code . . .
  18401. sed -e '/^gcc_dir/ d' \
  18402. -e '/^gcc_ver/ d' \
  18403. -e 's/^predep_objects=.*echo \("[^"]*"\).*$/predep_objects=\1/' \
  18404. -e 's/^postdep_objects=.*echo \("[^"]*"\).*$/postdep_objects=\1/' \
  18405. -e 's/^compiler_lib_search_path=.*echo \("[^"]*"\).*$/compiler_lib_search_path=\1/' \
  18406. -e 's/^sys_lib_search_path_spec=.*echo \("[^"]*"\).*$/sys_lib_search_path_spec=\1/' \
  18407. libtool > libtool.tmp
  18408. cp -p libtool.tmp libtool
  18409. rm -f libtool.tmp
  18410. fi
  18411. ac_config_files="$ac_config_files Makefile rpm/389-ds-base.spec"
  18412. cat >confcache <<\_ACEOF
  18413. # This file is a shell script that caches the results of configure
  18414. # tests run on this system so they can be shared between configure
  18415. # scripts and configure runs, see configure's option --config-cache.
  18416. # It is not useful on other systems. If it contains results you don't
  18417. # want to keep, you may remove or edit it.
  18418. #
  18419. # config.status only pays attention to the cache file if you give it
  18420. # the --recheck option to rerun configure.
  18421. #
  18422. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  18423. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  18424. # following values.
  18425. _ACEOF
  18426. # The following way of writing the cache mishandles newlines in values,
  18427. # but we know of no workaround that is simple, portable, and efficient.
  18428. # So, we kill variables containing newlines.
  18429. # Ultrix sh set writes to stderr and can't be redirected directly,
  18430. # and sets the high bit in the cache file unless we assign to the vars.
  18431. (
  18432. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  18433. eval ac_val=\$$ac_var
  18434. case $ac_val in #(
  18435. *${as_nl}*)
  18436. case $ac_var in #(
  18437. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  18438. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  18439. esac
  18440. case $ac_var in #(
  18441. _ | IFS | as_nl) ;; #(
  18442. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  18443. *) { eval $ac_var=; unset $ac_var;} ;;
  18444. esac ;;
  18445. esac
  18446. done
  18447. (set) 2>&1 |
  18448. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  18449. *${as_nl}ac_space=\ *)
  18450. # `set' does not quote correctly, so add quotes: double-quote
  18451. # substitution turns \\\\ into \\, and sed turns \\ into \.
  18452. sed -n \
  18453. "s/'/'\\\\''/g;
  18454. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  18455. ;; #(
  18456. *)
  18457. # `set' quotes correctly as required by POSIX, so do not add quotes.
  18458. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  18459. ;;
  18460. esac |
  18461. sort
  18462. ) |
  18463. sed '
  18464. /^ac_cv_env_/b end
  18465. t clear
  18466. :clear
  18467. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  18468. t end
  18469. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  18470. :end' >>confcache
  18471. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  18472. if test -w "$cache_file"; then
  18473. if test "x$cache_file" != "x/dev/null"; then
  18474. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  18475. $as_echo "$as_me: updating cache $cache_file" >&6;}
  18476. if test ! -f "$cache_file" || test -h "$cache_file"; then
  18477. cat confcache >"$cache_file"
  18478. else
  18479. case $cache_file in #(
  18480. */* | ?:*)
  18481. mv -f confcache "$cache_file"$$ &&
  18482. mv -f "$cache_file"$$ "$cache_file" ;; #(
  18483. *)
  18484. mv -f confcache "$cache_file" ;;
  18485. esac
  18486. fi
  18487. fi
  18488. else
  18489. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  18490. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  18491. fi
  18492. fi
  18493. rm -f confcache
  18494. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  18495. # Let make expand exec_prefix.
  18496. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  18497. DEFS=-DHAVE_CONFIG_H
  18498. ac_libobjs=
  18499. ac_ltlibobjs=
  18500. U=
  18501. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  18502. # 1. Remove the extension, and $U if already installed.
  18503. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  18504. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  18505. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  18506. # will be set to the directory where LIBOBJS objects are built.
  18507. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  18508. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  18509. done
  18510. LIBOBJS=$ac_libobjs
  18511. LTLIBOBJS=$ac_ltlibobjs
  18512. { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  18513. $as_echo_n "checking that generated files are newer than configure... " >&6; }
  18514. if test -n "$am_sleep_pid"; then
  18515. # Hide warnings about reused PIDs.
  18516. wait $am_sleep_pid 2>/dev/null
  18517. fi
  18518. { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
  18519. $as_echo "done" >&6; }
  18520. if test -n "$EXEEXT"; then
  18521. am__EXEEXT_TRUE=
  18522. am__EXEEXT_FALSE='#'
  18523. else
  18524. am__EXEEXT_TRUE='#'
  18525. am__EXEEXT_FALSE=
  18526. fi
  18527. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  18528. as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
  18529. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18530. fi
  18531. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  18532. as_fn_error $? "conditional \"AMDEP\" was never defined.
  18533. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18534. fi
  18535. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  18536. as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
  18537. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18538. fi
  18539. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  18540. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  18541. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18542. fi
  18543. if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
  18544. as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
  18545. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18546. fi
  18547. if test -z "${RPM_HARDEND_CC_TRUE}" && test -z "${RPM_HARDEND_CC_FALSE}"; then
  18548. as_fn_error $? "conditional \"RPM_HARDEND_CC\" was never defined.
  18549. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18550. fi
  18551. if test -z "${BUNDLE_TRUE}" && test -z "${BUNDLE_FALSE}"; then
  18552. as_fn_error $? "conditional \"BUNDLE\" was never defined.
  18553. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18554. fi
  18555. if test -z "${enable_pam_passthru_TRUE}" && test -z "${enable_pam_passthru_FALSE}"; then
  18556. as_fn_error $? "conditional \"enable_pam_passthru\" was never defined.
  18557. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18558. fi
  18559. if test -z "${enable_dna_TRUE}" && test -z "${enable_dna_FALSE}"; then
  18560. as_fn_error $? "conditional \"enable_dna\" was never defined.
  18561. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18562. fi
  18563. if test -z "${enable_ldapi_TRUE}" && test -z "${enable_ldapi_FALSE}"; then
  18564. as_fn_error $? "conditional \"enable_ldapi\" was never defined.
  18565. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18566. fi
  18567. if test -z "${enable_autobind_TRUE}" && test -z "${enable_autobind_FALSE}"; then
  18568. as_fn_error $? "conditional \"enable_autobind\" was never defined.
  18569. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18570. fi
  18571. if test -z "${enable_auto_dn_suffix_TRUE}" && test -z "${enable_auto_dn_suffix_FALSE}"; then
  18572. as_fn_error $? "conditional \"enable_auto_dn_suffix\" was never defined.
  18573. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18574. fi
  18575. if test -z "${enable_bitwise_TRUE}" && test -z "${enable_bitwise_FALSE}"; then
  18576. as_fn_error $? "conditional \"enable_bitwise\" was never defined.
  18577. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18578. fi
  18579. if test -z "${enable_presence_TRUE}" && test -z "${enable_presence_FALSE}"; then
  18580. as_fn_error $? "conditional \"enable_presence\" was never defined.
  18581. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18582. fi
  18583. if test -z "${enable_acctpolicy_TRUE}" && test -z "${enable_acctpolicy_FALSE}"; then
  18584. as_fn_error $? "conditional \"enable_acctpolicy\" was never defined.
  18585. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18586. fi
  18587. if test -z "${enable_posix_winsync_TRUE}" && test -z "${enable_posix_winsync_FALSE}"; then
  18588. as_fn_error $? "conditional \"enable_posix_winsync\" was never defined.
  18589. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18590. fi
  18591. if test -z "${enable_nunc_stans_TRUE}" && test -z "${enable_nunc_stans_FALSE}"; then
  18592. as_fn_error $? "conditional \"enable_nunc_stans\" was never defined.
  18593. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18594. fi
  18595. if test -z "${WINNT_TRUE}" && test -z "${WINNT_FALSE}"; then
  18596. as_fn_error $? "conditional \"WINNT\" was never defined.
  18597. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18598. fi
  18599. if test -z "${INITDDIR_TRUE}" && test -z "${INITDDIR_FALSE}"; then
  18600. as_fn_error $? "conditional \"INITDDIR\" was never defined.
  18601. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18602. fi
  18603. if test -z "${HPUX_TRUE}" && test -z "${HPUX_FALSE}"; then
  18604. as_fn_error $? "conditional \"HPUX\" was never defined.
  18605. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18606. fi
  18607. if test -z "${SOLARIS_TRUE}" && test -z "${SOLARIS_FALSE}"; then
  18608. as_fn_error $? "conditional \"SOLARIS\" was never defined.
  18609. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18610. fi
  18611. if test -z "${SYSTEMD_TRUE}" && test -z "${SYSTEMD_FALSE}"; then
  18612. as_fn_error $? "conditional \"SYSTEMD\" was never defined.
  18613. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18614. fi
  18615. if test -z "${JOURNALD_TRUE}" && test -z "${JOURNALD_FALSE}"; then
  18616. as_fn_error $? "conditional \"JOURNALD\" was never defined.
  18617. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18618. fi
  18619. if test -z "${SELINUX_TRUE}" && test -z "${SELINUX_FALSE}"; then
  18620. as_fn_error $? "conditional \"SELINUX\" was never defined.
  18621. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18622. fi
  18623. if test -z "${OPENLDAP_TRUE}" && test -z "${OPENLDAP_FALSE}"; then
  18624. as_fn_error $? "conditional \"OPENLDAP\" was never defined.
  18625. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18626. fi
  18627. if test -z "${SOLARIS_TRUE}" && test -z "${SOLARIS_FALSE}"; then
  18628. as_fn_error $? "conditional \"SOLARIS\" was never defined.
  18629. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18630. fi
  18631. if test -z "${SPARC_TRUE}" && test -z "${SPARC_FALSE}"; then
  18632. as_fn_error $? "conditional \"SPARC\" was never defined.
  18633. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18634. fi
  18635. : "${CONFIG_STATUS=./config.status}"
  18636. ac_write_fail=0
  18637. ac_clean_files_save=$ac_clean_files
  18638. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  18639. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  18640. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  18641. as_write_fail=0
  18642. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  18643. #! $SHELL
  18644. # Generated by $as_me.
  18645. # Run this file to recreate the current configuration.
  18646. # Compiler output produced by configure, useful for debugging
  18647. # configure, is in config.log if it exists.
  18648. debug=false
  18649. ac_cs_recheck=false
  18650. ac_cs_silent=false
  18651. SHELL=\${CONFIG_SHELL-$SHELL}
  18652. export SHELL
  18653. _ASEOF
  18654. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  18655. ## -------------------- ##
  18656. ## M4sh Initialization. ##
  18657. ## -------------------- ##
  18658. # Be more Bourne compatible
  18659. DUALCASE=1; export DUALCASE # for MKS sh
  18660. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  18661. emulate sh
  18662. NULLCMD=:
  18663. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  18664. # is contrary to our usage. Disable this feature.
  18665. alias -g '${1+"$@"}'='"$@"'
  18666. setopt NO_GLOB_SUBST
  18667. else
  18668. case `(set -o) 2>/dev/null` in #(
  18669. *posix*) :
  18670. set -o posix ;; #(
  18671. *) :
  18672. ;;
  18673. esac
  18674. fi
  18675. as_nl='
  18676. '
  18677. export as_nl
  18678. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  18679. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  18680. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  18681. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  18682. # Prefer a ksh shell builtin over an external printf program on Solaris,
  18683. # but without wasting forks for bash or zsh.
  18684. if test -z "$BASH_VERSION$ZSH_VERSION" \
  18685. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  18686. as_echo='print -r --'
  18687. as_echo_n='print -rn --'
  18688. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  18689. as_echo='printf %s\n'
  18690. as_echo_n='printf %s'
  18691. else
  18692. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  18693. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  18694. as_echo_n='/usr/ucb/echo -n'
  18695. else
  18696. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  18697. as_echo_n_body='eval
  18698. arg=$1;
  18699. case $arg in #(
  18700. *"$as_nl"*)
  18701. expr "X$arg" : "X\\(.*\\)$as_nl";
  18702. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  18703. esac;
  18704. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  18705. '
  18706. export as_echo_n_body
  18707. as_echo_n='sh -c $as_echo_n_body as_echo'
  18708. fi
  18709. export as_echo_body
  18710. as_echo='sh -c $as_echo_body as_echo'
  18711. fi
  18712. # The user is always right.
  18713. if test "${PATH_SEPARATOR+set}" != set; then
  18714. PATH_SEPARATOR=:
  18715. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  18716. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  18717. PATH_SEPARATOR=';'
  18718. }
  18719. fi
  18720. # IFS
  18721. # We need space, tab and new line, in precisely that order. Quoting is
  18722. # there to prevent editors from complaining about space-tab.
  18723. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  18724. # splitting by setting IFS to empty value.)
  18725. IFS=" "" $as_nl"
  18726. # Find who we are. Look in the path if we contain no directory separator.
  18727. as_myself=
  18728. case $0 in #((
  18729. *[\\/]* ) as_myself=$0 ;;
  18730. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18731. for as_dir in $PATH
  18732. do
  18733. IFS=$as_save_IFS
  18734. test -z "$as_dir" && as_dir=.
  18735. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  18736. done
  18737. IFS=$as_save_IFS
  18738. ;;
  18739. esac
  18740. # We did not find ourselves, most probably we were run as `sh COMMAND'
  18741. # in which case we are not to be found in the path.
  18742. if test "x$as_myself" = x; then
  18743. as_myself=$0
  18744. fi
  18745. if test ! -f "$as_myself"; then
  18746. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  18747. exit 1
  18748. fi
  18749. # Unset variables that we do not need and which cause bugs (e.g. in
  18750. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  18751. # suppresses any "Segmentation fault" message there. '((' could
  18752. # trigger a bug in pdksh 5.2.14.
  18753. for as_var in BASH_ENV ENV MAIL MAILPATH
  18754. do eval test x\${$as_var+set} = xset \
  18755. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  18756. done
  18757. PS1='$ '
  18758. PS2='> '
  18759. PS4='+ '
  18760. # NLS nuisances.
  18761. LC_ALL=C
  18762. export LC_ALL
  18763. LANGUAGE=C
  18764. export LANGUAGE
  18765. # CDPATH.
  18766. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  18767. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  18768. # ----------------------------------------
  18769. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  18770. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  18771. # script with STATUS, using 1 if that was 0.
  18772. as_fn_error ()
  18773. {
  18774. as_status=$1; test $as_status -eq 0 && as_status=1
  18775. if test "$4"; then
  18776. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  18777. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  18778. fi
  18779. $as_echo "$as_me: error: $2" >&2
  18780. as_fn_exit $as_status
  18781. } # as_fn_error
  18782. # as_fn_set_status STATUS
  18783. # -----------------------
  18784. # Set $? to STATUS, without forking.
  18785. as_fn_set_status ()
  18786. {
  18787. return $1
  18788. } # as_fn_set_status
  18789. # as_fn_exit STATUS
  18790. # -----------------
  18791. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  18792. as_fn_exit ()
  18793. {
  18794. set +e
  18795. as_fn_set_status $1
  18796. exit $1
  18797. } # as_fn_exit
  18798. # as_fn_unset VAR
  18799. # ---------------
  18800. # Portably unset VAR.
  18801. as_fn_unset ()
  18802. {
  18803. { eval $1=; unset $1;}
  18804. }
  18805. as_unset=as_fn_unset
  18806. # as_fn_append VAR VALUE
  18807. # ----------------------
  18808. # Append the text in VALUE to the end of the definition contained in VAR. Take
  18809. # advantage of any shell optimizations that allow amortized linear growth over
  18810. # repeated appends, instead of the typical quadratic growth present in naive
  18811. # implementations.
  18812. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  18813. eval 'as_fn_append ()
  18814. {
  18815. eval $1+=\$2
  18816. }'
  18817. else
  18818. as_fn_append ()
  18819. {
  18820. eval $1=\$$1\$2
  18821. }
  18822. fi # as_fn_append
  18823. # as_fn_arith ARG...
  18824. # ------------------
  18825. # Perform arithmetic evaluation on the ARGs, and store the result in the
  18826. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  18827. # must be portable across $(()) and expr.
  18828. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  18829. eval 'as_fn_arith ()
  18830. {
  18831. as_val=$(( $* ))
  18832. }'
  18833. else
  18834. as_fn_arith ()
  18835. {
  18836. as_val=`expr "$@" || test $? -eq 1`
  18837. }
  18838. fi # as_fn_arith
  18839. if expr a : '\(a\)' >/dev/null 2>&1 &&
  18840. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  18841. as_expr=expr
  18842. else
  18843. as_expr=false
  18844. fi
  18845. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  18846. as_basename=basename
  18847. else
  18848. as_basename=false
  18849. fi
  18850. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  18851. as_dirname=dirname
  18852. else
  18853. as_dirname=false
  18854. fi
  18855. as_me=`$as_basename -- "$0" ||
  18856. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  18857. X"$0" : 'X\(//\)$' \| \
  18858. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  18859. $as_echo X/"$0" |
  18860. sed '/^.*\/\([^/][^/]*\)\/*$/{
  18861. s//\1/
  18862. q
  18863. }
  18864. /^X\/\(\/\/\)$/{
  18865. s//\1/
  18866. q
  18867. }
  18868. /^X\/\(\/\).*/{
  18869. s//\1/
  18870. q
  18871. }
  18872. s/.*/./; q'`
  18873. # Avoid depending upon Character Ranges.
  18874. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  18875. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  18876. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  18877. as_cr_digits='0123456789'
  18878. as_cr_alnum=$as_cr_Letters$as_cr_digits
  18879. ECHO_C= ECHO_N= ECHO_T=
  18880. case `echo -n x` in #(((((
  18881. -n*)
  18882. case `echo 'xy\c'` in
  18883. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  18884. xy) ECHO_C='\c';;
  18885. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  18886. ECHO_T=' ';;
  18887. esac;;
  18888. *)
  18889. ECHO_N='-n';;
  18890. esac
  18891. rm -f conf$$ conf$$.exe conf$$.file
  18892. if test -d conf$$.dir; then
  18893. rm -f conf$$.dir/conf$$.file
  18894. else
  18895. rm -f conf$$.dir
  18896. mkdir conf$$.dir 2>/dev/null
  18897. fi
  18898. if (echo >conf$$.file) 2>/dev/null; then
  18899. if ln -s conf$$.file conf$$ 2>/dev/null; then
  18900. as_ln_s='ln -s'
  18901. # ... but there are two gotchas:
  18902. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  18903. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  18904. # In both cases, we have to default to `cp -pR'.
  18905. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  18906. as_ln_s='cp -pR'
  18907. elif ln conf$$.file conf$$ 2>/dev/null; then
  18908. as_ln_s=ln
  18909. else
  18910. as_ln_s='cp -pR'
  18911. fi
  18912. else
  18913. as_ln_s='cp -pR'
  18914. fi
  18915. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  18916. rmdir conf$$.dir 2>/dev/null
  18917. # as_fn_mkdir_p
  18918. # -------------
  18919. # Create "$as_dir" as a directory, including parents if necessary.
  18920. as_fn_mkdir_p ()
  18921. {
  18922. case $as_dir in #(
  18923. -*) as_dir=./$as_dir;;
  18924. esac
  18925. test -d "$as_dir" || eval $as_mkdir_p || {
  18926. as_dirs=
  18927. while :; do
  18928. case $as_dir in #(
  18929. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  18930. *) as_qdir=$as_dir;;
  18931. esac
  18932. as_dirs="'$as_qdir' $as_dirs"
  18933. as_dir=`$as_dirname -- "$as_dir" ||
  18934. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  18935. X"$as_dir" : 'X\(//\)[^/]' \| \
  18936. X"$as_dir" : 'X\(//\)$' \| \
  18937. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  18938. $as_echo X"$as_dir" |
  18939. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  18940. s//\1/
  18941. q
  18942. }
  18943. /^X\(\/\/\)[^/].*/{
  18944. s//\1/
  18945. q
  18946. }
  18947. /^X\(\/\/\)$/{
  18948. s//\1/
  18949. q
  18950. }
  18951. /^X\(\/\).*/{
  18952. s//\1/
  18953. q
  18954. }
  18955. s/.*/./; q'`
  18956. test -d "$as_dir" && break
  18957. done
  18958. test -z "$as_dirs" || eval "mkdir $as_dirs"
  18959. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  18960. } # as_fn_mkdir_p
  18961. if mkdir -p . 2>/dev/null; then
  18962. as_mkdir_p='mkdir -p "$as_dir"'
  18963. else
  18964. test -d ./-p && rmdir ./-p
  18965. as_mkdir_p=false
  18966. fi
  18967. # as_fn_executable_p FILE
  18968. # -----------------------
  18969. # Test if FILE is an executable regular file.
  18970. as_fn_executable_p ()
  18971. {
  18972. test -f "$1" && test -x "$1"
  18973. } # as_fn_executable_p
  18974. as_test_x='test -x'
  18975. as_executable_p=as_fn_executable_p
  18976. # Sed expression to map a string onto a valid CPP name.
  18977. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  18978. # Sed expression to map a string onto a valid variable name.
  18979. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  18980. exec 6>&1
  18981. ## ----------------------------------- ##
  18982. ## Main body of $CONFIG_STATUS script. ##
  18983. ## ----------------------------------- ##
  18984. _ASEOF
  18985. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  18986. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18987. # Save the log message, to keep $0 and so on meaningful, and to
  18988. # report actual input values of CONFIG_FILES etc. instead of their
  18989. # values after options handling.
  18990. ac_log="
  18991. This file was extended by dirsrv $as_me 1.0, which was
  18992. generated by GNU Autoconf 2.69. Invocation command line was
  18993. CONFIG_FILES = $CONFIG_FILES
  18994. CONFIG_HEADERS = $CONFIG_HEADERS
  18995. CONFIG_LINKS = $CONFIG_LINKS
  18996. CONFIG_COMMANDS = $CONFIG_COMMANDS
  18997. $ $0 $@
  18998. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  18999. "
  19000. _ACEOF
  19001. case $ac_config_files in *"
  19002. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  19003. esac
  19004. case $ac_config_headers in *"
  19005. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  19006. esac
  19007. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19008. # Files that config.status was made for.
  19009. config_files="$ac_config_files"
  19010. config_headers="$ac_config_headers"
  19011. config_commands="$ac_config_commands"
  19012. _ACEOF
  19013. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19014. ac_cs_usage="\
  19015. \`$as_me' instantiates files and other configuration actions
  19016. from templates according to the current configuration. Unless the files
  19017. and actions are specified as TAGs, all are instantiated by default.
  19018. Usage: $0 [OPTION]... [TAG]...
  19019. -h, --help print this help, then exit
  19020. -V, --version print version number and configuration settings, then exit
  19021. --config print configuration, then exit
  19022. -q, --quiet, --silent
  19023. do not print progress messages
  19024. -d, --debug don't remove temporary files
  19025. --recheck update $as_me by reconfiguring in the same conditions
  19026. --file=FILE[:TEMPLATE]
  19027. instantiate the configuration file FILE
  19028. --header=FILE[:TEMPLATE]
  19029. instantiate the configuration header FILE
  19030. Configuration files:
  19031. $config_files
  19032. Configuration headers:
  19033. $config_headers
  19034. Configuration commands:
  19035. $config_commands
  19036. Report bugs to <http://bugzilla.redhat.com/>."
  19037. _ACEOF
  19038. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19039. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  19040. ac_cs_version="\\
  19041. dirsrv config.status 1.0
  19042. configured by $0, generated by GNU Autoconf 2.69,
  19043. with options \\"\$ac_cs_config\\"
  19044. Copyright (C) 2012 Free Software Foundation, Inc.
  19045. This config.status script is free software; the Free Software Foundation
  19046. gives unlimited permission to copy, distribute and modify it."
  19047. ac_pwd='$ac_pwd'
  19048. srcdir='$srcdir'
  19049. INSTALL='$INSTALL'
  19050. MKDIR_P='$MKDIR_P'
  19051. AWK='$AWK'
  19052. test -n "\$AWK" || AWK=awk
  19053. _ACEOF
  19054. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19055. # The default lists apply if the user does not specify any file.
  19056. ac_need_defaults=:
  19057. while test $# != 0
  19058. do
  19059. case $1 in
  19060. --*=?*)
  19061. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  19062. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  19063. ac_shift=:
  19064. ;;
  19065. --*=)
  19066. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  19067. ac_optarg=
  19068. ac_shift=:
  19069. ;;
  19070. *)
  19071. ac_option=$1
  19072. ac_optarg=$2
  19073. ac_shift=shift
  19074. ;;
  19075. esac
  19076. case $ac_option in
  19077. # Handling of the options.
  19078. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  19079. ac_cs_recheck=: ;;
  19080. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  19081. $as_echo "$ac_cs_version"; exit ;;
  19082. --config | --confi | --conf | --con | --co | --c )
  19083. $as_echo "$ac_cs_config"; exit ;;
  19084. --debug | --debu | --deb | --de | --d | -d )
  19085. debug=: ;;
  19086. --file | --fil | --fi | --f )
  19087. $ac_shift
  19088. case $ac_optarg in
  19089. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  19090. '') as_fn_error $? "missing file argument" ;;
  19091. esac
  19092. as_fn_append CONFIG_FILES " '$ac_optarg'"
  19093. ac_need_defaults=false;;
  19094. --header | --heade | --head | --hea )
  19095. $ac_shift
  19096. case $ac_optarg in
  19097. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  19098. esac
  19099. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  19100. ac_need_defaults=false;;
  19101. --he | --h)
  19102. # Conflict between --help and --header
  19103. as_fn_error $? "ambiguous option: \`$1'
  19104. Try \`$0 --help' for more information.";;
  19105. --help | --hel | -h )
  19106. $as_echo "$ac_cs_usage"; exit ;;
  19107. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  19108. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  19109. ac_cs_silent=: ;;
  19110. # This is an error.
  19111. -*) as_fn_error $? "unrecognized option: \`$1'
  19112. Try \`$0 --help' for more information." ;;
  19113. *) as_fn_append ac_config_targets " $1"
  19114. ac_need_defaults=false ;;
  19115. esac
  19116. shift
  19117. done
  19118. ac_configure_extra_args=
  19119. if $ac_cs_silent; then
  19120. exec 6>/dev/null
  19121. ac_configure_extra_args="$ac_configure_extra_args --silent"
  19122. fi
  19123. _ACEOF
  19124. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19125. if \$ac_cs_recheck; then
  19126. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  19127. shift
  19128. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  19129. CONFIG_SHELL='$SHELL'
  19130. export CONFIG_SHELL
  19131. exec "\$@"
  19132. fi
  19133. _ACEOF
  19134. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19135. exec 5>>config.log
  19136. {
  19137. echo
  19138. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  19139. ## Running $as_me. ##
  19140. _ASBOX
  19141. $as_echo "$ac_log"
  19142. } >&5
  19143. _ACEOF
  19144. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19145. #
  19146. # INIT-COMMANDS
  19147. #
  19148. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  19149. # The HP-UX ksh and POSIX shell print the target directory to stdout
  19150. # if CDPATH is set.
  19151. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  19152. sed_quote_subst='$sed_quote_subst'
  19153. double_quote_subst='$double_quote_subst'
  19154. delay_variable_subst='$delay_variable_subst'
  19155. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  19156. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  19157. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  19158. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  19159. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  19160. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  19161. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  19162. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  19163. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  19164. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  19165. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  19166. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  19167. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  19168. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  19169. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  19170. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  19171. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  19172. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  19173. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  19174. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  19175. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  19176. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  19177. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  19178. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  19179. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  19180. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  19181. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  19182. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  19183. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  19184. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  19185. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  19186. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  19187. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  19188. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  19189. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  19190. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  19191. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  19192. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  19193. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  19194. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  19195. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  19196. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  19197. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  19198. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  19199. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  19200. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  19201. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  19202. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  19203. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  19204. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  19205. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  19206. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  19207. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  19208. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  19209. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  19210. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  19211. 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"`'
  19212. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  19213. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  19214. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  19215. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  19216. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  19217. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  19218. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  19219. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  19220. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  19221. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  19222. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  19223. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  19224. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  19225. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  19226. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  19227. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  19228. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  19229. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  19230. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  19231. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  19232. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  19233. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  19234. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  19235. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  19236. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  19237. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  19238. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  19239. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  19240. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  19241. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  19242. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  19243. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  19244. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  19245. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  19246. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  19247. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  19248. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  19249. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  19250. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  19251. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  19252. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  19253. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  19254. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  19255. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  19256. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  19257. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  19258. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  19259. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  19260. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  19261. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  19262. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  19263. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  19264. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  19265. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  19266. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  19267. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  19268. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  19269. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  19270. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  19271. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  19272. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  19273. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  19274. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  19275. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  19276. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  19277. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  19278. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  19279. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  19280. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  19281. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  19282. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  19283. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  19284. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  19285. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  19286. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  19287. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  19288. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  19289. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  19290. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  19291. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  19292. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  19293. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  19294. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  19295. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  19296. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  19297. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  19298. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  19299. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  19300. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  19301. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  19302. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  19303. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  19304. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  19305. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  19306. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  19307. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  19308. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  19309. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  19310. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  19311. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  19312. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  19313. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  19314. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  19315. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  19316. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  19317. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  19318. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  19319. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  19320. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  19321. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  19322. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  19323. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  19324. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  19325. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  19326. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  19327. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  19328. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  19329. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  19330. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  19331. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  19332. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  19333. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  19334. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  19335. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  19336. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  19337. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  19338. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  19339. LTCC='$LTCC'
  19340. LTCFLAGS='$LTCFLAGS'
  19341. compiler='$compiler_DEFAULT'
  19342. # A function that is used when there is no print builtin or printf.
  19343. func_fallback_echo ()
  19344. {
  19345. eval 'cat <<_LTECHO_EOF
  19346. \$1
  19347. _LTECHO_EOF'
  19348. }
  19349. # Quote evaled strings.
  19350. for var in SHELL \
  19351. ECHO \
  19352. PATH_SEPARATOR \
  19353. SED \
  19354. GREP \
  19355. EGREP \
  19356. FGREP \
  19357. LD \
  19358. NM \
  19359. LN_S \
  19360. lt_SP2NL \
  19361. lt_NL2SP \
  19362. reload_flag \
  19363. OBJDUMP \
  19364. deplibs_check_method \
  19365. file_magic_cmd \
  19366. file_magic_glob \
  19367. want_nocaseglob \
  19368. DLLTOOL \
  19369. sharedlib_from_linklib_cmd \
  19370. AR \
  19371. AR_FLAGS \
  19372. archiver_list_spec \
  19373. STRIP \
  19374. RANLIB \
  19375. CC \
  19376. CFLAGS \
  19377. compiler \
  19378. lt_cv_sys_global_symbol_pipe \
  19379. lt_cv_sys_global_symbol_to_cdecl \
  19380. lt_cv_sys_global_symbol_to_c_name_address \
  19381. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  19382. nm_file_list_spec \
  19383. lt_prog_compiler_no_builtin_flag \
  19384. lt_prog_compiler_pic \
  19385. lt_prog_compiler_wl \
  19386. lt_prog_compiler_static \
  19387. lt_cv_prog_compiler_c_o \
  19388. need_locks \
  19389. MANIFEST_TOOL \
  19390. DSYMUTIL \
  19391. NMEDIT \
  19392. LIPO \
  19393. OTOOL \
  19394. OTOOL64 \
  19395. shrext_cmds \
  19396. export_dynamic_flag_spec \
  19397. whole_archive_flag_spec \
  19398. compiler_needs_object \
  19399. with_gnu_ld \
  19400. allow_undefined_flag \
  19401. no_undefined_flag \
  19402. hardcode_libdir_flag_spec \
  19403. hardcode_libdir_separator \
  19404. exclude_expsyms \
  19405. include_expsyms \
  19406. file_list_spec \
  19407. variables_saved_for_relink \
  19408. libname_spec \
  19409. library_names_spec \
  19410. soname_spec \
  19411. install_override_mode \
  19412. finish_eval \
  19413. old_striplib \
  19414. striplib \
  19415. compiler_lib_search_dirs \
  19416. predep_objects \
  19417. postdep_objects \
  19418. predeps \
  19419. postdeps \
  19420. compiler_lib_search_path \
  19421. LD_CXX \
  19422. reload_flag_CXX \
  19423. compiler_CXX \
  19424. lt_prog_compiler_no_builtin_flag_CXX \
  19425. lt_prog_compiler_pic_CXX \
  19426. lt_prog_compiler_wl_CXX \
  19427. lt_prog_compiler_static_CXX \
  19428. lt_cv_prog_compiler_c_o_CXX \
  19429. export_dynamic_flag_spec_CXX \
  19430. whole_archive_flag_spec_CXX \
  19431. compiler_needs_object_CXX \
  19432. with_gnu_ld_CXX \
  19433. allow_undefined_flag_CXX \
  19434. no_undefined_flag_CXX \
  19435. hardcode_libdir_flag_spec_CXX \
  19436. hardcode_libdir_separator_CXX \
  19437. exclude_expsyms_CXX \
  19438. include_expsyms_CXX \
  19439. file_list_spec_CXX \
  19440. compiler_lib_search_dirs_CXX \
  19441. predep_objects_CXX \
  19442. postdep_objects_CXX \
  19443. predeps_CXX \
  19444. postdeps_CXX \
  19445. compiler_lib_search_path_CXX; do
  19446. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  19447. *[\\\\\\\`\\"\\\$]*)
  19448. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  19449. ;;
  19450. *)
  19451. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  19452. ;;
  19453. esac
  19454. done
  19455. # Double-quote double-evaled strings.
  19456. for var in reload_cmds \
  19457. old_postinstall_cmds \
  19458. old_postuninstall_cmds \
  19459. old_archive_cmds \
  19460. extract_expsyms_cmds \
  19461. old_archive_from_new_cmds \
  19462. old_archive_from_expsyms_cmds \
  19463. archive_cmds \
  19464. archive_expsym_cmds \
  19465. module_cmds \
  19466. module_expsym_cmds \
  19467. export_symbols_cmds \
  19468. prelink_cmds \
  19469. postlink_cmds \
  19470. postinstall_cmds \
  19471. postuninstall_cmds \
  19472. finish_cmds \
  19473. sys_lib_search_path_spec \
  19474. sys_lib_dlsearch_path_spec \
  19475. reload_cmds_CXX \
  19476. old_archive_cmds_CXX \
  19477. old_archive_from_new_cmds_CXX \
  19478. old_archive_from_expsyms_cmds_CXX \
  19479. archive_cmds_CXX \
  19480. archive_expsym_cmds_CXX \
  19481. module_cmds_CXX \
  19482. module_expsym_cmds_CXX \
  19483. export_symbols_cmds_CXX \
  19484. prelink_cmds_CXX \
  19485. postlink_cmds_CXX; do
  19486. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  19487. *[\\\\\\\`\\"\\\$]*)
  19488. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  19489. ;;
  19490. *)
  19491. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  19492. ;;
  19493. esac
  19494. done
  19495. ac_aux_dir='$ac_aux_dir'
  19496. xsi_shell='$xsi_shell'
  19497. lt_shell_append='$lt_shell_append'
  19498. # See if we are running on zsh, and set the options which allow our
  19499. # commands through without removal of \ escapes INIT.
  19500. if test -n "\${ZSH_VERSION+set}" ; then
  19501. setopt NO_GLOB_SUBST
  19502. fi
  19503. PACKAGE='$PACKAGE'
  19504. VERSION='$VERSION'
  19505. TIMESTAMP='$TIMESTAMP'
  19506. RM='$RM'
  19507. ofile='$ofile'
  19508. _ACEOF
  19509. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19510. # Handling of arguments.
  19511. for ac_config_target in $ac_config_targets
  19512. do
  19513. case $ac_config_target in
  19514. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  19515. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  19516. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  19517. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  19518. "rpm/389-ds-base.spec") CONFIG_FILES="$CONFIG_FILES rpm/389-ds-base.spec" ;;
  19519. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  19520. esac
  19521. done
  19522. # If the user did not use the arguments to specify the items to instantiate,
  19523. # then the envvar interface is used. Set only those that are not.
  19524. # We use the long form for the default assignment because of an extremely
  19525. # bizarre bug on SunOS 4.1.3.
  19526. if $ac_need_defaults; then
  19527. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  19528. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  19529. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  19530. fi
  19531. # Have a temporary directory for convenience. Make it in the build tree
  19532. # simply because there is no reason against having it here, and in addition,
  19533. # creating and moving files from /tmp can sometimes cause problems.
  19534. # Hook for its removal unless debugging.
  19535. # Note that there is a small window in which the directory will not be cleaned:
  19536. # after its creation but before its name has been assigned to `$tmp'.
  19537. $debug ||
  19538. {
  19539. tmp= ac_tmp=
  19540. trap 'exit_status=$?
  19541. : "${ac_tmp:=$tmp}"
  19542. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  19543. ' 0
  19544. trap 'as_fn_exit 1' 1 2 13 15
  19545. }
  19546. # Create a (secure) tmp directory for tmp files.
  19547. {
  19548. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  19549. test -d "$tmp"
  19550. } ||
  19551. {
  19552. tmp=./conf$$-$RANDOM
  19553. (umask 077 && mkdir "$tmp")
  19554. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  19555. ac_tmp=$tmp
  19556. # Set up the scripts for CONFIG_FILES section.
  19557. # No need to generate them if there are no CONFIG_FILES.
  19558. # This happens for instance with `./config.status config.h'.
  19559. if test -n "$CONFIG_FILES"; then
  19560. ac_cr=`echo X | tr X '\015'`
  19561. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  19562. # But we know of no other shell where ac_cr would be empty at this
  19563. # point, so we can use a bashism as a fallback.
  19564. if test "x$ac_cr" = x; then
  19565. eval ac_cr=\$\'\\r\'
  19566. fi
  19567. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  19568. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  19569. ac_cs_awk_cr='\\r'
  19570. else
  19571. ac_cs_awk_cr=$ac_cr
  19572. fi
  19573. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  19574. _ACEOF
  19575. {
  19576. echo "cat >conf$$subs.awk <<_ACEOF" &&
  19577. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  19578. echo "_ACEOF"
  19579. } >conf$$subs.sh ||
  19580. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  19581. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  19582. ac_delim='%!_!# '
  19583. for ac_last_try in false false false false false :; do
  19584. . ./conf$$subs.sh ||
  19585. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  19586. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  19587. if test $ac_delim_n = $ac_delim_num; then
  19588. break
  19589. elif $ac_last_try; then
  19590. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  19591. else
  19592. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  19593. fi
  19594. done
  19595. rm -f conf$$subs.sh
  19596. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19597. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  19598. _ACEOF
  19599. sed -n '
  19600. h
  19601. s/^/S["/; s/!.*/"]=/
  19602. p
  19603. g
  19604. s/^[^!]*!//
  19605. :repl
  19606. t repl
  19607. s/'"$ac_delim"'$//
  19608. t delim
  19609. :nl
  19610. h
  19611. s/\(.\{148\}\)..*/\1/
  19612. t more1
  19613. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  19614. p
  19615. n
  19616. b repl
  19617. :more1
  19618. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  19619. p
  19620. g
  19621. s/.\{148\}//
  19622. t nl
  19623. :delim
  19624. h
  19625. s/\(.\{148\}\)..*/\1/
  19626. t more2
  19627. s/["\\]/\\&/g; s/^/"/; s/$/"/
  19628. p
  19629. b
  19630. :more2
  19631. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  19632. p
  19633. g
  19634. s/.\{148\}//
  19635. t delim
  19636. ' <conf$$subs.awk | sed '
  19637. /^[^""]/{
  19638. N
  19639. s/\n//
  19640. }
  19641. ' >>$CONFIG_STATUS || ac_write_fail=1
  19642. rm -f conf$$subs.awk
  19643. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19644. _ACAWK
  19645. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  19646. for (key in S) S_is_set[key] = 1
  19647. FS = ""
  19648. }
  19649. {
  19650. line = $ 0
  19651. nfields = split(line, field, "@")
  19652. substed = 0
  19653. len = length(field[1])
  19654. for (i = 2; i < nfields; i++) {
  19655. key = field[i]
  19656. keylen = length(key)
  19657. if (S_is_set[key]) {
  19658. value = S[key]
  19659. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  19660. len += length(value) + length(field[++i])
  19661. substed = 1
  19662. } else
  19663. len += 1 + keylen
  19664. }
  19665. print line
  19666. }
  19667. _ACAWK
  19668. _ACEOF
  19669. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19670. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  19671. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  19672. else
  19673. cat
  19674. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  19675. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  19676. _ACEOF
  19677. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  19678. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  19679. # trailing colons and then remove the whole line if VPATH becomes empty
  19680. # (actually we leave an empty line to preserve line numbers).
  19681. if test "x$srcdir" = x.; then
  19682. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  19683. h
  19684. s///
  19685. s/^/:/
  19686. s/[ ]*$/:/
  19687. s/:\$(srcdir):/:/g
  19688. s/:\${srcdir}:/:/g
  19689. s/:@srcdir@:/:/g
  19690. s/^:*//
  19691. s/:*$//
  19692. x
  19693. s/\(=[ ]*\).*/\1/
  19694. G
  19695. s/\n//
  19696. s/^[^=]*=[ ]*$//
  19697. }'
  19698. fi
  19699. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19700. fi # test -n "$CONFIG_FILES"
  19701. # Set up the scripts for CONFIG_HEADERS section.
  19702. # No need to generate them if there are no CONFIG_HEADERS.
  19703. # This happens for instance with `./config.status Makefile'.
  19704. if test -n "$CONFIG_HEADERS"; then
  19705. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  19706. BEGIN {
  19707. _ACEOF
  19708. # Transform confdefs.h into an awk script `defines.awk', embedded as
  19709. # here-document in config.status, that substitutes the proper values into
  19710. # config.h.in to produce config.h.
  19711. # Create a delimiter string that does not exist in confdefs.h, to ease
  19712. # handling of long lines.
  19713. ac_delim='%!_!# '
  19714. for ac_last_try in false false :; do
  19715. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  19716. if test -z "$ac_tt"; then
  19717. break
  19718. elif $ac_last_try; then
  19719. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  19720. else
  19721. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  19722. fi
  19723. done
  19724. # For the awk script, D is an array of macro values keyed by name,
  19725. # likewise P contains macro parameters if any. Preserve backslash
  19726. # newline sequences.
  19727. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  19728. sed -n '
  19729. s/.\{148\}/&'"$ac_delim"'/g
  19730. t rset
  19731. :rset
  19732. s/^[ ]*#[ ]*define[ ][ ]*/ /
  19733. t def
  19734. d
  19735. :def
  19736. s/\\$//
  19737. t bsnl
  19738. s/["\\]/\\&/g
  19739. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  19740. D["\1"]=" \3"/p
  19741. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  19742. d
  19743. :bsnl
  19744. s/["\\]/\\&/g
  19745. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  19746. D["\1"]=" \3\\\\\\n"\\/p
  19747. t cont
  19748. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  19749. t cont
  19750. d
  19751. :cont
  19752. n
  19753. s/.\{148\}/&'"$ac_delim"'/g
  19754. t clear
  19755. :clear
  19756. s/\\$//
  19757. t bsnlc
  19758. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  19759. d
  19760. :bsnlc
  19761. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  19762. b cont
  19763. ' <confdefs.h | sed '
  19764. s/'"$ac_delim"'/"\\\
  19765. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  19766. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19767. for (key in D) D_is_set[key] = 1
  19768. FS = ""
  19769. }
  19770. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  19771. line = \$ 0
  19772. split(line, arg, " ")
  19773. if (arg[1] == "#") {
  19774. defundef = arg[2]
  19775. mac1 = arg[3]
  19776. } else {
  19777. defundef = substr(arg[1], 2)
  19778. mac1 = arg[2]
  19779. }
  19780. split(mac1, mac2, "(") #)
  19781. macro = mac2[1]
  19782. prefix = substr(line, 1, index(line, defundef) - 1)
  19783. if (D_is_set[macro]) {
  19784. # Preserve the white space surrounding the "#".
  19785. print prefix "define", macro P[macro] D[macro]
  19786. next
  19787. } else {
  19788. # Replace #undef with comments. This is necessary, for example,
  19789. # in the case of _POSIX_SOURCE, which is predefined and required
  19790. # on some systems where configure will not decide to define it.
  19791. if (defundef == "undef") {
  19792. print "/*", prefix defundef, macro, "*/"
  19793. next
  19794. }
  19795. }
  19796. }
  19797. { print }
  19798. _ACAWK
  19799. _ACEOF
  19800. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19801. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  19802. fi # test -n "$CONFIG_HEADERS"
  19803. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  19804. shift
  19805. for ac_tag
  19806. do
  19807. case $ac_tag in
  19808. :[FHLC]) ac_mode=$ac_tag; continue;;
  19809. esac
  19810. case $ac_mode$ac_tag in
  19811. :[FHL]*:*);;
  19812. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  19813. :[FH]-) ac_tag=-:-;;
  19814. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  19815. esac
  19816. ac_save_IFS=$IFS
  19817. IFS=:
  19818. set x $ac_tag
  19819. IFS=$ac_save_IFS
  19820. shift
  19821. ac_file=$1
  19822. shift
  19823. case $ac_mode in
  19824. :L) ac_source=$1;;
  19825. :[FH])
  19826. ac_file_inputs=
  19827. for ac_f
  19828. do
  19829. case $ac_f in
  19830. -) ac_f="$ac_tmp/stdin";;
  19831. *) # Look for the file first in the build tree, then in the source tree
  19832. # (if the path is not absolute). The absolute path cannot be DOS-style,
  19833. # because $ac_f cannot contain `:'.
  19834. test -f "$ac_f" ||
  19835. case $ac_f in
  19836. [\\/$]*) false;;
  19837. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  19838. esac ||
  19839. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  19840. esac
  19841. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  19842. as_fn_append ac_file_inputs " '$ac_f'"
  19843. done
  19844. # Let's still pretend it is `configure' which instantiates (i.e., don't
  19845. # use $as_me), people would be surprised to read:
  19846. # /* config.h. Generated by config.status. */
  19847. configure_input='Generated from '`
  19848. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  19849. `' by configure.'
  19850. if test x"$ac_file" != x-; then
  19851. configure_input="$ac_file. $configure_input"
  19852. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  19853. $as_echo "$as_me: creating $ac_file" >&6;}
  19854. fi
  19855. # Neutralize special characters interpreted by sed in replacement strings.
  19856. case $configure_input in #(
  19857. *\&* | *\|* | *\\* )
  19858. ac_sed_conf_input=`$as_echo "$configure_input" |
  19859. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  19860. *) ac_sed_conf_input=$configure_input;;
  19861. esac
  19862. case $ac_tag in
  19863. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  19864. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  19865. esac
  19866. ;;
  19867. esac
  19868. ac_dir=`$as_dirname -- "$ac_file" ||
  19869. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  19870. X"$ac_file" : 'X\(//\)[^/]' \| \
  19871. X"$ac_file" : 'X\(//\)$' \| \
  19872. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  19873. $as_echo X"$ac_file" |
  19874. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  19875. s//\1/
  19876. q
  19877. }
  19878. /^X\(\/\/\)[^/].*/{
  19879. s//\1/
  19880. q
  19881. }
  19882. /^X\(\/\/\)$/{
  19883. s//\1/
  19884. q
  19885. }
  19886. /^X\(\/\).*/{
  19887. s//\1/
  19888. q
  19889. }
  19890. s/.*/./; q'`
  19891. as_dir="$ac_dir"; as_fn_mkdir_p
  19892. ac_builddir=.
  19893. case "$ac_dir" in
  19894. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  19895. *)
  19896. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  19897. # A ".." for each directory in $ac_dir_suffix.
  19898. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  19899. case $ac_top_builddir_sub in
  19900. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  19901. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  19902. esac ;;
  19903. esac
  19904. ac_abs_top_builddir=$ac_pwd
  19905. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  19906. # for backward compatibility:
  19907. ac_top_builddir=$ac_top_build_prefix
  19908. case $srcdir in
  19909. .) # We are building in place.
  19910. ac_srcdir=.
  19911. ac_top_srcdir=$ac_top_builddir_sub
  19912. ac_abs_top_srcdir=$ac_pwd ;;
  19913. [\\/]* | ?:[\\/]* ) # Absolute name.
  19914. ac_srcdir=$srcdir$ac_dir_suffix;
  19915. ac_top_srcdir=$srcdir
  19916. ac_abs_top_srcdir=$srcdir ;;
  19917. *) # Relative name.
  19918. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  19919. ac_top_srcdir=$ac_top_build_prefix$srcdir
  19920. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  19921. esac
  19922. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  19923. case $ac_mode in
  19924. :F)
  19925. #
  19926. # CONFIG_FILE
  19927. #
  19928. case $INSTALL in
  19929. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  19930. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  19931. esac
  19932. ac_MKDIR_P=$MKDIR_P
  19933. case $MKDIR_P in
  19934. [\\/$]* | ?:[\\/]* ) ;;
  19935. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  19936. esac
  19937. _ACEOF
  19938. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19939. # If the template does not know about datarootdir, expand it.
  19940. # FIXME: This hack should be removed a few years after 2.60.
  19941. ac_datarootdir_hack=; ac_datarootdir_seen=
  19942. ac_sed_dataroot='
  19943. /datarootdir/ {
  19944. p
  19945. q
  19946. }
  19947. /@datadir@/p
  19948. /@docdir@/p
  19949. /@infodir@/p
  19950. /@localedir@/p
  19951. /@mandir@/p'
  19952. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  19953. *datarootdir*) ac_datarootdir_seen=yes;;
  19954. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  19955. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  19956. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  19957. _ACEOF
  19958. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19959. ac_datarootdir_hack='
  19960. s&@datadir@&$datadir&g
  19961. s&@docdir@&$docdir&g
  19962. s&@infodir@&$infodir&g
  19963. s&@localedir@&$localedir&g
  19964. s&@mandir@&$mandir&g
  19965. s&\\\${datarootdir}&$datarootdir&g' ;;
  19966. esac
  19967. _ACEOF
  19968. # Neutralize VPATH when `$srcdir' = `.'.
  19969. # Shell code in configure.ac might set extrasub.
  19970. # FIXME: do we really want to maintain this feature?
  19971. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19972. ac_sed_extra="$ac_vpsub
  19973. $extrasub
  19974. _ACEOF
  19975. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19976. :t
  19977. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  19978. s|@configure_input@|$ac_sed_conf_input|;t t
  19979. s&@top_builddir@&$ac_top_builddir_sub&;t t
  19980. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  19981. s&@srcdir@&$ac_srcdir&;t t
  19982. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  19983. s&@top_srcdir@&$ac_top_srcdir&;t t
  19984. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  19985. s&@builddir@&$ac_builddir&;t t
  19986. s&@abs_builddir@&$ac_abs_builddir&;t t
  19987. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  19988. s&@INSTALL@&$ac_INSTALL&;t t
  19989. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  19990. $ac_datarootdir_hack
  19991. "
  19992. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  19993. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  19994. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  19995. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  19996. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  19997. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  19998. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  19999. which seems to be undefined. Please make sure it is defined" >&5
  20000. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  20001. which seems to be undefined. Please make sure it is defined" >&2;}
  20002. rm -f "$ac_tmp/stdin"
  20003. case $ac_file in
  20004. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  20005. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  20006. esac \
  20007. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  20008. ;;
  20009. :H)
  20010. #
  20011. # CONFIG_HEADER
  20012. #
  20013. if test x"$ac_file" != x-; then
  20014. {
  20015. $as_echo "/* $configure_input */" \
  20016. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  20017. } >"$ac_tmp/config.h" \
  20018. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  20019. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  20020. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  20021. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  20022. else
  20023. rm -f "$ac_file"
  20024. mv "$ac_tmp/config.h" "$ac_file" \
  20025. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  20026. fi
  20027. else
  20028. $as_echo "/* $configure_input */" \
  20029. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  20030. || as_fn_error $? "could not create -" "$LINENO" 5
  20031. fi
  20032. # Compute "$ac_file"'s index in $config_headers.
  20033. _am_arg="$ac_file"
  20034. _am_stamp_count=1
  20035. for _am_header in $config_headers :; do
  20036. case $_am_header in
  20037. $_am_arg | $_am_arg:* )
  20038. break ;;
  20039. * )
  20040. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  20041. esac
  20042. done
  20043. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  20044. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20045. X"$_am_arg" : 'X\(//\)[^/]' \| \
  20046. X"$_am_arg" : 'X\(//\)$' \| \
  20047. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  20048. $as_echo X"$_am_arg" |
  20049. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  20050. s//\1/
  20051. q
  20052. }
  20053. /^X\(\/\/\)[^/].*/{
  20054. s//\1/
  20055. q
  20056. }
  20057. /^X\(\/\/\)$/{
  20058. s//\1/
  20059. q
  20060. }
  20061. /^X\(\/\).*/{
  20062. s//\1/
  20063. q
  20064. }
  20065. s/.*/./; q'`/stamp-h$_am_stamp_count
  20066. ;;
  20067. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  20068. $as_echo "$as_me: executing $ac_file commands" >&6;}
  20069. ;;
  20070. esac
  20071. case $ac_file$ac_mode in
  20072. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  20073. # Older Autoconf quotes --file arguments for eval, but not when files
  20074. # are listed without --file. Let's play safe and only enable the eval
  20075. # if we detect the quoting.
  20076. case $CONFIG_FILES in
  20077. *\'*) eval set x "$CONFIG_FILES" ;;
  20078. *) set x $CONFIG_FILES ;;
  20079. esac
  20080. shift
  20081. for mf
  20082. do
  20083. # Strip MF so we end up with the name of the file.
  20084. mf=`echo "$mf" | sed -e 's/:.*$//'`
  20085. # Check whether this is an Automake generated Makefile or not.
  20086. # We used to match only the files named 'Makefile.in', but
  20087. # some people rename them; so instead we look at the file content.
  20088. # Grep'ing the first line is not enough: some people post-process
  20089. # each Makefile.in and add a new line on top of each file to say so.
  20090. # Grep'ing the whole file is not good either: AIX grep has a line
  20091. # limit of 2048, but all sed's we know have understand at least 4000.
  20092. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  20093. dirpart=`$as_dirname -- "$mf" ||
  20094. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20095. X"$mf" : 'X\(//\)[^/]' \| \
  20096. X"$mf" : 'X\(//\)$' \| \
  20097. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  20098. $as_echo X"$mf" |
  20099. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  20100. s//\1/
  20101. q
  20102. }
  20103. /^X\(\/\/\)[^/].*/{
  20104. s//\1/
  20105. q
  20106. }
  20107. /^X\(\/\/\)$/{
  20108. s//\1/
  20109. q
  20110. }
  20111. /^X\(\/\).*/{
  20112. s//\1/
  20113. q
  20114. }
  20115. s/.*/./; q'`
  20116. else
  20117. continue
  20118. fi
  20119. # Extract the definition of DEPDIR, am__include, and am__quote
  20120. # from the Makefile without running 'make'.
  20121. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  20122. test -z "$DEPDIR" && continue
  20123. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  20124. test -z "$am__include" && continue
  20125. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  20126. # Find all dependency output files, they are included files with
  20127. # $(DEPDIR) in their names. We invoke sed twice because it is the
  20128. # simplest approach to changing $(DEPDIR) to its actual value in the
  20129. # expansion.
  20130. for file in `sed -n "
  20131. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  20132. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
  20133. # Make sure the directory exists.
  20134. test -f "$dirpart/$file" && continue
  20135. fdir=`$as_dirname -- "$file" ||
  20136. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20137. X"$file" : 'X\(//\)[^/]' \| \
  20138. X"$file" : 'X\(//\)$' \| \
  20139. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  20140. $as_echo X"$file" |
  20141. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  20142. s//\1/
  20143. q
  20144. }
  20145. /^X\(\/\/\)[^/].*/{
  20146. s//\1/
  20147. q
  20148. }
  20149. /^X\(\/\/\)$/{
  20150. s//\1/
  20151. q
  20152. }
  20153. /^X\(\/\).*/{
  20154. s//\1/
  20155. q
  20156. }
  20157. s/.*/./; q'`
  20158. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  20159. # echo "creating $dirpart/$file"
  20160. echo '# dummy' > "$dirpart/$file"
  20161. done
  20162. done
  20163. }
  20164. ;;
  20165. "libtool":C)
  20166. # See if we are running on zsh, and set the options which allow our
  20167. # commands through without removal of \ escapes.
  20168. if test -n "${ZSH_VERSION+set}" ; then
  20169. setopt NO_GLOB_SUBST
  20170. fi
  20171. cfgfile="${ofile}T"
  20172. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  20173. $RM "$cfgfile"
  20174. cat <<_LT_EOF >> "$cfgfile"
  20175. #! $SHELL
  20176. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  20177. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  20178. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  20179. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  20180. #
  20181. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  20182. # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
  20183. # Foundation, Inc.
  20184. # Written by Gordon Matzigkeit, 1996
  20185. #
  20186. # This file is part of GNU Libtool.
  20187. #
  20188. # GNU Libtool is free software; you can redistribute it and/or
  20189. # modify it under the terms of the GNU General Public License as
  20190. # published by the Free Software Foundation; either version 2 of
  20191. # the License, or (at your option) any later version.
  20192. #
  20193. # As a special exception to the GNU General Public License,
  20194. # if you distribute this file as part of a program or library that
  20195. # is built using GNU Libtool, you may include this file under the
  20196. # same distribution terms that you use for the rest of that program.
  20197. #
  20198. # GNU Libtool is distributed in the hope that it will be useful,
  20199. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  20200. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  20201. # GNU General Public License for more details.
  20202. #
  20203. # You should have received a copy of the GNU General Public License
  20204. # along with GNU Libtool; see the file COPYING. If not, a copy
  20205. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  20206. # obtained by writing to the Free Software Foundation, Inc.,
  20207. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  20208. # The names of the tagged configurations supported by this script.
  20209. available_tags="CXX "
  20210. # ### BEGIN LIBTOOL CONFIG
  20211. # Whether or not to build static libraries.
  20212. build_old_libs=$enable_static
  20213. # Which release of libtool.m4 was used?
  20214. macro_version=$macro_version
  20215. macro_revision=$macro_revision
  20216. # Whether or not to build shared libraries.
  20217. build_libtool_libs=$enable_shared
  20218. # What type of objects to build.
  20219. pic_mode=$pic_mode
  20220. # Whether or not to optimize for fast installation.
  20221. fast_install=$enable_fast_install
  20222. # Shell to use when invoking shell scripts.
  20223. SHELL=$lt_SHELL
  20224. # An echo program that protects backslashes.
  20225. ECHO=$lt_ECHO
  20226. # The PATH separator for the build system.
  20227. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  20228. # The host system.
  20229. host_alias=$host_alias
  20230. host=$host
  20231. host_os=$host_os
  20232. # The build system.
  20233. build_alias=$build_alias
  20234. build=$build
  20235. build_os=$build_os
  20236. # A sed program that does not truncate output.
  20237. SED=$lt_SED
  20238. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  20239. Xsed="\$SED -e 1s/^X//"
  20240. # A grep program that handles long lines.
  20241. GREP=$lt_GREP
  20242. # An ERE matcher.
  20243. EGREP=$lt_EGREP
  20244. # A literal string matcher.
  20245. FGREP=$lt_FGREP
  20246. # A BSD- or MS-compatible name lister.
  20247. NM=$lt_NM
  20248. # Whether we need soft or hard links.
  20249. LN_S=$lt_LN_S
  20250. # What is the maximum length of a command?
  20251. max_cmd_len=$max_cmd_len
  20252. # Object file suffix (normally "o").
  20253. objext=$ac_objext
  20254. # Executable file suffix (normally "").
  20255. exeext=$exeext
  20256. # whether the shell understands "unset".
  20257. lt_unset=$lt_unset
  20258. # turn spaces into newlines.
  20259. SP2NL=$lt_lt_SP2NL
  20260. # turn newlines into spaces.
  20261. NL2SP=$lt_lt_NL2SP
  20262. # convert \$build file names to \$host format.
  20263. to_host_file_cmd=$lt_cv_to_host_file_cmd
  20264. # convert \$build files to toolchain format.
  20265. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  20266. # An object symbol dumper.
  20267. OBJDUMP=$lt_OBJDUMP
  20268. # Method to check whether dependent libraries are shared objects.
  20269. deplibs_check_method=$lt_deplibs_check_method
  20270. # Command to use when deplibs_check_method = "file_magic".
  20271. file_magic_cmd=$lt_file_magic_cmd
  20272. # How to find potential files when deplibs_check_method = "file_magic".
  20273. file_magic_glob=$lt_file_magic_glob
  20274. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  20275. want_nocaseglob=$lt_want_nocaseglob
  20276. # DLL creation program.
  20277. DLLTOOL=$lt_DLLTOOL
  20278. # Command to associate shared and link libraries.
  20279. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  20280. # The archiver.
  20281. AR=$lt_AR
  20282. # Flags to create an archive.
  20283. AR_FLAGS=$lt_AR_FLAGS
  20284. # How to feed a file listing to the archiver.
  20285. archiver_list_spec=$lt_archiver_list_spec
  20286. # A symbol stripping program.
  20287. STRIP=$lt_STRIP
  20288. # Commands used to install an old-style archive.
  20289. RANLIB=$lt_RANLIB
  20290. old_postinstall_cmds=$lt_old_postinstall_cmds
  20291. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  20292. # Whether to use a lock for old archive extraction.
  20293. lock_old_archive_extraction=$lock_old_archive_extraction
  20294. # A C compiler.
  20295. LTCC=$lt_CC
  20296. # LTCC compiler flags.
  20297. LTCFLAGS=$lt_CFLAGS
  20298. # Take the output of nm and produce a listing of raw symbols and C names.
  20299. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  20300. # Transform the output of nm in a proper C declaration.
  20301. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  20302. # Transform the output of nm in a C name address pair.
  20303. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  20304. # Transform the output of nm in a C name address pair when lib prefix is needed.
  20305. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  20306. # Specify filename containing input files for \$NM.
  20307. nm_file_list_spec=$lt_nm_file_list_spec
  20308. # The root where to search for dependent libraries,and in which our libraries should be installed.
  20309. lt_sysroot=$lt_sysroot
  20310. # The name of the directory that contains temporary libtool files.
  20311. objdir=$objdir
  20312. # Used to examine libraries when file_magic_cmd begins with "file".
  20313. MAGIC_CMD=$MAGIC_CMD
  20314. # Must we lock files when doing compilation?
  20315. need_locks=$lt_need_locks
  20316. # Manifest tool.
  20317. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  20318. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  20319. DSYMUTIL=$lt_DSYMUTIL
  20320. # Tool to change global to local symbols on Mac OS X.
  20321. NMEDIT=$lt_NMEDIT
  20322. # Tool to manipulate fat objects and archives on Mac OS X.
  20323. LIPO=$lt_LIPO
  20324. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  20325. OTOOL=$lt_OTOOL
  20326. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  20327. OTOOL64=$lt_OTOOL64
  20328. # Old archive suffix (normally "a").
  20329. libext=$libext
  20330. # Shared library suffix (normally ".so").
  20331. shrext_cmds=$lt_shrext_cmds
  20332. # The commands to extract the exported symbol list from a shared archive.
  20333. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  20334. # Variables whose values should be saved in libtool wrapper scripts and
  20335. # restored at link time.
  20336. variables_saved_for_relink=$lt_variables_saved_for_relink
  20337. # Do we need the "lib" prefix for modules?
  20338. need_lib_prefix=$need_lib_prefix
  20339. # Do we need a version for libraries?
  20340. need_version=$need_version
  20341. # Library versioning type.
  20342. version_type=$version_type
  20343. # Shared library runtime path variable.
  20344. runpath_var=$runpath_var
  20345. # Shared library path variable.
  20346. shlibpath_var=$shlibpath_var
  20347. # Is shlibpath searched before the hard-coded library search path?
  20348. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  20349. # Format of library name prefix.
  20350. libname_spec=$lt_libname_spec
  20351. # List of archive names. First name is the real one, the rest are links.
  20352. # The last name is the one that the linker finds with -lNAME
  20353. library_names_spec=$lt_library_names_spec
  20354. # The coded name of the library, if different from the real name.
  20355. soname_spec=$lt_soname_spec
  20356. # Permission mode override for installation of shared libraries.
  20357. install_override_mode=$lt_install_override_mode
  20358. # Command to use after installation of a shared archive.
  20359. postinstall_cmds=$lt_postinstall_cmds
  20360. # Command to use after uninstallation of a shared archive.
  20361. postuninstall_cmds=$lt_postuninstall_cmds
  20362. # Commands used to finish a libtool library installation in a directory.
  20363. finish_cmds=$lt_finish_cmds
  20364. # As "finish_cmds", except a single script fragment to be evaled but
  20365. # not shown.
  20366. finish_eval=$lt_finish_eval
  20367. # Whether we should hardcode library paths into libraries.
  20368. hardcode_into_libs=$hardcode_into_libs
  20369. # Compile-time system search path for libraries.
  20370. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  20371. # Run-time system search path for libraries.
  20372. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  20373. # Whether dlopen is supported.
  20374. dlopen_support=$enable_dlopen
  20375. # Whether dlopen of programs is supported.
  20376. dlopen_self=$enable_dlopen_self
  20377. # Whether dlopen of statically linked programs is supported.
  20378. dlopen_self_static=$enable_dlopen_self_static
  20379. # Commands to strip libraries.
  20380. old_striplib=$lt_old_striplib
  20381. striplib=$lt_striplib
  20382. # The linker used to build libraries.
  20383. LD=$lt_LD
  20384. # How to create reloadable object files.
  20385. reload_flag=$lt_reload_flag
  20386. reload_cmds=$lt_reload_cmds
  20387. # Commands used to build an old-style archive.
  20388. old_archive_cmds=$lt_old_archive_cmds
  20389. # A language specific compiler.
  20390. CC=$lt_compiler
  20391. # Is the compiler the GNU compiler?
  20392. with_gcc=$GCC
  20393. # Compiler flag to turn off builtin functions.
  20394. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  20395. # Additional compiler flags for building library objects.
  20396. pic_flag=$lt_lt_prog_compiler_pic
  20397. # How to pass a linker flag through the compiler.
  20398. wl=$lt_lt_prog_compiler_wl
  20399. # Compiler flag to prevent dynamic linking.
  20400. link_static_flag=$lt_lt_prog_compiler_static
  20401. # Does compiler simultaneously support -c and -o options?
  20402. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  20403. # Whether or not to add -lc for building shared libraries.
  20404. build_libtool_need_lc=$archive_cmds_need_lc
  20405. # Whether or not to disallow shared libs when runtime libs are static.
  20406. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  20407. # Compiler flag to allow reflexive dlopens.
  20408. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  20409. # Compiler flag to generate shared objects directly from archives.
  20410. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  20411. # Whether the compiler copes with passing no objects directly.
  20412. compiler_needs_object=$lt_compiler_needs_object
  20413. # Create an old-style archive from a shared archive.
  20414. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  20415. # Create a temporary old-style archive to link instead of a shared archive.
  20416. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  20417. # Commands used to build a shared archive.
  20418. archive_cmds=$lt_archive_cmds
  20419. archive_expsym_cmds=$lt_archive_expsym_cmds
  20420. # Commands used to build a loadable module if different from building
  20421. # a shared archive.
  20422. module_cmds=$lt_module_cmds
  20423. module_expsym_cmds=$lt_module_expsym_cmds
  20424. # Whether we are building with GNU ld or not.
  20425. with_gnu_ld=$lt_with_gnu_ld
  20426. # Flag that allows shared libraries with undefined symbols to be built.
  20427. allow_undefined_flag=$lt_allow_undefined_flag
  20428. # Flag that enforces no undefined symbols.
  20429. no_undefined_flag=$lt_no_undefined_flag
  20430. # Flag to hardcode \$libdir into a binary during linking.
  20431. # This must work even if \$libdir does not exist
  20432. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  20433. # Whether we need a single "-rpath" flag with a separated argument.
  20434. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  20435. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  20436. # DIR into the resulting binary.
  20437. hardcode_direct=$hardcode_direct
  20438. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  20439. # DIR into the resulting binary and the resulting library dependency is
  20440. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  20441. # library is relocated.
  20442. hardcode_direct_absolute=$hardcode_direct_absolute
  20443. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  20444. # into the resulting binary.
  20445. hardcode_minus_L=$hardcode_minus_L
  20446. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  20447. # into the resulting binary.
  20448. hardcode_shlibpath_var=$hardcode_shlibpath_var
  20449. # Set to "yes" if building a shared library automatically hardcodes DIR
  20450. # into the library and all subsequent libraries and executables linked
  20451. # against it.
  20452. hardcode_automatic=$hardcode_automatic
  20453. # Set to yes if linker adds runtime paths of dependent libraries
  20454. # to runtime path list.
  20455. inherit_rpath=$inherit_rpath
  20456. # Whether libtool must link a program against all its dependency libraries.
  20457. link_all_deplibs=$link_all_deplibs
  20458. # Set to "yes" if exported symbols are required.
  20459. always_export_symbols=$always_export_symbols
  20460. # The commands to list exported symbols.
  20461. export_symbols_cmds=$lt_export_symbols_cmds
  20462. # Symbols that should not be listed in the preloaded symbols.
  20463. exclude_expsyms=$lt_exclude_expsyms
  20464. # Symbols that must always be exported.
  20465. include_expsyms=$lt_include_expsyms
  20466. # Commands necessary for linking programs (against libraries) with templates.
  20467. prelink_cmds=$lt_prelink_cmds
  20468. # Commands necessary for finishing linking programs.
  20469. postlink_cmds=$lt_postlink_cmds
  20470. # Specify filename containing input files.
  20471. file_list_spec=$lt_file_list_spec
  20472. # How to hardcode a shared library path into an executable.
  20473. hardcode_action=$hardcode_action
  20474. # The directories searched by this compiler when creating a shared library.
  20475. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  20476. # Dependencies to place before and after the objects being linked to
  20477. # create a shared library.
  20478. predep_objects=$lt_predep_objects
  20479. postdep_objects=$lt_postdep_objects
  20480. predeps=$lt_predeps
  20481. postdeps=$lt_postdeps
  20482. # The library search path used internally by the compiler when linking
  20483. # a shared library.
  20484. compiler_lib_search_path=$lt_compiler_lib_search_path
  20485. # ### END LIBTOOL CONFIG
  20486. _LT_EOF
  20487. case $host_os in
  20488. aix3*)
  20489. cat <<\_LT_EOF >> "$cfgfile"
  20490. # AIX sometimes has problems with the GCC collect2 program. For some
  20491. # reason, if we set the COLLECT_NAMES environment variable, the problems
  20492. # vanish in a puff of smoke.
  20493. if test "X${COLLECT_NAMES+set}" != Xset; then
  20494. COLLECT_NAMES=
  20495. export COLLECT_NAMES
  20496. fi
  20497. _LT_EOF
  20498. ;;
  20499. esac
  20500. ltmain="$ac_aux_dir/ltmain.sh"
  20501. # We use sed instead of cat because bash on DJGPP gets confused if
  20502. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  20503. # text mode, it properly converts lines to CR/LF. This bash problem
  20504. # is reportedly fixed, but why not run on old versions too?
  20505. sed '$q' "$ltmain" >> "$cfgfile" \
  20506. || (rm -f "$cfgfile"; exit 1)
  20507. if test x"$xsi_shell" = xyes; then
  20508. sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
  20509. func_dirname ()\
  20510. {\
  20511. \ case ${1} in\
  20512. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  20513. \ * ) func_dirname_result="${3}" ;;\
  20514. \ esac\
  20515. } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
  20516. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20517. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20518. test 0 -eq $? || _lt_function_replace_fail=:
  20519. sed -e '/^func_basename ()$/,/^} # func_basename /c\
  20520. func_basename ()\
  20521. {\
  20522. \ func_basename_result="${1##*/}"\
  20523. } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
  20524. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20525. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20526. test 0 -eq $? || _lt_function_replace_fail=:
  20527. sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
  20528. func_dirname_and_basename ()\
  20529. {\
  20530. \ case ${1} in\
  20531. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  20532. \ * ) func_dirname_result="${3}" ;;\
  20533. \ esac\
  20534. \ func_basename_result="${1##*/}"\
  20535. } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
  20536. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20537. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20538. test 0 -eq $? || _lt_function_replace_fail=:
  20539. sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
  20540. func_stripname ()\
  20541. {\
  20542. \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
  20543. \ # positional parameters, so assign one to ordinary parameter first.\
  20544. \ func_stripname_result=${3}\
  20545. \ func_stripname_result=${func_stripname_result#"${1}"}\
  20546. \ func_stripname_result=${func_stripname_result%"${2}"}\
  20547. } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
  20548. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20549. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20550. test 0 -eq $? || _lt_function_replace_fail=:
  20551. sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
  20552. func_split_long_opt ()\
  20553. {\
  20554. \ func_split_long_opt_name=${1%%=*}\
  20555. \ func_split_long_opt_arg=${1#*=}\
  20556. } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
  20557. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20558. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20559. test 0 -eq $? || _lt_function_replace_fail=:
  20560. sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
  20561. func_split_short_opt ()\
  20562. {\
  20563. \ func_split_short_opt_arg=${1#??}\
  20564. \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
  20565. } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
  20566. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20567. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20568. test 0 -eq $? || _lt_function_replace_fail=:
  20569. sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
  20570. func_lo2o ()\
  20571. {\
  20572. \ case ${1} in\
  20573. \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
  20574. \ *) func_lo2o_result=${1} ;;\
  20575. \ esac\
  20576. } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
  20577. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20578. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20579. test 0 -eq $? || _lt_function_replace_fail=:
  20580. sed -e '/^func_xform ()$/,/^} # func_xform /c\
  20581. func_xform ()\
  20582. {\
  20583. func_xform_result=${1%.*}.lo\
  20584. } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
  20585. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20586. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20587. test 0 -eq $? || _lt_function_replace_fail=:
  20588. sed -e '/^func_arith ()$/,/^} # func_arith /c\
  20589. func_arith ()\
  20590. {\
  20591. func_arith_result=$(( $* ))\
  20592. } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
  20593. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20594. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20595. test 0 -eq $? || _lt_function_replace_fail=:
  20596. sed -e '/^func_len ()$/,/^} # func_len /c\
  20597. func_len ()\
  20598. {\
  20599. func_len_result=${#1}\
  20600. } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
  20601. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20602. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20603. test 0 -eq $? || _lt_function_replace_fail=:
  20604. fi
  20605. if test x"$lt_shell_append" = xyes; then
  20606. sed -e '/^func_append ()$/,/^} # func_append /c\
  20607. func_append ()\
  20608. {\
  20609. eval "${1}+=\\${2}"\
  20610. } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
  20611. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20612. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20613. test 0 -eq $? || _lt_function_replace_fail=:
  20614. sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
  20615. func_append_quoted ()\
  20616. {\
  20617. \ func_quote_for_eval "${2}"\
  20618. \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
  20619. } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
  20620. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20621. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20622. test 0 -eq $? || _lt_function_replace_fail=:
  20623. # Save a `func_append' function call where possible by direct use of '+='
  20624. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
  20625. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20626. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20627. test 0 -eq $? || _lt_function_replace_fail=:
  20628. else
  20629. # Save a `func_append' function call even when '+=' is not available
  20630. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  20631. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20632. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20633. test 0 -eq $? || _lt_function_replace_fail=:
  20634. fi
  20635. if test x"$_lt_function_replace_fail" = x":"; then
  20636. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
  20637. $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
  20638. fi
  20639. mv -f "$cfgfile" "$ofile" ||
  20640. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  20641. chmod +x "$ofile"
  20642. cat <<_LT_EOF >> "$ofile"
  20643. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  20644. # The linker used to build libraries.
  20645. LD=$lt_LD_CXX
  20646. # How to create reloadable object files.
  20647. reload_flag=$lt_reload_flag_CXX
  20648. reload_cmds=$lt_reload_cmds_CXX
  20649. # Commands used to build an old-style archive.
  20650. old_archive_cmds=$lt_old_archive_cmds_CXX
  20651. # A language specific compiler.
  20652. CC=$lt_compiler_CXX
  20653. # Is the compiler the GNU compiler?
  20654. with_gcc=$GCC_CXX
  20655. # Compiler flag to turn off builtin functions.
  20656. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  20657. # Additional compiler flags for building library objects.
  20658. pic_flag=$lt_lt_prog_compiler_pic_CXX
  20659. # How to pass a linker flag through the compiler.
  20660. wl=$lt_lt_prog_compiler_wl_CXX
  20661. # Compiler flag to prevent dynamic linking.
  20662. link_static_flag=$lt_lt_prog_compiler_static_CXX
  20663. # Does compiler simultaneously support -c and -o options?
  20664. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  20665. # Whether or not to add -lc for building shared libraries.
  20666. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  20667. # Whether or not to disallow shared libs when runtime libs are static.
  20668. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  20669. # Compiler flag to allow reflexive dlopens.
  20670. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  20671. # Compiler flag to generate shared objects directly from archives.
  20672. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  20673. # Whether the compiler copes with passing no objects directly.
  20674. compiler_needs_object=$lt_compiler_needs_object_CXX
  20675. # Create an old-style archive from a shared archive.
  20676. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  20677. # Create a temporary old-style archive to link instead of a shared archive.
  20678. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  20679. # Commands used to build a shared archive.
  20680. archive_cmds=$lt_archive_cmds_CXX
  20681. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  20682. # Commands used to build a loadable module if different from building
  20683. # a shared archive.
  20684. module_cmds=$lt_module_cmds_CXX
  20685. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  20686. # Whether we are building with GNU ld or not.
  20687. with_gnu_ld=$lt_with_gnu_ld_CXX
  20688. # Flag that allows shared libraries with undefined symbols to be built.
  20689. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  20690. # Flag that enforces no undefined symbols.
  20691. no_undefined_flag=$lt_no_undefined_flag_CXX
  20692. # Flag to hardcode \$libdir into a binary during linking.
  20693. # This must work even if \$libdir does not exist
  20694. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  20695. # Whether we need a single "-rpath" flag with a separated argument.
  20696. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  20697. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  20698. # DIR into the resulting binary.
  20699. hardcode_direct=$hardcode_direct_CXX
  20700. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  20701. # DIR into the resulting binary and the resulting library dependency is
  20702. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  20703. # library is relocated.
  20704. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  20705. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  20706. # into the resulting binary.
  20707. hardcode_minus_L=$hardcode_minus_L_CXX
  20708. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  20709. # into the resulting binary.
  20710. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  20711. # Set to "yes" if building a shared library automatically hardcodes DIR
  20712. # into the library and all subsequent libraries and executables linked
  20713. # against it.
  20714. hardcode_automatic=$hardcode_automatic_CXX
  20715. # Set to yes if linker adds runtime paths of dependent libraries
  20716. # to runtime path list.
  20717. inherit_rpath=$inherit_rpath_CXX
  20718. # Whether libtool must link a program against all its dependency libraries.
  20719. link_all_deplibs=$link_all_deplibs_CXX
  20720. # Set to "yes" if exported symbols are required.
  20721. always_export_symbols=$always_export_symbols_CXX
  20722. # The commands to list exported symbols.
  20723. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  20724. # Symbols that should not be listed in the preloaded symbols.
  20725. exclude_expsyms=$lt_exclude_expsyms_CXX
  20726. # Symbols that must always be exported.
  20727. include_expsyms=$lt_include_expsyms_CXX
  20728. # Commands necessary for linking programs (against libraries) with templates.
  20729. prelink_cmds=$lt_prelink_cmds_CXX
  20730. # Commands necessary for finishing linking programs.
  20731. postlink_cmds=$lt_postlink_cmds_CXX
  20732. # Specify filename containing input files.
  20733. file_list_spec=$lt_file_list_spec_CXX
  20734. # How to hardcode a shared library path into an executable.
  20735. hardcode_action=$hardcode_action_CXX
  20736. # The directories searched by this compiler when creating a shared library.
  20737. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  20738. # Dependencies to place before and after the objects being linked to
  20739. # create a shared library.
  20740. predep_objects=$lt_predep_objects_CXX
  20741. postdep_objects=$lt_postdep_objects_CXX
  20742. predeps=$lt_predeps_CXX
  20743. postdeps=$lt_postdeps_CXX
  20744. # The library search path used internally by the compiler when linking
  20745. # a shared library.
  20746. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  20747. # ### END LIBTOOL TAG CONFIG: CXX
  20748. _LT_EOF
  20749. ;;
  20750. esac
  20751. done # for ac_tag
  20752. as_fn_exit 0
  20753. _ACEOF
  20754. ac_clean_files=$ac_clean_files_save
  20755. test $ac_write_fail = 0 ||
  20756. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  20757. # configure is writing to config.log, and then calls config.status.
  20758. # config.status does its own redirection, appending to config.log.
  20759. # Unfortunately, on DOS this fails, as config.log is still kept open
  20760. # by configure, so config.status won't be able to write to it; its
  20761. # output is simply discarded. So we exec the FD to /dev/null,
  20762. # effectively closing config.log, so it can be properly (re)opened and
  20763. # appended to by config.status. When coming back to configure, we
  20764. # need to make the FD available again.
  20765. if test "$no_create" != yes; then
  20766. ac_cs_success=:
  20767. ac_config_status_args=
  20768. test "$silent" = yes &&
  20769. ac_config_status_args="$ac_config_status_args --quiet"
  20770. exec 5>/dev/null
  20771. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  20772. exec 5>>config.log
  20773. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  20774. # would make configure fail if this is the last instruction.
  20775. $ac_cs_success || as_fn_exit 1
  20776. fi
  20777. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  20778. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  20779. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  20780. fi