configure 716 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292
  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. with_selinux
  645. kerberos_libdir
  646. kerberos_lib
  647. kerberos_inc
  648. KRB5_CONFIG_BIN
  649. NETSNMP_CONFIG
  650. ICU_CONFIG
  651. ldap_lib_ldif
  652. SYSTEMD_FALSE
  653. SYSTEMD_TRUE
  654. SOLARIS_FALSE
  655. SOLARIS_TRUE
  656. HPUX_FALSE
  657. HPUX_TRUE
  658. initconfigdir
  659. sttyexec
  660. perlexec
  661. initdir
  662. LIBCRUN
  663. LIBCSTD
  664. LIBDL
  665. LIBNSL
  666. LIBSOCKET
  667. LIBCRYPT
  668. THREADLIB
  669. WINNT_FALSE
  670. WINNT_TRUE
  671. instconfigdir
  672. defaultgroup
  673. defaultuser
  674. updatedir
  675. mibdir
  676. infdir
  677. pythondir
  678. perldir
  679. scripttemplatedir
  680. serverplugindir
  681. serverincdir
  682. serverdir
  683. schemadir
  684. propertydir
  685. sampledatadir
  686. configdir
  687. with_systemdgroupname
  688. with_systemdsystemconfdir
  689. with_systemdsystemunitdir
  690. PKG_CONFIG_LIBDIR
  691. PKG_CONFIG_PATH
  692. PKG_CONFIG
  693. with_tmpfiles_d
  694. with_fhs_opt
  695. enable_nunc_stans_FALSE
  696. enable_nunc_stans_TRUE
  697. enable_posix_winsync_FALSE
  698. enable_posix_winsync_TRUE
  699. enable_acctpolicy_FALSE
  700. enable_acctpolicy_TRUE
  701. enable_presence_FALSE
  702. enable_presence_TRUE
  703. enable_bitwise_FALSE
  704. enable_bitwise_TRUE
  705. enable_auto_dn_suffix_FALSE
  706. enable_auto_dn_suffix_TRUE
  707. enable_autobind_FALSE
  708. enable_autobind_TRUE
  709. enable_ldapi_FALSE
  710. enable_ldapi_TRUE
  711. enable_dna_FALSE
  712. enable_dna_TRUE
  713. enable_pam_passthru_FALSE
  714. enable_pam_passthru_TRUE
  715. BUNDLE_FALSE
  716. BUNDLE_TRUE
  717. gccsec_defs
  718. RPM_HARDEND_CC_FALSE
  719. RPM_HARDEND_CC_TRUE
  720. asan_defs
  721. debug_defs
  722. LIBOBJS
  723. CXXCPP
  724. CPP
  725. OTOOL64
  726. OTOOL
  727. LIPO
  728. NMEDIT
  729. DSYMUTIL
  730. MANIFEST_TOOL
  731. RANLIB
  732. ac_ct_AR
  733. AR
  734. DLLTOOL
  735. OBJDUMP
  736. LN_S
  737. NM
  738. ac_ct_DUMPBIN
  739. DUMPBIN
  740. LD
  741. FGREP
  742. EGREP
  743. GREP
  744. SED
  745. LIBTOOL
  746. am__fastdepCCAS_FALSE
  747. am__fastdepCCAS_TRUE
  748. CCASDEPMODE
  749. CCASFLAGS
  750. CCAS
  751. am__fastdepCC_FALSE
  752. am__fastdepCC_TRUE
  753. CCDEPMODE
  754. ac_ct_CC
  755. CFLAGS
  756. CC
  757. am__fastdepCXX_FALSE
  758. am__fastdepCXX_TRUE
  759. CXXDEPMODE
  760. am__nodep
  761. AMDEPBACKSLASH
  762. AMDEP_FALSE
  763. AMDEP_TRUE
  764. am__quote
  765. am__include
  766. DEPDIR
  767. OBJEXT
  768. EXEEXT
  769. ac_ct_CXX
  770. CPPFLAGS
  771. LDFLAGS
  772. CXXFLAGS
  773. CXX
  774. host_os
  775. host_vendor
  776. host_cpu
  777. host
  778. build_os
  779. build_vendor
  780. build_cpu
  781. build
  782. MAINT
  783. MAINTAINER_MODE_FALSE
  784. MAINTAINER_MODE_TRUE
  785. CONSOLE_VERSION
  786. RPM_RELEASE
  787. RPM_VERSION
  788. AM_BACKSLASH
  789. AM_DEFAULT_VERBOSITY
  790. AM_DEFAULT_V
  791. AM_V
  792. am__untar
  793. am__tar
  794. AMTAR
  795. am__leading_dot
  796. SET_MAKE
  797. AWK
  798. mkdir_p
  799. MKDIR_P
  800. INSTALL_STRIP_PROGRAM
  801. STRIP
  802. install_sh
  803. MAKEINFO
  804. AUTOHEADER
  805. AUTOMAKE
  806. AUTOCONF
  807. ACLOCAL
  808. VERSION
  809. PACKAGE
  810. CYGPATH_W
  811. am__isrc
  812. INSTALL_DATA
  813. INSTALL_SCRIPT
  814. INSTALL_PROGRAM
  815. target_alias
  816. host_alias
  817. build_alias
  818. LIBS
  819. ECHO_T
  820. ECHO_N
  821. ECHO_C
  822. DEFS
  823. mandir
  824. localedir
  825. libdir
  826. psdir
  827. pdfdir
  828. dvidir
  829. htmldir
  830. infodir
  831. docdir
  832. oldincludedir
  833. includedir
  834. localstatedir
  835. sharedstatedir
  836. sysconfdir
  837. datadir
  838. datarootdir
  839. libexecdir
  840. sbindir
  841. bindir
  842. program_transform_name
  843. prefix
  844. exec_prefix
  845. PACKAGE_URL
  846. PACKAGE_BUGREPORT
  847. PACKAGE_STRING
  848. PACKAGE_VERSION
  849. PACKAGE_TARNAME
  850. PACKAGE_NAME
  851. PATH_SEPARATOR
  852. SHELL'
  853. ac_subst_files=''
  854. ac_user_opts='
  855. enable_option_checking
  856. enable_silent_rules
  857. enable_maintainer_mode
  858. enable_dependency_tracking
  859. enable_static
  860. enable_shared
  861. with_pic
  862. enable_fast_install
  863. with_gnu_ld
  864. with_sysroot
  865. enable_libtool_lock
  866. enable_debug
  867. enable_asan
  868. enable_gcc_security
  869. enable_bundle
  870. enable_pam_passthru
  871. enable_dna
  872. enable_ldapi
  873. enable_autobind
  874. enable_bitwise
  875. enable_presence
  876. enable_acctpolicy
  877. enable_posix_winsync
  878. enable_nunc_stans
  879. with_fhs
  880. with_fhs_opt
  881. with_tmpfiles_d
  882. with_perldir
  883. with_pythondir
  884. with_systemdsystemunitdir
  885. with_systemdsystemconfdir
  886. with_systemdgroupname
  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. '
  929. ac_precious_vars='build_alias
  930. host_alias
  931. target_alias
  932. CXX
  933. CXXFLAGS
  934. LDFLAGS
  935. LIBS
  936. CPPFLAGS
  937. CCC
  938. CC
  939. CFLAGS
  940. CCAS
  941. CCASFLAGS
  942. CPP
  943. CXXCPP
  944. PKG_CONFIG
  945. PKG_CONFIG_PATH
  946. PKG_CONFIG_LIBDIR'
  947. # Initialize some variables set by options.
  948. ac_init_help=
  949. ac_init_version=false
  950. ac_unrecognized_opts=
  951. ac_unrecognized_sep=
  952. # The variables have the same names as the options, with
  953. # dashes changed to underlines.
  954. cache_file=/dev/null
  955. exec_prefix=NONE
  956. no_create=
  957. no_recursion=
  958. prefix=NONE
  959. program_prefix=NONE
  960. program_suffix=NONE
  961. program_transform_name=s,x,x,
  962. silent=
  963. site=
  964. srcdir=
  965. verbose=
  966. x_includes=NONE
  967. x_libraries=NONE
  968. # Installation directory options.
  969. # These are left unexpanded so users can "make install exec_prefix=/foo"
  970. # and all the variables that are supposed to be based on exec_prefix
  971. # by default will actually change.
  972. # Use braces instead of parens because sh, perl, etc. also accept them.
  973. # (The list follows the same order as the GNU Coding Standards.)
  974. bindir='${exec_prefix}/bin'
  975. sbindir='${exec_prefix}/sbin'
  976. libexecdir='${exec_prefix}/libexec'
  977. datarootdir='${prefix}/share'
  978. datadir='${datarootdir}'
  979. sysconfdir='${prefix}/etc'
  980. sharedstatedir='${prefix}/com'
  981. localstatedir='${prefix}/var'
  982. includedir='${prefix}/include'
  983. oldincludedir='/usr/include'
  984. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  985. infodir='${datarootdir}/info'
  986. htmldir='${docdir}'
  987. dvidir='${docdir}'
  988. pdfdir='${docdir}'
  989. psdir='${docdir}'
  990. libdir='${exec_prefix}/lib'
  991. localedir='${datarootdir}/locale'
  992. mandir='${datarootdir}/man'
  993. ac_prev=
  994. ac_dashdash=
  995. for ac_option
  996. do
  997. # If the previous option needs an argument, assign it.
  998. if test -n "$ac_prev"; then
  999. eval $ac_prev=\$ac_option
  1000. ac_prev=
  1001. continue
  1002. fi
  1003. case $ac_option in
  1004. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  1005. *=) ac_optarg= ;;
  1006. *) ac_optarg=yes ;;
  1007. esac
  1008. # Accept the important Cygnus configure options, so we can diagnose typos.
  1009. case $ac_dashdash$ac_option in
  1010. --)
  1011. ac_dashdash=yes ;;
  1012. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  1013. ac_prev=bindir ;;
  1014. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  1015. bindir=$ac_optarg ;;
  1016. -build | --build | --buil | --bui | --bu)
  1017. ac_prev=build_alias ;;
  1018. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  1019. build_alias=$ac_optarg ;;
  1020. -cache-file | --cache-file | --cache-fil | --cache-fi \
  1021. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  1022. ac_prev=cache_file ;;
  1023. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  1024. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  1025. cache_file=$ac_optarg ;;
  1026. --config-cache | -C)
  1027. cache_file=config.cache ;;
  1028. -datadir | --datadir | --datadi | --datad)
  1029. ac_prev=datadir ;;
  1030. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  1031. datadir=$ac_optarg ;;
  1032. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  1033. | --dataroo | --dataro | --datar)
  1034. ac_prev=datarootdir ;;
  1035. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  1036. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  1037. datarootdir=$ac_optarg ;;
  1038. -disable-* | --disable-*)
  1039. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  1040. # Reject names that are not valid shell variable names.
  1041. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1042. as_fn_error $? "invalid feature name: $ac_useropt"
  1043. ac_useropt_orig=$ac_useropt
  1044. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1045. case $ac_user_opts in
  1046. *"
  1047. "enable_$ac_useropt"
  1048. "*) ;;
  1049. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  1050. ac_unrecognized_sep=', ';;
  1051. esac
  1052. eval enable_$ac_useropt=no ;;
  1053. -docdir | --docdir | --docdi | --doc | --do)
  1054. ac_prev=docdir ;;
  1055. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  1056. docdir=$ac_optarg ;;
  1057. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  1058. ac_prev=dvidir ;;
  1059. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  1060. dvidir=$ac_optarg ;;
  1061. -enable-* | --enable-*)
  1062. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  1063. # Reject names that are not valid shell variable names.
  1064. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1065. as_fn_error $? "invalid feature name: $ac_useropt"
  1066. ac_useropt_orig=$ac_useropt
  1067. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1068. case $ac_user_opts in
  1069. *"
  1070. "enable_$ac_useropt"
  1071. "*) ;;
  1072. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  1073. ac_unrecognized_sep=', ';;
  1074. esac
  1075. eval enable_$ac_useropt=\$ac_optarg ;;
  1076. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  1077. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  1078. | --exec | --exe | --ex)
  1079. ac_prev=exec_prefix ;;
  1080. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  1081. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  1082. | --exec=* | --exe=* | --ex=*)
  1083. exec_prefix=$ac_optarg ;;
  1084. -gas | --gas | --ga | --g)
  1085. # Obsolete; use --with-gas.
  1086. with_gas=yes ;;
  1087. -help | --help | --hel | --he | -h)
  1088. ac_init_help=long ;;
  1089. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1090. ac_init_help=recursive ;;
  1091. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1092. ac_init_help=short ;;
  1093. -host | --host | --hos | --ho)
  1094. ac_prev=host_alias ;;
  1095. -host=* | --host=* | --hos=* | --ho=*)
  1096. host_alias=$ac_optarg ;;
  1097. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1098. ac_prev=htmldir ;;
  1099. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1100. | --ht=*)
  1101. htmldir=$ac_optarg ;;
  1102. -includedir | --includedir | --includedi | --included | --include \
  1103. | --includ | --inclu | --incl | --inc)
  1104. ac_prev=includedir ;;
  1105. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1106. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1107. includedir=$ac_optarg ;;
  1108. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1109. ac_prev=infodir ;;
  1110. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1111. infodir=$ac_optarg ;;
  1112. -libdir | --libdir | --libdi | --libd)
  1113. ac_prev=libdir ;;
  1114. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1115. libdir=$ac_optarg ;;
  1116. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1117. | --libexe | --libex | --libe)
  1118. ac_prev=libexecdir ;;
  1119. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1120. | --libexe=* | --libex=* | --libe=*)
  1121. libexecdir=$ac_optarg ;;
  1122. -localedir | --localedir | --localedi | --localed | --locale)
  1123. ac_prev=localedir ;;
  1124. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1125. localedir=$ac_optarg ;;
  1126. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1127. | --localstate | --localstat | --localsta | --localst | --locals)
  1128. ac_prev=localstatedir ;;
  1129. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1130. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1131. localstatedir=$ac_optarg ;;
  1132. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1133. ac_prev=mandir ;;
  1134. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1135. mandir=$ac_optarg ;;
  1136. -nfp | --nfp | --nf)
  1137. # Obsolete; use --without-fp.
  1138. with_fp=no ;;
  1139. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1140. | --no-cr | --no-c | -n)
  1141. no_create=yes ;;
  1142. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1143. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1144. no_recursion=yes ;;
  1145. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1146. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1147. | --oldin | --oldi | --old | --ol | --o)
  1148. ac_prev=oldincludedir ;;
  1149. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1150. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1151. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1152. oldincludedir=$ac_optarg ;;
  1153. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1154. ac_prev=prefix ;;
  1155. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1156. prefix=$ac_optarg ;;
  1157. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1158. | --program-pre | --program-pr | --program-p)
  1159. ac_prev=program_prefix ;;
  1160. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1161. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1162. program_prefix=$ac_optarg ;;
  1163. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1164. | --program-suf | --program-su | --program-s)
  1165. ac_prev=program_suffix ;;
  1166. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1167. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1168. program_suffix=$ac_optarg ;;
  1169. -program-transform-name | --program-transform-name \
  1170. | --program-transform-nam | --program-transform-na \
  1171. | --program-transform-n | --program-transform- \
  1172. | --program-transform | --program-transfor \
  1173. | --program-transfo | --program-transf \
  1174. | --program-trans | --program-tran \
  1175. | --progr-tra | --program-tr | --program-t)
  1176. ac_prev=program_transform_name ;;
  1177. -program-transform-name=* | --program-transform-name=* \
  1178. | --program-transform-nam=* | --program-transform-na=* \
  1179. | --program-transform-n=* | --program-transform-=* \
  1180. | --program-transform=* | --program-transfor=* \
  1181. | --program-transfo=* | --program-transf=* \
  1182. | --program-trans=* | --program-tran=* \
  1183. | --progr-tra=* | --program-tr=* | --program-t=*)
  1184. program_transform_name=$ac_optarg ;;
  1185. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1186. ac_prev=pdfdir ;;
  1187. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1188. pdfdir=$ac_optarg ;;
  1189. -psdir | --psdir | --psdi | --psd | --ps)
  1190. ac_prev=psdir ;;
  1191. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1192. psdir=$ac_optarg ;;
  1193. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1194. | -silent | --silent | --silen | --sile | --sil)
  1195. silent=yes ;;
  1196. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1197. ac_prev=sbindir ;;
  1198. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1199. | --sbi=* | --sb=*)
  1200. sbindir=$ac_optarg ;;
  1201. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1202. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1203. | --sharedst | --shareds | --shared | --share | --shar \
  1204. | --sha | --sh)
  1205. ac_prev=sharedstatedir ;;
  1206. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1207. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1208. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1209. | --sha=* | --sh=*)
  1210. sharedstatedir=$ac_optarg ;;
  1211. -site | --site | --sit)
  1212. ac_prev=site ;;
  1213. -site=* | --site=* | --sit=*)
  1214. site=$ac_optarg ;;
  1215. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1216. ac_prev=srcdir ;;
  1217. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1218. srcdir=$ac_optarg ;;
  1219. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1220. | --syscon | --sysco | --sysc | --sys | --sy)
  1221. ac_prev=sysconfdir ;;
  1222. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1223. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1224. sysconfdir=$ac_optarg ;;
  1225. -target | --target | --targe | --targ | --tar | --ta | --t)
  1226. ac_prev=target_alias ;;
  1227. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1228. target_alias=$ac_optarg ;;
  1229. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1230. verbose=yes ;;
  1231. -version | --version | --versio | --versi | --vers | -V)
  1232. ac_init_version=: ;;
  1233. -with-* | --with-*)
  1234. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1235. # Reject names that are not valid shell variable names.
  1236. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1237. as_fn_error $? "invalid package name: $ac_useropt"
  1238. ac_useropt_orig=$ac_useropt
  1239. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1240. case $ac_user_opts in
  1241. *"
  1242. "with_$ac_useropt"
  1243. "*) ;;
  1244. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1245. ac_unrecognized_sep=', ';;
  1246. esac
  1247. eval with_$ac_useropt=\$ac_optarg ;;
  1248. -without-* | --without-*)
  1249. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1250. # Reject names that are not valid shell variable names.
  1251. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1252. as_fn_error $? "invalid package name: $ac_useropt"
  1253. ac_useropt_orig=$ac_useropt
  1254. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1255. case $ac_user_opts in
  1256. *"
  1257. "with_$ac_useropt"
  1258. "*) ;;
  1259. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1260. ac_unrecognized_sep=', ';;
  1261. esac
  1262. eval with_$ac_useropt=no ;;
  1263. --x)
  1264. # Obsolete; use --with-x.
  1265. with_x=yes ;;
  1266. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1267. | --x-incl | --x-inc | --x-in | --x-i)
  1268. ac_prev=x_includes ;;
  1269. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1270. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1271. x_includes=$ac_optarg ;;
  1272. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1273. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1274. ac_prev=x_libraries ;;
  1275. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1276. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1277. x_libraries=$ac_optarg ;;
  1278. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1279. Try \`$0 --help' for more information"
  1280. ;;
  1281. *=*)
  1282. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1283. # Reject names that are not valid shell variable names.
  1284. case $ac_envvar in #(
  1285. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1286. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1287. esac
  1288. eval $ac_envvar=\$ac_optarg
  1289. export $ac_envvar ;;
  1290. *)
  1291. # FIXME: should be removed in autoconf 3.0.
  1292. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1293. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1294. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1295. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1296. ;;
  1297. esac
  1298. done
  1299. if test -n "$ac_prev"; then
  1300. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1301. as_fn_error $? "missing argument to $ac_option"
  1302. fi
  1303. if test -n "$ac_unrecognized_opts"; then
  1304. case $enable_option_checking in
  1305. no) ;;
  1306. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1307. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1308. esac
  1309. fi
  1310. # Check all directory arguments for consistency.
  1311. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1312. datadir sysconfdir sharedstatedir localstatedir includedir \
  1313. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1314. libdir localedir mandir
  1315. do
  1316. eval ac_val=\$$ac_var
  1317. # Remove trailing slashes.
  1318. case $ac_val in
  1319. */ )
  1320. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1321. eval $ac_var=\$ac_val;;
  1322. esac
  1323. # Be sure to have absolute directory names.
  1324. case $ac_val in
  1325. [\\/$]* | ?:[\\/]* ) continue;;
  1326. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1327. esac
  1328. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1329. done
  1330. # There might be people who depend on the old broken behavior: `$host'
  1331. # used to hold the argument of --host etc.
  1332. # FIXME: To remove some day.
  1333. build=$build_alias
  1334. host=$host_alias
  1335. target=$target_alias
  1336. # FIXME: To remove some day.
  1337. if test "x$host_alias" != x; then
  1338. if test "x$build_alias" = x; then
  1339. cross_compiling=maybe
  1340. elif test "x$build_alias" != "x$host_alias"; then
  1341. cross_compiling=yes
  1342. fi
  1343. fi
  1344. ac_tool_prefix=
  1345. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1346. test "$silent" = yes && exec 6>/dev/null
  1347. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1348. ac_ls_di=`ls -di .` &&
  1349. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1350. as_fn_error $? "working directory cannot be determined"
  1351. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1352. as_fn_error $? "pwd does not report name of working directory"
  1353. # Find the source files, if location was not specified.
  1354. if test -z "$srcdir"; then
  1355. ac_srcdir_defaulted=yes
  1356. # Try the directory containing this script, then the parent directory.
  1357. ac_confdir=`$as_dirname -- "$as_myself" ||
  1358. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1359. X"$as_myself" : 'X\(//\)[^/]' \| \
  1360. X"$as_myself" : 'X\(//\)$' \| \
  1361. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1362. $as_echo X"$as_myself" |
  1363. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1364. s//\1/
  1365. q
  1366. }
  1367. /^X\(\/\/\)[^/].*/{
  1368. s//\1/
  1369. q
  1370. }
  1371. /^X\(\/\/\)$/{
  1372. s//\1/
  1373. q
  1374. }
  1375. /^X\(\/\).*/{
  1376. s//\1/
  1377. q
  1378. }
  1379. s/.*/./; q'`
  1380. srcdir=$ac_confdir
  1381. if test ! -r "$srcdir/$ac_unique_file"; then
  1382. srcdir=..
  1383. fi
  1384. else
  1385. ac_srcdir_defaulted=no
  1386. fi
  1387. if test ! -r "$srcdir/$ac_unique_file"; then
  1388. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1389. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1390. fi
  1391. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1392. ac_abs_confdir=`(
  1393. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1394. pwd)`
  1395. # When building in place, set srcdir=.
  1396. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1397. srcdir=.
  1398. fi
  1399. # Remove unnecessary trailing slashes from srcdir.
  1400. # Double slashes in file names in object file debugging info
  1401. # mess up M-x gdb in Emacs.
  1402. case $srcdir in
  1403. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1404. esac
  1405. for ac_var in $ac_precious_vars; do
  1406. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1407. eval ac_env_${ac_var}_value=\$${ac_var}
  1408. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1409. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1410. done
  1411. #
  1412. # Report the --help message.
  1413. #
  1414. if test "$ac_init_help" = "long"; then
  1415. # Omit some internal or obsolete options to make the list less imposing.
  1416. # This message is too long to be a string in the A/UX 3.1 sh.
  1417. cat <<_ACEOF
  1418. \`configure' configures dirsrv 1.0 to adapt to many kinds of systems.
  1419. Usage: $0 [OPTION]... [VAR=VALUE]...
  1420. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1421. VAR=VALUE. See below for descriptions of some of the useful variables.
  1422. Defaults for the options are specified in brackets.
  1423. Configuration:
  1424. -h, --help display this help and exit
  1425. --help=short display options specific to this package
  1426. --help=recursive display the short help of all the included packages
  1427. -V, --version display version information and exit
  1428. -q, --quiet, --silent do not print \`checking ...' messages
  1429. --cache-file=FILE cache test results in FILE [disabled]
  1430. -C, --config-cache alias for \`--cache-file=config.cache'
  1431. -n, --no-create do not create output files
  1432. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1433. Installation directories:
  1434. --prefix=PREFIX install architecture-independent files in PREFIX
  1435. [$ac_default_prefix]
  1436. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1437. [PREFIX]
  1438. By default, \`make install' will install all the files in
  1439. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1440. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1441. for instance \`--prefix=\$HOME'.
  1442. For better control, use the options below.
  1443. Fine tuning of the installation directories:
  1444. --bindir=DIR user executables [EPREFIX/bin]
  1445. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1446. --libexecdir=DIR program executables [EPREFIX/libexec]
  1447. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1448. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1449. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1450. --libdir=DIR object code libraries [EPREFIX/lib]
  1451. --includedir=DIR C header files [PREFIX/include]
  1452. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1453. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1454. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1455. --infodir=DIR info documentation [DATAROOTDIR/info]
  1456. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1457. --mandir=DIR man documentation [DATAROOTDIR/man]
  1458. --docdir=DIR documentation root [DATAROOTDIR/doc/dirsrv]
  1459. --htmldir=DIR html documentation [DOCDIR]
  1460. --dvidir=DIR dvi documentation [DOCDIR]
  1461. --pdfdir=DIR pdf documentation [DOCDIR]
  1462. --psdir=DIR ps documentation [DOCDIR]
  1463. _ACEOF
  1464. cat <<\_ACEOF
  1465. Program names:
  1466. --program-prefix=PREFIX prepend PREFIX to installed program names
  1467. --program-suffix=SUFFIX append SUFFIX to installed program names
  1468. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1469. System types:
  1470. --build=BUILD configure for building on BUILD [guessed]
  1471. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1472. _ACEOF
  1473. fi
  1474. if test -n "$ac_init_help"; then
  1475. case $ac_init_help in
  1476. short | recursive ) echo "Configuration of dirsrv 1.0:";;
  1477. esac
  1478. cat <<\_ACEOF
  1479. Optional Features:
  1480. --disable-option-checking ignore unrecognized --enable/--with options
  1481. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1482. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1483. --enable-silent-rules less verbose build output (undo: "make V=1")
  1484. --disable-silent-rules verbose build output (undo: "make V=0")
  1485. --enable-maintainer-mode
  1486. enable make rules and dependencies not useful (and
  1487. sometimes confusing) to the casual installer
  1488. --enable-dependency-tracking
  1489. do not reject slow dependency extractors
  1490. --disable-dependency-tracking
  1491. speeds up one-time build
  1492. --enable-static[=PKGS] build static libraries [default=no]
  1493. --enable-shared[=PKGS] build shared libraries [default=yes]
  1494. --enable-fast-install[=PKGS]
  1495. optimize for fast installation [default=yes]
  1496. --disable-libtool-lock avoid locking (might break parallel builds)
  1497. --enable-debug Enable debug features (default: no)
  1498. --enable-asan Enable gcc address sanitizer options (default: no)
  1499. --enable-gcc-security Enable gcc secure compilation options (default: no)
  1500. --enable-bundle Enable bundled dependencies (default: no)
  1501. --enable-pam-passthru enable the PAM passthrough auth plugin (default:
  1502. yes)
  1503. --enable-dna enable the Distributed Numeric Assignment (DNA)
  1504. plugin (default: yes)
  1505. --enable-ldapi enable LDAP over unix domain socket (LDAPI) support
  1506. (default: yes)
  1507. --enable-autobind enable auto bind over unix domain socket (LDAPI)
  1508. support (default: no)
  1509. --enable-auto-dn-suffix enable auto bind with auto dn suffix over unix
  1510. domain socket (LDAPI) support (default: no)
  1511. --enable-bitwise enable the bitwise matching rule plugin (default:
  1512. yes)
  1513. --enable-presence enable the presence plugin (default: no)
  1514. --enable-acctpolicy enable the account policy plugin (default: yes)
  1515. --enable-posix-winsync enable support for POSIX user/group attributes in
  1516. winsync (default: yes)
  1517. --enable-nunc-stans enable support for nunc-stans event framework
  1518. (default: no)
  1519. Optional Packages:
  1520. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1521. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1522. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1523. both]
  1524. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1525. --with-sysroot=DIR Search for dependent libraries within DIR
  1526. (or the compiler's sysroot if not specified).
  1527. --with-fhs Use FHS layout
  1528. --with-fhs-opt Use FHS optional layout
  1529. --with-tmpfiles-d=PATH system uses tmpfiles.d to handle temp files/dirs
  1530. (default: $with_tmpfiles_d)
  1531. --with-perldir=PATH Directory for perl)
  1532. --with-pythondir=PATH Directory for python)
  1533. --with-systemdsystemunitdir=PATH
  1534. Directory for systemd service files (default:
  1535. $with_systemdsystemunitdir)
  1536. --with-systemdsystemconfdir=PATH
  1537. Directory for systemd service files (default:
  1538. $with_systemdsystemconfdir)
  1539. --with-systemdgroupname=NAME
  1540. Name of group target for all instances (default:
  1541. $with_systemdgroupname)
  1542. --with-instconfigdir=/path
  1543. Base directory for instance specific writable
  1544. configuration directories (default
  1545. $sysconfdir/$PACKAGE_NAME)
  1546. --with-initddir=/path Absolute path (not relative like some of the other
  1547. options) that should contain the SysV init scripts
  1548. (default '$(sysconfdir)/rc.d')
  1549. --with-nspr[=PATH] Netscape Portable Runtime (NSPR) directory
  1550. --with-nspr-inc=PATH Netscape Portable Runtime (NSPR) include directory
  1551. --with-nspr-lib=PATH Netscape Portable Runtime (NSPR) library directory
  1552. --with-nss[=PATH] Network Security Services (NSS) directory
  1553. --with-nss-inc=PATH Network Security Services (NSS) include directory
  1554. --with-nss-lib=PATH Network Security Services (NSS) library directory
  1555. --with-openldap[=PATH] Use OpenLDAP - optional PATH is path to OpenLDAP SDK
  1556. --with-openldap-inc=PATH
  1557. OpenLDAP SDK include directory
  1558. --with-openldap-lib=PATH
  1559. OpenLDAP SDK library directory
  1560. --with-openldap-bin=PATH
  1561. OpenLDAP SDK binary directory
  1562. --with-ldapsdk[=PATH] Mozilla LDAP SDK directory
  1563. --with-ldapsdk-inc=PATH Mozilla LDAP SDK include directory
  1564. --with-ldapsdk-lib=PATH Mozilla LDAP SDK library directory
  1565. --with-ldapsdk-bin=PATH Mozilla LDAP SDK binary directory
  1566. --with-db[=PATH] Berkeley DB directory
  1567. --with-db-inc=PATH Berkeley DB include file directory
  1568. --with-db-lib=PATH Berkeley DB library directory
  1569. --with-sasl[=PATH] Use SASL from supplied path
  1570. --with-sasl-inc=PATH SASL include file directory
  1571. --with-sasl-lib=PATH SASL library directory
  1572. --with-svrcore[=PATH] Use system installed SVRCORE - optional path for
  1573. SVRCORE
  1574. --with-svrcore-inc=PATH SVRCORE include file directory
  1575. --with-svrcore-lib=PATH SVRCORE library directory
  1576. --with-icu[=PATH] ICU directory
  1577. --with-icu-inc=PATH ICU include directory
  1578. --with-icu-lib=PATH ICU library directory
  1579. --with-icu-bin=PATH ICU binary directory
  1580. --with-netsnmp[=PATH] Net-SNMP directory
  1581. --with-netsnmp-inc=PATH Net-SNMP include directory
  1582. --with-netsnmp-lib=PATH Net-SNMP library directory
  1583. --with-kerberos[=PATH] Use the kerberos API in the server directly - allows
  1584. the server to authenticate directly with a keytab -
  1585. otherwise, SASL/GSSAPI auth depends on underlying
  1586. SASL libraries and external kinit with a keytab - if
  1587. PATH is not specified, look for kerberos in the
  1588. system locations. This will attempt to use
  1589. krb5-config from the PATH to find the libs and
  1590. include dirs - you can specify KRB5_CONFIG_BIN to
  1591. specify a different filename or absolute path. If
  1592. krb5-config does not work, this will attempt to look
  1593. in various system directories
  1594. --with-kerberos-inc=PATH
  1595. Allows you to explicitly set the directory
  1596. containing the kerberos include files - implies use
  1597. of kerberos
  1598. --with-kerberos-lib=PATH
  1599. Allows you to explicitly set the directory
  1600. containing the kerberos libraries - implies use of
  1601. kerberos
  1602. --with-pcre[=PATH] Perl Compatible Regular Expression directory
  1603. --with-selinux Support SELinux policy
  1604. --with-nunc-stans[=PATH]
  1605. nunc-stans directory
  1606. --with-nunc-stans-inc=PATH
  1607. nunc-stans include file directory
  1608. --with-nunc-stans-lib=PATH
  1609. nunc-stans library directory
  1610. --with-systemd Enable Systemd native integration.
  1611. Some influential environment variables:
  1612. CXX C++ compiler command
  1613. CXXFLAGS C++ compiler flags
  1614. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1615. nonstandard directory <lib dir>
  1616. LIBS libraries to pass to the linker, e.g. -l<library>
  1617. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1618. you have headers in a nonstandard directory <include dir>
  1619. CC C compiler command
  1620. CFLAGS C compiler flags
  1621. CCAS assembler compiler command (defaults to CC)
  1622. CCASFLAGS assembler compiler flags (defaults to CFLAGS)
  1623. CPP C preprocessor
  1624. CXXCPP C++ preprocessor
  1625. PKG_CONFIG path to pkg-config utility
  1626. PKG_CONFIG_PATH
  1627. directories to add to pkg-config's search path
  1628. PKG_CONFIG_LIBDIR
  1629. path overriding pkg-config's built-in search path
  1630. Use these variables to override the choices made by `configure' or to help
  1631. it to find libraries and programs with nonstandard names/locations.
  1632. Report bugs to <http://bugzilla.redhat.com/>.
  1633. _ACEOF
  1634. ac_status=$?
  1635. fi
  1636. if test "$ac_init_help" = "recursive"; then
  1637. # If there are subdirs, report their specific --help.
  1638. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1639. test -d "$ac_dir" ||
  1640. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1641. continue
  1642. ac_builddir=.
  1643. case "$ac_dir" in
  1644. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1645. *)
  1646. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1647. # A ".." for each directory in $ac_dir_suffix.
  1648. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1649. case $ac_top_builddir_sub in
  1650. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1651. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1652. esac ;;
  1653. esac
  1654. ac_abs_top_builddir=$ac_pwd
  1655. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1656. # for backward compatibility:
  1657. ac_top_builddir=$ac_top_build_prefix
  1658. case $srcdir in
  1659. .) # We are building in place.
  1660. ac_srcdir=.
  1661. ac_top_srcdir=$ac_top_builddir_sub
  1662. ac_abs_top_srcdir=$ac_pwd ;;
  1663. [\\/]* | ?:[\\/]* ) # Absolute name.
  1664. ac_srcdir=$srcdir$ac_dir_suffix;
  1665. ac_top_srcdir=$srcdir
  1666. ac_abs_top_srcdir=$srcdir ;;
  1667. *) # Relative name.
  1668. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1669. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1670. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1671. esac
  1672. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1673. cd "$ac_dir" || { ac_status=$?; continue; }
  1674. # Check for guested configure.
  1675. if test -f "$ac_srcdir/configure.gnu"; then
  1676. echo &&
  1677. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1678. elif test -f "$ac_srcdir/configure"; then
  1679. echo &&
  1680. $SHELL "$ac_srcdir/configure" --help=recursive
  1681. else
  1682. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1683. fi || ac_status=$?
  1684. cd "$ac_pwd" || { ac_status=$?; break; }
  1685. done
  1686. fi
  1687. test -n "$ac_init_help" && exit $ac_status
  1688. if $ac_init_version; then
  1689. cat <<\_ACEOF
  1690. dirsrv configure 1.0
  1691. generated by GNU Autoconf 2.69
  1692. Copyright (C) 2012 Free Software Foundation, Inc.
  1693. This configure script is free software; the Free Software Foundation
  1694. gives unlimited permission to copy, distribute and modify it.
  1695. _ACEOF
  1696. exit
  1697. fi
  1698. ## ------------------------ ##
  1699. ## Autoconf initialization. ##
  1700. ## ------------------------ ##
  1701. # ac_fn_cxx_try_compile LINENO
  1702. # ----------------------------
  1703. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1704. ac_fn_cxx_try_compile ()
  1705. {
  1706. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1707. rm -f conftest.$ac_objext
  1708. if { { ac_try="$ac_compile"
  1709. case "(($ac_try" in
  1710. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1711. *) ac_try_echo=$ac_try;;
  1712. esac
  1713. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1714. $as_echo "$ac_try_echo"; } >&5
  1715. (eval "$ac_compile") 2>conftest.err
  1716. ac_status=$?
  1717. if test -s conftest.err; then
  1718. grep -v '^ *+' conftest.err >conftest.er1
  1719. cat conftest.er1 >&5
  1720. mv -f conftest.er1 conftest.err
  1721. fi
  1722. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1723. test $ac_status = 0; } && {
  1724. test -z "$ac_cxx_werror_flag" ||
  1725. test ! -s conftest.err
  1726. } && test -s conftest.$ac_objext; then :
  1727. ac_retval=0
  1728. else
  1729. $as_echo "$as_me: failed program was:" >&5
  1730. sed 's/^/| /' conftest.$ac_ext >&5
  1731. ac_retval=1
  1732. fi
  1733. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1734. as_fn_set_status $ac_retval
  1735. } # ac_fn_cxx_try_compile
  1736. # ac_fn_c_try_compile LINENO
  1737. # --------------------------
  1738. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1739. ac_fn_c_try_compile ()
  1740. {
  1741. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1742. rm -f conftest.$ac_objext
  1743. if { { ac_try="$ac_compile"
  1744. case "(($ac_try" in
  1745. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1746. *) ac_try_echo=$ac_try;;
  1747. esac
  1748. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1749. $as_echo "$ac_try_echo"; } >&5
  1750. (eval "$ac_compile") 2>conftest.err
  1751. ac_status=$?
  1752. if test -s conftest.err; then
  1753. grep -v '^ *+' conftest.err >conftest.er1
  1754. cat conftest.er1 >&5
  1755. mv -f conftest.er1 conftest.err
  1756. fi
  1757. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1758. test $ac_status = 0; } && {
  1759. test -z "$ac_c_werror_flag" ||
  1760. test ! -s conftest.err
  1761. } && test -s conftest.$ac_objext; then :
  1762. ac_retval=0
  1763. else
  1764. $as_echo "$as_me: failed program was:" >&5
  1765. sed 's/^/| /' conftest.$ac_ext >&5
  1766. ac_retval=1
  1767. fi
  1768. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1769. as_fn_set_status $ac_retval
  1770. } # ac_fn_c_try_compile
  1771. # ac_fn_c_try_link LINENO
  1772. # -----------------------
  1773. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1774. ac_fn_c_try_link ()
  1775. {
  1776. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1777. rm -f conftest.$ac_objext conftest$ac_exeext
  1778. if { { ac_try="$ac_link"
  1779. case "(($ac_try" in
  1780. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1781. *) ac_try_echo=$ac_try;;
  1782. esac
  1783. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1784. $as_echo "$ac_try_echo"; } >&5
  1785. (eval "$ac_link") 2>conftest.err
  1786. ac_status=$?
  1787. if test -s conftest.err; then
  1788. grep -v '^ *+' conftest.err >conftest.er1
  1789. cat conftest.er1 >&5
  1790. mv -f conftest.er1 conftest.err
  1791. fi
  1792. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1793. test $ac_status = 0; } && {
  1794. test -z "$ac_c_werror_flag" ||
  1795. test ! -s conftest.err
  1796. } && test -s conftest$ac_exeext && {
  1797. test "$cross_compiling" = yes ||
  1798. test -x conftest$ac_exeext
  1799. }; then :
  1800. ac_retval=0
  1801. else
  1802. $as_echo "$as_me: failed program was:" >&5
  1803. sed 's/^/| /' conftest.$ac_ext >&5
  1804. ac_retval=1
  1805. fi
  1806. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1807. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1808. # interfere with the next link command; also delete a directory that is
  1809. # left behind by Apple's compiler. We do this before executing the actions.
  1810. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1811. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1812. as_fn_set_status $ac_retval
  1813. } # ac_fn_c_try_link
  1814. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1815. # -------------------------------------------------------
  1816. # Tests whether HEADER exists and can be compiled using the include files in
  1817. # INCLUDES, setting the cache variable VAR accordingly.
  1818. ac_fn_c_check_header_compile ()
  1819. {
  1820. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1821. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1822. $as_echo_n "checking for $2... " >&6; }
  1823. if eval \${$3+:} false; then :
  1824. $as_echo_n "(cached) " >&6
  1825. else
  1826. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1827. /* end confdefs.h. */
  1828. $4
  1829. #include <$2>
  1830. _ACEOF
  1831. if ac_fn_c_try_compile "$LINENO"; then :
  1832. eval "$3=yes"
  1833. else
  1834. eval "$3=no"
  1835. fi
  1836. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1837. fi
  1838. eval ac_res=\$$3
  1839. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1840. $as_echo "$ac_res" >&6; }
  1841. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1842. } # ac_fn_c_check_header_compile
  1843. # ac_fn_c_try_cpp LINENO
  1844. # ----------------------
  1845. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1846. ac_fn_c_try_cpp ()
  1847. {
  1848. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1849. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1850. case "(($ac_try" in
  1851. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1852. *) ac_try_echo=$ac_try;;
  1853. esac
  1854. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1855. $as_echo "$ac_try_echo"; } >&5
  1856. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1857. ac_status=$?
  1858. if test -s conftest.err; then
  1859. grep -v '^ *+' conftest.err >conftest.er1
  1860. cat conftest.er1 >&5
  1861. mv -f conftest.er1 conftest.err
  1862. fi
  1863. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1864. test $ac_status = 0; } > conftest.i && {
  1865. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1866. test ! -s conftest.err
  1867. }; then :
  1868. ac_retval=0
  1869. else
  1870. $as_echo "$as_me: failed program was:" >&5
  1871. sed 's/^/| /' conftest.$ac_ext >&5
  1872. ac_retval=1
  1873. fi
  1874. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1875. as_fn_set_status $ac_retval
  1876. } # ac_fn_c_try_cpp
  1877. # ac_fn_c_try_run LINENO
  1878. # ----------------------
  1879. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1880. # that executables *can* be run.
  1881. ac_fn_c_try_run ()
  1882. {
  1883. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1884. if { { ac_try="$ac_link"
  1885. case "(($ac_try" in
  1886. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1887. *) ac_try_echo=$ac_try;;
  1888. esac
  1889. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1890. $as_echo "$ac_try_echo"; } >&5
  1891. (eval "$ac_link") 2>&5
  1892. ac_status=$?
  1893. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1894. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1895. { { case "(($ac_try" in
  1896. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1897. *) ac_try_echo=$ac_try;;
  1898. esac
  1899. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1900. $as_echo "$ac_try_echo"; } >&5
  1901. (eval "$ac_try") 2>&5
  1902. ac_status=$?
  1903. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1904. test $ac_status = 0; }; }; then :
  1905. ac_retval=0
  1906. else
  1907. $as_echo "$as_me: program exited with status $ac_status" >&5
  1908. $as_echo "$as_me: failed program was:" >&5
  1909. sed 's/^/| /' conftest.$ac_ext >&5
  1910. ac_retval=$ac_status
  1911. fi
  1912. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1913. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1914. as_fn_set_status $ac_retval
  1915. } # ac_fn_c_try_run
  1916. # ac_fn_c_check_func LINENO FUNC VAR
  1917. # ----------------------------------
  1918. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1919. ac_fn_c_check_func ()
  1920. {
  1921. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1922. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1923. $as_echo_n "checking for $2... " >&6; }
  1924. if eval \${$3+:} false; then :
  1925. $as_echo_n "(cached) " >&6
  1926. else
  1927. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1928. /* end confdefs.h. */
  1929. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1930. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1931. #define $2 innocuous_$2
  1932. /* System header to define __stub macros and hopefully few prototypes,
  1933. which can conflict with char $2 (); below.
  1934. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1935. <limits.h> exists even on freestanding compilers. */
  1936. #ifdef __STDC__
  1937. # include <limits.h>
  1938. #else
  1939. # include <assert.h>
  1940. #endif
  1941. #undef $2
  1942. /* Override any GCC internal prototype to avoid an error.
  1943. Use char because int might match the return type of a GCC
  1944. builtin and then its argument prototype would still apply. */
  1945. #ifdef __cplusplus
  1946. extern "C"
  1947. #endif
  1948. char $2 ();
  1949. /* The GNU C library defines this for functions which it implements
  1950. to always fail with ENOSYS. Some functions are actually named
  1951. something starting with __ and the normal name is an alias. */
  1952. #if defined __stub_$2 || defined __stub___$2
  1953. choke me
  1954. #endif
  1955. int
  1956. main ()
  1957. {
  1958. return $2 ();
  1959. ;
  1960. return 0;
  1961. }
  1962. _ACEOF
  1963. if ac_fn_c_try_link "$LINENO"; then :
  1964. eval "$3=yes"
  1965. else
  1966. eval "$3=no"
  1967. fi
  1968. rm -f core conftest.err conftest.$ac_objext \
  1969. conftest$ac_exeext conftest.$ac_ext
  1970. fi
  1971. eval ac_res=\$$3
  1972. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1973. $as_echo "$ac_res" >&6; }
  1974. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1975. } # ac_fn_c_check_func
  1976. # ac_fn_cxx_try_cpp LINENO
  1977. # ------------------------
  1978. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1979. ac_fn_cxx_try_cpp ()
  1980. {
  1981. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1982. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1983. case "(($ac_try" in
  1984. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1985. *) ac_try_echo=$ac_try;;
  1986. esac
  1987. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1988. $as_echo "$ac_try_echo"; } >&5
  1989. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1990. ac_status=$?
  1991. if test -s conftest.err; then
  1992. grep -v '^ *+' conftest.err >conftest.er1
  1993. cat conftest.er1 >&5
  1994. mv -f conftest.er1 conftest.err
  1995. fi
  1996. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1997. test $ac_status = 0; } > conftest.i && {
  1998. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1999. test ! -s conftest.err
  2000. }; then :
  2001. ac_retval=0
  2002. else
  2003. $as_echo "$as_me: failed program was:" >&5
  2004. sed 's/^/| /' conftest.$ac_ext >&5
  2005. ac_retval=1
  2006. fi
  2007. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2008. as_fn_set_status $ac_retval
  2009. } # ac_fn_cxx_try_cpp
  2010. # ac_fn_cxx_try_link LINENO
  2011. # -------------------------
  2012. # Try to link conftest.$ac_ext, and return whether this succeeded.
  2013. ac_fn_cxx_try_link ()
  2014. {
  2015. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2016. rm -f conftest.$ac_objext conftest$ac_exeext
  2017. if { { ac_try="$ac_link"
  2018. case "(($ac_try" in
  2019. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2020. *) ac_try_echo=$ac_try;;
  2021. esac
  2022. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2023. $as_echo "$ac_try_echo"; } >&5
  2024. (eval "$ac_link") 2>conftest.err
  2025. ac_status=$?
  2026. if test -s conftest.err; then
  2027. grep -v '^ *+' conftest.err >conftest.er1
  2028. cat conftest.er1 >&5
  2029. mv -f conftest.er1 conftest.err
  2030. fi
  2031. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2032. test $ac_status = 0; } && {
  2033. test -z "$ac_cxx_werror_flag" ||
  2034. test ! -s conftest.err
  2035. } && test -s conftest$ac_exeext && {
  2036. test "$cross_compiling" = yes ||
  2037. test -x conftest$ac_exeext
  2038. }; then :
  2039. ac_retval=0
  2040. else
  2041. $as_echo "$as_me: failed program was:" >&5
  2042. sed 's/^/| /' conftest.$ac_ext >&5
  2043. ac_retval=1
  2044. fi
  2045. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  2046. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  2047. # interfere with the next link command; also delete a directory that is
  2048. # left behind by Apple's compiler. We do this before executing the actions.
  2049. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2050. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2051. as_fn_set_status $ac_retval
  2052. } # ac_fn_cxx_try_link
  2053. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  2054. # -------------------------------------------------------
  2055. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  2056. # the include files in INCLUDES and setting the cache variable VAR
  2057. # accordingly.
  2058. ac_fn_c_check_header_mongrel ()
  2059. {
  2060. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2061. if eval \${$3+:} false; then :
  2062. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2063. $as_echo_n "checking for $2... " >&6; }
  2064. if eval \${$3+:} false; then :
  2065. $as_echo_n "(cached) " >&6
  2066. fi
  2067. eval ac_res=\$$3
  2068. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2069. $as_echo "$ac_res" >&6; }
  2070. else
  2071. # Is the header compilable?
  2072. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  2073. $as_echo_n "checking $2 usability... " >&6; }
  2074. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2075. /* end confdefs.h. */
  2076. $4
  2077. #include <$2>
  2078. _ACEOF
  2079. if ac_fn_c_try_compile "$LINENO"; then :
  2080. ac_header_compiler=yes
  2081. else
  2082. ac_header_compiler=no
  2083. fi
  2084. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2085. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  2086. $as_echo "$ac_header_compiler" >&6; }
  2087. # Is the header present?
  2088. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  2089. $as_echo_n "checking $2 presence... " >&6; }
  2090. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2091. /* end confdefs.h. */
  2092. #include <$2>
  2093. _ACEOF
  2094. if ac_fn_c_try_cpp "$LINENO"; then :
  2095. ac_header_preproc=yes
  2096. else
  2097. ac_header_preproc=no
  2098. fi
  2099. rm -f conftest.err conftest.i conftest.$ac_ext
  2100. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  2101. $as_echo "$ac_header_preproc" >&6; }
  2102. # So? What about this header?
  2103. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  2104. yes:no: )
  2105. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  2106. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  2107. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2108. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2109. ;;
  2110. no:yes:* )
  2111. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  2112. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  2113. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  2114. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  2115. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  2116. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  2117. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  2118. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  2119. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2120. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2121. ( $as_echo "## ------------------------------------------ ##
  2122. ## Report this to http://bugzilla.redhat.com/ ##
  2123. ## ------------------------------------------ ##"
  2124. ) | sed "s/^/$as_me: WARNING: /" >&2
  2125. ;;
  2126. esac
  2127. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2128. $as_echo_n "checking for $2... " >&6; }
  2129. if eval \${$3+:} false; then :
  2130. $as_echo_n "(cached) " >&6
  2131. else
  2132. eval "$3=\$ac_header_compiler"
  2133. fi
  2134. eval ac_res=\$$3
  2135. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2136. $as_echo "$ac_res" >&6; }
  2137. fi
  2138. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2139. } # ac_fn_c_check_header_mongrel
  2140. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  2141. # -------------------------------------------
  2142. # Tests whether TYPE exists after having included INCLUDES, setting cache
  2143. # variable VAR accordingly.
  2144. ac_fn_c_check_type ()
  2145. {
  2146. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2147. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2148. $as_echo_n "checking for $2... " >&6; }
  2149. if eval \${$3+:} false; then :
  2150. $as_echo_n "(cached) " >&6
  2151. else
  2152. eval "$3=no"
  2153. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2154. /* end confdefs.h. */
  2155. $4
  2156. int
  2157. main ()
  2158. {
  2159. if (sizeof ($2))
  2160. return 0;
  2161. ;
  2162. return 0;
  2163. }
  2164. _ACEOF
  2165. if ac_fn_c_try_compile "$LINENO"; then :
  2166. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2167. /* end confdefs.h. */
  2168. $4
  2169. int
  2170. main ()
  2171. {
  2172. if (sizeof (($2)))
  2173. return 0;
  2174. ;
  2175. return 0;
  2176. }
  2177. _ACEOF
  2178. if ac_fn_c_try_compile "$LINENO"; then :
  2179. else
  2180. eval "$3=yes"
  2181. fi
  2182. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2183. fi
  2184. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2185. fi
  2186. eval ac_res=\$$3
  2187. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2188. $as_echo "$ac_res" >&6; }
  2189. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2190. } # ac_fn_c_check_type
  2191. # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
  2192. # ---------------------------------------------
  2193. # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
  2194. # accordingly.
  2195. ac_fn_c_check_decl ()
  2196. {
  2197. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2198. as_decl_name=`echo $2|sed 's/ *(.*//'`
  2199. as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
  2200. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
  2201. $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
  2202. if eval \${$3+:} false; then :
  2203. $as_echo_n "(cached) " >&6
  2204. else
  2205. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2206. /* end confdefs.h. */
  2207. $4
  2208. int
  2209. main ()
  2210. {
  2211. #ifndef $as_decl_name
  2212. #ifdef __cplusplus
  2213. (void) $as_decl_use;
  2214. #else
  2215. (void) $as_decl_name;
  2216. #endif
  2217. #endif
  2218. ;
  2219. return 0;
  2220. }
  2221. _ACEOF
  2222. if ac_fn_c_try_compile "$LINENO"; then :
  2223. eval "$3=yes"
  2224. else
  2225. eval "$3=no"
  2226. fi
  2227. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2228. fi
  2229. eval ac_res=\$$3
  2230. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2231. $as_echo "$ac_res" >&6; }
  2232. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2233. } # ac_fn_c_check_decl
  2234. cat >config.log <<_ACEOF
  2235. This file contains any messages produced by compilers while
  2236. running configure, to aid debugging if configure makes a mistake.
  2237. It was created by dirsrv $as_me 1.0, which was
  2238. generated by GNU Autoconf 2.69. Invocation command line was
  2239. $ $0 $@
  2240. _ACEOF
  2241. exec 5>>config.log
  2242. {
  2243. cat <<_ASUNAME
  2244. ## --------- ##
  2245. ## Platform. ##
  2246. ## --------- ##
  2247. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2248. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2249. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2250. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2251. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2252. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2253. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2254. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2255. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2256. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2257. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2258. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2259. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2260. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2261. _ASUNAME
  2262. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2263. for as_dir in $PATH
  2264. do
  2265. IFS=$as_save_IFS
  2266. test -z "$as_dir" && as_dir=.
  2267. $as_echo "PATH: $as_dir"
  2268. done
  2269. IFS=$as_save_IFS
  2270. } >&5
  2271. cat >&5 <<_ACEOF
  2272. ## ----------- ##
  2273. ## Core tests. ##
  2274. ## ----------- ##
  2275. _ACEOF
  2276. # Keep a trace of the command line.
  2277. # Strip out --no-create and --no-recursion so they do not pile up.
  2278. # Strip out --silent because we don't want to record it for future runs.
  2279. # Also quote any args containing shell meta-characters.
  2280. # Make two passes to allow for proper duplicate-argument suppression.
  2281. ac_configure_args=
  2282. ac_configure_args0=
  2283. ac_configure_args1=
  2284. ac_must_keep_next=false
  2285. for ac_pass in 1 2
  2286. do
  2287. for ac_arg
  2288. do
  2289. case $ac_arg in
  2290. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2291. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2292. | -silent | --silent | --silen | --sile | --sil)
  2293. continue ;;
  2294. *\'*)
  2295. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2296. esac
  2297. case $ac_pass in
  2298. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2299. 2)
  2300. as_fn_append ac_configure_args1 " '$ac_arg'"
  2301. if test $ac_must_keep_next = true; then
  2302. ac_must_keep_next=false # Got value, back to normal.
  2303. else
  2304. case $ac_arg in
  2305. *=* | --config-cache | -C | -disable-* | --disable-* \
  2306. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2307. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2308. | -with-* | --with-* | -without-* | --without-* | --x)
  2309. case "$ac_configure_args0 " in
  2310. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2311. esac
  2312. ;;
  2313. -* ) ac_must_keep_next=true ;;
  2314. esac
  2315. fi
  2316. as_fn_append ac_configure_args " '$ac_arg'"
  2317. ;;
  2318. esac
  2319. done
  2320. done
  2321. { ac_configure_args0=; unset ac_configure_args0;}
  2322. { ac_configure_args1=; unset ac_configure_args1;}
  2323. # When interrupted or exit'd, cleanup temporary files, and complete
  2324. # config.log. We remove comments because anyway the quotes in there
  2325. # would cause problems or look ugly.
  2326. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2327. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2328. trap 'exit_status=$?
  2329. # Save into config.log some information that might help in debugging.
  2330. {
  2331. echo
  2332. $as_echo "## ---------------- ##
  2333. ## Cache variables. ##
  2334. ## ---------------- ##"
  2335. echo
  2336. # The following way of writing the cache mishandles newlines in values,
  2337. (
  2338. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2339. eval ac_val=\$$ac_var
  2340. case $ac_val in #(
  2341. *${as_nl}*)
  2342. case $ac_var in #(
  2343. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2344. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2345. esac
  2346. case $ac_var in #(
  2347. _ | IFS | as_nl) ;; #(
  2348. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2349. *) { eval $ac_var=; unset $ac_var;} ;;
  2350. esac ;;
  2351. esac
  2352. done
  2353. (set) 2>&1 |
  2354. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2355. *${as_nl}ac_space=\ *)
  2356. sed -n \
  2357. "s/'\''/'\''\\\\'\'''\''/g;
  2358. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2359. ;; #(
  2360. *)
  2361. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2362. ;;
  2363. esac |
  2364. sort
  2365. )
  2366. echo
  2367. $as_echo "## ----------------- ##
  2368. ## Output variables. ##
  2369. ## ----------------- ##"
  2370. echo
  2371. for ac_var in $ac_subst_vars
  2372. do
  2373. eval ac_val=\$$ac_var
  2374. case $ac_val in
  2375. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2376. esac
  2377. $as_echo "$ac_var='\''$ac_val'\''"
  2378. done | sort
  2379. echo
  2380. if test -n "$ac_subst_files"; then
  2381. $as_echo "## ------------------- ##
  2382. ## File substitutions. ##
  2383. ## ------------------- ##"
  2384. echo
  2385. for ac_var in $ac_subst_files
  2386. do
  2387. eval ac_val=\$$ac_var
  2388. case $ac_val in
  2389. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2390. esac
  2391. $as_echo "$ac_var='\''$ac_val'\''"
  2392. done | sort
  2393. echo
  2394. fi
  2395. if test -s confdefs.h; then
  2396. $as_echo "## ----------- ##
  2397. ## confdefs.h. ##
  2398. ## ----------- ##"
  2399. echo
  2400. cat confdefs.h
  2401. echo
  2402. fi
  2403. test "$ac_signal" != 0 &&
  2404. $as_echo "$as_me: caught signal $ac_signal"
  2405. $as_echo "$as_me: exit $exit_status"
  2406. } >&5
  2407. rm -f core *.core core.conftest.* &&
  2408. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2409. exit $exit_status
  2410. ' 0
  2411. for ac_signal in 1 2 13 15; do
  2412. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2413. done
  2414. ac_signal=0
  2415. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2416. rm -f -r conftest* confdefs.h
  2417. $as_echo "/* confdefs.h */" > confdefs.h
  2418. # Predefined preprocessor variables.
  2419. cat >>confdefs.h <<_ACEOF
  2420. #define PACKAGE_NAME "$PACKAGE_NAME"
  2421. _ACEOF
  2422. cat >>confdefs.h <<_ACEOF
  2423. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2424. _ACEOF
  2425. cat >>confdefs.h <<_ACEOF
  2426. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2427. _ACEOF
  2428. cat >>confdefs.h <<_ACEOF
  2429. #define PACKAGE_STRING "$PACKAGE_STRING"
  2430. _ACEOF
  2431. cat >>confdefs.h <<_ACEOF
  2432. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2433. _ACEOF
  2434. cat >>confdefs.h <<_ACEOF
  2435. #define PACKAGE_URL "$PACKAGE_URL"
  2436. _ACEOF
  2437. # Let the site file select an alternate cache file if it wants to.
  2438. # Prefer an explicitly selected file to automatically selected ones.
  2439. ac_site_file1=NONE
  2440. ac_site_file2=NONE
  2441. if test -n "$CONFIG_SITE"; then
  2442. # We do not want a PATH search for config.site.
  2443. case $CONFIG_SITE in #((
  2444. -*) ac_site_file1=./$CONFIG_SITE;;
  2445. */*) ac_site_file1=$CONFIG_SITE;;
  2446. *) ac_site_file1=./$CONFIG_SITE;;
  2447. esac
  2448. elif test "x$prefix" != xNONE; then
  2449. ac_site_file1=$prefix/share/config.site
  2450. ac_site_file2=$prefix/etc/config.site
  2451. else
  2452. ac_site_file1=$ac_default_prefix/share/config.site
  2453. ac_site_file2=$ac_default_prefix/etc/config.site
  2454. fi
  2455. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2456. do
  2457. test "x$ac_site_file" = xNONE && continue
  2458. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2459. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2460. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2461. sed 's/^/| /' "$ac_site_file" >&5
  2462. . "$ac_site_file" \
  2463. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2464. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2465. as_fn_error $? "failed to load site script $ac_site_file
  2466. See \`config.log' for more details" "$LINENO" 5; }
  2467. fi
  2468. done
  2469. if test -r "$cache_file"; then
  2470. # Some versions of bash will fail to source /dev/null (special files
  2471. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2472. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2473. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2474. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2475. case $cache_file in
  2476. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2477. *) . "./$cache_file";;
  2478. esac
  2479. fi
  2480. else
  2481. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2482. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2483. >$cache_file
  2484. fi
  2485. as_fn_append ac_header_list " stdlib.h"
  2486. as_fn_append ac_header_list " unistd.h"
  2487. as_fn_append ac_header_list " sys/param.h"
  2488. # Check that the precious variables saved in the cache have kept the same
  2489. # value.
  2490. ac_cache_corrupted=false
  2491. for ac_var in $ac_precious_vars; do
  2492. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2493. eval ac_new_set=\$ac_env_${ac_var}_set
  2494. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2495. eval ac_new_val=\$ac_env_${ac_var}_value
  2496. case $ac_old_set,$ac_new_set in
  2497. set,)
  2498. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2499. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2500. ac_cache_corrupted=: ;;
  2501. ,set)
  2502. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2503. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2504. ac_cache_corrupted=: ;;
  2505. ,);;
  2506. *)
  2507. if test "x$ac_old_val" != "x$ac_new_val"; then
  2508. # differences in whitespace do not lead to failure.
  2509. ac_old_val_w=`echo x $ac_old_val`
  2510. ac_new_val_w=`echo x $ac_new_val`
  2511. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2512. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2513. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2514. ac_cache_corrupted=:
  2515. else
  2516. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2517. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2518. eval $ac_var=\$ac_old_val
  2519. fi
  2520. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2521. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2522. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2523. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2524. fi;;
  2525. esac
  2526. # Pass precious variables to config.status.
  2527. if test "$ac_new_set" = set; then
  2528. case $ac_new_val in
  2529. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2530. *) ac_arg=$ac_var=$ac_new_val ;;
  2531. esac
  2532. case " $ac_configure_args " in
  2533. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2534. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2535. esac
  2536. fi
  2537. done
  2538. if $ac_cache_corrupted; then
  2539. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2540. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2541. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2542. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2543. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2544. fi
  2545. ## -------------------- ##
  2546. ## Main body of script. ##
  2547. ## -------------------- ##
  2548. ac_ext=c
  2549. ac_cpp='$CPP $CPPFLAGS'
  2550. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2551. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2552. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2553. # AC_CONFIG_HEADER must be called right after AC_INIT.
  2554. ac_config_headers="$ac_config_headers config.h"
  2555. # include the version information
  2556. . $srcdir/VERSION.sh
  2557. { $as_echo "$as_me:${as_lineno-$LINENO}: This is configure for $PACKAGE_TARNAME $PACKAGE_VERSION" >&5
  2558. $as_echo "$as_me: This is configure for $PACKAGE_TARNAME $PACKAGE_VERSION" >&6;}
  2559. cat >>confdefs.h <<_ACEOF
  2560. #define DS_PACKAGE_VERSION "$PACKAGE_VERSION"
  2561. _ACEOF
  2562. cat >>confdefs.h <<_ACEOF
  2563. #define DS_PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2564. _ACEOF
  2565. cat >>confdefs.h <<_ACEOF
  2566. #define DS_PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2567. _ACEOF
  2568. cat >>confdefs.h <<_ACEOF
  2569. #define DS_PACKAGE_STRING "$PACKAGE_STRING"
  2570. _ACEOF
  2571. am__api_version='1.13'
  2572. ac_aux_dir=
  2573. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2574. if test -f "$ac_dir/install-sh"; then
  2575. ac_aux_dir=$ac_dir
  2576. ac_install_sh="$ac_aux_dir/install-sh -c"
  2577. break
  2578. elif test -f "$ac_dir/install.sh"; then
  2579. ac_aux_dir=$ac_dir
  2580. ac_install_sh="$ac_aux_dir/install.sh -c"
  2581. break
  2582. elif test -f "$ac_dir/shtool"; then
  2583. ac_aux_dir=$ac_dir
  2584. ac_install_sh="$ac_aux_dir/shtool install -c"
  2585. break
  2586. fi
  2587. done
  2588. if test -z "$ac_aux_dir"; then
  2589. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2590. fi
  2591. # These three variables are undocumented and unsupported,
  2592. # and are intended to be withdrawn in a future Autoconf release.
  2593. # They can cause serious problems if a builder's source tree is in a directory
  2594. # whose full name contains unusual characters.
  2595. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2596. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2597. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2598. # Find a good install program. We prefer a C program (faster),
  2599. # so one script is as good as another. But avoid the broken or
  2600. # incompatible versions:
  2601. # SysV /etc/install, /usr/sbin/install
  2602. # SunOS /usr/etc/install
  2603. # IRIX /sbin/install
  2604. # AIX /bin/install
  2605. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2606. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2607. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2608. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2609. # OS/2's system install, which has a completely different semantic
  2610. # ./install, which can be erroneously created by make from ./install.sh.
  2611. # Reject install programs that cannot install multiple files.
  2612. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2613. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2614. if test -z "$INSTALL"; then
  2615. if ${ac_cv_path_install+:} false; then :
  2616. $as_echo_n "(cached) " >&6
  2617. else
  2618. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2619. for as_dir in $PATH
  2620. do
  2621. IFS=$as_save_IFS
  2622. test -z "$as_dir" && as_dir=.
  2623. # Account for people who put trailing slashes in PATH elements.
  2624. case $as_dir/ in #((
  2625. ./ | .// | /[cC]/* | \
  2626. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2627. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2628. /usr/ucb/* ) ;;
  2629. *)
  2630. # OSF1 and SCO ODT 3.0 have their own names for install.
  2631. # Don't use installbsd from OSF since it installs stuff as root
  2632. # by default.
  2633. for ac_prog in ginstall scoinst install; do
  2634. for ac_exec_ext in '' $ac_executable_extensions; do
  2635. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  2636. if test $ac_prog = install &&
  2637. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2638. # AIX install. It has an incompatible calling convention.
  2639. :
  2640. elif test $ac_prog = install &&
  2641. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2642. # program-specific install script used by HP pwplus--don't use.
  2643. :
  2644. else
  2645. rm -rf conftest.one conftest.two conftest.dir
  2646. echo one > conftest.one
  2647. echo two > conftest.two
  2648. mkdir conftest.dir
  2649. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2650. test -s conftest.one && test -s conftest.two &&
  2651. test -s conftest.dir/conftest.one &&
  2652. test -s conftest.dir/conftest.two
  2653. then
  2654. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2655. break 3
  2656. fi
  2657. fi
  2658. fi
  2659. done
  2660. done
  2661. ;;
  2662. esac
  2663. done
  2664. IFS=$as_save_IFS
  2665. rm -rf conftest.one conftest.two conftest.dir
  2666. fi
  2667. if test "${ac_cv_path_install+set}" = set; then
  2668. INSTALL=$ac_cv_path_install
  2669. else
  2670. # As a last resort, use the slow shell script. Don't cache a
  2671. # value for INSTALL within a source directory, because that will
  2672. # break other packages using the cache if that directory is
  2673. # removed, or if the value is a relative name.
  2674. INSTALL=$ac_install_sh
  2675. fi
  2676. fi
  2677. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2678. $as_echo "$INSTALL" >&6; }
  2679. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2680. # It thinks the first close brace ends the variable substitution.
  2681. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2682. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2683. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2684. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2685. $as_echo_n "checking whether build environment is sane... " >&6; }
  2686. # Reject unsafe characters in $srcdir or the absolute working directory
  2687. # name. Accept space and tab only in the latter.
  2688. am_lf='
  2689. '
  2690. case `pwd` in
  2691. *[\\\"\#\$\&\'\`$am_lf]*)
  2692. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  2693. esac
  2694. case $srcdir in
  2695. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2696. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  2697. esac
  2698. # Do 'set' in a subshell so we don't clobber the current shell's
  2699. # arguments. Must try -L first in case configure is actually a
  2700. # symlink; some systems play weird games with the mod time of symlinks
  2701. # (eg FreeBSD returns the mod time of the symlink's containing
  2702. # directory).
  2703. if (
  2704. am_has_slept=no
  2705. for am_try in 1 2; do
  2706. echo "timestamp, slept: $am_has_slept" > conftest.file
  2707. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2708. if test "$*" = "X"; then
  2709. # -L didn't work.
  2710. set X `ls -t "$srcdir/configure" conftest.file`
  2711. fi
  2712. if test "$*" != "X $srcdir/configure conftest.file" \
  2713. && test "$*" != "X conftest.file $srcdir/configure"; then
  2714. # If neither matched, then we have a broken ls. This can happen
  2715. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2716. # broken ls alias from the environment. This has actually
  2717. # happened. Such a system could not be considered "sane".
  2718. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  2719. alias in your environment" "$LINENO" 5
  2720. fi
  2721. if test "$2" = conftest.file || test $am_try -eq 2; then
  2722. break
  2723. fi
  2724. # Just in case.
  2725. sleep 1
  2726. am_has_slept=yes
  2727. done
  2728. test "$2" = conftest.file
  2729. )
  2730. then
  2731. # Ok.
  2732. :
  2733. else
  2734. as_fn_error $? "newly created file is older than distributed files!
  2735. Check your system clock" "$LINENO" 5
  2736. fi
  2737. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2738. $as_echo "yes" >&6; }
  2739. # If we didn't sleep, we still need to ensure time stamps of config.status and
  2740. # generated files are strictly newer.
  2741. am_sleep_pid=
  2742. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  2743. ( sleep 1 ) &
  2744. am_sleep_pid=$!
  2745. fi
  2746. rm -f conftest.file
  2747. test "$program_prefix" != NONE &&
  2748. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2749. # Use a double $ so make ignores it.
  2750. test "$program_suffix" != NONE &&
  2751. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2752. # Double any \ or $.
  2753. # By default was `s,x,x', remove it if useless.
  2754. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2755. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2756. # expand $ac_aux_dir to an absolute path
  2757. am_aux_dir=`cd $ac_aux_dir && pwd`
  2758. if test x"${MISSING+set}" != xset; then
  2759. case $am_aux_dir in
  2760. *\ * | *\ *)
  2761. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2762. *)
  2763. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2764. esac
  2765. fi
  2766. # Use eval to expand $SHELL
  2767. if eval "$MISSING --is-lightweight"; then
  2768. am_missing_run="$MISSING "
  2769. else
  2770. am_missing_run=
  2771. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  2772. $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  2773. fi
  2774. if test x"${install_sh}" != xset; then
  2775. case $am_aux_dir in
  2776. *\ * | *\ *)
  2777. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2778. *)
  2779. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2780. esac
  2781. fi
  2782. # Installed binaries are usually stripped using 'strip' when the user
  2783. # run "make install-strip". However 'strip' might not be the right
  2784. # tool to use in cross-compilation environments, therefore Automake
  2785. # will honor the 'STRIP' environment variable to overrule this program.
  2786. if test "$cross_compiling" != no; then
  2787. if test -n "$ac_tool_prefix"; then
  2788. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2789. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2790. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2791. $as_echo_n "checking for $ac_word... " >&6; }
  2792. if ${ac_cv_prog_STRIP+:} false; then :
  2793. $as_echo_n "(cached) " >&6
  2794. else
  2795. if test -n "$STRIP"; then
  2796. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2797. else
  2798. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2799. for as_dir in $PATH
  2800. do
  2801. IFS=$as_save_IFS
  2802. test -z "$as_dir" && as_dir=.
  2803. for ac_exec_ext in '' $ac_executable_extensions; do
  2804. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2805. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2806. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2807. break 2
  2808. fi
  2809. done
  2810. done
  2811. IFS=$as_save_IFS
  2812. fi
  2813. fi
  2814. STRIP=$ac_cv_prog_STRIP
  2815. if test -n "$STRIP"; then
  2816. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2817. $as_echo "$STRIP" >&6; }
  2818. else
  2819. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2820. $as_echo "no" >&6; }
  2821. fi
  2822. fi
  2823. if test -z "$ac_cv_prog_STRIP"; then
  2824. ac_ct_STRIP=$STRIP
  2825. # Extract the first word of "strip", so it can be a program name with args.
  2826. set dummy strip; ac_word=$2
  2827. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2828. $as_echo_n "checking for $ac_word... " >&6; }
  2829. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  2830. $as_echo_n "(cached) " >&6
  2831. else
  2832. if test -n "$ac_ct_STRIP"; then
  2833. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2834. else
  2835. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2836. for as_dir in $PATH
  2837. do
  2838. IFS=$as_save_IFS
  2839. test -z "$as_dir" && as_dir=.
  2840. for ac_exec_ext in '' $ac_executable_extensions; do
  2841. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2842. ac_cv_prog_ac_ct_STRIP="strip"
  2843. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2844. break 2
  2845. fi
  2846. done
  2847. done
  2848. IFS=$as_save_IFS
  2849. fi
  2850. fi
  2851. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2852. if test -n "$ac_ct_STRIP"; then
  2853. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2854. $as_echo "$ac_ct_STRIP" >&6; }
  2855. else
  2856. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2857. $as_echo "no" >&6; }
  2858. fi
  2859. if test "x$ac_ct_STRIP" = x; then
  2860. STRIP=":"
  2861. else
  2862. case $cross_compiling:$ac_tool_warned in
  2863. yes:)
  2864. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2865. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2866. ac_tool_warned=yes ;;
  2867. esac
  2868. STRIP=$ac_ct_STRIP
  2869. fi
  2870. else
  2871. STRIP="$ac_cv_prog_STRIP"
  2872. fi
  2873. fi
  2874. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2875. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2876. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2877. if test -z "$MKDIR_P"; then
  2878. if ${ac_cv_path_mkdir+:} false; then :
  2879. $as_echo_n "(cached) " >&6
  2880. else
  2881. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2882. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2883. do
  2884. IFS=$as_save_IFS
  2885. test -z "$as_dir" && as_dir=.
  2886. for ac_prog in mkdir gmkdir; do
  2887. for ac_exec_ext in '' $ac_executable_extensions; do
  2888. as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  2889. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2890. 'mkdir (GNU coreutils) '* | \
  2891. 'mkdir (coreutils) '* | \
  2892. 'mkdir (fileutils) '4.1*)
  2893. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2894. break 3;;
  2895. esac
  2896. done
  2897. done
  2898. done
  2899. IFS=$as_save_IFS
  2900. fi
  2901. test -d ./--version && rmdir ./--version
  2902. if test "${ac_cv_path_mkdir+set}" = set; then
  2903. MKDIR_P="$ac_cv_path_mkdir -p"
  2904. else
  2905. # As a last resort, use the slow shell script. Don't cache a
  2906. # value for MKDIR_P within a source directory, because that will
  2907. # break other packages using the cache if that directory is
  2908. # removed, or if the value is a relative name.
  2909. MKDIR_P="$ac_install_sh -d"
  2910. fi
  2911. fi
  2912. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2913. $as_echo "$MKDIR_P" >&6; }
  2914. for ac_prog in gawk mawk nawk awk
  2915. do
  2916. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2917. set dummy $ac_prog; ac_word=$2
  2918. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2919. $as_echo_n "checking for $ac_word... " >&6; }
  2920. if ${ac_cv_prog_AWK+:} false; then :
  2921. $as_echo_n "(cached) " >&6
  2922. else
  2923. if test -n "$AWK"; then
  2924. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2925. else
  2926. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2927. for as_dir in $PATH
  2928. do
  2929. IFS=$as_save_IFS
  2930. test -z "$as_dir" && as_dir=.
  2931. for ac_exec_ext in '' $ac_executable_extensions; do
  2932. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2933. ac_cv_prog_AWK="$ac_prog"
  2934. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2935. break 2
  2936. fi
  2937. done
  2938. done
  2939. IFS=$as_save_IFS
  2940. fi
  2941. fi
  2942. AWK=$ac_cv_prog_AWK
  2943. if test -n "$AWK"; then
  2944. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2945. $as_echo "$AWK" >&6; }
  2946. else
  2947. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2948. $as_echo "no" >&6; }
  2949. fi
  2950. test -n "$AWK" && break
  2951. done
  2952. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2953. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2954. set x ${MAKE-make}
  2955. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2956. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  2957. $as_echo_n "(cached) " >&6
  2958. else
  2959. cat >conftest.make <<\_ACEOF
  2960. SHELL = /bin/sh
  2961. all:
  2962. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2963. _ACEOF
  2964. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  2965. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2966. *@@@%%%=?*=@@@%%%*)
  2967. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2968. *)
  2969. eval ac_cv_prog_make_${ac_make}_set=no;;
  2970. esac
  2971. rm -f conftest.make
  2972. fi
  2973. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2974. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2975. $as_echo "yes" >&6; }
  2976. SET_MAKE=
  2977. else
  2978. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2979. $as_echo "no" >&6; }
  2980. SET_MAKE="MAKE=${MAKE-make}"
  2981. fi
  2982. rm -rf .tst 2>/dev/null
  2983. mkdir .tst 2>/dev/null
  2984. if test -d .tst; then
  2985. am__leading_dot=.
  2986. else
  2987. am__leading_dot=_
  2988. fi
  2989. rmdir .tst 2>/dev/null
  2990. # Check whether --enable-silent-rules was given.
  2991. if test "${enable_silent_rules+set}" = set; then :
  2992. enableval=$enable_silent_rules;
  2993. fi
  2994. case $enable_silent_rules in # (((
  2995. yes) AM_DEFAULT_VERBOSITY=0;;
  2996. no) AM_DEFAULT_VERBOSITY=1;;
  2997. *) AM_DEFAULT_VERBOSITY=1;;
  2998. esac
  2999. am_make=${MAKE-make}
  3000. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  3001. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  3002. if ${am_cv_make_support_nested_variables+:} false; then :
  3003. $as_echo_n "(cached) " >&6
  3004. else
  3005. if $as_echo 'TRUE=$(BAR$(V))
  3006. BAR0=false
  3007. BAR1=true
  3008. V=1
  3009. am__doit:
  3010. @$(TRUE)
  3011. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  3012. am_cv_make_support_nested_variables=yes
  3013. else
  3014. am_cv_make_support_nested_variables=no
  3015. fi
  3016. fi
  3017. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  3018. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  3019. if test $am_cv_make_support_nested_variables = yes; then
  3020. AM_V='$(V)'
  3021. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  3022. else
  3023. AM_V=$AM_DEFAULT_VERBOSITY
  3024. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  3025. fi
  3026. AM_BACKSLASH='\'
  3027. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  3028. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  3029. # is not polluted with repeated "-I."
  3030. am__isrc=' -I$(srcdir)'
  3031. # test to see if srcdir already configured
  3032. if test -f $srcdir/config.status; then
  3033. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  3034. fi
  3035. fi
  3036. # test whether we have cygpath
  3037. if test -z "$CYGPATH_W"; then
  3038. if (cygpath --version) >/dev/null 2>/dev/null; then
  3039. CYGPATH_W='cygpath -w'
  3040. else
  3041. CYGPATH_W=echo
  3042. fi
  3043. fi
  3044. # Define the identity of the package.
  3045. PACKAGE='dirsrv'
  3046. VERSION='1.0'
  3047. # Some tools Automake needs.
  3048. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  3049. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  3050. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  3051. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  3052. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  3053. # For better backward compatibility. To be removed once Automake 1.9.x
  3054. # dies out for good. For more background, see:
  3055. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  3056. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  3057. mkdir_p='$(MKDIR_P)'
  3058. # We need awk for the "check" target. The system "awk" is bad on
  3059. # some platforms.
  3060. # Always define AMTAR for backward compatibility. Yes, it's still used
  3061. # in the wild :-( We should find a proper way to deprecate it ...
  3062. AMTAR='$${TAR-tar}'
  3063. # We'll loop over all known methods to create a tar archive until one works.
  3064. _am_tools='gnutar pax cpio none'
  3065. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a pax tar archive" >&5
  3066. $as_echo_n "checking how to create a pax tar archive... " >&6; }
  3067. # Go ahead even if we have the value already cached. We do so because we
  3068. # need to set the values for the 'am__tar' and 'am__untar' variables.
  3069. _am_tools=${am_cv_prog_tar_pax-$_am_tools}
  3070. for _am_tool in $_am_tools; do
  3071. case $_am_tool in
  3072. gnutar)
  3073. for _am_tar in tar gnutar gtar; do
  3074. { echo "$as_me:$LINENO: $_am_tar --version" >&5
  3075. ($_am_tar --version) >&5 2>&5
  3076. ac_status=$?
  3077. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3078. (exit $ac_status); } && break
  3079. done
  3080. am__tar="$_am_tar --format=posix -chf - "'"$$tardir"'
  3081. am__tar_="$_am_tar --format=posix -chf - "'"$tardir"'
  3082. am__untar="$_am_tar -xf -"
  3083. ;;
  3084. plaintar)
  3085. # Must skip GNU tar: if it does not support --format= it doesn't create
  3086. # ustar tarball either.
  3087. (tar --version) >/dev/null 2>&1 && continue
  3088. am__tar='tar chf - "$$tardir"'
  3089. am__tar_='tar chf - "$tardir"'
  3090. am__untar='tar xf -'
  3091. ;;
  3092. pax)
  3093. am__tar='pax -L -x pax -w "$$tardir"'
  3094. am__tar_='pax -L -x pax -w "$tardir"'
  3095. am__untar='pax -r'
  3096. ;;
  3097. cpio)
  3098. am__tar='find "$$tardir" -print | cpio -o -H pax -L'
  3099. am__tar_='find "$tardir" -print | cpio -o -H pax -L'
  3100. am__untar='cpio -i -H pax -d'
  3101. ;;
  3102. none)
  3103. am__tar=false
  3104. am__tar_=false
  3105. am__untar=false
  3106. ;;
  3107. esac
  3108. # If the value was cached, stop now. We just wanted to have am__tar
  3109. # and am__untar set.
  3110. test -n "${am_cv_prog_tar_pax}" && break
  3111. # tar/untar a dummy directory, and stop if the command works.
  3112. rm -rf conftest.dir
  3113. mkdir conftest.dir
  3114. echo GrepMe > conftest.dir/file
  3115. { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
  3116. (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
  3117. ac_status=$?
  3118. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3119. (exit $ac_status); }
  3120. rm -rf conftest.dir
  3121. if test -s conftest.tar; then
  3122. { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
  3123. ($am__untar <conftest.tar) >&5 2>&5
  3124. ac_status=$?
  3125. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3126. (exit $ac_status); }
  3127. { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
  3128. (cat conftest.dir/file) >&5 2>&5
  3129. ac_status=$?
  3130. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3131. (exit $ac_status); }
  3132. grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
  3133. fi
  3134. done
  3135. rm -rf conftest.dir
  3136. if ${am_cv_prog_tar_pax+:} false; then :
  3137. $as_echo_n "(cached) " >&6
  3138. else
  3139. am_cv_prog_tar_pax=$_am_tool
  3140. fi
  3141. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_pax" >&5
  3142. $as_echo "$am_cv_prog_tar_pax" >&6; }
  3143. # define these for automake distdir
  3144. VERSION=$PACKAGE_VERSION
  3145. PACKAGE=$PACKAGE_TARNAME
  3146. cat >>confdefs.h <<_ACEOF
  3147. #define VERSION "$VERSION"
  3148. _ACEOF
  3149. cat >>confdefs.h <<_ACEOF
  3150. #define PACKAGE "$PACKAGE"
  3151. _ACEOF
  3152. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  3153. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  3154. # Check whether --enable-maintainer-mode was given.
  3155. if test "${enable_maintainer_mode+set}" = set; then :
  3156. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  3157. else
  3158. USE_MAINTAINER_MODE=no
  3159. fi
  3160. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  3161. $as_echo "$USE_MAINTAINER_MODE" >&6; }
  3162. if test $USE_MAINTAINER_MODE = yes; then
  3163. MAINTAINER_MODE_TRUE=
  3164. MAINTAINER_MODE_FALSE='#'
  3165. else
  3166. MAINTAINER_MODE_TRUE='#'
  3167. MAINTAINER_MODE_FALSE=
  3168. fi
  3169. MAINT=$MAINTAINER_MODE_TRUE
  3170. # Make sure we can run config.sub.
  3171. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  3172. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  3173. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  3174. $as_echo_n "checking build system type... " >&6; }
  3175. if ${ac_cv_build+:} false; then :
  3176. $as_echo_n "(cached) " >&6
  3177. else
  3178. ac_build_alias=$build_alias
  3179. test "x$ac_build_alias" = x &&
  3180. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  3181. test "x$ac_build_alias" = x &&
  3182. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  3183. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  3184. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  3185. fi
  3186. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  3187. $as_echo "$ac_cv_build" >&6; }
  3188. case $ac_cv_build in
  3189. *-*-*) ;;
  3190. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  3191. esac
  3192. build=$ac_cv_build
  3193. ac_save_IFS=$IFS; IFS='-'
  3194. set x $ac_cv_build
  3195. shift
  3196. build_cpu=$1
  3197. build_vendor=$2
  3198. shift; shift
  3199. # Remember, the first character of IFS is used to create $*,
  3200. # except with old shells:
  3201. build_os=$*
  3202. IFS=$ac_save_IFS
  3203. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  3204. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  3205. $as_echo_n "checking host system type... " >&6; }
  3206. if ${ac_cv_host+:} false; then :
  3207. $as_echo_n "(cached) " >&6
  3208. else
  3209. if test "x$host_alias" = x; then
  3210. ac_cv_host=$ac_cv_build
  3211. else
  3212. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  3213. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  3214. fi
  3215. fi
  3216. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  3217. $as_echo "$ac_cv_host" >&6; }
  3218. case $ac_cv_host in
  3219. *-*-*) ;;
  3220. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  3221. esac
  3222. host=$ac_cv_host
  3223. ac_save_IFS=$IFS; IFS='-'
  3224. set x $ac_cv_host
  3225. shift
  3226. host_cpu=$1
  3227. host_vendor=$2
  3228. shift; shift
  3229. # Remember, the first character of IFS is used to create $*,
  3230. # except with old shells:
  3231. host_os=$*
  3232. IFS=$ac_save_IFS
  3233. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  3234. # Checks for programs.
  3235. ac_ext=cpp
  3236. ac_cpp='$CXXCPP $CPPFLAGS'
  3237. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3238. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3239. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3240. if test -z "$CXX"; then
  3241. if test -n "$CCC"; then
  3242. CXX=$CCC
  3243. else
  3244. if test -n "$ac_tool_prefix"; then
  3245. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  3246. do
  3247. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3248. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3249. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3250. $as_echo_n "checking for $ac_word... " >&6; }
  3251. if ${ac_cv_prog_CXX+:} false; then :
  3252. $as_echo_n "(cached) " >&6
  3253. else
  3254. if test -n "$CXX"; then
  3255. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  3256. else
  3257. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3258. for as_dir in $PATH
  3259. do
  3260. IFS=$as_save_IFS
  3261. test -z "$as_dir" && as_dir=.
  3262. for ac_exec_ext in '' $ac_executable_extensions; do
  3263. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3264. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  3265. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3266. break 2
  3267. fi
  3268. done
  3269. done
  3270. IFS=$as_save_IFS
  3271. fi
  3272. fi
  3273. CXX=$ac_cv_prog_CXX
  3274. if test -n "$CXX"; then
  3275. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  3276. $as_echo "$CXX" >&6; }
  3277. else
  3278. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3279. $as_echo "no" >&6; }
  3280. fi
  3281. test -n "$CXX" && break
  3282. done
  3283. fi
  3284. if test -z "$CXX"; then
  3285. ac_ct_CXX=$CXX
  3286. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  3287. do
  3288. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3289. set dummy $ac_prog; ac_word=$2
  3290. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3291. $as_echo_n "checking for $ac_word... " >&6; }
  3292. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  3293. $as_echo_n "(cached) " >&6
  3294. else
  3295. if test -n "$ac_ct_CXX"; then
  3296. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  3297. else
  3298. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3299. for as_dir in $PATH
  3300. do
  3301. IFS=$as_save_IFS
  3302. test -z "$as_dir" && as_dir=.
  3303. for ac_exec_ext in '' $ac_executable_extensions; do
  3304. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3305. ac_cv_prog_ac_ct_CXX="$ac_prog"
  3306. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3307. break 2
  3308. fi
  3309. done
  3310. done
  3311. IFS=$as_save_IFS
  3312. fi
  3313. fi
  3314. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  3315. if test -n "$ac_ct_CXX"; then
  3316. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  3317. $as_echo "$ac_ct_CXX" >&6; }
  3318. else
  3319. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3320. $as_echo "no" >&6; }
  3321. fi
  3322. test -n "$ac_ct_CXX" && break
  3323. done
  3324. if test "x$ac_ct_CXX" = x; then
  3325. CXX="g++"
  3326. else
  3327. case $cross_compiling:$ac_tool_warned in
  3328. yes:)
  3329. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3330. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3331. ac_tool_warned=yes ;;
  3332. esac
  3333. CXX=$ac_ct_CXX
  3334. fi
  3335. fi
  3336. fi
  3337. fi
  3338. # Provide some information about the compiler.
  3339. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  3340. set X $ac_compile
  3341. ac_compiler=$2
  3342. for ac_option in --version -v -V -qversion; do
  3343. { { ac_try="$ac_compiler $ac_option >&5"
  3344. case "(($ac_try" in
  3345. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3346. *) ac_try_echo=$ac_try;;
  3347. esac
  3348. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3349. $as_echo "$ac_try_echo"; } >&5
  3350. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3351. ac_status=$?
  3352. if test -s conftest.err; then
  3353. sed '10a\
  3354. ... rest of stderr output deleted ...
  3355. 10q' conftest.err >conftest.er1
  3356. cat conftest.er1 >&5
  3357. fi
  3358. rm -f conftest.er1 conftest.err
  3359. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3360. test $ac_status = 0; }
  3361. done
  3362. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3363. /* end confdefs.h. */
  3364. int
  3365. main ()
  3366. {
  3367. ;
  3368. return 0;
  3369. }
  3370. _ACEOF
  3371. ac_clean_files_save=$ac_clean_files
  3372. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3373. # Try to create an executable without -o first, disregard a.out.
  3374. # It will help us diagnose broken compilers, and finding out an intuition
  3375. # of exeext.
  3376. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
  3377. $as_echo_n "checking whether the C++ compiler works... " >&6; }
  3378. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3379. # The possible output files:
  3380. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3381. ac_rmfiles=
  3382. for ac_file in $ac_files
  3383. do
  3384. case $ac_file in
  3385. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3386. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3387. esac
  3388. done
  3389. rm -f $ac_rmfiles
  3390. if { { ac_try="$ac_link_default"
  3391. case "(($ac_try" in
  3392. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3393. *) ac_try_echo=$ac_try;;
  3394. esac
  3395. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3396. $as_echo "$ac_try_echo"; } >&5
  3397. (eval "$ac_link_default") 2>&5
  3398. ac_status=$?
  3399. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3400. test $ac_status = 0; }; then :
  3401. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3402. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3403. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3404. # so that the user can short-circuit this test for compilers unknown to
  3405. # Autoconf.
  3406. for ac_file in $ac_files ''
  3407. do
  3408. test -f "$ac_file" || continue
  3409. case $ac_file in
  3410. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3411. ;;
  3412. [ab].out )
  3413. # We found the default executable, but exeext='' is most
  3414. # certainly right.
  3415. break;;
  3416. *.* )
  3417. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3418. then :; else
  3419. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3420. fi
  3421. # We set ac_cv_exeext here because the later test for it is not
  3422. # safe: cross compilers may not add the suffix if given an `-o'
  3423. # argument, so we may need to know it at that point already.
  3424. # Even if this section looks crufty: it has the advantage of
  3425. # actually working.
  3426. break;;
  3427. * )
  3428. break;;
  3429. esac
  3430. done
  3431. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3432. else
  3433. ac_file=''
  3434. fi
  3435. if test -z "$ac_file"; then :
  3436. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3437. $as_echo "no" >&6; }
  3438. $as_echo "$as_me: failed program was:" >&5
  3439. sed 's/^/| /' conftest.$ac_ext >&5
  3440. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3441. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3442. as_fn_error 77 "C++ compiler cannot create executables
  3443. See \`config.log' for more details" "$LINENO" 5; }
  3444. else
  3445. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3446. $as_echo "yes" >&6; }
  3447. fi
  3448. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
  3449. $as_echo_n "checking for C++ compiler default output file name... " >&6; }
  3450. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3451. $as_echo "$ac_file" >&6; }
  3452. ac_exeext=$ac_cv_exeext
  3453. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3454. ac_clean_files=$ac_clean_files_save
  3455. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3456. $as_echo_n "checking for suffix of executables... " >&6; }
  3457. if { { ac_try="$ac_link"
  3458. case "(($ac_try" in
  3459. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3460. *) ac_try_echo=$ac_try;;
  3461. esac
  3462. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3463. $as_echo "$ac_try_echo"; } >&5
  3464. (eval "$ac_link") 2>&5
  3465. ac_status=$?
  3466. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3467. test $ac_status = 0; }; then :
  3468. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3469. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3470. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3471. # `rm'.
  3472. for ac_file in conftest.exe conftest conftest.*; do
  3473. test -f "$ac_file" || continue
  3474. case $ac_file in
  3475. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3476. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3477. break;;
  3478. * ) break;;
  3479. esac
  3480. done
  3481. else
  3482. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3483. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3484. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3485. See \`config.log' for more details" "$LINENO" 5; }
  3486. fi
  3487. rm -f conftest conftest$ac_cv_exeext
  3488. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3489. $as_echo "$ac_cv_exeext" >&6; }
  3490. rm -f conftest.$ac_ext
  3491. EXEEXT=$ac_cv_exeext
  3492. ac_exeext=$EXEEXT
  3493. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3494. /* end confdefs.h. */
  3495. #include <stdio.h>
  3496. int
  3497. main ()
  3498. {
  3499. FILE *f = fopen ("conftest.out", "w");
  3500. return ferror (f) || fclose (f) != 0;
  3501. ;
  3502. return 0;
  3503. }
  3504. _ACEOF
  3505. ac_clean_files="$ac_clean_files conftest.out"
  3506. # Check that the compiler produces executables we can run. If not, either
  3507. # the compiler is broken, or we cross compile.
  3508. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3509. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3510. if test "$cross_compiling" != yes; then
  3511. { { ac_try="$ac_link"
  3512. case "(($ac_try" in
  3513. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3514. *) ac_try_echo=$ac_try;;
  3515. esac
  3516. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3517. $as_echo "$ac_try_echo"; } >&5
  3518. (eval "$ac_link") 2>&5
  3519. ac_status=$?
  3520. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3521. test $ac_status = 0; }
  3522. if { ac_try='./conftest$ac_cv_exeext'
  3523. { { case "(($ac_try" in
  3524. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3525. *) ac_try_echo=$ac_try;;
  3526. esac
  3527. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3528. $as_echo "$ac_try_echo"; } >&5
  3529. (eval "$ac_try") 2>&5
  3530. ac_status=$?
  3531. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3532. test $ac_status = 0; }; }; then
  3533. cross_compiling=no
  3534. else
  3535. if test "$cross_compiling" = maybe; then
  3536. cross_compiling=yes
  3537. else
  3538. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3539. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3540. as_fn_error $? "cannot run C++ compiled programs.
  3541. If you meant to cross compile, use \`--host'.
  3542. See \`config.log' for more details" "$LINENO" 5; }
  3543. fi
  3544. fi
  3545. fi
  3546. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3547. $as_echo "$cross_compiling" >&6; }
  3548. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3549. ac_clean_files=$ac_clean_files_save
  3550. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3551. $as_echo_n "checking for suffix of object files... " >&6; }
  3552. if ${ac_cv_objext+:} false; then :
  3553. $as_echo_n "(cached) " >&6
  3554. else
  3555. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3556. /* end confdefs.h. */
  3557. int
  3558. main ()
  3559. {
  3560. ;
  3561. return 0;
  3562. }
  3563. _ACEOF
  3564. rm -f conftest.o conftest.obj
  3565. if { { ac_try="$ac_compile"
  3566. case "(($ac_try" in
  3567. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3568. *) ac_try_echo=$ac_try;;
  3569. esac
  3570. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3571. $as_echo "$ac_try_echo"; } >&5
  3572. (eval "$ac_compile") 2>&5
  3573. ac_status=$?
  3574. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3575. test $ac_status = 0; }; then :
  3576. for ac_file in conftest.o conftest.obj conftest.*; do
  3577. test -f "$ac_file" || continue;
  3578. case $ac_file in
  3579. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3580. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3581. break;;
  3582. esac
  3583. done
  3584. else
  3585. $as_echo "$as_me: failed program was:" >&5
  3586. sed 's/^/| /' conftest.$ac_ext >&5
  3587. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3588. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3589. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3590. See \`config.log' for more details" "$LINENO" 5; }
  3591. fi
  3592. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3593. fi
  3594. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3595. $as_echo "$ac_cv_objext" >&6; }
  3596. OBJEXT=$ac_cv_objext
  3597. ac_objext=$OBJEXT
  3598. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  3599. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  3600. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  3601. $as_echo_n "(cached) " >&6
  3602. else
  3603. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3604. /* end confdefs.h. */
  3605. int
  3606. main ()
  3607. {
  3608. #ifndef __GNUC__
  3609. choke me
  3610. #endif
  3611. ;
  3612. return 0;
  3613. }
  3614. _ACEOF
  3615. if ac_fn_cxx_try_compile "$LINENO"; then :
  3616. ac_compiler_gnu=yes
  3617. else
  3618. ac_compiler_gnu=no
  3619. fi
  3620. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3621. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  3622. fi
  3623. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  3624. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  3625. if test $ac_compiler_gnu = yes; then
  3626. GXX=yes
  3627. else
  3628. GXX=
  3629. fi
  3630. ac_test_CXXFLAGS=${CXXFLAGS+set}
  3631. ac_save_CXXFLAGS=$CXXFLAGS
  3632. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  3633. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  3634. if ${ac_cv_prog_cxx_g+:} false; then :
  3635. $as_echo_n "(cached) " >&6
  3636. else
  3637. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  3638. ac_cxx_werror_flag=yes
  3639. ac_cv_prog_cxx_g=no
  3640. CXXFLAGS="-g"
  3641. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3642. /* end confdefs.h. */
  3643. int
  3644. main ()
  3645. {
  3646. ;
  3647. return 0;
  3648. }
  3649. _ACEOF
  3650. if ac_fn_cxx_try_compile "$LINENO"; then :
  3651. ac_cv_prog_cxx_g=yes
  3652. else
  3653. CXXFLAGS=""
  3654. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3655. /* end confdefs.h. */
  3656. int
  3657. main ()
  3658. {
  3659. ;
  3660. return 0;
  3661. }
  3662. _ACEOF
  3663. if ac_fn_cxx_try_compile "$LINENO"; then :
  3664. else
  3665. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3666. CXXFLAGS="-g"
  3667. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3668. /* end confdefs.h. */
  3669. int
  3670. main ()
  3671. {
  3672. ;
  3673. return 0;
  3674. }
  3675. _ACEOF
  3676. if ac_fn_cxx_try_compile "$LINENO"; then :
  3677. ac_cv_prog_cxx_g=yes
  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. fi
  3683. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3684. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3685. fi
  3686. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  3687. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  3688. if test "$ac_test_CXXFLAGS" = set; then
  3689. CXXFLAGS=$ac_save_CXXFLAGS
  3690. elif test $ac_cv_prog_cxx_g = yes; then
  3691. if test "$GXX" = yes; then
  3692. CXXFLAGS="-g -O2"
  3693. else
  3694. CXXFLAGS="-g"
  3695. fi
  3696. else
  3697. if test "$GXX" = yes; then
  3698. CXXFLAGS="-O2"
  3699. else
  3700. CXXFLAGS=
  3701. fi
  3702. fi
  3703. ac_ext=c
  3704. ac_cpp='$CPP $CPPFLAGS'
  3705. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3706. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3707. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3708. DEPDIR="${am__leading_dot}deps"
  3709. ac_config_commands="$ac_config_commands depfiles"
  3710. am_make=${MAKE-make}
  3711. cat > confinc << 'END'
  3712. am__doit:
  3713. @echo this is the am__doit target
  3714. .PHONY: am__doit
  3715. END
  3716. # If we don't find an include directive, just comment out the code.
  3717. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3718. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3719. am__include="#"
  3720. am__quote=
  3721. _am_result=none
  3722. # First try GNU make style include.
  3723. echo "include confinc" > confmf
  3724. # Ignore all kinds of additional output from 'make'.
  3725. case `$am_make -s -f confmf 2> /dev/null` in #(
  3726. *the\ am__doit\ target*)
  3727. am__include=include
  3728. am__quote=
  3729. _am_result=GNU
  3730. ;;
  3731. esac
  3732. # Now try BSD make style include.
  3733. if test "$am__include" = "#"; then
  3734. echo '.include "confinc"' > confmf
  3735. case `$am_make -s -f confmf 2> /dev/null` in #(
  3736. *the\ am__doit\ target*)
  3737. am__include=.include
  3738. am__quote="\""
  3739. _am_result=BSD
  3740. ;;
  3741. esac
  3742. fi
  3743. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3744. $as_echo "$_am_result" >&6; }
  3745. rm -f confinc confmf
  3746. # Check whether --enable-dependency-tracking was given.
  3747. if test "${enable_dependency_tracking+set}" = set; then :
  3748. enableval=$enable_dependency_tracking;
  3749. fi
  3750. if test "x$enable_dependency_tracking" != xno; then
  3751. am_depcomp="$ac_aux_dir/depcomp"
  3752. AMDEPBACKSLASH='\'
  3753. am__nodep='_no'
  3754. fi
  3755. if test "x$enable_dependency_tracking" != xno; then
  3756. AMDEP_TRUE=
  3757. AMDEP_FALSE='#'
  3758. else
  3759. AMDEP_TRUE='#'
  3760. AMDEP_FALSE=
  3761. fi
  3762. depcc="$CXX" am_compiler_list=
  3763. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3764. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3765. if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
  3766. $as_echo_n "(cached) " >&6
  3767. else
  3768. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3769. # We make a subdir and do the tests there. Otherwise we can end up
  3770. # making bogus files that we don't know about and never remove. For
  3771. # instance it was reported that on HP-UX the gcc test will end up
  3772. # making a dummy file named 'D' -- because '-MD' means "put the output
  3773. # in D".
  3774. rm -rf conftest.dir
  3775. mkdir conftest.dir
  3776. # Copy depcomp to subdir because otherwise we won't find it if we're
  3777. # using a relative directory.
  3778. cp "$am_depcomp" conftest.dir
  3779. cd conftest.dir
  3780. # We will build objects and dependencies in a subdirectory because
  3781. # it helps to detect inapplicable dependency modes. For instance
  3782. # both Tru64's cc and ICC support -MD to output dependencies as a
  3783. # side effect of compilation, but ICC will put the dependencies in
  3784. # the current directory while Tru64 will put them in the object
  3785. # directory.
  3786. mkdir sub
  3787. am_cv_CXX_dependencies_compiler_type=none
  3788. if test "$am_compiler_list" = ""; then
  3789. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3790. fi
  3791. am__universal=false
  3792. case " $depcc " in #(
  3793. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3794. esac
  3795. for depmode in $am_compiler_list; do
  3796. # Setup a source with many dependencies, because some compilers
  3797. # like to wrap large dependency lists on column 80 (with \), and
  3798. # we should not choose a depcomp mode which is confused by this.
  3799. #
  3800. # We need to recreate these files for each test, as the compiler may
  3801. # overwrite some of them when testing with obscure command lines.
  3802. # This happens at least with the AIX C compiler.
  3803. : > sub/conftest.c
  3804. for i in 1 2 3 4 5 6; do
  3805. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3806. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  3807. # Solaris 10 /bin/sh.
  3808. echo '/* dummy */' > sub/conftst$i.h
  3809. done
  3810. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3811. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  3812. # mode. It turns out that the SunPro C++ compiler does not properly
  3813. # handle '-M -o', and we need to detect this. Also, some Intel
  3814. # versions had trouble with output in subdirs.
  3815. am__obj=sub/conftest.${OBJEXT-o}
  3816. am__minus_obj="-o $am__obj"
  3817. case $depmode in
  3818. gcc)
  3819. # This depmode causes a compiler race in universal mode.
  3820. test "$am__universal" = false || continue
  3821. ;;
  3822. nosideeffect)
  3823. # After this tag, mechanisms are not by side-effect, so they'll
  3824. # only be used when explicitly requested.
  3825. if test "x$enable_dependency_tracking" = xyes; then
  3826. continue
  3827. else
  3828. break
  3829. fi
  3830. ;;
  3831. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  3832. # This compiler won't grok '-c -o', but also, the minuso test has
  3833. # not run yet. These depmodes are late enough in the game, and
  3834. # so weak that their functioning should not be impacted.
  3835. am__obj=conftest.${OBJEXT-o}
  3836. am__minus_obj=
  3837. ;;
  3838. none) break ;;
  3839. esac
  3840. if depmode=$depmode \
  3841. source=sub/conftest.c object=$am__obj \
  3842. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3843. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3844. >/dev/null 2>conftest.err &&
  3845. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3846. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3847. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3848. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3849. # icc doesn't choke on unknown options, it will just issue warnings
  3850. # or remarks (even with -Werror). So we grep stderr for any message
  3851. # that says an option was ignored or not supported.
  3852. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3853. # icc: Command line warning: ignoring option '-M'; no argument required
  3854. # The diagnosis changed in icc 8.0:
  3855. # icc: Command line remark: option '-MP' not supported
  3856. if (grep 'ignoring option' conftest.err ||
  3857. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3858. am_cv_CXX_dependencies_compiler_type=$depmode
  3859. break
  3860. fi
  3861. fi
  3862. done
  3863. cd ..
  3864. rm -rf conftest.dir
  3865. else
  3866. am_cv_CXX_dependencies_compiler_type=none
  3867. fi
  3868. fi
  3869. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  3870. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  3871. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  3872. if
  3873. test "x$enable_dependency_tracking" != xno \
  3874. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  3875. am__fastdepCXX_TRUE=
  3876. am__fastdepCXX_FALSE='#'
  3877. else
  3878. am__fastdepCXX_TRUE='#'
  3879. am__fastdepCXX_FALSE=
  3880. fi
  3881. ac_ext=c
  3882. ac_cpp='$CPP $CPPFLAGS'
  3883. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3884. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3885. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3886. if test -n "$ac_tool_prefix"; then
  3887. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3888. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3889. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3890. $as_echo_n "checking for $ac_word... " >&6; }
  3891. if ${ac_cv_prog_CC+:} false; then :
  3892. $as_echo_n "(cached) " >&6
  3893. else
  3894. if test -n "$CC"; then
  3895. ac_cv_prog_CC="$CC" # Let the user override the test.
  3896. else
  3897. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3898. for as_dir in $PATH
  3899. do
  3900. IFS=$as_save_IFS
  3901. test -z "$as_dir" && as_dir=.
  3902. for ac_exec_ext in '' $ac_executable_extensions; do
  3903. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3904. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3905. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3906. break 2
  3907. fi
  3908. done
  3909. done
  3910. IFS=$as_save_IFS
  3911. fi
  3912. fi
  3913. CC=$ac_cv_prog_CC
  3914. if test -n "$CC"; then
  3915. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3916. $as_echo "$CC" >&6; }
  3917. else
  3918. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3919. $as_echo "no" >&6; }
  3920. fi
  3921. fi
  3922. if test -z "$ac_cv_prog_CC"; then
  3923. ac_ct_CC=$CC
  3924. # Extract the first word of "gcc", so it can be a program name with args.
  3925. set dummy gcc; ac_word=$2
  3926. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3927. $as_echo_n "checking for $ac_word... " >&6; }
  3928. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3929. $as_echo_n "(cached) " >&6
  3930. else
  3931. if test -n "$ac_ct_CC"; then
  3932. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3933. else
  3934. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3935. for as_dir in $PATH
  3936. do
  3937. IFS=$as_save_IFS
  3938. test -z "$as_dir" && as_dir=.
  3939. for ac_exec_ext in '' $ac_executable_extensions; do
  3940. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3941. ac_cv_prog_ac_ct_CC="gcc"
  3942. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3943. break 2
  3944. fi
  3945. done
  3946. done
  3947. IFS=$as_save_IFS
  3948. fi
  3949. fi
  3950. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3951. if test -n "$ac_ct_CC"; then
  3952. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3953. $as_echo "$ac_ct_CC" >&6; }
  3954. else
  3955. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3956. $as_echo "no" >&6; }
  3957. fi
  3958. if test "x$ac_ct_CC" = x; then
  3959. CC=""
  3960. else
  3961. case $cross_compiling:$ac_tool_warned in
  3962. yes:)
  3963. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3964. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3965. ac_tool_warned=yes ;;
  3966. esac
  3967. CC=$ac_ct_CC
  3968. fi
  3969. else
  3970. CC="$ac_cv_prog_CC"
  3971. fi
  3972. if test -z "$CC"; then
  3973. if test -n "$ac_tool_prefix"; then
  3974. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3975. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3976. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3977. $as_echo_n "checking for $ac_word... " >&6; }
  3978. if ${ac_cv_prog_CC+:} false; then :
  3979. $as_echo_n "(cached) " >&6
  3980. else
  3981. if test -n "$CC"; then
  3982. ac_cv_prog_CC="$CC" # Let the user override the test.
  3983. else
  3984. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3985. for as_dir in $PATH
  3986. do
  3987. IFS=$as_save_IFS
  3988. test -z "$as_dir" && as_dir=.
  3989. for ac_exec_ext in '' $ac_executable_extensions; do
  3990. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3991. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3992. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3993. break 2
  3994. fi
  3995. done
  3996. done
  3997. IFS=$as_save_IFS
  3998. fi
  3999. fi
  4000. CC=$ac_cv_prog_CC
  4001. if test -n "$CC"; then
  4002. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4003. $as_echo "$CC" >&6; }
  4004. else
  4005. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4006. $as_echo "no" >&6; }
  4007. fi
  4008. fi
  4009. fi
  4010. if test -z "$CC"; then
  4011. # Extract the first word of "cc", so it can be a program name with args.
  4012. set dummy cc; ac_word=$2
  4013. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4014. $as_echo_n "checking for $ac_word... " >&6; }
  4015. if ${ac_cv_prog_CC+:} false; then :
  4016. $as_echo_n "(cached) " >&6
  4017. else
  4018. if test -n "$CC"; then
  4019. ac_cv_prog_CC="$CC" # Let the user override the test.
  4020. else
  4021. ac_prog_rejected=no
  4022. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4023. for as_dir in $PATH
  4024. do
  4025. IFS=$as_save_IFS
  4026. test -z "$as_dir" && as_dir=.
  4027. for ac_exec_ext in '' $ac_executable_extensions; do
  4028. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4029. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  4030. ac_prog_rejected=yes
  4031. continue
  4032. fi
  4033. ac_cv_prog_CC="cc"
  4034. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4035. break 2
  4036. fi
  4037. done
  4038. done
  4039. IFS=$as_save_IFS
  4040. if test $ac_prog_rejected = yes; then
  4041. # We found a bogon in the path, so make sure we never use it.
  4042. set dummy $ac_cv_prog_CC
  4043. shift
  4044. if test $# != 0; then
  4045. # We chose a different compiler from the bogus one.
  4046. # However, it has the same basename, so the bogon will be chosen
  4047. # first if we set CC to just the basename; use the full file name.
  4048. shift
  4049. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  4050. fi
  4051. fi
  4052. fi
  4053. fi
  4054. CC=$ac_cv_prog_CC
  4055. if test -n "$CC"; then
  4056. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4057. $as_echo "$CC" >&6; }
  4058. else
  4059. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4060. $as_echo "no" >&6; }
  4061. fi
  4062. fi
  4063. if test -z "$CC"; then
  4064. if test -n "$ac_tool_prefix"; then
  4065. for ac_prog in cl.exe
  4066. do
  4067. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4068. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4069. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4070. $as_echo_n "checking for $ac_word... " >&6; }
  4071. if ${ac_cv_prog_CC+:} false; then :
  4072. $as_echo_n "(cached) " >&6
  4073. else
  4074. if test -n "$CC"; then
  4075. ac_cv_prog_CC="$CC" # Let the user override the test.
  4076. else
  4077. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4078. for as_dir in $PATH
  4079. do
  4080. IFS=$as_save_IFS
  4081. test -z "$as_dir" && as_dir=.
  4082. for ac_exec_ext in '' $ac_executable_extensions; do
  4083. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4084. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  4085. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4086. break 2
  4087. fi
  4088. done
  4089. done
  4090. IFS=$as_save_IFS
  4091. fi
  4092. fi
  4093. CC=$ac_cv_prog_CC
  4094. if test -n "$CC"; then
  4095. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4096. $as_echo "$CC" >&6; }
  4097. else
  4098. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4099. $as_echo "no" >&6; }
  4100. fi
  4101. test -n "$CC" && break
  4102. done
  4103. fi
  4104. if test -z "$CC"; then
  4105. ac_ct_CC=$CC
  4106. for ac_prog in cl.exe
  4107. do
  4108. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4109. set dummy $ac_prog; ac_word=$2
  4110. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4111. $as_echo_n "checking for $ac_word... " >&6; }
  4112. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  4113. $as_echo_n "(cached) " >&6
  4114. else
  4115. if test -n "$ac_ct_CC"; then
  4116. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4117. else
  4118. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4119. for as_dir in $PATH
  4120. do
  4121. IFS=$as_save_IFS
  4122. test -z "$as_dir" && as_dir=.
  4123. for ac_exec_ext in '' $ac_executable_extensions; do
  4124. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4125. ac_cv_prog_ac_ct_CC="$ac_prog"
  4126. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4127. break 2
  4128. fi
  4129. done
  4130. done
  4131. IFS=$as_save_IFS
  4132. fi
  4133. fi
  4134. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4135. if test -n "$ac_ct_CC"; then
  4136. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  4137. $as_echo "$ac_ct_CC" >&6; }
  4138. else
  4139. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4140. $as_echo "no" >&6; }
  4141. fi
  4142. test -n "$ac_ct_CC" && break
  4143. done
  4144. if test "x$ac_ct_CC" = x; then
  4145. CC=""
  4146. else
  4147. case $cross_compiling:$ac_tool_warned in
  4148. yes:)
  4149. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4150. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4151. ac_tool_warned=yes ;;
  4152. esac
  4153. CC=$ac_ct_CC
  4154. fi
  4155. fi
  4156. fi
  4157. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4158. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4159. as_fn_error $? "no acceptable C compiler found in \$PATH
  4160. See \`config.log' for more details" "$LINENO" 5; }
  4161. # Provide some information about the compiler.
  4162. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  4163. set X $ac_compile
  4164. ac_compiler=$2
  4165. for ac_option in --version -v -V -qversion; do
  4166. { { ac_try="$ac_compiler $ac_option >&5"
  4167. case "(($ac_try" in
  4168. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4169. *) ac_try_echo=$ac_try;;
  4170. esac
  4171. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4172. $as_echo "$ac_try_echo"; } >&5
  4173. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  4174. ac_status=$?
  4175. if test -s conftest.err; then
  4176. sed '10a\
  4177. ... rest of stderr output deleted ...
  4178. 10q' conftest.err >conftest.er1
  4179. cat conftest.er1 >&5
  4180. fi
  4181. rm -f conftest.er1 conftest.err
  4182. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4183. test $ac_status = 0; }
  4184. done
  4185. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  4186. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  4187. if ${ac_cv_c_compiler_gnu+:} false; then :
  4188. $as_echo_n "(cached) " >&6
  4189. else
  4190. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4191. /* end confdefs.h. */
  4192. int
  4193. main ()
  4194. {
  4195. #ifndef __GNUC__
  4196. choke me
  4197. #endif
  4198. ;
  4199. return 0;
  4200. }
  4201. _ACEOF
  4202. if ac_fn_c_try_compile "$LINENO"; then :
  4203. ac_compiler_gnu=yes
  4204. else
  4205. ac_compiler_gnu=no
  4206. fi
  4207. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4208. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  4209. fi
  4210. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  4211. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  4212. if test $ac_compiler_gnu = yes; then
  4213. GCC=yes
  4214. else
  4215. GCC=
  4216. fi
  4217. ac_test_CFLAGS=${CFLAGS+set}
  4218. ac_save_CFLAGS=$CFLAGS
  4219. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  4220. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  4221. if ${ac_cv_prog_cc_g+:} false; then :
  4222. $as_echo_n "(cached) " >&6
  4223. else
  4224. ac_save_c_werror_flag=$ac_c_werror_flag
  4225. ac_c_werror_flag=yes
  4226. ac_cv_prog_cc_g=no
  4227. CFLAGS="-g"
  4228. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4229. /* end confdefs.h. */
  4230. int
  4231. main ()
  4232. {
  4233. ;
  4234. return 0;
  4235. }
  4236. _ACEOF
  4237. if ac_fn_c_try_compile "$LINENO"; then :
  4238. ac_cv_prog_cc_g=yes
  4239. else
  4240. CFLAGS=""
  4241. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4242. /* end confdefs.h. */
  4243. int
  4244. main ()
  4245. {
  4246. ;
  4247. return 0;
  4248. }
  4249. _ACEOF
  4250. if ac_fn_c_try_compile "$LINENO"; then :
  4251. else
  4252. ac_c_werror_flag=$ac_save_c_werror_flag
  4253. CFLAGS="-g"
  4254. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4255. /* end confdefs.h. */
  4256. int
  4257. main ()
  4258. {
  4259. ;
  4260. return 0;
  4261. }
  4262. _ACEOF
  4263. if ac_fn_c_try_compile "$LINENO"; then :
  4264. ac_cv_prog_cc_g=yes
  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. fi
  4270. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4271. ac_c_werror_flag=$ac_save_c_werror_flag
  4272. fi
  4273. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  4274. $as_echo "$ac_cv_prog_cc_g" >&6; }
  4275. if test "$ac_test_CFLAGS" = set; then
  4276. CFLAGS=$ac_save_CFLAGS
  4277. elif test $ac_cv_prog_cc_g = yes; then
  4278. if test "$GCC" = yes; then
  4279. CFLAGS="-g -O2"
  4280. else
  4281. CFLAGS="-g"
  4282. fi
  4283. else
  4284. if test "$GCC" = yes; then
  4285. CFLAGS="-O2"
  4286. else
  4287. CFLAGS=
  4288. fi
  4289. fi
  4290. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  4291. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  4292. if ${ac_cv_prog_cc_c89+:} false; then :
  4293. $as_echo_n "(cached) " >&6
  4294. else
  4295. ac_cv_prog_cc_c89=no
  4296. ac_save_CC=$CC
  4297. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4298. /* end confdefs.h. */
  4299. #include <stdarg.h>
  4300. #include <stdio.h>
  4301. struct stat;
  4302. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  4303. struct buf { int x; };
  4304. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  4305. static char *e (p, i)
  4306. char **p;
  4307. int i;
  4308. {
  4309. return p[i];
  4310. }
  4311. static char *f (char * (*g) (char **, int), char **p, ...)
  4312. {
  4313. char *s;
  4314. va_list v;
  4315. va_start (v,p);
  4316. s = g (p, va_arg (v,int));
  4317. va_end (v);
  4318. return s;
  4319. }
  4320. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  4321. function prototypes and stuff, but not '\xHH' hex character constants.
  4322. These don't provoke an error unfortunately, instead are silently treated
  4323. as 'x'. The following induces an error, until -std is added to get
  4324. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  4325. array size at least. It's necessary to write '\x00'==0 to get something
  4326. that's true only with -std. */
  4327. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  4328. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  4329. inside strings and character constants. */
  4330. #define FOO(x) 'x'
  4331. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  4332. int test (int i, double x);
  4333. struct s1 {int (*f) (int a);};
  4334. struct s2 {int (*f) (double a);};
  4335. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4336. int argc;
  4337. char **argv;
  4338. int
  4339. main ()
  4340. {
  4341. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  4342. ;
  4343. return 0;
  4344. }
  4345. _ACEOF
  4346. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  4347. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4348. do
  4349. CC="$ac_save_CC $ac_arg"
  4350. if ac_fn_c_try_compile "$LINENO"; then :
  4351. ac_cv_prog_cc_c89=$ac_arg
  4352. fi
  4353. rm -f core conftest.err conftest.$ac_objext
  4354. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4355. done
  4356. rm -f conftest.$ac_ext
  4357. CC=$ac_save_CC
  4358. fi
  4359. # AC_CACHE_VAL
  4360. case "x$ac_cv_prog_cc_c89" in
  4361. x)
  4362. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4363. $as_echo "none needed" >&6; } ;;
  4364. xno)
  4365. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4366. $as_echo "unsupported" >&6; } ;;
  4367. *)
  4368. CC="$CC $ac_cv_prog_cc_c89"
  4369. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4370. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  4371. esac
  4372. if test "x$ac_cv_prog_cc_c89" != xno; then :
  4373. fi
  4374. ac_ext=c
  4375. ac_cpp='$CPP $CPPFLAGS'
  4376. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4377. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4378. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4379. depcc="$CC" am_compiler_list=
  4380. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4381. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4382. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  4383. $as_echo_n "(cached) " >&6
  4384. else
  4385. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4386. # We make a subdir and do the tests there. Otherwise we can end up
  4387. # making bogus files that we don't know about and never remove. For
  4388. # instance it was reported that on HP-UX the gcc test will end up
  4389. # making a dummy file named 'D' -- because '-MD' means "put the output
  4390. # in D".
  4391. rm -rf conftest.dir
  4392. mkdir conftest.dir
  4393. # Copy depcomp to subdir because otherwise we won't find it if we're
  4394. # using a relative directory.
  4395. cp "$am_depcomp" conftest.dir
  4396. cd conftest.dir
  4397. # We will build objects and dependencies in a subdirectory because
  4398. # it helps to detect inapplicable dependency modes. For instance
  4399. # both Tru64's cc and ICC support -MD to output dependencies as a
  4400. # side effect of compilation, but ICC will put the dependencies in
  4401. # the current directory while Tru64 will put them in the object
  4402. # directory.
  4403. mkdir sub
  4404. am_cv_CC_dependencies_compiler_type=none
  4405. if test "$am_compiler_list" = ""; then
  4406. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4407. fi
  4408. am__universal=false
  4409. case " $depcc " in #(
  4410. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  4411. esac
  4412. for depmode in $am_compiler_list; do
  4413. # Setup a source with many dependencies, because some compilers
  4414. # like to wrap large dependency lists on column 80 (with \), and
  4415. # we should not choose a depcomp mode which is confused by this.
  4416. #
  4417. # We need to recreate these files for each test, as the compiler may
  4418. # overwrite some of them when testing with obscure command lines.
  4419. # This happens at least with the AIX C compiler.
  4420. : > sub/conftest.c
  4421. for i in 1 2 3 4 5 6; do
  4422. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4423. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  4424. # Solaris 10 /bin/sh.
  4425. echo '/* dummy */' > sub/conftst$i.h
  4426. done
  4427. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4428. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  4429. # mode. It turns out that the SunPro C++ compiler does not properly
  4430. # handle '-M -o', and we need to detect this. Also, some Intel
  4431. # versions had trouble with output in subdirs.
  4432. am__obj=sub/conftest.${OBJEXT-o}
  4433. am__minus_obj="-o $am__obj"
  4434. case $depmode in
  4435. gcc)
  4436. # This depmode causes a compiler race in universal mode.
  4437. test "$am__universal" = false || continue
  4438. ;;
  4439. nosideeffect)
  4440. # After this tag, mechanisms are not by side-effect, so they'll
  4441. # only be used when explicitly requested.
  4442. if test "x$enable_dependency_tracking" = xyes; then
  4443. continue
  4444. else
  4445. break
  4446. fi
  4447. ;;
  4448. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  4449. # This compiler won't grok '-c -o', but also, the minuso test has
  4450. # not run yet. These depmodes are late enough in the game, and
  4451. # so weak that their functioning should not be impacted.
  4452. am__obj=conftest.${OBJEXT-o}
  4453. am__minus_obj=
  4454. ;;
  4455. none) break ;;
  4456. esac
  4457. if depmode=$depmode \
  4458. source=sub/conftest.c object=$am__obj \
  4459. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4460. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4461. >/dev/null 2>conftest.err &&
  4462. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4463. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4464. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4465. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4466. # icc doesn't choke on unknown options, it will just issue warnings
  4467. # or remarks (even with -Werror). So we grep stderr for any message
  4468. # that says an option was ignored or not supported.
  4469. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4470. # icc: Command line warning: ignoring option '-M'; no argument required
  4471. # The diagnosis changed in icc 8.0:
  4472. # icc: Command line remark: option '-MP' not supported
  4473. if (grep 'ignoring option' conftest.err ||
  4474. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4475. am_cv_CC_dependencies_compiler_type=$depmode
  4476. break
  4477. fi
  4478. fi
  4479. done
  4480. cd ..
  4481. rm -rf conftest.dir
  4482. else
  4483. am_cv_CC_dependencies_compiler_type=none
  4484. fi
  4485. fi
  4486. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  4487. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  4488. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4489. if
  4490. test "x$enable_dependency_tracking" != xno \
  4491. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4492. am__fastdepCC_TRUE=
  4493. am__fastdepCC_FALSE='#'
  4494. else
  4495. am__fastdepCC_TRUE='#'
  4496. am__fastdepCC_FALSE=
  4497. fi
  4498. if test "x$CC" != xcc; then
  4499. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
  4500. $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
  4501. else
  4502. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
  4503. $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
  4504. fi
  4505. set dummy $CC; ac_cc=`$as_echo "$2" |
  4506. sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  4507. if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
  4508. $as_echo_n "(cached) " >&6
  4509. else
  4510. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4511. /* end confdefs.h. */
  4512. int
  4513. main ()
  4514. {
  4515. ;
  4516. return 0;
  4517. }
  4518. _ACEOF
  4519. # Make sure it works both with $CC and with simple cc.
  4520. # We do the test twice because some compilers refuse to overwrite an
  4521. # existing .o file with -o, though they will create one.
  4522. ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  4523. rm -f conftest2.*
  4524. if { { case "(($ac_try" in
  4525. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4526. *) ac_try_echo=$ac_try;;
  4527. esac
  4528. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4529. $as_echo "$ac_try_echo"; } >&5
  4530. (eval "$ac_try") 2>&5
  4531. ac_status=$?
  4532. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4533. test $ac_status = 0; } &&
  4534. test -f conftest2.$ac_objext && { { case "(($ac_try" in
  4535. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4536. *) ac_try_echo=$ac_try;;
  4537. esac
  4538. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4539. $as_echo "$ac_try_echo"; } >&5
  4540. (eval "$ac_try") 2>&5
  4541. ac_status=$?
  4542. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4543. test $ac_status = 0; };
  4544. then
  4545. eval ac_cv_prog_cc_${ac_cc}_c_o=yes
  4546. if test "x$CC" != xcc; then
  4547. # Test first that cc exists at all.
  4548. if { ac_try='cc -c conftest.$ac_ext >&5'
  4549. { { case "(($ac_try" in
  4550. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4551. *) ac_try_echo=$ac_try;;
  4552. esac
  4553. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4554. $as_echo "$ac_try_echo"; } >&5
  4555. (eval "$ac_try") 2>&5
  4556. ac_status=$?
  4557. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4558. test $ac_status = 0; }; }; then
  4559. ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  4560. rm -f conftest2.*
  4561. if { { case "(($ac_try" in
  4562. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4563. *) ac_try_echo=$ac_try;;
  4564. esac
  4565. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4566. $as_echo "$ac_try_echo"; } >&5
  4567. (eval "$ac_try") 2>&5
  4568. ac_status=$?
  4569. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4570. test $ac_status = 0; } &&
  4571. test -f conftest2.$ac_objext && { { case "(($ac_try" in
  4572. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4573. *) ac_try_echo=$ac_try;;
  4574. esac
  4575. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4576. $as_echo "$ac_try_echo"; } >&5
  4577. (eval "$ac_try") 2>&5
  4578. ac_status=$?
  4579. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4580. test $ac_status = 0; };
  4581. then
  4582. # cc works too.
  4583. :
  4584. else
  4585. # cc exists but doesn't like -o.
  4586. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  4587. fi
  4588. fi
  4589. fi
  4590. else
  4591. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  4592. fi
  4593. rm -f core conftest*
  4594. fi
  4595. if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
  4596. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4597. $as_echo "yes" >&6; }
  4598. else
  4599. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4600. $as_echo "no" >&6; }
  4601. $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
  4602. fi
  4603. # FIXME: we rely on the cache variable name because
  4604. # there is no other way.
  4605. set dummy $CC
  4606. am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  4607. eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
  4608. if test "$am_t" != yes; then
  4609. # Losing compiler, so override with the script.
  4610. # FIXME: It is wrong to rewrite CC.
  4611. # But if we don't then we get into trouble of one sort or another.
  4612. # A longer-term fix would be to have automake use am__CC in this case,
  4613. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  4614. CC="$am_aux_dir/compile $CC"
  4615. fi
  4616. # By default we simply use the C compiler to build assembly code.
  4617. test "${CCAS+set}" = set || CCAS=$CC
  4618. test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
  4619. depcc="$CCAS" am_compiler_list=
  4620. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4621. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4622. if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
  4623. $as_echo_n "(cached) " >&6
  4624. else
  4625. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4626. # We make a subdir and do the tests there. Otherwise we can end up
  4627. # making bogus files that we don't know about and never remove. For
  4628. # instance it was reported that on HP-UX the gcc test will end up
  4629. # making a dummy file named 'D' -- because '-MD' means "put the output
  4630. # in D".
  4631. rm -rf conftest.dir
  4632. mkdir conftest.dir
  4633. # Copy depcomp to subdir because otherwise we won't find it if we're
  4634. # using a relative directory.
  4635. cp "$am_depcomp" conftest.dir
  4636. cd conftest.dir
  4637. # We will build objects and dependencies in a subdirectory because
  4638. # it helps to detect inapplicable dependency modes. For instance
  4639. # both Tru64's cc and ICC support -MD to output dependencies as a
  4640. # side effect of compilation, but ICC will put the dependencies in
  4641. # the current directory while Tru64 will put them in the object
  4642. # directory.
  4643. mkdir sub
  4644. am_cv_CCAS_dependencies_compiler_type=none
  4645. if test "$am_compiler_list" = ""; then
  4646. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4647. fi
  4648. am__universal=false
  4649. for depmode in $am_compiler_list; do
  4650. # Setup a source with many dependencies, because some compilers
  4651. # like to wrap large dependency lists on column 80 (with \), and
  4652. # we should not choose a depcomp mode which is confused by this.
  4653. #
  4654. # We need to recreate these files for each test, as the compiler may
  4655. # overwrite some of them when testing with obscure command lines.
  4656. # This happens at least with the AIX C compiler.
  4657. : > sub/conftest.c
  4658. for i in 1 2 3 4 5 6; do
  4659. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4660. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  4661. # Solaris 10 /bin/sh.
  4662. echo '/* dummy */' > sub/conftst$i.h
  4663. done
  4664. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4665. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  4666. # mode. It turns out that the SunPro C++ compiler does not properly
  4667. # handle '-M -o', and we need to detect this. Also, some Intel
  4668. # versions had trouble with output in subdirs.
  4669. am__obj=sub/conftest.${OBJEXT-o}
  4670. am__minus_obj="-o $am__obj"
  4671. case $depmode in
  4672. gcc)
  4673. # This depmode causes a compiler race in universal mode.
  4674. test "$am__universal" = false || continue
  4675. ;;
  4676. nosideeffect)
  4677. # After this tag, mechanisms are not by side-effect, so they'll
  4678. # only be used when explicitly requested.
  4679. if test "x$enable_dependency_tracking" = xyes; then
  4680. continue
  4681. else
  4682. break
  4683. fi
  4684. ;;
  4685. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  4686. # This compiler won't grok '-c -o', but also, the minuso test has
  4687. # not run yet. These depmodes are late enough in the game, and
  4688. # so weak that their functioning should not be impacted.
  4689. am__obj=conftest.${OBJEXT-o}
  4690. am__minus_obj=
  4691. ;;
  4692. none) break ;;
  4693. esac
  4694. if depmode=$depmode \
  4695. source=sub/conftest.c object=$am__obj \
  4696. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4697. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4698. >/dev/null 2>conftest.err &&
  4699. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4700. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4701. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4702. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4703. # icc doesn't choke on unknown options, it will just issue warnings
  4704. # or remarks (even with -Werror). So we grep stderr for any message
  4705. # that says an option was ignored or not supported.
  4706. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4707. # icc: Command line warning: ignoring option '-M'; no argument required
  4708. # The diagnosis changed in icc 8.0:
  4709. # icc: Command line remark: option '-MP' not supported
  4710. if (grep 'ignoring option' conftest.err ||
  4711. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4712. am_cv_CCAS_dependencies_compiler_type=$depmode
  4713. break
  4714. fi
  4715. fi
  4716. done
  4717. cd ..
  4718. rm -rf conftest.dir
  4719. else
  4720. am_cv_CCAS_dependencies_compiler_type=none
  4721. fi
  4722. fi
  4723. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
  4724. $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
  4725. CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
  4726. if
  4727. test "x$enable_dependency_tracking" != xno \
  4728. && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
  4729. am__fastdepCCAS_TRUE=
  4730. am__fastdepCCAS_FALSE='#'
  4731. else
  4732. am__fastdepCCAS_TRUE='#'
  4733. am__fastdepCCAS_FALSE=
  4734. fi
  4735. # disable static libs by default - we only use a couple
  4736. # Check whether --enable-static was given.
  4737. if test "${enable_static+set}" = set; then :
  4738. enableval=$enable_static; p=${PACKAGE-default}
  4739. case $enableval in
  4740. yes) enable_static=yes ;;
  4741. no) enable_static=no ;;
  4742. *)
  4743. enable_static=no
  4744. # Look at the argument we got. We use all the common list separators.
  4745. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  4746. for pkg in $enableval; do
  4747. IFS="$lt_save_ifs"
  4748. if test "X$pkg" = "X$p"; then
  4749. enable_static=yes
  4750. fi
  4751. done
  4752. IFS="$lt_save_ifs"
  4753. ;;
  4754. esac
  4755. else
  4756. enable_static=no
  4757. fi
  4758. case `pwd` in
  4759. *\ * | *\ *)
  4760. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  4761. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  4762. esac
  4763. macro_version='2.4.2'
  4764. macro_revision='1.3337'
  4765. ltmain="$ac_aux_dir/ltmain.sh"
  4766. # Backslashify metacharacters that are still active within
  4767. # double-quoted strings.
  4768. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  4769. # Same as above, but do not quote variable references.
  4770. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  4771. # Sed substitution to delay expansion of an escaped shell variable in a
  4772. # double_quote_subst'ed string.
  4773. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  4774. # Sed substitution to delay expansion of an escaped single quote.
  4775. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  4776. # Sed substitution to avoid accidental globbing in evaled expressions
  4777. no_glob_subst='s/\*/\\\*/g'
  4778. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  4779. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  4780. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  4781. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  4782. $as_echo_n "checking how to print strings... " >&6; }
  4783. # Test print first, because it will be a builtin if present.
  4784. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  4785. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  4786. ECHO='print -r --'
  4787. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  4788. ECHO='printf %s\n'
  4789. else
  4790. # Use this function as a fallback that always works.
  4791. func_fallback_echo ()
  4792. {
  4793. eval 'cat <<_LTECHO_EOF
  4794. $1
  4795. _LTECHO_EOF'
  4796. }
  4797. ECHO='func_fallback_echo'
  4798. fi
  4799. # func_echo_all arg...
  4800. # Invoke $ECHO with all args, space-separated.
  4801. func_echo_all ()
  4802. {
  4803. $ECHO ""
  4804. }
  4805. case "$ECHO" in
  4806. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  4807. $as_echo "printf" >&6; } ;;
  4808. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  4809. $as_echo "print -r" >&6; } ;;
  4810. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  4811. $as_echo "cat" >&6; } ;;
  4812. esac
  4813. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4814. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4815. if ${ac_cv_path_SED+:} false; then :
  4816. $as_echo_n "(cached) " >&6
  4817. else
  4818. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4819. for ac_i in 1 2 3 4 5 6 7; do
  4820. ac_script="$ac_script$as_nl$ac_script"
  4821. done
  4822. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4823. { ac_script=; unset ac_script;}
  4824. if test -z "$SED"; then
  4825. ac_path_SED_found=false
  4826. # Loop through the user's path and test for each of PROGNAME-LIST
  4827. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4828. for as_dir in $PATH
  4829. do
  4830. IFS=$as_save_IFS
  4831. test -z "$as_dir" && as_dir=.
  4832. for ac_prog in sed gsed; do
  4833. for ac_exec_ext in '' $ac_executable_extensions; do
  4834. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4835. as_fn_executable_p "$ac_path_SED" || continue
  4836. # Check for GNU ac_path_SED and select it if it is found.
  4837. # Check for GNU $ac_path_SED
  4838. case `"$ac_path_SED" --version 2>&1` in
  4839. *GNU*)
  4840. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4841. *)
  4842. ac_count=0
  4843. $as_echo_n 0123456789 >"conftest.in"
  4844. while :
  4845. do
  4846. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4847. mv "conftest.tmp" "conftest.in"
  4848. cp "conftest.in" "conftest.nl"
  4849. $as_echo '' >> "conftest.nl"
  4850. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4851. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4852. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4853. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4854. # Best one so far, save it but keep looking for a better one
  4855. ac_cv_path_SED="$ac_path_SED"
  4856. ac_path_SED_max=$ac_count
  4857. fi
  4858. # 10*(2^10) chars as input seems more than enough
  4859. test $ac_count -gt 10 && break
  4860. done
  4861. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4862. esac
  4863. $ac_path_SED_found && break 3
  4864. done
  4865. done
  4866. done
  4867. IFS=$as_save_IFS
  4868. if test -z "$ac_cv_path_SED"; then
  4869. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4870. fi
  4871. else
  4872. ac_cv_path_SED=$SED
  4873. fi
  4874. fi
  4875. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4876. $as_echo "$ac_cv_path_SED" >&6; }
  4877. SED="$ac_cv_path_SED"
  4878. rm -f conftest.sed
  4879. test -z "$SED" && SED=sed
  4880. Xsed="$SED -e 1s/^X//"
  4881. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4882. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4883. if ${ac_cv_path_GREP+:} false; then :
  4884. $as_echo_n "(cached) " >&6
  4885. else
  4886. if test -z "$GREP"; then
  4887. ac_path_GREP_found=false
  4888. # Loop through the user's path and test for each of PROGNAME-LIST
  4889. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4890. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4891. do
  4892. IFS=$as_save_IFS
  4893. test -z "$as_dir" && as_dir=.
  4894. for ac_prog in grep ggrep; do
  4895. for ac_exec_ext in '' $ac_executable_extensions; do
  4896. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4897. as_fn_executable_p "$ac_path_GREP" || continue
  4898. # Check for GNU ac_path_GREP and select it if it is found.
  4899. # Check for GNU $ac_path_GREP
  4900. case `"$ac_path_GREP" --version 2>&1` in
  4901. *GNU*)
  4902. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4903. *)
  4904. ac_count=0
  4905. $as_echo_n 0123456789 >"conftest.in"
  4906. while :
  4907. do
  4908. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4909. mv "conftest.tmp" "conftest.in"
  4910. cp "conftest.in" "conftest.nl"
  4911. $as_echo 'GREP' >> "conftest.nl"
  4912. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4913. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4914. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4915. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4916. # Best one so far, save it but keep looking for a better one
  4917. ac_cv_path_GREP="$ac_path_GREP"
  4918. ac_path_GREP_max=$ac_count
  4919. fi
  4920. # 10*(2^10) chars as input seems more than enough
  4921. test $ac_count -gt 10 && break
  4922. done
  4923. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4924. esac
  4925. $ac_path_GREP_found && break 3
  4926. done
  4927. done
  4928. done
  4929. IFS=$as_save_IFS
  4930. if test -z "$ac_cv_path_GREP"; then
  4931. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4932. fi
  4933. else
  4934. ac_cv_path_GREP=$GREP
  4935. fi
  4936. fi
  4937. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4938. $as_echo "$ac_cv_path_GREP" >&6; }
  4939. GREP="$ac_cv_path_GREP"
  4940. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4941. $as_echo_n "checking for egrep... " >&6; }
  4942. if ${ac_cv_path_EGREP+:} false; then :
  4943. $as_echo_n "(cached) " >&6
  4944. else
  4945. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4946. then ac_cv_path_EGREP="$GREP -E"
  4947. else
  4948. if test -z "$EGREP"; then
  4949. ac_path_EGREP_found=false
  4950. # Loop through the user's path and test for each of PROGNAME-LIST
  4951. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4952. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4953. do
  4954. IFS=$as_save_IFS
  4955. test -z "$as_dir" && as_dir=.
  4956. for ac_prog in egrep; do
  4957. for ac_exec_ext in '' $ac_executable_extensions; do
  4958. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4959. as_fn_executable_p "$ac_path_EGREP" || continue
  4960. # Check for GNU ac_path_EGREP and select it if it is found.
  4961. # Check for GNU $ac_path_EGREP
  4962. case `"$ac_path_EGREP" --version 2>&1` in
  4963. *GNU*)
  4964. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4965. *)
  4966. ac_count=0
  4967. $as_echo_n 0123456789 >"conftest.in"
  4968. while :
  4969. do
  4970. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4971. mv "conftest.tmp" "conftest.in"
  4972. cp "conftest.in" "conftest.nl"
  4973. $as_echo 'EGREP' >> "conftest.nl"
  4974. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4975. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4976. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4977. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4978. # Best one so far, save it but keep looking for a better one
  4979. ac_cv_path_EGREP="$ac_path_EGREP"
  4980. ac_path_EGREP_max=$ac_count
  4981. fi
  4982. # 10*(2^10) chars as input seems more than enough
  4983. test $ac_count -gt 10 && break
  4984. done
  4985. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4986. esac
  4987. $ac_path_EGREP_found && break 3
  4988. done
  4989. done
  4990. done
  4991. IFS=$as_save_IFS
  4992. if test -z "$ac_cv_path_EGREP"; then
  4993. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4994. fi
  4995. else
  4996. ac_cv_path_EGREP=$EGREP
  4997. fi
  4998. fi
  4999. fi
  5000. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  5001. $as_echo "$ac_cv_path_EGREP" >&6; }
  5002. EGREP="$ac_cv_path_EGREP"
  5003. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  5004. $as_echo_n "checking for fgrep... " >&6; }
  5005. if ${ac_cv_path_FGREP+:} false; then :
  5006. $as_echo_n "(cached) " >&6
  5007. else
  5008. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  5009. then ac_cv_path_FGREP="$GREP -F"
  5010. else
  5011. if test -z "$FGREP"; then
  5012. ac_path_FGREP_found=false
  5013. # Loop through the user's path and test for each of PROGNAME-LIST
  5014. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5015. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5016. do
  5017. IFS=$as_save_IFS
  5018. test -z "$as_dir" && as_dir=.
  5019. for ac_prog in fgrep; do
  5020. for ac_exec_ext in '' $ac_executable_extensions; do
  5021. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  5022. as_fn_executable_p "$ac_path_FGREP" || continue
  5023. # Check for GNU ac_path_FGREP and select it if it is found.
  5024. # Check for GNU $ac_path_FGREP
  5025. case `"$ac_path_FGREP" --version 2>&1` in
  5026. *GNU*)
  5027. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  5028. *)
  5029. ac_count=0
  5030. $as_echo_n 0123456789 >"conftest.in"
  5031. while :
  5032. do
  5033. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5034. mv "conftest.tmp" "conftest.in"
  5035. cp "conftest.in" "conftest.nl"
  5036. $as_echo 'FGREP' >> "conftest.nl"
  5037. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5038. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5039. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5040. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  5041. # Best one so far, save it but keep looking for a better one
  5042. ac_cv_path_FGREP="$ac_path_FGREP"
  5043. ac_path_FGREP_max=$ac_count
  5044. fi
  5045. # 10*(2^10) chars as input seems more than enough
  5046. test $ac_count -gt 10 && break
  5047. done
  5048. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5049. esac
  5050. $ac_path_FGREP_found && break 3
  5051. done
  5052. done
  5053. done
  5054. IFS=$as_save_IFS
  5055. if test -z "$ac_cv_path_FGREP"; then
  5056. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  5057. fi
  5058. else
  5059. ac_cv_path_FGREP=$FGREP
  5060. fi
  5061. fi
  5062. fi
  5063. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  5064. $as_echo "$ac_cv_path_FGREP" >&6; }
  5065. FGREP="$ac_cv_path_FGREP"
  5066. test -z "$GREP" && GREP=grep
  5067. # Check whether --with-gnu-ld was given.
  5068. if test "${with_gnu_ld+set}" = set; then :
  5069. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  5070. else
  5071. with_gnu_ld=no
  5072. fi
  5073. ac_prog=ld
  5074. if test "$GCC" = yes; then
  5075. # Check if gcc -print-prog-name=ld gives a path.
  5076. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  5077. $as_echo_n "checking for ld used by $CC... " >&6; }
  5078. case $host in
  5079. *-*-mingw*)
  5080. # gcc leaves a trailing carriage return which upsets mingw
  5081. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  5082. *)
  5083. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  5084. esac
  5085. case $ac_prog in
  5086. # Accept absolute paths.
  5087. [\\/]* | ?:[\\/]*)
  5088. re_direlt='/[^/][^/]*/\.\./'
  5089. # Canonicalize the pathname of ld
  5090. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  5091. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  5092. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  5093. done
  5094. test -z "$LD" && LD="$ac_prog"
  5095. ;;
  5096. "")
  5097. # If it fails, then pretend we aren't using GCC.
  5098. ac_prog=ld
  5099. ;;
  5100. *)
  5101. # If it is relative, then search for the first ld in PATH.
  5102. with_gnu_ld=unknown
  5103. ;;
  5104. esac
  5105. elif test "$with_gnu_ld" = yes; then
  5106. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  5107. $as_echo_n "checking for GNU ld... " >&6; }
  5108. else
  5109. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  5110. $as_echo_n "checking for non-GNU ld... " >&6; }
  5111. fi
  5112. if ${lt_cv_path_LD+:} false; then :
  5113. $as_echo_n "(cached) " >&6
  5114. else
  5115. if test -z "$LD"; then
  5116. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5117. for ac_dir in $PATH; do
  5118. IFS="$lt_save_ifs"
  5119. test -z "$ac_dir" && ac_dir=.
  5120. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  5121. lt_cv_path_LD="$ac_dir/$ac_prog"
  5122. # Check to see if the program is GNU ld. I'd rather use --version,
  5123. # but apparently some variants of GNU ld only accept -v.
  5124. # Break only if it was the GNU/non-GNU ld that we prefer.
  5125. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  5126. *GNU* | *'with BFD'*)
  5127. test "$with_gnu_ld" != no && break
  5128. ;;
  5129. *)
  5130. test "$with_gnu_ld" != yes && break
  5131. ;;
  5132. esac
  5133. fi
  5134. done
  5135. IFS="$lt_save_ifs"
  5136. else
  5137. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  5138. fi
  5139. fi
  5140. LD="$lt_cv_path_LD"
  5141. if test -n "$LD"; then
  5142. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  5143. $as_echo "$LD" >&6; }
  5144. else
  5145. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5146. $as_echo "no" >&6; }
  5147. fi
  5148. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  5149. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  5150. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  5151. if ${lt_cv_prog_gnu_ld+:} false; then :
  5152. $as_echo_n "(cached) " >&6
  5153. else
  5154. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  5155. case `$LD -v 2>&1 </dev/null` in
  5156. *GNU* | *'with BFD'*)
  5157. lt_cv_prog_gnu_ld=yes
  5158. ;;
  5159. *)
  5160. lt_cv_prog_gnu_ld=no
  5161. ;;
  5162. esac
  5163. fi
  5164. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  5165. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  5166. with_gnu_ld=$lt_cv_prog_gnu_ld
  5167. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  5168. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  5169. if ${lt_cv_path_NM+:} false; then :
  5170. $as_echo_n "(cached) " >&6
  5171. else
  5172. if test -n "$NM"; then
  5173. # Let the user override the test.
  5174. lt_cv_path_NM="$NM"
  5175. else
  5176. lt_nm_to_check="${ac_tool_prefix}nm"
  5177. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  5178. lt_nm_to_check="$lt_nm_to_check nm"
  5179. fi
  5180. for lt_tmp_nm in $lt_nm_to_check; do
  5181. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5182. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  5183. IFS="$lt_save_ifs"
  5184. test -z "$ac_dir" && ac_dir=.
  5185. tmp_nm="$ac_dir/$lt_tmp_nm"
  5186. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  5187. # Check to see if the nm accepts a BSD-compat flag.
  5188. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  5189. # nm: unknown option "B" ignored
  5190. # Tru64's nm complains that /dev/null is an invalid object file
  5191. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  5192. */dev/null* | *'Invalid file or object type'*)
  5193. lt_cv_path_NM="$tmp_nm -B"
  5194. break
  5195. ;;
  5196. *)
  5197. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  5198. */dev/null*)
  5199. lt_cv_path_NM="$tmp_nm -p"
  5200. break
  5201. ;;
  5202. *)
  5203. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  5204. continue # so that we can try to find one that supports BSD flags
  5205. ;;
  5206. esac
  5207. ;;
  5208. esac
  5209. fi
  5210. done
  5211. IFS="$lt_save_ifs"
  5212. done
  5213. : ${lt_cv_path_NM=no}
  5214. fi
  5215. fi
  5216. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  5217. $as_echo "$lt_cv_path_NM" >&6; }
  5218. if test "$lt_cv_path_NM" != "no"; then
  5219. NM="$lt_cv_path_NM"
  5220. else
  5221. # Didn't find any BSD compatible name lister, look for dumpbin.
  5222. if test -n "$DUMPBIN"; then :
  5223. # Let the user override the test.
  5224. else
  5225. if test -n "$ac_tool_prefix"; then
  5226. for ac_prog in dumpbin "link -dump"
  5227. do
  5228. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5229. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5230. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5231. $as_echo_n "checking for $ac_word... " >&6; }
  5232. if ${ac_cv_prog_DUMPBIN+:} false; then :
  5233. $as_echo_n "(cached) " >&6
  5234. else
  5235. if test -n "$DUMPBIN"; then
  5236. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  5237. else
  5238. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5239. for as_dir in $PATH
  5240. do
  5241. IFS=$as_save_IFS
  5242. test -z "$as_dir" && as_dir=.
  5243. for ac_exec_ext in '' $ac_executable_extensions; do
  5244. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5245. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  5246. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5247. break 2
  5248. fi
  5249. done
  5250. done
  5251. IFS=$as_save_IFS
  5252. fi
  5253. fi
  5254. DUMPBIN=$ac_cv_prog_DUMPBIN
  5255. if test -n "$DUMPBIN"; then
  5256. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  5257. $as_echo "$DUMPBIN" >&6; }
  5258. else
  5259. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5260. $as_echo "no" >&6; }
  5261. fi
  5262. test -n "$DUMPBIN" && break
  5263. done
  5264. fi
  5265. if test -z "$DUMPBIN"; then
  5266. ac_ct_DUMPBIN=$DUMPBIN
  5267. for ac_prog in dumpbin "link -dump"
  5268. do
  5269. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5270. set dummy $ac_prog; ac_word=$2
  5271. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5272. $as_echo_n "checking for $ac_word... " >&6; }
  5273. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  5274. $as_echo_n "(cached) " >&6
  5275. else
  5276. if test -n "$ac_ct_DUMPBIN"; then
  5277. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  5278. else
  5279. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5280. for as_dir in $PATH
  5281. do
  5282. IFS=$as_save_IFS
  5283. test -z "$as_dir" && as_dir=.
  5284. for ac_exec_ext in '' $ac_executable_extensions; do
  5285. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5286. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  5287. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5288. break 2
  5289. fi
  5290. done
  5291. done
  5292. IFS=$as_save_IFS
  5293. fi
  5294. fi
  5295. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  5296. if test -n "$ac_ct_DUMPBIN"; then
  5297. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  5298. $as_echo "$ac_ct_DUMPBIN" >&6; }
  5299. else
  5300. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5301. $as_echo "no" >&6; }
  5302. fi
  5303. test -n "$ac_ct_DUMPBIN" && break
  5304. done
  5305. if test "x$ac_ct_DUMPBIN" = x; then
  5306. DUMPBIN=":"
  5307. else
  5308. case $cross_compiling:$ac_tool_warned in
  5309. yes:)
  5310. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5311. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5312. ac_tool_warned=yes ;;
  5313. esac
  5314. DUMPBIN=$ac_ct_DUMPBIN
  5315. fi
  5316. fi
  5317. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  5318. *COFF*)
  5319. DUMPBIN="$DUMPBIN -symbols"
  5320. ;;
  5321. *)
  5322. DUMPBIN=:
  5323. ;;
  5324. esac
  5325. fi
  5326. if test "$DUMPBIN" != ":"; then
  5327. NM="$DUMPBIN"
  5328. fi
  5329. fi
  5330. test -z "$NM" && NM=nm
  5331. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  5332. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  5333. if ${lt_cv_nm_interface+:} false; then :
  5334. $as_echo_n "(cached) " >&6
  5335. else
  5336. lt_cv_nm_interface="BSD nm"
  5337. echo "int some_variable = 0;" > conftest.$ac_ext
  5338. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  5339. (eval "$ac_compile" 2>conftest.err)
  5340. cat conftest.err >&5
  5341. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  5342. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  5343. cat conftest.err >&5
  5344. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  5345. cat conftest.out >&5
  5346. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  5347. lt_cv_nm_interface="MS dumpbin"
  5348. fi
  5349. rm -f conftest*
  5350. fi
  5351. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  5352. $as_echo "$lt_cv_nm_interface" >&6; }
  5353. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  5354. $as_echo_n "checking whether ln -s works... " >&6; }
  5355. LN_S=$as_ln_s
  5356. if test "$LN_S" = "ln -s"; then
  5357. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5358. $as_echo "yes" >&6; }
  5359. else
  5360. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  5361. $as_echo "no, using $LN_S" >&6; }
  5362. fi
  5363. # find the maximum length of command line arguments
  5364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  5365. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  5366. if ${lt_cv_sys_max_cmd_len+:} false; then :
  5367. $as_echo_n "(cached) " >&6
  5368. else
  5369. i=0
  5370. teststring="ABCD"
  5371. case $build_os in
  5372. msdosdjgpp*)
  5373. # On DJGPP, this test can blow up pretty badly due to problems in libc
  5374. # (any single argument exceeding 2000 bytes causes a buffer overrun
  5375. # during glob expansion). Even if it were fixed, the result of this
  5376. # check would be larger than it should be.
  5377. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  5378. ;;
  5379. gnu*)
  5380. # Under GNU Hurd, this test is not required because there is
  5381. # no limit to the length of command line arguments.
  5382. # Libtool will interpret -1 as no limit whatsoever
  5383. lt_cv_sys_max_cmd_len=-1;
  5384. ;;
  5385. cygwin* | mingw* | cegcc*)
  5386. # On Win9x/ME, this test blows up -- it succeeds, but takes
  5387. # about 5 minutes as the teststring grows exponentially.
  5388. # Worse, since 9x/ME are not pre-emptively multitasking,
  5389. # you end up with a "frozen" computer, even though with patience
  5390. # the test eventually succeeds (with a max line length of 256k).
  5391. # Instead, let's just punt: use the minimum linelength reported by
  5392. # all of the supported platforms: 8192 (on NT/2K/XP).
  5393. lt_cv_sys_max_cmd_len=8192;
  5394. ;;
  5395. mint*)
  5396. # On MiNT this can take a long time and run out of memory.
  5397. lt_cv_sys_max_cmd_len=8192;
  5398. ;;
  5399. amigaos*)
  5400. # On AmigaOS with pdksh, this test takes hours, literally.
  5401. # So we just punt and use a minimum line length of 8192.
  5402. lt_cv_sys_max_cmd_len=8192;
  5403. ;;
  5404. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  5405. # This has been around since 386BSD, at least. Likely further.
  5406. if test -x /sbin/sysctl; then
  5407. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  5408. elif test -x /usr/sbin/sysctl; then
  5409. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  5410. else
  5411. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  5412. fi
  5413. # And add a safety zone
  5414. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5415. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5416. ;;
  5417. interix*)
  5418. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  5419. lt_cv_sys_max_cmd_len=196608
  5420. ;;
  5421. os2*)
  5422. # The test takes a long time on OS/2.
  5423. lt_cv_sys_max_cmd_len=8192
  5424. ;;
  5425. osf*)
  5426. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  5427. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  5428. # nice to cause kernel panics so lets avoid the loop below.
  5429. # First set a reasonable default.
  5430. lt_cv_sys_max_cmd_len=16384
  5431. #
  5432. if test -x /sbin/sysconfig; then
  5433. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  5434. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  5435. esac
  5436. fi
  5437. ;;
  5438. sco3.2v5*)
  5439. lt_cv_sys_max_cmd_len=102400
  5440. ;;
  5441. sysv5* | sco5v6* | sysv4.2uw2*)
  5442. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  5443. if test -n "$kargmax"; then
  5444. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  5445. else
  5446. lt_cv_sys_max_cmd_len=32768
  5447. fi
  5448. ;;
  5449. *)
  5450. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  5451. if test -n "$lt_cv_sys_max_cmd_len"; then
  5452. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5453. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5454. else
  5455. # Make teststring a little bigger before we do anything with it.
  5456. # a 1K string should be a reasonable start.
  5457. for i in 1 2 3 4 5 6 7 8 ; do
  5458. teststring=$teststring$teststring
  5459. done
  5460. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  5461. # If test is not a shell built-in, we'll probably end up computing a
  5462. # maximum length that is only half of the actual maximum length, but
  5463. # we can't tell.
  5464. while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
  5465. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  5466. test $i != 17 # 1/2 MB should be enough
  5467. do
  5468. i=`expr $i + 1`
  5469. teststring=$teststring$teststring
  5470. done
  5471. # Only check the string length outside the loop.
  5472. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  5473. teststring=
  5474. # Add a significant safety factor because C++ compilers can tack on
  5475. # massive amounts of additional arguments before passing them to the
  5476. # linker. It appears as though 1/2 is a usable value.
  5477. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5478. fi
  5479. ;;
  5480. esac
  5481. fi
  5482. if test -n $lt_cv_sys_max_cmd_len ; then
  5483. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  5484. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  5485. else
  5486. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  5487. $as_echo "none" >&6; }
  5488. fi
  5489. max_cmd_len=$lt_cv_sys_max_cmd_len
  5490. : ${CP="cp -f"}
  5491. : ${MV="mv -f"}
  5492. : ${RM="rm -f"}
  5493. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  5494. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  5495. # Try some XSI features
  5496. xsi_shell=no
  5497. ( _lt_dummy="a/b/c"
  5498. test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  5499. = c,a/b,b/c, \
  5500. && eval 'test $(( 1 + 1 )) -eq 2 \
  5501. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  5502. && xsi_shell=yes
  5503. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  5504. $as_echo "$xsi_shell" >&6; }
  5505. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  5506. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  5507. lt_shell_append=no
  5508. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  5509. >/dev/null 2>&1 \
  5510. && lt_shell_append=yes
  5511. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  5512. $as_echo "$lt_shell_append" >&6; }
  5513. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  5514. lt_unset=unset
  5515. else
  5516. lt_unset=false
  5517. fi
  5518. # test EBCDIC or ASCII
  5519. case `echo X|tr X '\101'` in
  5520. A) # ASCII based system
  5521. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  5522. lt_SP2NL='tr \040 \012'
  5523. lt_NL2SP='tr \015\012 \040\040'
  5524. ;;
  5525. *) # EBCDIC based system
  5526. lt_SP2NL='tr \100 \n'
  5527. lt_NL2SP='tr \r\n \100\100'
  5528. ;;
  5529. esac
  5530. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  5531. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  5532. if ${lt_cv_to_host_file_cmd+:} false; then :
  5533. $as_echo_n "(cached) " >&6
  5534. else
  5535. case $host in
  5536. *-*-mingw* )
  5537. case $build in
  5538. *-*-mingw* ) # actually msys
  5539. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  5540. ;;
  5541. *-*-cygwin* )
  5542. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  5543. ;;
  5544. * ) # otherwise, assume *nix
  5545. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  5546. ;;
  5547. esac
  5548. ;;
  5549. *-*-cygwin* )
  5550. case $build in
  5551. *-*-mingw* ) # actually msys
  5552. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  5553. ;;
  5554. *-*-cygwin* )
  5555. lt_cv_to_host_file_cmd=func_convert_file_noop
  5556. ;;
  5557. * ) # otherwise, assume *nix
  5558. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  5559. ;;
  5560. esac
  5561. ;;
  5562. * ) # unhandled hosts (and "normal" native builds)
  5563. lt_cv_to_host_file_cmd=func_convert_file_noop
  5564. ;;
  5565. esac
  5566. fi
  5567. to_host_file_cmd=$lt_cv_to_host_file_cmd
  5568. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  5569. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  5570. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  5571. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  5572. if ${lt_cv_to_tool_file_cmd+:} false; then :
  5573. $as_echo_n "(cached) " >&6
  5574. else
  5575. #assume ordinary cross tools, or native build.
  5576. lt_cv_to_tool_file_cmd=func_convert_file_noop
  5577. case $host in
  5578. *-*-mingw* )
  5579. case $build in
  5580. *-*-mingw* ) # actually msys
  5581. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  5582. ;;
  5583. esac
  5584. ;;
  5585. esac
  5586. fi
  5587. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  5588. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  5589. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  5590. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  5591. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  5592. if ${lt_cv_ld_reload_flag+:} false; then :
  5593. $as_echo_n "(cached) " >&6
  5594. else
  5595. lt_cv_ld_reload_flag='-r'
  5596. fi
  5597. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  5598. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  5599. reload_flag=$lt_cv_ld_reload_flag
  5600. case $reload_flag in
  5601. "" | " "*) ;;
  5602. *) reload_flag=" $reload_flag" ;;
  5603. esac
  5604. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5605. case $host_os in
  5606. cygwin* | mingw* | pw32* | cegcc*)
  5607. if test "$GCC" != yes; then
  5608. reload_cmds=false
  5609. fi
  5610. ;;
  5611. darwin*)
  5612. if test "$GCC" = yes; then
  5613. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  5614. else
  5615. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5616. fi
  5617. ;;
  5618. esac
  5619. if test -n "$ac_tool_prefix"; then
  5620. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5621. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5622. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5623. $as_echo_n "checking for $ac_word... " >&6; }
  5624. if ${ac_cv_prog_OBJDUMP+:} false; then :
  5625. $as_echo_n "(cached) " >&6
  5626. else
  5627. if test -n "$OBJDUMP"; then
  5628. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5629. else
  5630. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5631. for as_dir in $PATH
  5632. do
  5633. IFS=$as_save_IFS
  5634. test -z "$as_dir" && as_dir=.
  5635. for ac_exec_ext in '' $ac_executable_extensions; do
  5636. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5637. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5638. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5639. break 2
  5640. fi
  5641. done
  5642. done
  5643. IFS=$as_save_IFS
  5644. fi
  5645. fi
  5646. OBJDUMP=$ac_cv_prog_OBJDUMP
  5647. if test -n "$OBJDUMP"; then
  5648. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5649. $as_echo "$OBJDUMP" >&6; }
  5650. else
  5651. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5652. $as_echo "no" >&6; }
  5653. fi
  5654. fi
  5655. if test -z "$ac_cv_prog_OBJDUMP"; then
  5656. ac_ct_OBJDUMP=$OBJDUMP
  5657. # Extract the first word of "objdump", so it can be a program name with args.
  5658. set dummy objdump; ac_word=$2
  5659. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5660. $as_echo_n "checking for $ac_word... " >&6; }
  5661. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  5662. $as_echo_n "(cached) " >&6
  5663. else
  5664. if test -n "$ac_ct_OBJDUMP"; then
  5665. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5666. else
  5667. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5668. for as_dir in $PATH
  5669. do
  5670. IFS=$as_save_IFS
  5671. test -z "$as_dir" && as_dir=.
  5672. for ac_exec_ext in '' $ac_executable_extensions; do
  5673. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5674. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5675. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5676. break 2
  5677. fi
  5678. done
  5679. done
  5680. IFS=$as_save_IFS
  5681. fi
  5682. fi
  5683. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5684. if test -n "$ac_ct_OBJDUMP"; then
  5685. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5686. $as_echo "$ac_ct_OBJDUMP" >&6; }
  5687. else
  5688. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5689. $as_echo "no" >&6; }
  5690. fi
  5691. if test "x$ac_ct_OBJDUMP" = x; then
  5692. OBJDUMP="false"
  5693. else
  5694. case $cross_compiling:$ac_tool_warned in
  5695. yes:)
  5696. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5697. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5698. ac_tool_warned=yes ;;
  5699. esac
  5700. OBJDUMP=$ac_ct_OBJDUMP
  5701. fi
  5702. else
  5703. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5704. fi
  5705. test -z "$OBJDUMP" && OBJDUMP=objdump
  5706. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5707. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  5708. if ${lt_cv_deplibs_check_method+:} false; then :
  5709. $as_echo_n "(cached) " >&6
  5710. else
  5711. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5712. lt_cv_file_magic_test_file=
  5713. lt_cv_deplibs_check_method='unknown'
  5714. # Need to set the preceding variable on all platforms that support
  5715. # interlibrary dependencies.
  5716. # 'none' -- dependencies not supported.
  5717. # `unknown' -- same as none, but documents that we really don't know.
  5718. # 'pass_all' -- all dependencies passed with no checks.
  5719. # 'test_compile' -- check by making test program.
  5720. # 'file_magic [[regex]]' -- check by looking for files in library path
  5721. # which responds to the $file_magic_cmd with a given extended regex.
  5722. # If you have `file' or equivalent on your system and you're not sure
  5723. # whether `pass_all' will *always* work, you probably want this one.
  5724. case $host_os in
  5725. aix[4-9]*)
  5726. lt_cv_deplibs_check_method=pass_all
  5727. ;;
  5728. beos*)
  5729. lt_cv_deplibs_check_method=pass_all
  5730. ;;
  5731. bsdi[45]*)
  5732. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5733. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5734. lt_cv_file_magic_test_file=/shlib/libc.so
  5735. ;;
  5736. cygwin*)
  5737. # func_win32_libid is a shell function defined in ltmain.sh
  5738. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5739. lt_cv_file_magic_cmd='func_win32_libid'
  5740. ;;
  5741. mingw* | pw32*)
  5742. # Base MSYS/MinGW do not provide the 'file' command needed by
  5743. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5744. # unless we find 'file', for example because we are cross-compiling.
  5745. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  5746. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  5747. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5748. lt_cv_file_magic_cmd='func_win32_libid'
  5749. else
  5750. # Keep this pattern in sync with the one in func_win32_libid.
  5751. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  5752. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5753. fi
  5754. ;;
  5755. cegcc*)
  5756. # use the weaker test based on 'objdump'. See mingw*.
  5757. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5758. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5759. ;;
  5760. darwin* | rhapsody*)
  5761. lt_cv_deplibs_check_method=pass_all
  5762. ;;
  5763. freebsd* | dragonfly*)
  5764. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5765. case $host_cpu in
  5766. i*86 )
  5767. # Not sure whether the presence of OpenBSD here was a mistake.
  5768. # Let's accept both of them until this is cleared up.
  5769. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5770. lt_cv_file_magic_cmd=/usr/bin/file
  5771. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5772. ;;
  5773. esac
  5774. else
  5775. lt_cv_deplibs_check_method=pass_all
  5776. fi
  5777. ;;
  5778. gnu*)
  5779. lt_cv_deplibs_check_method=pass_all
  5780. ;;
  5781. haiku*)
  5782. lt_cv_deplibs_check_method=pass_all
  5783. ;;
  5784. hpux10.20* | hpux11*)
  5785. lt_cv_file_magic_cmd=/usr/bin/file
  5786. case $host_cpu in
  5787. ia64*)
  5788. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5789. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5790. ;;
  5791. hppa*64*)
  5792. 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]'
  5793. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5794. ;;
  5795. *)
  5796. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  5797. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5798. ;;
  5799. esac
  5800. ;;
  5801. interix[3-9]*)
  5802. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5803. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5804. ;;
  5805. irix5* | irix6* | nonstopux*)
  5806. case $LD in
  5807. *-32|*"-32 ") libmagic=32-bit;;
  5808. *-n32|*"-n32 ") libmagic=N32;;
  5809. *-64|*"-64 ") libmagic=64-bit;;
  5810. *) libmagic=never-match;;
  5811. esac
  5812. lt_cv_deplibs_check_method=pass_all
  5813. ;;
  5814. # This must be glibc/ELF.
  5815. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  5816. lt_cv_deplibs_check_method=pass_all
  5817. ;;
  5818. netbsd*)
  5819. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5820. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5821. else
  5822. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5823. fi
  5824. ;;
  5825. newos6*)
  5826. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5827. lt_cv_file_magic_cmd=/usr/bin/file
  5828. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5829. ;;
  5830. *nto* | *qnx*)
  5831. lt_cv_deplibs_check_method=pass_all
  5832. ;;
  5833. openbsd*)
  5834. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  5835. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5836. else
  5837. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5838. fi
  5839. ;;
  5840. osf3* | osf4* | osf5*)
  5841. lt_cv_deplibs_check_method=pass_all
  5842. ;;
  5843. rdos*)
  5844. lt_cv_deplibs_check_method=pass_all
  5845. ;;
  5846. solaris*)
  5847. lt_cv_deplibs_check_method=pass_all
  5848. ;;
  5849. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5850. lt_cv_deplibs_check_method=pass_all
  5851. ;;
  5852. sysv4 | sysv4.3*)
  5853. case $host_vendor in
  5854. motorola)
  5855. 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]'
  5856. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5857. ;;
  5858. ncr)
  5859. lt_cv_deplibs_check_method=pass_all
  5860. ;;
  5861. sequent)
  5862. lt_cv_file_magic_cmd='/bin/file'
  5863. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5864. ;;
  5865. sni)
  5866. lt_cv_file_magic_cmd='/bin/file'
  5867. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5868. lt_cv_file_magic_test_file=/lib/libc.so
  5869. ;;
  5870. siemens)
  5871. lt_cv_deplibs_check_method=pass_all
  5872. ;;
  5873. pc)
  5874. lt_cv_deplibs_check_method=pass_all
  5875. ;;
  5876. esac
  5877. ;;
  5878. tpf*)
  5879. lt_cv_deplibs_check_method=pass_all
  5880. ;;
  5881. esac
  5882. fi
  5883. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5884. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  5885. file_magic_glob=
  5886. want_nocaseglob=no
  5887. if test "$build" = "$host"; then
  5888. case $host_os in
  5889. mingw* | pw32*)
  5890. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  5891. want_nocaseglob=yes
  5892. else
  5893. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  5894. fi
  5895. ;;
  5896. esac
  5897. fi
  5898. file_magic_cmd=$lt_cv_file_magic_cmd
  5899. deplibs_check_method=$lt_cv_deplibs_check_method
  5900. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5901. if test -n "$ac_tool_prefix"; then
  5902. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  5903. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  5904. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5905. $as_echo_n "checking for $ac_word... " >&6; }
  5906. if ${ac_cv_prog_DLLTOOL+:} false; then :
  5907. $as_echo_n "(cached) " >&6
  5908. else
  5909. if test -n "$DLLTOOL"; then
  5910. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  5911. else
  5912. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5913. for as_dir in $PATH
  5914. do
  5915. IFS=$as_save_IFS
  5916. test -z "$as_dir" && as_dir=.
  5917. for ac_exec_ext in '' $ac_executable_extensions; do
  5918. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5919. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  5920. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5921. break 2
  5922. fi
  5923. done
  5924. done
  5925. IFS=$as_save_IFS
  5926. fi
  5927. fi
  5928. DLLTOOL=$ac_cv_prog_DLLTOOL
  5929. if test -n "$DLLTOOL"; then
  5930. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  5931. $as_echo "$DLLTOOL" >&6; }
  5932. else
  5933. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5934. $as_echo "no" >&6; }
  5935. fi
  5936. fi
  5937. if test -z "$ac_cv_prog_DLLTOOL"; then
  5938. ac_ct_DLLTOOL=$DLLTOOL
  5939. # Extract the first word of "dlltool", so it can be a program name with args.
  5940. set dummy dlltool; ac_word=$2
  5941. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5942. $as_echo_n "checking for $ac_word... " >&6; }
  5943. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  5944. $as_echo_n "(cached) " >&6
  5945. else
  5946. if test -n "$ac_ct_DLLTOOL"; then
  5947. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  5948. else
  5949. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5950. for as_dir in $PATH
  5951. do
  5952. IFS=$as_save_IFS
  5953. test -z "$as_dir" && as_dir=.
  5954. for ac_exec_ext in '' $ac_executable_extensions; do
  5955. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5956. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  5957. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5958. break 2
  5959. fi
  5960. done
  5961. done
  5962. IFS=$as_save_IFS
  5963. fi
  5964. fi
  5965. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  5966. if test -n "$ac_ct_DLLTOOL"; then
  5967. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  5968. $as_echo "$ac_ct_DLLTOOL" >&6; }
  5969. else
  5970. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5971. $as_echo "no" >&6; }
  5972. fi
  5973. if test "x$ac_ct_DLLTOOL" = x; then
  5974. DLLTOOL="false"
  5975. else
  5976. case $cross_compiling:$ac_tool_warned in
  5977. yes:)
  5978. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5979. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5980. ac_tool_warned=yes ;;
  5981. esac
  5982. DLLTOOL=$ac_ct_DLLTOOL
  5983. fi
  5984. else
  5985. DLLTOOL="$ac_cv_prog_DLLTOOL"
  5986. fi
  5987. test -z "$DLLTOOL" && DLLTOOL=dlltool
  5988. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  5989. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  5990. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  5991. $as_echo_n "(cached) " >&6
  5992. else
  5993. lt_cv_sharedlib_from_linklib_cmd='unknown'
  5994. case $host_os in
  5995. cygwin* | mingw* | pw32* | cegcc*)
  5996. # two different shell functions defined in ltmain.sh
  5997. # decide which to use based on capabilities of $DLLTOOL
  5998. case `$DLLTOOL --help 2>&1` in
  5999. *--identify-strict*)
  6000. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  6001. ;;
  6002. *)
  6003. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  6004. ;;
  6005. esac
  6006. ;;
  6007. *)
  6008. # fallback: assume linklib IS sharedlib
  6009. lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  6010. ;;
  6011. esac
  6012. fi
  6013. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  6014. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  6015. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  6016. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  6017. if test -n "$ac_tool_prefix"; then
  6018. for ac_prog in ar
  6019. do
  6020. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  6021. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  6022. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6023. $as_echo_n "checking for $ac_word... " >&6; }
  6024. if ${ac_cv_prog_AR+:} false; then :
  6025. $as_echo_n "(cached) " >&6
  6026. else
  6027. if test -n "$AR"; then
  6028. ac_cv_prog_AR="$AR" # Let the user override the test.
  6029. else
  6030. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6031. for as_dir in $PATH
  6032. do
  6033. IFS=$as_save_IFS
  6034. test -z "$as_dir" && as_dir=.
  6035. for ac_exec_ext in '' $ac_executable_extensions; do
  6036. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6037. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  6038. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6039. break 2
  6040. fi
  6041. done
  6042. done
  6043. IFS=$as_save_IFS
  6044. fi
  6045. fi
  6046. AR=$ac_cv_prog_AR
  6047. if test -n "$AR"; then
  6048. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  6049. $as_echo "$AR" >&6; }
  6050. else
  6051. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6052. $as_echo "no" >&6; }
  6053. fi
  6054. test -n "$AR" && break
  6055. done
  6056. fi
  6057. if test -z "$AR"; then
  6058. ac_ct_AR=$AR
  6059. for ac_prog in ar
  6060. do
  6061. # Extract the first word of "$ac_prog", so it can be a program name with args.
  6062. set dummy $ac_prog; ac_word=$2
  6063. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6064. $as_echo_n "checking for $ac_word... " >&6; }
  6065. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  6066. $as_echo_n "(cached) " >&6
  6067. else
  6068. if test -n "$ac_ct_AR"; then
  6069. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  6070. else
  6071. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6072. for as_dir in $PATH
  6073. do
  6074. IFS=$as_save_IFS
  6075. test -z "$as_dir" && as_dir=.
  6076. for ac_exec_ext in '' $ac_executable_extensions; do
  6077. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6078. ac_cv_prog_ac_ct_AR="$ac_prog"
  6079. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6080. break 2
  6081. fi
  6082. done
  6083. done
  6084. IFS=$as_save_IFS
  6085. fi
  6086. fi
  6087. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  6088. if test -n "$ac_ct_AR"; then
  6089. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  6090. $as_echo "$ac_ct_AR" >&6; }
  6091. else
  6092. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6093. $as_echo "no" >&6; }
  6094. fi
  6095. test -n "$ac_ct_AR" && break
  6096. done
  6097. if test "x$ac_ct_AR" = x; then
  6098. AR="false"
  6099. else
  6100. case $cross_compiling:$ac_tool_warned in
  6101. yes:)
  6102. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6103. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6104. ac_tool_warned=yes ;;
  6105. esac
  6106. AR=$ac_ct_AR
  6107. fi
  6108. fi
  6109. : ${AR=ar}
  6110. : ${AR_FLAGS=cru}
  6111. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  6112. $as_echo_n "checking for archiver @FILE support... " >&6; }
  6113. if ${lt_cv_ar_at_file+:} false; then :
  6114. $as_echo_n "(cached) " >&6
  6115. else
  6116. lt_cv_ar_at_file=no
  6117. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6118. /* end confdefs.h. */
  6119. int
  6120. main ()
  6121. {
  6122. ;
  6123. return 0;
  6124. }
  6125. _ACEOF
  6126. if ac_fn_c_try_compile "$LINENO"; then :
  6127. echo conftest.$ac_objext > conftest.lst
  6128. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  6129. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  6130. (eval $lt_ar_try) 2>&5
  6131. ac_status=$?
  6132. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6133. test $ac_status = 0; }
  6134. if test "$ac_status" -eq 0; then
  6135. # Ensure the archiver fails upon bogus file names.
  6136. rm -f conftest.$ac_objext libconftest.a
  6137. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  6138. (eval $lt_ar_try) 2>&5
  6139. ac_status=$?
  6140. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6141. test $ac_status = 0; }
  6142. if test "$ac_status" -ne 0; then
  6143. lt_cv_ar_at_file=@
  6144. fi
  6145. fi
  6146. rm -f conftest.* libconftest.a
  6147. fi
  6148. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6149. fi
  6150. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  6151. $as_echo "$lt_cv_ar_at_file" >&6; }
  6152. if test "x$lt_cv_ar_at_file" = xno; then
  6153. archiver_list_spec=
  6154. else
  6155. archiver_list_spec=$lt_cv_ar_at_file
  6156. fi
  6157. if test -n "$ac_tool_prefix"; then
  6158. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  6159. set dummy ${ac_tool_prefix}strip; ac_word=$2
  6160. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6161. $as_echo_n "checking for $ac_word... " >&6; }
  6162. if ${ac_cv_prog_STRIP+:} false; then :
  6163. $as_echo_n "(cached) " >&6
  6164. else
  6165. if test -n "$STRIP"; then
  6166. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  6167. else
  6168. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6169. for as_dir in $PATH
  6170. do
  6171. IFS=$as_save_IFS
  6172. test -z "$as_dir" && as_dir=.
  6173. for ac_exec_ext in '' $ac_executable_extensions; do
  6174. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6175. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  6176. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6177. break 2
  6178. fi
  6179. done
  6180. done
  6181. IFS=$as_save_IFS
  6182. fi
  6183. fi
  6184. STRIP=$ac_cv_prog_STRIP
  6185. if test -n "$STRIP"; then
  6186. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  6187. $as_echo "$STRIP" >&6; }
  6188. else
  6189. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6190. $as_echo "no" >&6; }
  6191. fi
  6192. fi
  6193. if test -z "$ac_cv_prog_STRIP"; then
  6194. ac_ct_STRIP=$STRIP
  6195. # Extract the first word of "strip", so it can be a program name with args.
  6196. set dummy strip; ac_word=$2
  6197. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6198. $as_echo_n "checking for $ac_word... " >&6; }
  6199. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  6200. $as_echo_n "(cached) " >&6
  6201. else
  6202. if test -n "$ac_ct_STRIP"; then
  6203. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  6204. else
  6205. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6206. for as_dir in $PATH
  6207. do
  6208. IFS=$as_save_IFS
  6209. test -z "$as_dir" && as_dir=.
  6210. for ac_exec_ext in '' $ac_executable_extensions; do
  6211. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6212. ac_cv_prog_ac_ct_STRIP="strip"
  6213. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6214. break 2
  6215. fi
  6216. done
  6217. done
  6218. IFS=$as_save_IFS
  6219. fi
  6220. fi
  6221. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  6222. if test -n "$ac_ct_STRIP"; then
  6223. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  6224. $as_echo "$ac_ct_STRIP" >&6; }
  6225. else
  6226. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6227. $as_echo "no" >&6; }
  6228. fi
  6229. if test "x$ac_ct_STRIP" = x; then
  6230. STRIP=":"
  6231. else
  6232. case $cross_compiling:$ac_tool_warned in
  6233. yes:)
  6234. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6235. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6236. ac_tool_warned=yes ;;
  6237. esac
  6238. STRIP=$ac_ct_STRIP
  6239. fi
  6240. else
  6241. STRIP="$ac_cv_prog_STRIP"
  6242. fi
  6243. test -z "$STRIP" && STRIP=:
  6244. if test -n "$ac_tool_prefix"; then
  6245. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  6246. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  6247. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6248. $as_echo_n "checking for $ac_word... " >&6; }
  6249. if ${ac_cv_prog_RANLIB+:} false; then :
  6250. $as_echo_n "(cached) " >&6
  6251. else
  6252. if test -n "$RANLIB"; then
  6253. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  6254. else
  6255. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6256. for as_dir in $PATH
  6257. do
  6258. IFS=$as_save_IFS
  6259. test -z "$as_dir" && as_dir=.
  6260. for ac_exec_ext in '' $ac_executable_extensions; do
  6261. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6262. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  6263. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6264. break 2
  6265. fi
  6266. done
  6267. done
  6268. IFS=$as_save_IFS
  6269. fi
  6270. fi
  6271. RANLIB=$ac_cv_prog_RANLIB
  6272. if test -n "$RANLIB"; then
  6273. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  6274. $as_echo "$RANLIB" >&6; }
  6275. else
  6276. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6277. $as_echo "no" >&6; }
  6278. fi
  6279. fi
  6280. if test -z "$ac_cv_prog_RANLIB"; then
  6281. ac_ct_RANLIB=$RANLIB
  6282. # Extract the first word of "ranlib", so it can be a program name with args.
  6283. set dummy ranlib; ac_word=$2
  6284. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6285. $as_echo_n "checking for $ac_word... " >&6; }
  6286. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  6287. $as_echo_n "(cached) " >&6
  6288. else
  6289. if test -n "$ac_ct_RANLIB"; then
  6290. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  6291. else
  6292. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6293. for as_dir in $PATH
  6294. do
  6295. IFS=$as_save_IFS
  6296. test -z "$as_dir" && as_dir=.
  6297. for ac_exec_ext in '' $ac_executable_extensions; do
  6298. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6299. ac_cv_prog_ac_ct_RANLIB="ranlib"
  6300. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6301. break 2
  6302. fi
  6303. done
  6304. done
  6305. IFS=$as_save_IFS
  6306. fi
  6307. fi
  6308. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  6309. if test -n "$ac_ct_RANLIB"; then
  6310. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  6311. $as_echo "$ac_ct_RANLIB" >&6; }
  6312. else
  6313. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6314. $as_echo "no" >&6; }
  6315. fi
  6316. if test "x$ac_ct_RANLIB" = x; then
  6317. RANLIB=":"
  6318. else
  6319. case $cross_compiling:$ac_tool_warned in
  6320. yes:)
  6321. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6322. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6323. ac_tool_warned=yes ;;
  6324. esac
  6325. RANLIB=$ac_ct_RANLIB
  6326. fi
  6327. else
  6328. RANLIB="$ac_cv_prog_RANLIB"
  6329. fi
  6330. test -z "$RANLIB" && RANLIB=:
  6331. # Determine commands to create old-style static archives.
  6332. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  6333. old_postinstall_cmds='chmod 644 $oldlib'
  6334. old_postuninstall_cmds=
  6335. if test -n "$RANLIB"; then
  6336. case $host_os in
  6337. openbsd*)
  6338. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  6339. ;;
  6340. *)
  6341. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  6342. ;;
  6343. esac
  6344. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  6345. fi
  6346. case $host_os in
  6347. darwin*)
  6348. lock_old_archive_extraction=yes ;;
  6349. *)
  6350. lock_old_archive_extraction=no ;;
  6351. esac
  6352. # If no C compiler was specified, use CC.
  6353. LTCC=${LTCC-"$CC"}
  6354. # If no C compiler flags were specified, use CFLAGS.
  6355. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6356. # Allow CC to be a program name with arguments.
  6357. compiler=$CC
  6358. # Check for command to grab the raw symbol name followed by C symbol from nm.
  6359. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  6360. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  6361. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  6362. $as_echo_n "(cached) " >&6
  6363. else
  6364. # These are sane defaults that work on at least a few old systems.
  6365. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  6366. # Character class describing NM global symbol codes.
  6367. symcode='[BCDEGRST]'
  6368. # Regexp to match symbols that can be accessed directly from C.
  6369. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  6370. # Define system-specific variables.
  6371. case $host_os in
  6372. aix*)
  6373. symcode='[BCDT]'
  6374. ;;
  6375. cygwin* | mingw* | pw32* | cegcc*)
  6376. symcode='[ABCDGISTW]'
  6377. ;;
  6378. hpux*)
  6379. if test "$host_cpu" = ia64; then
  6380. symcode='[ABCDEGRST]'
  6381. fi
  6382. ;;
  6383. irix* | nonstopux*)
  6384. symcode='[BCDEGRST]'
  6385. ;;
  6386. osf*)
  6387. symcode='[BCDEGQRST]'
  6388. ;;
  6389. solaris*)
  6390. symcode='[BDRT]'
  6391. ;;
  6392. sco3.2v5*)
  6393. symcode='[DT]'
  6394. ;;
  6395. sysv4.2uw2*)
  6396. symcode='[DT]'
  6397. ;;
  6398. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  6399. symcode='[ABDT]'
  6400. ;;
  6401. sysv4)
  6402. symcode='[DFNSTU]'
  6403. ;;
  6404. esac
  6405. # If we're using GNU nm, then use its standard symbol codes.
  6406. case `$NM -V 2>&1` in
  6407. *GNU* | *'with BFD'*)
  6408. symcode='[ABCDGIRSTW]' ;;
  6409. esac
  6410. # Transform an extracted symbol line into a proper C declaration.
  6411. # Some systems (esp. on ia64) link data and code symbols differently,
  6412. # so use this general approach.
  6413. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  6414. # Transform an extracted symbol line into symbol name and symbol address
  6415. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  6416. 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'"
  6417. # Handle CRLF in mingw tool chain
  6418. opt_cr=
  6419. case $build_os in
  6420. mingw*)
  6421. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  6422. ;;
  6423. esac
  6424. # Try without a prefix underscore, then with it.
  6425. for ac_symprfx in "" "_"; do
  6426. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  6427. symxfrm="\\1 $ac_symprfx\\2 \\2"
  6428. # Write the raw and C identifiers.
  6429. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6430. # Fake it for dumpbin and say T for any non-static function
  6431. # and D for any global variable.
  6432. # Also find C++ and __fastcall symbols from MSVC++,
  6433. # which start with @ or ?.
  6434. lt_cv_sys_global_symbol_pipe="$AWK '"\
  6435. " {last_section=section; section=\$ 3};"\
  6436. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  6437. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  6438. " \$ 0!~/External *\|/{next};"\
  6439. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  6440. " {if(hide[section]) next};"\
  6441. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  6442. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  6443. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  6444. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  6445. " ' prfx=^$ac_symprfx"
  6446. else
  6447. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  6448. fi
  6449. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  6450. # Check to see that the pipe works correctly.
  6451. pipe_works=no
  6452. rm -f conftest*
  6453. cat > conftest.$ac_ext <<_LT_EOF
  6454. #ifdef __cplusplus
  6455. extern "C" {
  6456. #endif
  6457. char nm_test_var;
  6458. void nm_test_func(void);
  6459. void nm_test_func(void){}
  6460. #ifdef __cplusplus
  6461. }
  6462. #endif
  6463. int main(){nm_test_var='a';nm_test_func();return(0);}
  6464. _LT_EOF
  6465. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6466. (eval $ac_compile) 2>&5
  6467. ac_status=$?
  6468. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6469. test $ac_status = 0; }; then
  6470. # Now try to grab the symbols.
  6471. nlist=conftest.nm
  6472. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  6473. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  6474. ac_status=$?
  6475. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6476. test $ac_status = 0; } && test -s "$nlist"; then
  6477. # Try sorting and uniquifying the output.
  6478. if sort "$nlist" | uniq > "$nlist"T; then
  6479. mv -f "$nlist"T "$nlist"
  6480. else
  6481. rm -f "$nlist"T
  6482. fi
  6483. # Make sure that we snagged all the symbols we need.
  6484. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  6485. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  6486. cat <<_LT_EOF > conftest.$ac_ext
  6487. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  6488. #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  6489. /* DATA imports from DLLs on WIN32 con't be const, because runtime
  6490. relocations are performed -- see ld's documentation on pseudo-relocs. */
  6491. # define LT_DLSYM_CONST
  6492. #elif defined(__osf__)
  6493. /* This system does not cope well with relocations in const data. */
  6494. # define LT_DLSYM_CONST
  6495. #else
  6496. # define LT_DLSYM_CONST const
  6497. #endif
  6498. #ifdef __cplusplus
  6499. extern "C" {
  6500. #endif
  6501. _LT_EOF
  6502. # Now generate the symbol file.
  6503. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  6504. cat <<_LT_EOF >> conftest.$ac_ext
  6505. /* The mapping between symbol names and symbols. */
  6506. LT_DLSYM_CONST struct {
  6507. const char *name;
  6508. void *address;
  6509. }
  6510. lt__PROGRAM__LTX_preloaded_symbols[] =
  6511. {
  6512. { "@PROGRAM@", (void *) 0 },
  6513. _LT_EOF
  6514. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  6515. cat <<\_LT_EOF >> conftest.$ac_ext
  6516. {0, (void *) 0}
  6517. };
  6518. /* This works around a problem in FreeBSD linker */
  6519. #ifdef FREEBSD_WORKAROUND
  6520. static const void *lt_preloaded_setup() {
  6521. return lt__PROGRAM__LTX_preloaded_symbols;
  6522. }
  6523. #endif
  6524. #ifdef __cplusplus
  6525. }
  6526. #endif
  6527. _LT_EOF
  6528. # Now try linking the two files.
  6529. mv conftest.$ac_objext conftstm.$ac_objext
  6530. lt_globsym_save_LIBS=$LIBS
  6531. lt_globsym_save_CFLAGS=$CFLAGS
  6532. LIBS="conftstm.$ac_objext"
  6533. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  6534. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  6535. (eval $ac_link) 2>&5
  6536. ac_status=$?
  6537. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6538. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  6539. pipe_works=yes
  6540. fi
  6541. LIBS=$lt_globsym_save_LIBS
  6542. CFLAGS=$lt_globsym_save_CFLAGS
  6543. else
  6544. echo "cannot find nm_test_func in $nlist" >&5
  6545. fi
  6546. else
  6547. echo "cannot find nm_test_var in $nlist" >&5
  6548. fi
  6549. else
  6550. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  6551. fi
  6552. else
  6553. echo "$progname: failed program was:" >&5
  6554. cat conftest.$ac_ext >&5
  6555. fi
  6556. rm -rf conftest* conftst*
  6557. # Do not use the global_symbol_pipe unless it works.
  6558. if test "$pipe_works" = yes; then
  6559. break
  6560. else
  6561. lt_cv_sys_global_symbol_pipe=
  6562. fi
  6563. done
  6564. fi
  6565. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6566. lt_cv_sys_global_symbol_to_cdecl=
  6567. fi
  6568. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6569. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  6570. $as_echo "failed" >&6; }
  6571. else
  6572. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  6573. $as_echo "ok" >&6; }
  6574. fi
  6575. # Response file support.
  6576. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6577. nm_file_list_spec='@'
  6578. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  6579. nm_file_list_spec='@'
  6580. fi
  6581. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  6582. $as_echo_n "checking for sysroot... " >&6; }
  6583. # Check whether --with-sysroot was given.
  6584. if test "${with_sysroot+set}" = set; then :
  6585. withval=$with_sysroot;
  6586. else
  6587. with_sysroot=no
  6588. fi
  6589. lt_sysroot=
  6590. case ${with_sysroot} in #(
  6591. yes)
  6592. if test "$GCC" = yes; then
  6593. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  6594. fi
  6595. ;; #(
  6596. /*)
  6597. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  6598. ;; #(
  6599. no|'')
  6600. ;; #(
  6601. *)
  6602. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
  6603. $as_echo "${with_sysroot}" >&6; }
  6604. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  6605. ;;
  6606. esac
  6607. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  6608. $as_echo "${lt_sysroot:-no}" >&6; }
  6609. # Check whether --enable-libtool-lock was given.
  6610. if test "${enable_libtool_lock+set}" = set; then :
  6611. enableval=$enable_libtool_lock;
  6612. fi
  6613. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  6614. # Some flags need to be propagated to the compiler or linker for good
  6615. # libtool support.
  6616. case $host in
  6617. ia64-*-hpux*)
  6618. # Find out which ABI we are using.
  6619. echo 'int i;' > conftest.$ac_ext
  6620. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6621. (eval $ac_compile) 2>&5
  6622. ac_status=$?
  6623. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6624. test $ac_status = 0; }; then
  6625. case `/usr/bin/file conftest.$ac_objext` in
  6626. *ELF-32*)
  6627. HPUX_IA64_MODE="32"
  6628. ;;
  6629. *ELF-64*)
  6630. HPUX_IA64_MODE="64"
  6631. ;;
  6632. esac
  6633. fi
  6634. rm -rf conftest*
  6635. ;;
  6636. *-*-irix6*)
  6637. # Find out which ABI we are using.
  6638. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6639. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6640. (eval $ac_compile) 2>&5
  6641. ac_status=$?
  6642. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6643. test $ac_status = 0; }; then
  6644. if test "$lt_cv_prog_gnu_ld" = yes; then
  6645. case `/usr/bin/file conftest.$ac_objext` in
  6646. *32-bit*)
  6647. LD="${LD-ld} -melf32bsmip"
  6648. ;;
  6649. *N32*)
  6650. LD="${LD-ld} -melf32bmipn32"
  6651. ;;
  6652. *64-bit*)
  6653. LD="${LD-ld} -melf64bmip"
  6654. ;;
  6655. esac
  6656. else
  6657. case `/usr/bin/file conftest.$ac_objext` in
  6658. *32-bit*)
  6659. LD="${LD-ld} -32"
  6660. ;;
  6661. *N32*)
  6662. LD="${LD-ld} -n32"
  6663. ;;
  6664. *64-bit*)
  6665. LD="${LD-ld} -64"
  6666. ;;
  6667. esac
  6668. fi
  6669. fi
  6670. rm -rf conftest*
  6671. ;;
  6672. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  6673. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  6674. # Find out which ABI we are using.
  6675. echo 'int i;' > conftest.$ac_ext
  6676. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6677. (eval $ac_compile) 2>&5
  6678. ac_status=$?
  6679. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6680. test $ac_status = 0; }; then
  6681. case `/usr/bin/file conftest.o` in
  6682. *32-bit*)
  6683. case $host in
  6684. x86_64-*kfreebsd*-gnu)
  6685. LD="${LD-ld} -m elf_i386_fbsd"
  6686. ;;
  6687. x86_64-*linux*)
  6688. LD="${LD-ld} -m elf_i386"
  6689. ;;
  6690. ppc64-*linux*|powerpc64-*linux*)
  6691. LD="${LD-ld} -m elf32ppclinux"
  6692. ;;
  6693. s390x-*linux*)
  6694. LD="${LD-ld} -m elf_s390"
  6695. ;;
  6696. sparc64-*linux*)
  6697. LD="${LD-ld} -m elf32_sparc"
  6698. ;;
  6699. esac
  6700. ;;
  6701. *64-bit*)
  6702. case $host in
  6703. x86_64-*kfreebsd*-gnu)
  6704. LD="${LD-ld} -m elf_x86_64_fbsd"
  6705. ;;
  6706. x86_64-*linux*)
  6707. LD="${LD-ld} -m elf_x86_64"
  6708. ;;
  6709. ppc*-*linux*|powerpc*-*linux*)
  6710. LD="${LD-ld} -m elf64ppc"
  6711. ;;
  6712. s390*-*linux*|s390*-*tpf*)
  6713. LD="${LD-ld} -m elf64_s390"
  6714. ;;
  6715. sparc*-*linux*)
  6716. LD="${LD-ld} -m elf64_sparc"
  6717. ;;
  6718. esac
  6719. ;;
  6720. esac
  6721. fi
  6722. rm -rf conftest*
  6723. ;;
  6724. *-*-sco3.2v5*)
  6725. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6726. SAVE_CFLAGS="$CFLAGS"
  6727. CFLAGS="$CFLAGS -belf"
  6728. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  6729. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  6730. if ${lt_cv_cc_needs_belf+:} false; then :
  6731. $as_echo_n "(cached) " >&6
  6732. else
  6733. ac_ext=c
  6734. ac_cpp='$CPP $CPPFLAGS'
  6735. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6736. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6737. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6738. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6739. /* end confdefs.h. */
  6740. int
  6741. main ()
  6742. {
  6743. ;
  6744. return 0;
  6745. }
  6746. _ACEOF
  6747. if ac_fn_c_try_link "$LINENO"; then :
  6748. lt_cv_cc_needs_belf=yes
  6749. else
  6750. lt_cv_cc_needs_belf=no
  6751. fi
  6752. rm -f core conftest.err conftest.$ac_objext \
  6753. conftest$ac_exeext conftest.$ac_ext
  6754. ac_ext=c
  6755. ac_cpp='$CPP $CPPFLAGS'
  6756. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6757. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6758. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6759. fi
  6760. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  6761. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  6762. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  6763. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6764. CFLAGS="$SAVE_CFLAGS"
  6765. fi
  6766. ;;
  6767. *-*solaris*)
  6768. # Find out which ABI we are using.
  6769. echo 'int i;' > conftest.$ac_ext
  6770. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6771. (eval $ac_compile) 2>&5
  6772. ac_status=$?
  6773. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6774. test $ac_status = 0; }; then
  6775. case `/usr/bin/file conftest.o` in
  6776. *64-bit*)
  6777. case $lt_cv_prog_gnu_ld in
  6778. yes*)
  6779. case $host in
  6780. i?86-*-solaris*)
  6781. LD="${LD-ld} -m elf_x86_64"
  6782. ;;
  6783. sparc*-*-solaris*)
  6784. LD="${LD-ld} -m elf64_sparc"
  6785. ;;
  6786. esac
  6787. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  6788. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  6789. LD="${LD-ld}_sol2"
  6790. fi
  6791. ;;
  6792. *)
  6793. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6794. LD="${LD-ld} -64"
  6795. fi
  6796. ;;
  6797. esac
  6798. ;;
  6799. esac
  6800. fi
  6801. rm -rf conftest*
  6802. ;;
  6803. esac
  6804. need_locks="$enable_libtool_lock"
  6805. if test -n "$ac_tool_prefix"; then
  6806. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  6807. set dummy ${ac_tool_prefix}mt; ac_word=$2
  6808. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6809. $as_echo_n "checking for $ac_word... " >&6; }
  6810. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  6811. $as_echo_n "(cached) " >&6
  6812. else
  6813. if test -n "$MANIFEST_TOOL"; then
  6814. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  6815. else
  6816. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6817. for as_dir in $PATH
  6818. do
  6819. IFS=$as_save_IFS
  6820. test -z "$as_dir" && as_dir=.
  6821. for ac_exec_ext in '' $ac_executable_extensions; do
  6822. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6823. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  6824. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6825. break 2
  6826. fi
  6827. done
  6828. done
  6829. IFS=$as_save_IFS
  6830. fi
  6831. fi
  6832. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  6833. if test -n "$MANIFEST_TOOL"; then
  6834. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  6835. $as_echo "$MANIFEST_TOOL" >&6; }
  6836. else
  6837. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6838. $as_echo "no" >&6; }
  6839. fi
  6840. fi
  6841. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  6842. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  6843. # Extract the first word of "mt", so it can be a program name with args.
  6844. set dummy mt; ac_word=$2
  6845. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6846. $as_echo_n "checking for $ac_word... " >&6; }
  6847. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  6848. $as_echo_n "(cached) " >&6
  6849. else
  6850. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6851. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  6852. else
  6853. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6854. for as_dir in $PATH
  6855. do
  6856. IFS=$as_save_IFS
  6857. test -z "$as_dir" && as_dir=.
  6858. for ac_exec_ext in '' $ac_executable_extensions; do
  6859. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6860. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  6861. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6862. break 2
  6863. fi
  6864. done
  6865. done
  6866. IFS=$as_save_IFS
  6867. fi
  6868. fi
  6869. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  6870. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6871. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  6872. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  6873. else
  6874. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6875. $as_echo "no" >&6; }
  6876. fi
  6877. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  6878. MANIFEST_TOOL=":"
  6879. else
  6880. case $cross_compiling:$ac_tool_warned in
  6881. yes:)
  6882. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6883. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6884. ac_tool_warned=yes ;;
  6885. esac
  6886. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  6887. fi
  6888. else
  6889. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  6890. fi
  6891. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  6892. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  6893. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  6894. if ${lt_cv_path_mainfest_tool+:} false; then :
  6895. $as_echo_n "(cached) " >&6
  6896. else
  6897. lt_cv_path_mainfest_tool=no
  6898. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  6899. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  6900. cat conftest.err >&5
  6901. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  6902. lt_cv_path_mainfest_tool=yes
  6903. fi
  6904. rm -f conftest*
  6905. fi
  6906. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  6907. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  6908. if test "x$lt_cv_path_mainfest_tool" != xyes; then
  6909. MANIFEST_TOOL=:
  6910. fi
  6911. case $host_os in
  6912. rhapsody* | darwin*)
  6913. if test -n "$ac_tool_prefix"; then
  6914. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6915. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6916. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6917. $as_echo_n "checking for $ac_word... " >&6; }
  6918. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  6919. $as_echo_n "(cached) " >&6
  6920. else
  6921. if test -n "$DSYMUTIL"; then
  6922. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6923. else
  6924. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6925. for as_dir in $PATH
  6926. do
  6927. IFS=$as_save_IFS
  6928. test -z "$as_dir" && as_dir=.
  6929. for ac_exec_ext in '' $ac_executable_extensions; do
  6930. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6931. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6932. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6933. break 2
  6934. fi
  6935. done
  6936. done
  6937. IFS=$as_save_IFS
  6938. fi
  6939. fi
  6940. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6941. if test -n "$DSYMUTIL"; then
  6942. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  6943. $as_echo "$DSYMUTIL" >&6; }
  6944. else
  6945. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6946. $as_echo "no" >&6; }
  6947. fi
  6948. fi
  6949. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6950. ac_ct_DSYMUTIL=$DSYMUTIL
  6951. # Extract the first word of "dsymutil", so it can be a program name with args.
  6952. set dummy dsymutil; ac_word=$2
  6953. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6954. $as_echo_n "checking for $ac_word... " >&6; }
  6955. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  6956. $as_echo_n "(cached) " >&6
  6957. else
  6958. if test -n "$ac_ct_DSYMUTIL"; then
  6959. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6960. else
  6961. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6962. for as_dir in $PATH
  6963. do
  6964. IFS=$as_save_IFS
  6965. test -z "$as_dir" && as_dir=.
  6966. for ac_exec_ext in '' $ac_executable_extensions; do
  6967. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6968. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6969. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6970. break 2
  6971. fi
  6972. done
  6973. done
  6974. IFS=$as_save_IFS
  6975. fi
  6976. fi
  6977. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6978. if test -n "$ac_ct_DSYMUTIL"; then
  6979. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  6980. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  6981. else
  6982. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6983. $as_echo "no" >&6; }
  6984. fi
  6985. if test "x$ac_ct_DSYMUTIL" = x; then
  6986. DSYMUTIL=":"
  6987. else
  6988. case $cross_compiling:$ac_tool_warned in
  6989. yes:)
  6990. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6991. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6992. ac_tool_warned=yes ;;
  6993. esac
  6994. DSYMUTIL=$ac_ct_DSYMUTIL
  6995. fi
  6996. else
  6997. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6998. fi
  6999. if test -n "$ac_tool_prefix"; then
  7000. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  7001. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  7002. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7003. $as_echo_n "checking for $ac_word... " >&6; }
  7004. if ${ac_cv_prog_NMEDIT+:} false; then :
  7005. $as_echo_n "(cached) " >&6
  7006. else
  7007. if test -n "$NMEDIT"; then
  7008. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  7009. else
  7010. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7011. for as_dir in $PATH
  7012. do
  7013. IFS=$as_save_IFS
  7014. test -z "$as_dir" && as_dir=.
  7015. for ac_exec_ext in '' $ac_executable_extensions; do
  7016. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7017. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  7018. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7019. break 2
  7020. fi
  7021. done
  7022. done
  7023. IFS=$as_save_IFS
  7024. fi
  7025. fi
  7026. NMEDIT=$ac_cv_prog_NMEDIT
  7027. if test -n "$NMEDIT"; then
  7028. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  7029. $as_echo "$NMEDIT" >&6; }
  7030. else
  7031. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7032. $as_echo "no" >&6; }
  7033. fi
  7034. fi
  7035. if test -z "$ac_cv_prog_NMEDIT"; then
  7036. ac_ct_NMEDIT=$NMEDIT
  7037. # Extract the first word of "nmedit", so it can be a program name with args.
  7038. set dummy nmedit; ac_word=$2
  7039. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7040. $as_echo_n "checking for $ac_word... " >&6; }
  7041. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  7042. $as_echo_n "(cached) " >&6
  7043. else
  7044. if test -n "$ac_ct_NMEDIT"; then
  7045. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  7046. else
  7047. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7048. for as_dir in $PATH
  7049. do
  7050. IFS=$as_save_IFS
  7051. test -z "$as_dir" && as_dir=.
  7052. for ac_exec_ext in '' $ac_executable_extensions; do
  7053. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7054. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  7055. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7056. break 2
  7057. fi
  7058. done
  7059. done
  7060. IFS=$as_save_IFS
  7061. fi
  7062. fi
  7063. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  7064. if test -n "$ac_ct_NMEDIT"; then
  7065. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  7066. $as_echo "$ac_ct_NMEDIT" >&6; }
  7067. else
  7068. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7069. $as_echo "no" >&6; }
  7070. fi
  7071. if test "x$ac_ct_NMEDIT" = x; then
  7072. NMEDIT=":"
  7073. else
  7074. case $cross_compiling:$ac_tool_warned in
  7075. yes:)
  7076. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7077. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7078. ac_tool_warned=yes ;;
  7079. esac
  7080. NMEDIT=$ac_ct_NMEDIT
  7081. fi
  7082. else
  7083. NMEDIT="$ac_cv_prog_NMEDIT"
  7084. fi
  7085. if test -n "$ac_tool_prefix"; then
  7086. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  7087. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  7088. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7089. $as_echo_n "checking for $ac_word... " >&6; }
  7090. if ${ac_cv_prog_LIPO+:} false; then :
  7091. $as_echo_n "(cached) " >&6
  7092. else
  7093. if test -n "$LIPO"; then
  7094. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  7095. else
  7096. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7097. for as_dir in $PATH
  7098. do
  7099. IFS=$as_save_IFS
  7100. test -z "$as_dir" && as_dir=.
  7101. for ac_exec_ext in '' $ac_executable_extensions; do
  7102. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7103. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  7104. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7105. break 2
  7106. fi
  7107. done
  7108. done
  7109. IFS=$as_save_IFS
  7110. fi
  7111. fi
  7112. LIPO=$ac_cv_prog_LIPO
  7113. if test -n "$LIPO"; then
  7114. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  7115. $as_echo "$LIPO" >&6; }
  7116. else
  7117. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7118. $as_echo "no" >&6; }
  7119. fi
  7120. fi
  7121. if test -z "$ac_cv_prog_LIPO"; then
  7122. ac_ct_LIPO=$LIPO
  7123. # Extract the first word of "lipo", so it can be a program name with args.
  7124. set dummy lipo; ac_word=$2
  7125. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7126. $as_echo_n "checking for $ac_word... " >&6; }
  7127. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  7128. $as_echo_n "(cached) " >&6
  7129. else
  7130. if test -n "$ac_ct_LIPO"; then
  7131. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  7132. else
  7133. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7134. for as_dir in $PATH
  7135. do
  7136. IFS=$as_save_IFS
  7137. test -z "$as_dir" && as_dir=.
  7138. for ac_exec_ext in '' $ac_executable_extensions; do
  7139. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7140. ac_cv_prog_ac_ct_LIPO="lipo"
  7141. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7142. break 2
  7143. fi
  7144. done
  7145. done
  7146. IFS=$as_save_IFS
  7147. fi
  7148. fi
  7149. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  7150. if test -n "$ac_ct_LIPO"; then
  7151. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  7152. $as_echo "$ac_ct_LIPO" >&6; }
  7153. else
  7154. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7155. $as_echo "no" >&6; }
  7156. fi
  7157. if test "x$ac_ct_LIPO" = x; then
  7158. LIPO=":"
  7159. else
  7160. case $cross_compiling:$ac_tool_warned in
  7161. yes:)
  7162. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7163. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7164. ac_tool_warned=yes ;;
  7165. esac
  7166. LIPO=$ac_ct_LIPO
  7167. fi
  7168. else
  7169. LIPO="$ac_cv_prog_LIPO"
  7170. fi
  7171. if test -n "$ac_tool_prefix"; then
  7172. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  7173. set dummy ${ac_tool_prefix}otool; ac_word=$2
  7174. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7175. $as_echo_n "checking for $ac_word... " >&6; }
  7176. if ${ac_cv_prog_OTOOL+:} false; then :
  7177. $as_echo_n "(cached) " >&6
  7178. else
  7179. if test -n "$OTOOL"; then
  7180. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  7181. else
  7182. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7183. for as_dir in $PATH
  7184. do
  7185. IFS=$as_save_IFS
  7186. test -z "$as_dir" && as_dir=.
  7187. for ac_exec_ext in '' $ac_executable_extensions; do
  7188. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7189. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  7190. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7191. break 2
  7192. fi
  7193. done
  7194. done
  7195. IFS=$as_save_IFS
  7196. fi
  7197. fi
  7198. OTOOL=$ac_cv_prog_OTOOL
  7199. if test -n "$OTOOL"; then
  7200. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  7201. $as_echo "$OTOOL" >&6; }
  7202. else
  7203. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7204. $as_echo "no" >&6; }
  7205. fi
  7206. fi
  7207. if test -z "$ac_cv_prog_OTOOL"; then
  7208. ac_ct_OTOOL=$OTOOL
  7209. # Extract the first word of "otool", so it can be a program name with args.
  7210. set dummy otool; ac_word=$2
  7211. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7212. $as_echo_n "checking for $ac_word... " >&6; }
  7213. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  7214. $as_echo_n "(cached) " >&6
  7215. else
  7216. if test -n "$ac_ct_OTOOL"; then
  7217. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  7218. else
  7219. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7220. for as_dir in $PATH
  7221. do
  7222. IFS=$as_save_IFS
  7223. test -z "$as_dir" && as_dir=.
  7224. for ac_exec_ext in '' $ac_executable_extensions; do
  7225. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7226. ac_cv_prog_ac_ct_OTOOL="otool"
  7227. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7228. break 2
  7229. fi
  7230. done
  7231. done
  7232. IFS=$as_save_IFS
  7233. fi
  7234. fi
  7235. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  7236. if test -n "$ac_ct_OTOOL"; then
  7237. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  7238. $as_echo "$ac_ct_OTOOL" >&6; }
  7239. else
  7240. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7241. $as_echo "no" >&6; }
  7242. fi
  7243. if test "x$ac_ct_OTOOL" = x; then
  7244. OTOOL=":"
  7245. else
  7246. case $cross_compiling:$ac_tool_warned in
  7247. yes:)
  7248. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7249. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7250. ac_tool_warned=yes ;;
  7251. esac
  7252. OTOOL=$ac_ct_OTOOL
  7253. fi
  7254. else
  7255. OTOOL="$ac_cv_prog_OTOOL"
  7256. fi
  7257. if test -n "$ac_tool_prefix"; then
  7258. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  7259. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  7260. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7261. $as_echo_n "checking for $ac_word... " >&6; }
  7262. if ${ac_cv_prog_OTOOL64+:} false; then :
  7263. $as_echo_n "(cached) " >&6
  7264. else
  7265. if test -n "$OTOOL64"; then
  7266. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  7267. else
  7268. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7269. for as_dir in $PATH
  7270. do
  7271. IFS=$as_save_IFS
  7272. test -z "$as_dir" && as_dir=.
  7273. for ac_exec_ext in '' $ac_executable_extensions; do
  7274. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7275. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  7276. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7277. break 2
  7278. fi
  7279. done
  7280. done
  7281. IFS=$as_save_IFS
  7282. fi
  7283. fi
  7284. OTOOL64=$ac_cv_prog_OTOOL64
  7285. if test -n "$OTOOL64"; then
  7286. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  7287. $as_echo "$OTOOL64" >&6; }
  7288. else
  7289. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7290. $as_echo "no" >&6; }
  7291. fi
  7292. fi
  7293. if test -z "$ac_cv_prog_OTOOL64"; then
  7294. ac_ct_OTOOL64=$OTOOL64
  7295. # Extract the first word of "otool64", so it can be a program name with args.
  7296. set dummy otool64; ac_word=$2
  7297. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7298. $as_echo_n "checking for $ac_word... " >&6; }
  7299. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  7300. $as_echo_n "(cached) " >&6
  7301. else
  7302. if test -n "$ac_ct_OTOOL64"; then
  7303. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  7304. else
  7305. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7306. for as_dir in $PATH
  7307. do
  7308. IFS=$as_save_IFS
  7309. test -z "$as_dir" && as_dir=.
  7310. for ac_exec_ext in '' $ac_executable_extensions; do
  7311. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7312. ac_cv_prog_ac_ct_OTOOL64="otool64"
  7313. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7314. break 2
  7315. fi
  7316. done
  7317. done
  7318. IFS=$as_save_IFS
  7319. fi
  7320. fi
  7321. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  7322. if test -n "$ac_ct_OTOOL64"; then
  7323. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  7324. $as_echo "$ac_ct_OTOOL64" >&6; }
  7325. else
  7326. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7327. $as_echo "no" >&6; }
  7328. fi
  7329. if test "x$ac_ct_OTOOL64" = x; then
  7330. OTOOL64=":"
  7331. else
  7332. case $cross_compiling:$ac_tool_warned in
  7333. yes:)
  7334. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7335. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7336. ac_tool_warned=yes ;;
  7337. esac
  7338. OTOOL64=$ac_ct_OTOOL64
  7339. fi
  7340. else
  7341. OTOOL64="$ac_cv_prog_OTOOL64"
  7342. fi
  7343. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  7344. $as_echo_n "checking for -single_module linker flag... " >&6; }
  7345. if ${lt_cv_apple_cc_single_mod+:} false; then :
  7346. $as_echo_n "(cached) " >&6
  7347. else
  7348. lt_cv_apple_cc_single_mod=no
  7349. if test -z "${LT_MULTI_MODULE}"; then
  7350. # By default we will add the -single_module flag. You can override
  7351. # by either setting the environment variable LT_MULTI_MODULE
  7352. # non-empty at configure time, or by adding -multi_module to the
  7353. # link flags.
  7354. rm -rf libconftest.dylib*
  7355. echo "int foo(void){return 1;}" > conftest.c
  7356. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7357. -dynamiclib -Wl,-single_module conftest.c" >&5
  7358. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7359. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  7360. _lt_result=$?
  7361. # If there is a non-empty error log, and "single_module"
  7362. # appears in it, assume the flag caused a linker warning
  7363. if test -s conftest.err && $GREP single_module conftest.err; then
  7364. cat conftest.err >&5
  7365. # Otherwise, if the output was created with a 0 exit code from
  7366. # the compiler, it worked.
  7367. elif test -f libconftest.dylib && test $_lt_result -eq 0; then
  7368. lt_cv_apple_cc_single_mod=yes
  7369. else
  7370. cat conftest.err >&5
  7371. fi
  7372. rm -rf libconftest.dylib*
  7373. rm -f conftest.*
  7374. fi
  7375. fi
  7376. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  7377. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  7378. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  7379. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  7380. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  7381. $as_echo_n "(cached) " >&6
  7382. else
  7383. lt_cv_ld_exported_symbols_list=no
  7384. save_LDFLAGS=$LDFLAGS
  7385. echo "_main" > conftest.sym
  7386. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  7387. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7388. /* end confdefs.h. */
  7389. int
  7390. main ()
  7391. {
  7392. ;
  7393. return 0;
  7394. }
  7395. _ACEOF
  7396. if ac_fn_c_try_link "$LINENO"; then :
  7397. lt_cv_ld_exported_symbols_list=yes
  7398. else
  7399. lt_cv_ld_exported_symbols_list=no
  7400. fi
  7401. rm -f core conftest.err conftest.$ac_objext \
  7402. conftest$ac_exeext conftest.$ac_ext
  7403. LDFLAGS="$save_LDFLAGS"
  7404. fi
  7405. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  7406. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  7407. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  7408. $as_echo_n "checking for -force_load linker flag... " >&6; }
  7409. if ${lt_cv_ld_force_load+:} false; then :
  7410. $as_echo_n "(cached) " >&6
  7411. else
  7412. lt_cv_ld_force_load=no
  7413. cat > conftest.c << _LT_EOF
  7414. int forced_loaded() { return 2;}
  7415. _LT_EOF
  7416. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  7417. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  7418. echo "$AR cru libconftest.a conftest.o" >&5
  7419. $AR cru libconftest.a conftest.o 2>&5
  7420. echo "$RANLIB libconftest.a" >&5
  7421. $RANLIB libconftest.a 2>&5
  7422. cat > conftest.c << _LT_EOF
  7423. int main() { return 0;}
  7424. _LT_EOF
  7425. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  7426. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  7427. _lt_result=$?
  7428. if test -s conftest.err && $GREP force_load conftest.err; then
  7429. cat conftest.err >&5
  7430. elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
  7431. lt_cv_ld_force_load=yes
  7432. else
  7433. cat conftest.err >&5
  7434. fi
  7435. rm -f conftest.err libconftest.a conftest conftest.c
  7436. rm -rf conftest.dSYM
  7437. fi
  7438. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  7439. $as_echo "$lt_cv_ld_force_load" >&6; }
  7440. case $host_os in
  7441. rhapsody* | darwin1.[012])
  7442. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  7443. darwin1.*)
  7444. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  7445. darwin*) # darwin 5.x on
  7446. # if running on 10.5 or later, the deployment target defaults
  7447. # to the OS version, if on x86, and 10.4, the deployment
  7448. # target defaults to 10.4. Don't you love it?
  7449. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  7450. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  7451. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  7452. 10.[012]*)
  7453. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  7454. 10.*)
  7455. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  7456. esac
  7457. ;;
  7458. esac
  7459. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  7460. _lt_dar_single_mod='$single_module'
  7461. fi
  7462. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  7463. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  7464. else
  7465. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  7466. fi
  7467. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  7468. _lt_dsymutil='~$DSYMUTIL $lib || :'
  7469. else
  7470. _lt_dsymutil=
  7471. fi
  7472. ;;
  7473. esac
  7474. ac_ext=c
  7475. ac_cpp='$CPP $CPPFLAGS'
  7476. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7477. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7478. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7479. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  7480. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  7481. # On Suns, sometimes $CPP names a directory.
  7482. if test -n "$CPP" && test -d "$CPP"; then
  7483. CPP=
  7484. fi
  7485. if test -z "$CPP"; then
  7486. if ${ac_cv_prog_CPP+:} false; then :
  7487. $as_echo_n "(cached) " >&6
  7488. else
  7489. # Double quotes because CPP needs to be expanded
  7490. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  7491. do
  7492. ac_preproc_ok=false
  7493. for ac_c_preproc_warn_flag in '' yes
  7494. do
  7495. # Use a header file that comes with gcc, so configuring glibc
  7496. # with a fresh cross-compiler works.
  7497. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7498. # <limits.h> exists even on freestanding compilers.
  7499. # On the NeXT, cc -E runs the code through the compiler's parser,
  7500. # not just through cpp. "Syntax error" is here to catch this case.
  7501. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7502. /* end confdefs.h. */
  7503. #ifdef __STDC__
  7504. # include <limits.h>
  7505. #else
  7506. # include <assert.h>
  7507. #endif
  7508. Syntax error
  7509. _ACEOF
  7510. if ac_fn_c_try_cpp "$LINENO"; then :
  7511. else
  7512. # Broken: fails on valid input.
  7513. continue
  7514. fi
  7515. rm -f conftest.err conftest.i conftest.$ac_ext
  7516. # OK, works on sane cases. Now check whether nonexistent headers
  7517. # can be detected and how.
  7518. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7519. /* end confdefs.h. */
  7520. #include <ac_nonexistent.h>
  7521. _ACEOF
  7522. if ac_fn_c_try_cpp "$LINENO"; then :
  7523. # Broken: success on invalid input.
  7524. continue
  7525. else
  7526. # Passes both tests.
  7527. ac_preproc_ok=:
  7528. break
  7529. fi
  7530. rm -f conftest.err conftest.i conftest.$ac_ext
  7531. done
  7532. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  7533. rm -f conftest.i conftest.err conftest.$ac_ext
  7534. if $ac_preproc_ok; then :
  7535. break
  7536. fi
  7537. done
  7538. ac_cv_prog_CPP=$CPP
  7539. fi
  7540. CPP=$ac_cv_prog_CPP
  7541. else
  7542. ac_cv_prog_CPP=$CPP
  7543. fi
  7544. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  7545. $as_echo "$CPP" >&6; }
  7546. ac_preproc_ok=false
  7547. for ac_c_preproc_warn_flag in '' yes
  7548. do
  7549. # Use a header file that comes with gcc, so configuring glibc
  7550. # with a fresh cross-compiler works.
  7551. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7552. # <limits.h> exists even on freestanding compilers.
  7553. # On the NeXT, cc -E runs the code through the compiler's parser,
  7554. # not just through cpp. "Syntax error" is here to catch this case.
  7555. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7556. /* end confdefs.h. */
  7557. #ifdef __STDC__
  7558. # include <limits.h>
  7559. #else
  7560. # include <assert.h>
  7561. #endif
  7562. Syntax error
  7563. _ACEOF
  7564. if ac_fn_c_try_cpp "$LINENO"; then :
  7565. else
  7566. # Broken: fails on valid input.
  7567. continue
  7568. fi
  7569. rm -f conftest.err conftest.i conftest.$ac_ext
  7570. # OK, works on sane cases. Now check whether nonexistent headers
  7571. # can be detected and how.
  7572. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7573. /* end confdefs.h. */
  7574. #include <ac_nonexistent.h>
  7575. _ACEOF
  7576. if ac_fn_c_try_cpp "$LINENO"; then :
  7577. # Broken: success on invalid input.
  7578. continue
  7579. else
  7580. # Passes both tests.
  7581. ac_preproc_ok=:
  7582. break
  7583. fi
  7584. rm -f conftest.err conftest.i conftest.$ac_ext
  7585. done
  7586. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  7587. rm -f conftest.i conftest.err conftest.$ac_ext
  7588. if $ac_preproc_ok; then :
  7589. else
  7590. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  7591. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  7592. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  7593. See \`config.log' for more details" "$LINENO" 5; }
  7594. fi
  7595. ac_ext=c
  7596. ac_cpp='$CPP $CPPFLAGS'
  7597. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7598. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7599. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7600. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  7601. $as_echo_n "checking for ANSI C header files... " >&6; }
  7602. if ${ac_cv_header_stdc+:} false; then :
  7603. $as_echo_n "(cached) " >&6
  7604. else
  7605. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7606. /* end confdefs.h. */
  7607. #include <stdlib.h>
  7608. #include <stdarg.h>
  7609. #include <string.h>
  7610. #include <float.h>
  7611. int
  7612. main ()
  7613. {
  7614. ;
  7615. return 0;
  7616. }
  7617. _ACEOF
  7618. if ac_fn_c_try_compile "$LINENO"; then :
  7619. ac_cv_header_stdc=yes
  7620. else
  7621. ac_cv_header_stdc=no
  7622. fi
  7623. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7624. if test $ac_cv_header_stdc = yes; then
  7625. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  7626. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7627. /* end confdefs.h. */
  7628. #include <string.h>
  7629. _ACEOF
  7630. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7631. $EGREP "memchr" >/dev/null 2>&1; then :
  7632. else
  7633. ac_cv_header_stdc=no
  7634. fi
  7635. rm -f conftest*
  7636. fi
  7637. if test $ac_cv_header_stdc = yes; then
  7638. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  7639. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7640. /* end confdefs.h. */
  7641. #include <stdlib.h>
  7642. _ACEOF
  7643. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7644. $EGREP "free" >/dev/null 2>&1; then :
  7645. else
  7646. ac_cv_header_stdc=no
  7647. fi
  7648. rm -f conftest*
  7649. fi
  7650. if test $ac_cv_header_stdc = yes; then
  7651. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  7652. if test "$cross_compiling" = yes; then :
  7653. :
  7654. else
  7655. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7656. /* end confdefs.h. */
  7657. #include <ctype.h>
  7658. #include <stdlib.h>
  7659. #if ((' ' & 0x0FF) == 0x020)
  7660. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  7661. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  7662. #else
  7663. # define ISLOWER(c) \
  7664. (('a' <= (c) && (c) <= 'i') \
  7665. || ('j' <= (c) && (c) <= 'r') \
  7666. || ('s' <= (c) && (c) <= 'z'))
  7667. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  7668. #endif
  7669. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  7670. int
  7671. main ()
  7672. {
  7673. int i;
  7674. for (i = 0; i < 256; i++)
  7675. if (XOR (islower (i), ISLOWER (i))
  7676. || toupper (i) != TOUPPER (i))
  7677. return 2;
  7678. return 0;
  7679. }
  7680. _ACEOF
  7681. if ac_fn_c_try_run "$LINENO"; then :
  7682. else
  7683. ac_cv_header_stdc=no
  7684. fi
  7685. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  7686. conftest.$ac_objext conftest.beam conftest.$ac_ext
  7687. fi
  7688. fi
  7689. fi
  7690. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  7691. $as_echo "$ac_cv_header_stdc" >&6; }
  7692. if test $ac_cv_header_stdc = yes; then
  7693. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  7694. fi
  7695. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  7696. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  7697. inttypes.h stdint.h unistd.h
  7698. do :
  7699. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7700. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  7701. "
  7702. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  7703. cat >>confdefs.h <<_ACEOF
  7704. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7705. _ACEOF
  7706. fi
  7707. done
  7708. for ac_header in dlfcn.h
  7709. do :
  7710. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  7711. "
  7712. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  7713. cat >>confdefs.h <<_ACEOF
  7714. #define HAVE_DLFCN_H 1
  7715. _ACEOF
  7716. fi
  7717. done
  7718. func_stripname_cnf ()
  7719. {
  7720. case ${2} in
  7721. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  7722. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  7723. esac
  7724. } # func_stripname_cnf
  7725. # Set options
  7726. enable_dlopen=no
  7727. enable_win32_dll=no
  7728. # Check whether --enable-shared was given.
  7729. if test "${enable_shared+set}" = set; then :
  7730. enableval=$enable_shared; p=${PACKAGE-default}
  7731. case $enableval in
  7732. yes) enable_shared=yes ;;
  7733. no) enable_shared=no ;;
  7734. *)
  7735. enable_shared=no
  7736. # Look at the argument we got. We use all the common list separators.
  7737. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7738. for pkg in $enableval; do
  7739. IFS="$lt_save_ifs"
  7740. if test "X$pkg" = "X$p"; then
  7741. enable_shared=yes
  7742. fi
  7743. done
  7744. IFS="$lt_save_ifs"
  7745. ;;
  7746. esac
  7747. else
  7748. enable_shared=yes
  7749. fi
  7750. # Check whether --with-pic was given.
  7751. if test "${with_pic+set}" = set; then :
  7752. withval=$with_pic; lt_p=${PACKAGE-default}
  7753. case $withval in
  7754. yes|no) pic_mode=$withval ;;
  7755. *)
  7756. pic_mode=default
  7757. # Look at the argument we got. We use all the common list separators.
  7758. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7759. for lt_pkg in $withval; do
  7760. IFS="$lt_save_ifs"
  7761. if test "X$lt_pkg" = "X$lt_p"; then
  7762. pic_mode=yes
  7763. fi
  7764. done
  7765. IFS="$lt_save_ifs"
  7766. ;;
  7767. esac
  7768. else
  7769. pic_mode=default
  7770. fi
  7771. test -z "$pic_mode" && pic_mode=default
  7772. # Check whether --enable-fast-install was given.
  7773. if test "${enable_fast_install+set}" = set; then :
  7774. enableval=$enable_fast_install; p=${PACKAGE-default}
  7775. case $enableval in
  7776. yes) enable_fast_install=yes ;;
  7777. no) enable_fast_install=no ;;
  7778. *)
  7779. enable_fast_install=no
  7780. # Look at the argument we got. We use all the common list separators.
  7781. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7782. for pkg in $enableval; do
  7783. IFS="$lt_save_ifs"
  7784. if test "X$pkg" = "X$p"; then
  7785. enable_fast_install=yes
  7786. fi
  7787. done
  7788. IFS="$lt_save_ifs"
  7789. ;;
  7790. esac
  7791. else
  7792. enable_fast_install=yes
  7793. fi
  7794. # This can be used to rebuild libtool when needed
  7795. LIBTOOL_DEPS="$ltmain"
  7796. # Always use our own libtool.
  7797. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7798. test -z "$LN_S" && LN_S="ln -s"
  7799. if test -n "${ZSH_VERSION+set}" ; then
  7800. setopt NO_GLOB_SUBST
  7801. fi
  7802. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7803. $as_echo_n "checking for objdir... " >&6; }
  7804. if ${lt_cv_objdir+:} false; then :
  7805. $as_echo_n "(cached) " >&6
  7806. else
  7807. rm -f .libs 2>/dev/null
  7808. mkdir .libs 2>/dev/null
  7809. if test -d .libs; then
  7810. lt_cv_objdir=.libs
  7811. else
  7812. # MS-DOS does not allow filenames that begin with a dot.
  7813. lt_cv_objdir=_libs
  7814. fi
  7815. rmdir .libs 2>/dev/null
  7816. fi
  7817. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7818. $as_echo "$lt_cv_objdir" >&6; }
  7819. objdir=$lt_cv_objdir
  7820. cat >>confdefs.h <<_ACEOF
  7821. #define LT_OBJDIR "$lt_cv_objdir/"
  7822. _ACEOF
  7823. case $host_os in
  7824. aix3*)
  7825. # AIX sometimes has problems with the GCC collect2 program. For some
  7826. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7827. # vanish in a puff of smoke.
  7828. if test "X${COLLECT_NAMES+set}" != Xset; then
  7829. COLLECT_NAMES=
  7830. export COLLECT_NAMES
  7831. fi
  7832. ;;
  7833. esac
  7834. # Global variables:
  7835. ofile=libtool
  7836. can_build_shared=yes
  7837. # All known linkers require a `.a' archive for static linking (except MSVC,
  7838. # which needs '.lib').
  7839. libext=a
  7840. with_gnu_ld="$lt_cv_prog_gnu_ld"
  7841. old_CC="$CC"
  7842. old_CFLAGS="$CFLAGS"
  7843. # Set sane defaults for various variables
  7844. test -z "$CC" && CC=cc
  7845. test -z "$LTCC" && LTCC=$CC
  7846. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7847. test -z "$LD" && LD=ld
  7848. test -z "$ac_objext" && ac_objext=o
  7849. for cc_temp in $compiler""; do
  7850. case $cc_temp in
  7851. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  7852. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  7853. \-*) ;;
  7854. *) break;;
  7855. esac
  7856. done
  7857. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  7858. # Only perform the check for file, if the check method requires it
  7859. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7860. case $deplibs_check_method in
  7861. file_magic*)
  7862. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7863. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7864. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  7865. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7866. $as_echo_n "(cached) " >&6
  7867. else
  7868. case $MAGIC_CMD in
  7869. [\\/*] | ?:[\\/]*)
  7870. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7871. ;;
  7872. *)
  7873. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7874. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7875. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7876. for ac_dir in $ac_dummy; do
  7877. IFS="$lt_save_ifs"
  7878. test -z "$ac_dir" && ac_dir=.
  7879. if test -f $ac_dir/${ac_tool_prefix}file; then
  7880. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  7881. if test -n "$file_magic_test_file"; then
  7882. case $deplibs_check_method in
  7883. "file_magic "*)
  7884. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7885. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7886. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7887. $EGREP "$file_magic_regex" > /dev/null; then
  7888. :
  7889. else
  7890. cat <<_LT_EOF 1>&2
  7891. *** Warning: the command libtool uses to detect shared libraries,
  7892. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7893. *** The result is that libtool may fail to recognize shared libraries
  7894. *** as such. This will affect the creation of libtool libraries that
  7895. *** depend on shared libraries, but programs linked with such libtool
  7896. *** libraries will work regardless of this problem. Nevertheless, you
  7897. *** may want to report the problem to your system manager and/or to
  7898. *** [email protected]
  7899. _LT_EOF
  7900. fi ;;
  7901. esac
  7902. fi
  7903. break
  7904. fi
  7905. done
  7906. IFS="$lt_save_ifs"
  7907. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7908. ;;
  7909. esac
  7910. fi
  7911. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7912. if test -n "$MAGIC_CMD"; then
  7913. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7914. $as_echo "$MAGIC_CMD" >&6; }
  7915. else
  7916. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7917. $as_echo "no" >&6; }
  7918. fi
  7919. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7920. if test -n "$ac_tool_prefix"; then
  7921. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7922. $as_echo_n "checking for file... " >&6; }
  7923. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7924. $as_echo_n "(cached) " >&6
  7925. else
  7926. case $MAGIC_CMD in
  7927. [\\/*] | ?:[\\/]*)
  7928. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7929. ;;
  7930. *)
  7931. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7932. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7933. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7934. for ac_dir in $ac_dummy; do
  7935. IFS="$lt_save_ifs"
  7936. test -z "$ac_dir" && ac_dir=.
  7937. if test -f $ac_dir/file; then
  7938. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  7939. if test -n "$file_magic_test_file"; then
  7940. case $deplibs_check_method in
  7941. "file_magic "*)
  7942. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7943. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7944. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7945. $EGREP "$file_magic_regex" > /dev/null; then
  7946. :
  7947. else
  7948. cat <<_LT_EOF 1>&2
  7949. *** Warning: the command libtool uses to detect shared libraries,
  7950. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7951. *** The result is that libtool may fail to recognize shared libraries
  7952. *** as such. This will affect the creation of libtool libraries that
  7953. *** depend on shared libraries, but programs linked with such libtool
  7954. *** libraries will work regardless of this problem. Nevertheless, you
  7955. *** may want to report the problem to your system manager and/or to
  7956. *** [email protected]
  7957. _LT_EOF
  7958. fi ;;
  7959. esac
  7960. fi
  7961. break
  7962. fi
  7963. done
  7964. IFS="$lt_save_ifs"
  7965. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7966. ;;
  7967. esac
  7968. fi
  7969. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7970. if test -n "$MAGIC_CMD"; then
  7971. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7972. $as_echo "$MAGIC_CMD" >&6; }
  7973. else
  7974. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7975. $as_echo "no" >&6; }
  7976. fi
  7977. else
  7978. MAGIC_CMD=:
  7979. fi
  7980. fi
  7981. fi
  7982. ;;
  7983. esac
  7984. # Use C for the default configuration in the libtool script
  7985. lt_save_CC="$CC"
  7986. ac_ext=c
  7987. ac_cpp='$CPP $CPPFLAGS'
  7988. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7989. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7990. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7991. # Source file extension for C test sources.
  7992. ac_ext=c
  7993. # Object file extension for compiled C test sources.
  7994. objext=o
  7995. objext=$objext
  7996. # Code to be used in simple compile tests
  7997. lt_simple_compile_test_code="int some_variable = 0;"
  7998. # Code to be used in simple link tests
  7999. lt_simple_link_test_code='int main(){return(0);}'
  8000. # If no C compiler was specified, use CC.
  8001. LTCC=${LTCC-"$CC"}
  8002. # If no C compiler flags were specified, use CFLAGS.
  8003. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  8004. # Allow CC to be a program name with arguments.
  8005. compiler=$CC
  8006. # Save the default compiler, since it gets overwritten when the other
  8007. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  8008. compiler_DEFAULT=$CC
  8009. # save warnings/boilerplate of simple test code
  8010. ac_outfile=conftest.$ac_objext
  8011. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  8012. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  8013. _lt_compiler_boilerplate=`cat conftest.err`
  8014. $RM conftest*
  8015. ac_outfile=conftest.$ac_objext
  8016. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  8017. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  8018. _lt_linker_boilerplate=`cat conftest.err`
  8019. $RM -r conftest*
  8020. ## CAVEAT EMPTOR:
  8021. ## There is no encapsulation within the following macros, do not change
  8022. ## the running order or otherwise move them around unless you know exactly
  8023. ## what you are doing...
  8024. if test -n "$compiler"; then
  8025. lt_prog_compiler_no_builtin_flag=
  8026. if test "$GCC" = yes; then
  8027. case $cc_basename in
  8028. nvcc*)
  8029. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  8030. *)
  8031. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  8032. esac
  8033. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  8034. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  8035. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  8036. $as_echo_n "(cached) " >&6
  8037. else
  8038. lt_cv_prog_compiler_rtti_exceptions=no
  8039. ac_outfile=conftest.$ac_objext
  8040. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8041. lt_compiler_flag="-fno-rtti -fno-exceptions"
  8042. # Insert the option either (1) after the last *FLAGS variable, or
  8043. # (2) before a word containing "conftest.", or (3) at the end.
  8044. # Note that $ac_compile itself does not contain backslashes and begins
  8045. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8046. # The option is referenced via a variable to avoid confusing sed.
  8047. lt_compile=`echo "$ac_compile" | $SED \
  8048. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8049. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8050. -e 's:$: $lt_compiler_flag:'`
  8051. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8052. (eval "$lt_compile" 2>conftest.err)
  8053. ac_status=$?
  8054. cat conftest.err >&5
  8055. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8056. if (exit $ac_status) && test -s "$ac_outfile"; then
  8057. # The compiler can only warn and ignore the option if not recognized
  8058. # So say no if there are warnings other than the usual output.
  8059. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8060. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8061. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8062. lt_cv_prog_compiler_rtti_exceptions=yes
  8063. fi
  8064. fi
  8065. $RM conftest*
  8066. fi
  8067. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  8068. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  8069. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  8070. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  8071. else
  8072. :
  8073. fi
  8074. fi
  8075. lt_prog_compiler_wl=
  8076. lt_prog_compiler_pic=
  8077. lt_prog_compiler_static=
  8078. if test "$GCC" = yes; then
  8079. lt_prog_compiler_wl='-Wl,'
  8080. lt_prog_compiler_static='-static'
  8081. case $host_os in
  8082. aix*)
  8083. # All AIX code is PIC.
  8084. if test "$host_cpu" = ia64; then
  8085. # AIX 5 now supports IA64 processor
  8086. lt_prog_compiler_static='-Bstatic'
  8087. fi
  8088. ;;
  8089. amigaos*)
  8090. case $host_cpu in
  8091. powerpc)
  8092. # see comment about AmigaOS4 .so support
  8093. lt_prog_compiler_pic='-fPIC'
  8094. ;;
  8095. m68k)
  8096. # FIXME: we need at least 68020 code to build shared libraries, but
  8097. # adding the `-m68020' flag to GCC prevents building anything better,
  8098. # like `-m68040'.
  8099. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  8100. ;;
  8101. esac
  8102. ;;
  8103. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  8104. # PIC is the default for these OSes.
  8105. ;;
  8106. mingw* | cygwin* | pw32* | os2* | cegcc*)
  8107. # This hack is so that the source file can tell whether it is being
  8108. # built for inclusion in a dll (and should export symbols for example).
  8109. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  8110. # (--disable-auto-import) libraries
  8111. lt_prog_compiler_pic='-DDLL_EXPORT'
  8112. ;;
  8113. darwin* | rhapsody*)
  8114. # PIC is the default on this platform
  8115. # Common symbols not allowed in MH_DYLIB files
  8116. lt_prog_compiler_pic='-fno-common'
  8117. ;;
  8118. haiku*)
  8119. # PIC is the default for Haiku.
  8120. # The "-static" flag exists, but is broken.
  8121. lt_prog_compiler_static=
  8122. ;;
  8123. hpux*)
  8124. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  8125. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  8126. # sets the default TLS model and affects inlining.
  8127. case $host_cpu in
  8128. hppa*64*)
  8129. # +Z the default
  8130. ;;
  8131. *)
  8132. lt_prog_compiler_pic='-fPIC'
  8133. ;;
  8134. esac
  8135. ;;
  8136. interix[3-9]*)
  8137. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  8138. # Instead, we relocate shared libraries at runtime.
  8139. ;;
  8140. msdosdjgpp*)
  8141. # Just because we use GCC doesn't mean we suddenly get shared libraries
  8142. # on systems that don't support them.
  8143. lt_prog_compiler_can_build_shared=no
  8144. enable_shared=no
  8145. ;;
  8146. *nto* | *qnx*)
  8147. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8148. # it will coredump.
  8149. lt_prog_compiler_pic='-fPIC -shared'
  8150. ;;
  8151. sysv4*MP*)
  8152. if test -d /usr/nec; then
  8153. lt_prog_compiler_pic=-Kconform_pic
  8154. fi
  8155. ;;
  8156. *)
  8157. lt_prog_compiler_pic='-fPIC'
  8158. ;;
  8159. esac
  8160. case $cc_basename in
  8161. nvcc*) # Cuda Compiler Driver 2.2
  8162. lt_prog_compiler_wl='-Xlinker '
  8163. if test -n "$lt_prog_compiler_pic"; then
  8164. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  8165. fi
  8166. ;;
  8167. esac
  8168. else
  8169. # PORTME Check for flag to pass linker flags through the system compiler.
  8170. case $host_os in
  8171. aix*)
  8172. lt_prog_compiler_wl='-Wl,'
  8173. if test "$host_cpu" = ia64; then
  8174. # AIX 5 now supports IA64 processor
  8175. lt_prog_compiler_static='-Bstatic'
  8176. else
  8177. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  8178. fi
  8179. ;;
  8180. mingw* | cygwin* | pw32* | os2* | cegcc*)
  8181. # This hack is so that the source file can tell whether it is being
  8182. # built for inclusion in a dll (and should export symbols for example).
  8183. lt_prog_compiler_pic='-DDLL_EXPORT'
  8184. ;;
  8185. hpux9* | hpux10* | hpux11*)
  8186. lt_prog_compiler_wl='-Wl,'
  8187. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  8188. # not for PA HP-UX.
  8189. case $host_cpu in
  8190. hppa*64*|ia64*)
  8191. # +Z the default
  8192. ;;
  8193. *)
  8194. lt_prog_compiler_pic='+Z'
  8195. ;;
  8196. esac
  8197. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  8198. lt_prog_compiler_static='${wl}-a ${wl}archive'
  8199. ;;
  8200. irix5* | irix6* | nonstopux*)
  8201. lt_prog_compiler_wl='-Wl,'
  8202. # PIC (with -KPIC) is the default.
  8203. lt_prog_compiler_static='-non_shared'
  8204. ;;
  8205. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  8206. case $cc_basename in
  8207. # old Intel for x86_64 which still supported -KPIC.
  8208. ecc*)
  8209. lt_prog_compiler_wl='-Wl,'
  8210. lt_prog_compiler_pic='-KPIC'
  8211. lt_prog_compiler_static='-static'
  8212. ;;
  8213. # icc used to be incompatible with GCC.
  8214. # ICC 10 doesn't accept -KPIC any more.
  8215. icc* | ifort*)
  8216. lt_prog_compiler_wl='-Wl,'
  8217. lt_prog_compiler_pic='-fPIC'
  8218. lt_prog_compiler_static='-static'
  8219. ;;
  8220. # Lahey Fortran 8.1.
  8221. lf95*)
  8222. lt_prog_compiler_wl='-Wl,'
  8223. lt_prog_compiler_pic='--shared'
  8224. lt_prog_compiler_static='--static'
  8225. ;;
  8226. nagfor*)
  8227. # NAG Fortran compiler
  8228. lt_prog_compiler_wl='-Wl,-Wl,,'
  8229. lt_prog_compiler_pic='-PIC'
  8230. lt_prog_compiler_static='-Bstatic'
  8231. ;;
  8232. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  8233. # Portland Group compilers (*not* the Pentium gcc compiler,
  8234. # which looks to be a dead project)
  8235. lt_prog_compiler_wl='-Wl,'
  8236. lt_prog_compiler_pic='-fpic'
  8237. lt_prog_compiler_static='-Bstatic'
  8238. ;;
  8239. ccc*)
  8240. lt_prog_compiler_wl='-Wl,'
  8241. # All Alpha code is PIC.
  8242. lt_prog_compiler_static='-non_shared'
  8243. ;;
  8244. xl* | bgxl* | bgf* | mpixl*)
  8245. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  8246. lt_prog_compiler_wl='-Wl,'
  8247. lt_prog_compiler_pic='-qpic'
  8248. lt_prog_compiler_static='-qstaticlink'
  8249. ;;
  8250. *)
  8251. case `$CC -V 2>&1 | sed 5q` in
  8252. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  8253. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  8254. lt_prog_compiler_pic='-KPIC'
  8255. lt_prog_compiler_static='-Bstatic'
  8256. lt_prog_compiler_wl=''
  8257. ;;
  8258. *Sun\ F* | *Sun*Fortran*)
  8259. lt_prog_compiler_pic='-KPIC'
  8260. lt_prog_compiler_static='-Bstatic'
  8261. lt_prog_compiler_wl='-Qoption ld '
  8262. ;;
  8263. *Sun\ C*)
  8264. # Sun C 5.9
  8265. lt_prog_compiler_pic='-KPIC'
  8266. lt_prog_compiler_static='-Bstatic'
  8267. lt_prog_compiler_wl='-Wl,'
  8268. ;;
  8269. *Intel*\ [CF]*Compiler*)
  8270. lt_prog_compiler_wl='-Wl,'
  8271. lt_prog_compiler_pic='-fPIC'
  8272. lt_prog_compiler_static='-static'
  8273. ;;
  8274. *Portland\ Group*)
  8275. lt_prog_compiler_wl='-Wl,'
  8276. lt_prog_compiler_pic='-fpic'
  8277. lt_prog_compiler_static='-Bstatic'
  8278. ;;
  8279. esac
  8280. ;;
  8281. esac
  8282. ;;
  8283. newsos6)
  8284. lt_prog_compiler_pic='-KPIC'
  8285. lt_prog_compiler_static='-Bstatic'
  8286. ;;
  8287. *nto* | *qnx*)
  8288. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8289. # it will coredump.
  8290. lt_prog_compiler_pic='-fPIC -shared'
  8291. ;;
  8292. osf3* | osf4* | osf5*)
  8293. lt_prog_compiler_wl='-Wl,'
  8294. # All OSF/1 code is PIC.
  8295. lt_prog_compiler_static='-non_shared'
  8296. ;;
  8297. rdos*)
  8298. lt_prog_compiler_static='-non_shared'
  8299. ;;
  8300. solaris*)
  8301. lt_prog_compiler_pic='-KPIC'
  8302. lt_prog_compiler_static='-Bstatic'
  8303. case $cc_basename in
  8304. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  8305. lt_prog_compiler_wl='-Qoption ld ';;
  8306. *)
  8307. lt_prog_compiler_wl='-Wl,';;
  8308. esac
  8309. ;;
  8310. sunos4*)
  8311. lt_prog_compiler_wl='-Qoption ld '
  8312. lt_prog_compiler_pic='-PIC'
  8313. lt_prog_compiler_static='-Bstatic'
  8314. ;;
  8315. sysv4 | sysv4.2uw2* | sysv4.3*)
  8316. lt_prog_compiler_wl='-Wl,'
  8317. lt_prog_compiler_pic='-KPIC'
  8318. lt_prog_compiler_static='-Bstatic'
  8319. ;;
  8320. sysv4*MP*)
  8321. if test -d /usr/nec ;then
  8322. lt_prog_compiler_pic='-Kconform_pic'
  8323. lt_prog_compiler_static='-Bstatic'
  8324. fi
  8325. ;;
  8326. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  8327. lt_prog_compiler_wl='-Wl,'
  8328. lt_prog_compiler_pic='-KPIC'
  8329. lt_prog_compiler_static='-Bstatic'
  8330. ;;
  8331. unicos*)
  8332. lt_prog_compiler_wl='-Wl,'
  8333. lt_prog_compiler_can_build_shared=no
  8334. ;;
  8335. uts4*)
  8336. lt_prog_compiler_pic='-pic'
  8337. lt_prog_compiler_static='-Bstatic'
  8338. ;;
  8339. *)
  8340. lt_prog_compiler_can_build_shared=no
  8341. ;;
  8342. esac
  8343. fi
  8344. case $host_os in
  8345. # For platforms which do not support PIC, -DPIC is meaningless:
  8346. *djgpp*)
  8347. lt_prog_compiler_pic=
  8348. ;;
  8349. *)
  8350. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  8351. ;;
  8352. esac
  8353. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  8354. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  8355. if ${lt_cv_prog_compiler_pic+:} false; then :
  8356. $as_echo_n "(cached) " >&6
  8357. else
  8358. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  8359. fi
  8360. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  8361. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  8362. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  8363. #
  8364. # Check to make sure the PIC flag actually works.
  8365. #
  8366. if test -n "$lt_prog_compiler_pic"; then
  8367. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  8368. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  8369. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  8370. $as_echo_n "(cached) " >&6
  8371. else
  8372. lt_cv_prog_compiler_pic_works=no
  8373. ac_outfile=conftest.$ac_objext
  8374. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8375. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  8376. # Insert the option either (1) after the last *FLAGS variable, or
  8377. # (2) before a word containing "conftest.", or (3) at the end.
  8378. # Note that $ac_compile itself does not contain backslashes and begins
  8379. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8380. # The option is referenced via a variable to avoid confusing sed.
  8381. lt_compile=`echo "$ac_compile" | $SED \
  8382. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8383. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8384. -e 's:$: $lt_compiler_flag:'`
  8385. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8386. (eval "$lt_compile" 2>conftest.err)
  8387. ac_status=$?
  8388. cat conftest.err >&5
  8389. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8390. if (exit $ac_status) && test -s "$ac_outfile"; then
  8391. # The compiler can only warn and ignore the option if not recognized
  8392. # So say no if there are warnings other than the usual output.
  8393. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8394. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8395. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8396. lt_cv_prog_compiler_pic_works=yes
  8397. fi
  8398. fi
  8399. $RM conftest*
  8400. fi
  8401. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  8402. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  8403. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  8404. case $lt_prog_compiler_pic in
  8405. "" | " "*) ;;
  8406. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  8407. esac
  8408. else
  8409. lt_prog_compiler_pic=
  8410. lt_prog_compiler_can_build_shared=no
  8411. fi
  8412. fi
  8413. #
  8414. # Check to make sure the static flag actually works.
  8415. #
  8416. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  8417. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  8418. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  8419. if ${lt_cv_prog_compiler_static_works+:} false; then :
  8420. $as_echo_n "(cached) " >&6
  8421. else
  8422. lt_cv_prog_compiler_static_works=no
  8423. save_LDFLAGS="$LDFLAGS"
  8424. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  8425. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8426. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8427. # The linker can only warn and ignore the option if not recognized
  8428. # So say no if there are warnings
  8429. if test -s conftest.err; then
  8430. # Append any errors to the config.log.
  8431. cat conftest.err 1>&5
  8432. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8433. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8434. if diff conftest.exp conftest.er2 >/dev/null; then
  8435. lt_cv_prog_compiler_static_works=yes
  8436. fi
  8437. else
  8438. lt_cv_prog_compiler_static_works=yes
  8439. fi
  8440. fi
  8441. $RM -r conftest*
  8442. LDFLAGS="$save_LDFLAGS"
  8443. fi
  8444. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  8445. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  8446. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  8447. :
  8448. else
  8449. lt_prog_compiler_static=
  8450. fi
  8451. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8452. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8453. if ${lt_cv_prog_compiler_c_o+:} false; then :
  8454. $as_echo_n "(cached) " >&6
  8455. else
  8456. lt_cv_prog_compiler_c_o=no
  8457. $RM -r conftest 2>/dev/null
  8458. mkdir conftest
  8459. cd conftest
  8460. mkdir out
  8461. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8462. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8463. # Insert the option either (1) after the last *FLAGS variable, or
  8464. # (2) before a word containing "conftest.", or (3) at the end.
  8465. # Note that $ac_compile itself does not contain backslashes and begins
  8466. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8467. lt_compile=`echo "$ac_compile" | $SED \
  8468. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8469. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8470. -e 's:$: $lt_compiler_flag:'`
  8471. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8472. (eval "$lt_compile" 2>out/conftest.err)
  8473. ac_status=$?
  8474. cat out/conftest.err >&5
  8475. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8476. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8477. then
  8478. # The compiler can only warn and ignore the option if not recognized
  8479. # So say no if there are warnings
  8480. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8481. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8482. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8483. lt_cv_prog_compiler_c_o=yes
  8484. fi
  8485. fi
  8486. chmod u+w . 2>&5
  8487. $RM conftest*
  8488. # SGI C++ compiler will create directory out/ii_files/ for
  8489. # template instantiation
  8490. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8491. $RM out/* && rmdir out
  8492. cd ..
  8493. $RM -r conftest
  8494. $RM conftest*
  8495. fi
  8496. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8497. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8498. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8499. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8500. if ${lt_cv_prog_compiler_c_o+:} false; then :
  8501. $as_echo_n "(cached) " >&6
  8502. else
  8503. lt_cv_prog_compiler_c_o=no
  8504. $RM -r conftest 2>/dev/null
  8505. mkdir conftest
  8506. cd conftest
  8507. mkdir out
  8508. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8509. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8510. # Insert the option either (1) after the last *FLAGS variable, or
  8511. # (2) before a word containing "conftest.", or (3) at the end.
  8512. # Note that $ac_compile itself does not contain backslashes and begins
  8513. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8514. lt_compile=`echo "$ac_compile" | $SED \
  8515. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8516. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8517. -e 's:$: $lt_compiler_flag:'`
  8518. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8519. (eval "$lt_compile" 2>out/conftest.err)
  8520. ac_status=$?
  8521. cat out/conftest.err >&5
  8522. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8523. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8524. then
  8525. # The compiler can only warn and ignore the option if not recognized
  8526. # So say no if there are warnings
  8527. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8528. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8529. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8530. lt_cv_prog_compiler_c_o=yes
  8531. fi
  8532. fi
  8533. chmod u+w . 2>&5
  8534. $RM conftest*
  8535. # SGI C++ compiler will create directory out/ii_files/ for
  8536. # template instantiation
  8537. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8538. $RM out/* && rmdir out
  8539. cd ..
  8540. $RM -r conftest
  8541. $RM conftest*
  8542. fi
  8543. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8544. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8545. hard_links="nottested"
  8546. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  8547. # do not overwrite the value of need_locks provided by the user
  8548. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  8549. $as_echo_n "checking if we can lock with hard links... " >&6; }
  8550. hard_links=yes
  8551. $RM conftest*
  8552. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8553. touch conftest.a
  8554. ln conftest.a conftest.b 2>&5 || hard_links=no
  8555. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8556. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  8557. $as_echo "$hard_links" >&6; }
  8558. if test "$hard_links" = no; then
  8559. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  8560. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  8561. need_locks=warn
  8562. fi
  8563. else
  8564. need_locks=no
  8565. fi
  8566. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  8567. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  8568. runpath_var=
  8569. allow_undefined_flag=
  8570. always_export_symbols=no
  8571. archive_cmds=
  8572. archive_expsym_cmds=
  8573. compiler_needs_object=no
  8574. enable_shared_with_static_runtimes=no
  8575. export_dynamic_flag_spec=
  8576. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8577. hardcode_automatic=no
  8578. hardcode_direct=no
  8579. hardcode_direct_absolute=no
  8580. hardcode_libdir_flag_spec=
  8581. hardcode_libdir_separator=
  8582. hardcode_minus_L=no
  8583. hardcode_shlibpath_var=unsupported
  8584. inherit_rpath=no
  8585. link_all_deplibs=unknown
  8586. module_cmds=
  8587. module_expsym_cmds=
  8588. old_archive_from_new_cmds=
  8589. old_archive_from_expsyms_cmds=
  8590. thread_safe_flag_spec=
  8591. whole_archive_flag_spec=
  8592. # include_expsyms should be a list of space-separated symbols to be *always*
  8593. # included in the symbol list
  8594. include_expsyms=
  8595. # exclude_expsyms can be an extended regexp of symbols to exclude
  8596. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  8597. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  8598. # as well as any symbol that contains `d'.
  8599. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  8600. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  8601. # platforms (ab)use it in PIC code, but their linkers get confused if
  8602. # the symbol is explicitly referenced. Since portable code cannot
  8603. # rely on this symbol name, it's probably fine to never include it in
  8604. # preloaded symbol tables.
  8605. # Exclude shared library initialization/finalization symbols.
  8606. extract_expsyms_cmds=
  8607. case $host_os in
  8608. cygwin* | mingw* | pw32* | cegcc*)
  8609. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  8610. # When not using gcc, we currently assume that we are using
  8611. # Microsoft Visual C++.
  8612. if test "$GCC" != yes; then
  8613. with_gnu_ld=no
  8614. fi
  8615. ;;
  8616. interix*)
  8617. # we just hope/assume this is gcc and not c89 (= MSVC++)
  8618. with_gnu_ld=yes
  8619. ;;
  8620. openbsd*)
  8621. with_gnu_ld=no
  8622. ;;
  8623. esac
  8624. ld_shlibs=yes
  8625. # On some targets, GNU ld is compatible enough with the native linker
  8626. # that we're better off using the native interface for both.
  8627. lt_use_gnu_ld_interface=no
  8628. if test "$with_gnu_ld" = yes; then
  8629. case $host_os in
  8630. aix*)
  8631. # The AIX port of GNU ld has always aspired to compatibility
  8632. # with the native linker. However, as the warning in the GNU ld
  8633. # block says, versions before 2.19.5* couldn't really create working
  8634. # shared libraries, regardless of the interface used.
  8635. case `$LD -v 2>&1` in
  8636. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  8637. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  8638. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  8639. *)
  8640. lt_use_gnu_ld_interface=yes
  8641. ;;
  8642. esac
  8643. ;;
  8644. *)
  8645. lt_use_gnu_ld_interface=yes
  8646. ;;
  8647. esac
  8648. fi
  8649. if test "$lt_use_gnu_ld_interface" = yes; then
  8650. # If archive_cmds runs LD, not CC, wlarc should be empty
  8651. wlarc='${wl}'
  8652. # Set some defaults for GNU ld with shared library support. These
  8653. # are reset later if shared libraries are not supported. Putting them
  8654. # here allows them to be overridden if necessary.
  8655. runpath_var=LD_RUN_PATH
  8656. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8657. export_dynamic_flag_spec='${wl}--export-dynamic'
  8658. # ancient GNU ld didn't support --whole-archive et. al.
  8659. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  8660. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  8661. else
  8662. whole_archive_flag_spec=
  8663. fi
  8664. supports_anon_versioning=no
  8665. case `$LD -v 2>&1` in
  8666. *GNU\ gold*) supports_anon_versioning=yes ;;
  8667. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  8668. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  8669. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  8670. *\ 2.11.*) ;; # other 2.11 versions
  8671. *) supports_anon_versioning=yes ;;
  8672. esac
  8673. # See if GNU ld supports shared libraries.
  8674. case $host_os in
  8675. aix[3-9]*)
  8676. # On AIX/PPC, the GNU linker is very broken
  8677. if test "$host_cpu" != ia64; then
  8678. ld_shlibs=no
  8679. cat <<_LT_EOF 1>&2
  8680. *** Warning: the GNU linker, at least up to release 2.19, is reported
  8681. *** to be unable to reliably create shared libraries on AIX.
  8682. *** Therefore, libtool is disabling shared libraries support. If you
  8683. *** really care for shared libraries, you may want to install binutils
  8684. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  8685. *** You will then need to restart the configuration process.
  8686. _LT_EOF
  8687. fi
  8688. ;;
  8689. amigaos*)
  8690. case $host_cpu in
  8691. powerpc)
  8692. # see comment about AmigaOS4 .so support
  8693. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8694. archive_expsym_cmds=''
  8695. ;;
  8696. m68k)
  8697. 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)'
  8698. hardcode_libdir_flag_spec='-L$libdir'
  8699. hardcode_minus_L=yes
  8700. ;;
  8701. esac
  8702. ;;
  8703. beos*)
  8704. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8705. allow_undefined_flag=unsupported
  8706. # Joseph Beckenbach <[email protected]> says some releases of gcc
  8707. # support --undefined. This deserves some investigation. FIXME
  8708. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8709. else
  8710. ld_shlibs=no
  8711. fi
  8712. ;;
  8713. cygwin* | mingw* | pw32* | cegcc*)
  8714. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  8715. # as there is no search path for DLLs.
  8716. hardcode_libdir_flag_spec='-L$libdir'
  8717. export_dynamic_flag_spec='${wl}--export-all-symbols'
  8718. allow_undefined_flag=unsupported
  8719. always_export_symbols=no
  8720. enable_shared_with_static_runtimes=yes
  8721. 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'
  8722. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  8723. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  8724. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8725. # If the export-symbols file already is a .def file (1st line
  8726. # is EXPORTS), use it as is; otherwise, prepend...
  8727. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8728. cp $export_symbols $output_objdir/$soname.def;
  8729. else
  8730. echo EXPORTS > $output_objdir/$soname.def;
  8731. cat $export_symbols >> $output_objdir/$soname.def;
  8732. fi~
  8733. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8734. else
  8735. ld_shlibs=no
  8736. fi
  8737. ;;
  8738. haiku*)
  8739. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8740. link_all_deplibs=yes
  8741. ;;
  8742. interix[3-9]*)
  8743. hardcode_direct=no
  8744. hardcode_shlibpath_var=no
  8745. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8746. export_dynamic_flag_spec='${wl}-E'
  8747. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8748. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8749. # default) and relocated if they conflict, which is a slow very memory
  8750. # consuming and fragmenting process. To avoid this, we pick a random,
  8751. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8752. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8753. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8754. 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'
  8755. ;;
  8756. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  8757. tmp_diet=no
  8758. if test "$host_os" = linux-dietlibc; then
  8759. case $cc_basename in
  8760. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8761. esac
  8762. fi
  8763. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8764. && test "$tmp_diet" = no
  8765. then
  8766. tmp_addflag=' $pic_flag'
  8767. tmp_sharedflag='-shared'
  8768. case $cc_basename,$host_cpu in
  8769. pgcc*) # Portland Group C compiler
  8770. 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'
  8771. tmp_addflag=' $pic_flag'
  8772. ;;
  8773. pgf77* | pgf90* | pgf95* | pgfortran*)
  8774. # Portland Group f77 and f90 compilers
  8775. 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'
  8776. tmp_addflag=' $pic_flag -Mnomain' ;;
  8777. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8778. tmp_addflag=' -i_dynamic' ;;
  8779. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8780. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8781. ifc* | ifort*) # Intel Fortran compiler
  8782. tmp_addflag=' -nofor_main' ;;
  8783. lf95*) # Lahey Fortran 8.1
  8784. whole_archive_flag_spec=
  8785. tmp_sharedflag='--shared' ;;
  8786. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8787. tmp_sharedflag='-qmkshrobj'
  8788. tmp_addflag= ;;
  8789. nvcc*) # Cuda Compiler Driver 2.2
  8790. 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'
  8791. compiler_needs_object=yes
  8792. ;;
  8793. esac
  8794. case `$CC -V 2>&1 | sed 5q` in
  8795. *Sun\ C*) # Sun C 5.9
  8796. 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'
  8797. compiler_needs_object=yes
  8798. tmp_sharedflag='-G' ;;
  8799. *Sun\ F*) # Sun Fortran 8.3
  8800. tmp_sharedflag='-G' ;;
  8801. esac
  8802. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8803. if test "x$supports_anon_versioning" = xyes; then
  8804. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8805. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8806. echo "local: *; };" >> $output_objdir/$libname.ver~
  8807. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  8808. fi
  8809. case $cc_basename in
  8810. xlf* | bgf* | bgxlf* | mpixlf*)
  8811. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8812. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8813. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8814. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  8815. if test "x$supports_anon_versioning" = xyes; then
  8816. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8817. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8818. echo "local: *; };" >> $output_objdir/$libname.ver~
  8819. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8820. fi
  8821. ;;
  8822. esac
  8823. else
  8824. ld_shlibs=no
  8825. fi
  8826. ;;
  8827. netbsd*)
  8828. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8829. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8830. wlarc=
  8831. else
  8832. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8833. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8834. fi
  8835. ;;
  8836. solaris*)
  8837. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8838. ld_shlibs=no
  8839. cat <<_LT_EOF 1>&2
  8840. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8841. *** create shared libraries on Solaris systems. Therefore, libtool
  8842. *** is disabling shared libraries support. We urge you to upgrade GNU
  8843. *** binutils to release 2.9.1 or newer. Another option is to modify
  8844. *** your PATH or compiler configuration so that the native linker is
  8845. *** used, and then restart.
  8846. _LT_EOF
  8847. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8848. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8849. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8850. else
  8851. ld_shlibs=no
  8852. fi
  8853. ;;
  8854. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8855. case `$LD -v 2>&1` in
  8856. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8857. ld_shlibs=no
  8858. cat <<_LT_EOF 1>&2
  8859. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  8860. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8861. *** is disabling shared libraries support. We urge you to upgrade GNU
  8862. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8863. *** your PATH or compiler configuration so that the native linker is
  8864. *** used, and then restart.
  8865. _LT_EOF
  8866. ;;
  8867. *)
  8868. # For security reasons, it is highly recommended that you always
  8869. # use absolute paths for naming shared libraries, and exclude the
  8870. # DT_RUNPATH tag from executables and libraries. But doing so
  8871. # requires that you compile everything twice, which is a pain.
  8872. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8873. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8874. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8875. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8876. else
  8877. ld_shlibs=no
  8878. fi
  8879. ;;
  8880. esac
  8881. ;;
  8882. sunos4*)
  8883. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8884. wlarc=
  8885. hardcode_direct=yes
  8886. hardcode_shlibpath_var=no
  8887. ;;
  8888. *)
  8889. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8890. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8891. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8892. else
  8893. ld_shlibs=no
  8894. fi
  8895. ;;
  8896. esac
  8897. if test "$ld_shlibs" = no; then
  8898. runpath_var=
  8899. hardcode_libdir_flag_spec=
  8900. export_dynamic_flag_spec=
  8901. whole_archive_flag_spec=
  8902. fi
  8903. else
  8904. # PORTME fill in a description of your system's linker (not GNU ld)
  8905. case $host_os in
  8906. aix3*)
  8907. allow_undefined_flag=unsupported
  8908. always_export_symbols=yes
  8909. 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'
  8910. # Note: this linker hardcodes the directories in LIBPATH if there
  8911. # are no directories specified by -L.
  8912. hardcode_minus_L=yes
  8913. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  8914. # Neither direct hardcoding nor static linking is supported with a
  8915. # broken collect2.
  8916. hardcode_direct=unsupported
  8917. fi
  8918. ;;
  8919. aix[4-9]*)
  8920. if test "$host_cpu" = ia64; then
  8921. # On IA64, the linker does run time linking by default, so we don't
  8922. # have to do anything special.
  8923. aix_use_runtimelinking=no
  8924. exp_sym_flag='-Bexport'
  8925. no_entry_flag=""
  8926. else
  8927. # If we're using GNU nm, then we don't want the "-C" option.
  8928. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  8929. # Also, AIX nm treats weak defined symbols like other global
  8930. # defined symbols, whereas GNU nm marks them as "W".
  8931. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8932. 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'
  8933. else
  8934. 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'
  8935. fi
  8936. aix_use_runtimelinking=no
  8937. # Test if we are trying to use run time linking or normal
  8938. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8939. # need to do runtime linking.
  8940. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8941. for ld_flag in $LDFLAGS; do
  8942. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  8943. aix_use_runtimelinking=yes
  8944. break
  8945. fi
  8946. done
  8947. ;;
  8948. esac
  8949. exp_sym_flag='-bexport'
  8950. no_entry_flag='-bnoentry'
  8951. fi
  8952. # When large executables or shared objects are built, AIX ld can
  8953. # have problems creating the table of contents. If linking a library
  8954. # or program results in "error TOC overflow" add -mminimal-toc to
  8955. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8956. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8957. archive_cmds=''
  8958. hardcode_direct=yes
  8959. hardcode_direct_absolute=yes
  8960. hardcode_libdir_separator=':'
  8961. link_all_deplibs=yes
  8962. file_list_spec='${wl}-f,'
  8963. if test "$GCC" = yes; then
  8964. case $host_os in aix4.[012]|aix4.[012].*)
  8965. # We only want to do this on AIX 4.2 and lower, the check
  8966. # below for broken collect2 doesn't work under 4.3+
  8967. collect2name=`${CC} -print-prog-name=collect2`
  8968. if test -f "$collect2name" &&
  8969. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8970. then
  8971. # We have reworked collect2
  8972. :
  8973. else
  8974. # We have old collect2
  8975. hardcode_direct=unsupported
  8976. # It fails to find uninstalled libraries when the uninstalled
  8977. # path is not listed in the libpath. Setting hardcode_minus_L
  8978. # to unsupported forces relinking
  8979. hardcode_minus_L=yes
  8980. hardcode_libdir_flag_spec='-L$libdir'
  8981. hardcode_libdir_separator=
  8982. fi
  8983. ;;
  8984. esac
  8985. shared_flag='-shared'
  8986. if test "$aix_use_runtimelinking" = yes; then
  8987. shared_flag="$shared_flag "'${wl}-G'
  8988. fi
  8989. else
  8990. # not using gcc
  8991. if test "$host_cpu" = ia64; then
  8992. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8993. # chokes on -Wl,-G. The following line is correct:
  8994. shared_flag='-G'
  8995. else
  8996. if test "$aix_use_runtimelinking" = yes; then
  8997. shared_flag='${wl}-G'
  8998. else
  8999. shared_flag='${wl}-bM:SRE'
  9000. fi
  9001. fi
  9002. fi
  9003. export_dynamic_flag_spec='${wl}-bexpall'
  9004. # It seems that -bexpall does not export symbols beginning with
  9005. # underscore (_), so it is better to generate a list of symbols to export.
  9006. always_export_symbols=yes
  9007. if test "$aix_use_runtimelinking" = yes; then
  9008. # Warning - without using the other runtime loading flags (-brtl),
  9009. # -berok will link without error, but may produce a broken library.
  9010. allow_undefined_flag='-berok'
  9011. # Determine the default libpath from the value encoded in an
  9012. # empty executable.
  9013. if test "${lt_cv_aix_libpath+set}" = set; then
  9014. aix_libpath=$lt_cv_aix_libpath
  9015. else
  9016. if ${lt_cv_aix_libpath_+:} false; then :
  9017. $as_echo_n "(cached) " >&6
  9018. else
  9019. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9020. /* end confdefs.h. */
  9021. int
  9022. main ()
  9023. {
  9024. ;
  9025. return 0;
  9026. }
  9027. _ACEOF
  9028. if ac_fn_c_try_link "$LINENO"; then :
  9029. lt_aix_libpath_sed='
  9030. /Import File Strings/,/^$/ {
  9031. /^0/ {
  9032. s/^0 *\([^ ]*\) *$/\1/
  9033. p
  9034. }
  9035. }'
  9036. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9037. # Check for a 64-bit object if we didn't find anything.
  9038. if test -z "$lt_cv_aix_libpath_"; then
  9039. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9040. fi
  9041. fi
  9042. rm -f core conftest.err conftest.$ac_objext \
  9043. conftest$ac_exeext conftest.$ac_ext
  9044. if test -z "$lt_cv_aix_libpath_"; then
  9045. lt_cv_aix_libpath_="/usr/lib:/lib"
  9046. fi
  9047. fi
  9048. aix_libpath=$lt_cv_aix_libpath_
  9049. fi
  9050. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  9051. 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"
  9052. else
  9053. if test "$host_cpu" = ia64; then
  9054. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  9055. allow_undefined_flag="-z nodefs"
  9056. 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"
  9057. else
  9058. # Determine the default libpath from the value encoded in an
  9059. # empty executable.
  9060. if test "${lt_cv_aix_libpath+set}" = set; then
  9061. aix_libpath=$lt_cv_aix_libpath
  9062. else
  9063. if ${lt_cv_aix_libpath_+:} false; then :
  9064. $as_echo_n "(cached) " >&6
  9065. else
  9066. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9067. /* end confdefs.h. */
  9068. int
  9069. main ()
  9070. {
  9071. ;
  9072. return 0;
  9073. }
  9074. _ACEOF
  9075. if ac_fn_c_try_link "$LINENO"; then :
  9076. lt_aix_libpath_sed='
  9077. /Import File Strings/,/^$/ {
  9078. /^0/ {
  9079. s/^0 *\([^ ]*\) *$/\1/
  9080. p
  9081. }
  9082. }'
  9083. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9084. # Check for a 64-bit object if we didn't find anything.
  9085. if test -z "$lt_cv_aix_libpath_"; then
  9086. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9087. fi
  9088. fi
  9089. rm -f core conftest.err conftest.$ac_objext \
  9090. conftest$ac_exeext conftest.$ac_ext
  9091. if test -z "$lt_cv_aix_libpath_"; then
  9092. lt_cv_aix_libpath_="/usr/lib:/lib"
  9093. fi
  9094. fi
  9095. aix_libpath=$lt_cv_aix_libpath_
  9096. fi
  9097. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  9098. # Warning - without using the other run time loading flags,
  9099. # -berok will link without error, but may produce a broken library.
  9100. no_undefined_flag=' ${wl}-bernotok'
  9101. allow_undefined_flag=' ${wl}-berok'
  9102. if test "$with_gnu_ld" = yes; then
  9103. # We only use this code for GNU lds that support --whole-archive.
  9104. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  9105. else
  9106. # Exported symbols can be pulled into shared objects from archives
  9107. whole_archive_flag_spec='$convenience'
  9108. fi
  9109. archive_cmds_need_lc=yes
  9110. # This is similar to how AIX traditionally builds its shared libraries.
  9111. 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'
  9112. fi
  9113. fi
  9114. ;;
  9115. amigaos*)
  9116. case $host_cpu in
  9117. powerpc)
  9118. # see comment about AmigaOS4 .so support
  9119. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9120. archive_expsym_cmds=''
  9121. ;;
  9122. m68k)
  9123. 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)'
  9124. hardcode_libdir_flag_spec='-L$libdir'
  9125. hardcode_minus_L=yes
  9126. ;;
  9127. esac
  9128. ;;
  9129. bsdi[45]*)
  9130. export_dynamic_flag_spec=-rdynamic
  9131. ;;
  9132. cygwin* | mingw* | pw32* | cegcc*)
  9133. # When not using gcc, we currently assume that we are using
  9134. # Microsoft Visual C++.
  9135. # hardcode_libdir_flag_spec is actually meaningless, as there is
  9136. # no search path for DLLs.
  9137. case $cc_basename in
  9138. cl*)
  9139. # Native MSVC
  9140. hardcode_libdir_flag_spec=' '
  9141. allow_undefined_flag=unsupported
  9142. always_export_symbols=yes
  9143. file_list_spec='@'
  9144. # Tell ltmain to make .lib files, not .a files.
  9145. libext=lib
  9146. # Tell ltmain to make .dll files, not .so files.
  9147. shrext_cmds=".dll"
  9148. # FIXME: Setting linknames here is a bad hack.
  9149. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  9150. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  9151. sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  9152. else
  9153. sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  9154. fi~
  9155. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  9156. linknames='
  9157. # The linker will not automatically build a static lib if we build a DLL.
  9158. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  9159. enable_shared_with_static_runtimes=yes
  9160. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  9161. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  9162. # Don't use ranlib
  9163. old_postinstall_cmds='chmod 644 $oldlib'
  9164. postlink_cmds='lt_outputfile="@OUTPUT@"~
  9165. lt_tool_outputfile="@TOOL_OUTPUT@"~
  9166. case $lt_outputfile in
  9167. *.exe|*.EXE) ;;
  9168. *)
  9169. lt_outputfile="$lt_outputfile.exe"
  9170. lt_tool_outputfile="$lt_tool_outputfile.exe"
  9171. ;;
  9172. esac~
  9173. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  9174. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  9175. $RM "$lt_outputfile.manifest";
  9176. fi'
  9177. ;;
  9178. *)
  9179. # Assume MSVC wrapper
  9180. hardcode_libdir_flag_spec=' '
  9181. allow_undefined_flag=unsupported
  9182. # Tell ltmain to make .lib files, not .a files.
  9183. libext=lib
  9184. # Tell ltmain to make .dll files, not .so files.
  9185. shrext_cmds=".dll"
  9186. # FIXME: Setting linknames here is a bad hack.
  9187. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  9188. # The linker will automatically build a .lib file if we build a DLL.
  9189. old_archive_from_new_cmds='true'
  9190. # FIXME: Should let the user specify the lib program.
  9191. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  9192. enable_shared_with_static_runtimes=yes
  9193. ;;
  9194. esac
  9195. ;;
  9196. darwin* | rhapsody*)
  9197. archive_cmds_need_lc=no
  9198. hardcode_direct=no
  9199. hardcode_automatic=yes
  9200. hardcode_shlibpath_var=unsupported
  9201. if test "$lt_cv_ld_force_load" = "yes"; then
  9202. 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\"`'
  9203. else
  9204. whole_archive_flag_spec=''
  9205. fi
  9206. link_all_deplibs=yes
  9207. allow_undefined_flag="$_lt_dar_allow_undefined"
  9208. case $cc_basename in
  9209. ifort*) _lt_dar_can_shared=yes ;;
  9210. *) _lt_dar_can_shared=$GCC ;;
  9211. esac
  9212. if test "$_lt_dar_can_shared" = "yes"; then
  9213. output_verbose_link_cmd=func_echo_all
  9214. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  9215. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  9216. 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}"
  9217. 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}"
  9218. else
  9219. ld_shlibs=no
  9220. fi
  9221. ;;
  9222. dgux*)
  9223. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9224. hardcode_libdir_flag_spec='-L$libdir'
  9225. hardcode_shlibpath_var=no
  9226. ;;
  9227. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  9228. # support. Future versions do this automatically, but an explicit c++rt0.o
  9229. # does not break anything, and helps significantly (at the cost of a little
  9230. # extra space).
  9231. freebsd2.2*)
  9232. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  9233. hardcode_libdir_flag_spec='-R$libdir'
  9234. hardcode_direct=yes
  9235. hardcode_shlibpath_var=no
  9236. ;;
  9237. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  9238. freebsd2.*)
  9239. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9240. hardcode_direct=yes
  9241. hardcode_minus_L=yes
  9242. hardcode_shlibpath_var=no
  9243. ;;
  9244. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  9245. freebsd* | dragonfly*)
  9246. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9247. hardcode_libdir_flag_spec='-R$libdir'
  9248. hardcode_direct=yes
  9249. hardcode_shlibpath_var=no
  9250. ;;
  9251. hpux9*)
  9252. if test "$GCC" = yes; then
  9253. 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'
  9254. else
  9255. 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'
  9256. fi
  9257. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  9258. hardcode_libdir_separator=:
  9259. hardcode_direct=yes
  9260. # hardcode_minus_L: Not really in the search PATH,
  9261. # but as the default location of the library.
  9262. hardcode_minus_L=yes
  9263. export_dynamic_flag_spec='${wl}-E'
  9264. ;;
  9265. hpux10*)
  9266. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  9267. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9268. else
  9269. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9270. fi
  9271. if test "$with_gnu_ld" = no; then
  9272. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  9273. hardcode_libdir_separator=:
  9274. hardcode_direct=yes
  9275. hardcode_direct_absolute=yes
  9276. export_dynamic_flag_spec='${wl}-E'
  9277. # hardcode_minus_L: Not really in the search PATH,
  9278. # but as the default location of the library.
  9279. hardcode_minus_L=yes
  9280. fi
  9281. ;;
  9282. hpux11*)
  9283. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  9284. case $host_cpu in
  9285. hppa*64*)
  9286. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9287. ;;
  9288. ia64*)
  9289. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9290. ;;
  9291. *)
  9292. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9293. ;;
  9294. esac
  9295. else
  9296. case $host_cpu in
  9297. hppa*64*)
  9298. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9299. ;;
  9300. ia64*)
  9301. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9302. ;;
  9303. *)
  9304. # Older versions of the 11.00 compiler do not understand -b yet
  9305. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  9306. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  9307. $as_echo_n "checking if $CC understands -b... " >&6; }
  9308. if ${lt_cv_prog_compiler__b+:} false; then :
  9309. $as_echo_n "(cached) " >&6
  9310. else
  9311. lt_cv_prog_compiler__b=no
  9312. save_LDFLAGS="$LDFLAGS"
  9313. LDFLAGS="$LDFLAGS -b"
  9314. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  9315. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  9316. # The linker can only warn and ignore the option if not recognized
  9317. # So say no if there are warnings
  9318. if test -s conftest.err; then
  9319. # Append any errors to the config.log.
  9320. cat conftest.err 1>&5
  9321. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  9322. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9323. if diff conftest.exp conftest.er2 >/dev/null; then
  9324. lt_cv_prog_compiler__b=yes
  9325. fi
  9326. else
  9327. lt_cv_prog_compiler__b=yes
  9328. fi
  9329. fi
  9330. $RM -r conftest*
  9331. LDFLAGS="$save_LDFLAGS"
  9332. fi
  9333. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  9334. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  9335. if test x"$lt_cv_prog_compiler__b" = xyes; then
  9336. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9337. else
  9338. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9339. fi
  9340. ;;
  9341. esac
  9342. fi
  9343. if test "$with_gnu_ld" = no; then
  9344. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  9345. hardcode_libdir_separator=:
  9346. case $host_cpu in
  9347. hppa*64*|ia64*)
  9348. hardcode_direct=no
  9349. hardcode_shlibpath_var=no
  9350. ;;
  9351. *)
  9352. hardcode_direct=yes
  9353. hardcode_direct_absolute=yes
  9354. export_dynamic_flag_spec='${wl}-E'
  9355. # hardcode_minus_L: Not really in the search PATH,
  9356. # but as the default location of the library.
  9357. hardcode_minus_L=yes
  9358. ;;
  9359. esac
  9360. fi
  9361. ;;
  9362. irix5* | irix6* | nonstopux*)
  9363. if test "$GCC" = yes; then
  9364. 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'
  9365. # Try to use the -exported_symbol ld option, if it does not
  9366. # work, assume that -exports_file does not work either and
  9367. # implicitly export all symbols.
  9368. # This should be the same for all languages, so no per-tag cache variable.
  9369. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  9370. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  9371. if ${lt_cv_irix_exported_symbol+:} false; then :
  9372. $as_echo_n "(cached) " >&6
  9373. else
  9374. save_LDFLAGS="$LDFLAGS"
  9375. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  9376. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9377. /* end confdefs.h. */
  9378. int foo (void) { return 0; }
  9379. _ACEOF
  9380. if ac_fn_c_try_link "$LINENO"; then :
  9381. lt_cv_irix_exported_symbol=yes
  9382. else
  9383. lt_cv_irix_exported_symbol=no
  9384. fi
  9385. rm -f core conftest.err conftest.$ac_objext \
  9386. conftest$ac_exeext conftest.$ac_ext
  9387. LDFLAGS="$save_LDFLAGS"
  9388. fi
  9389. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  9390. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  9391. if test "$lt_cv_irix_exported_symbol" = yes; then
  9392. 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'
  9393. fi
  9394. else
  9395. 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'
  9396. 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'
  9397. fi
  9398. archive_cmds_need_lc='no'
  9399. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9400. hardcode_libdir_separator=:
  9401. inherit_rpath=yes
  9402. link_all_deplibs=yes
  9403. ;;
  9404. netbsd*)
  9405. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9406. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  9407. else
  9408. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  9409. fi
  9410. hardcode_libdir_flag_spec='-R$libdir'
  9411. hardcode_direct=yes
  9412. hardcode_shlibpath_var=no
  9413. ;;
  9414. newsos6)
  9415. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9416. hardcode_direct=yes
  9417. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9418. hardcode_libdir_separator=:
  9419. hardcode_shlibpath_var=no
  9420. ;;
  9421. *nto* | *qnx*)
  9422. ;;
  9423. openbsd*)
  9424. if test -f /usr/libexec/ld.so; then
  9425. hardcode_direct=yes
  9426. hardcode_shlibpath_var=no
  9427. hardcode_direct_absolute=yes
  9428. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9429. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9430. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  9431. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  9432. export_dynamic_flag_spec='${wl}-E'
  9433. else
  9434. case $host_os in
  9435. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  9436. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9437. hardcode_libdir_flag_spec='-R$libdir'
  9438. ;;
  9439. *)
  9440. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9441. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  9442. ;;
  9443. esac
  9444. fi
  9445. else
  9446. ld_shlibs=no
  9447. fi
  9448. ;;
  9449. os2*)
  9450. hardcode_libdir_flag_spec='-L$libdir'
  9451. hardcode_minus_L=yes
  9452. allow_undefined_flag=unsupported
  9453. 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'
  9454. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  9455. ;;
  9456. osf3*)
  9457. if test "$GCC" = yes; then
  9458. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  9459. 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'
  9460. else
  9461. allow_undefined_flag=' -expect_unresolved \*'
  9462. 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'
  9463. fi
  9464. archive_cmds_need_lc='no'
  9465. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9466. hardcode_libdir_separator=:
  9467. ;;
  9468. osf4* | osf5*) # as osf3* with the addition of -msym flag
  9469. if test "$GCC" = yes; then
  9470. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  9471. 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'
  9472. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9473. else
  9474. allow_undefined_flag=' -expect_unresolved \*'
  9475. 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'
  9476. 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~
  9477. $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'
  9478. # Both c and cxx compiler support -rpath directly
  9479. hardcode_libdir_flag_spec='-rpath $libdir'
  9480. fi
  9481. archive_cmds_need_lc='no'
  9482. hardcode_libdir_separator=:
  9483. ;;
  9484. solaris*)
  9485. no_undefined_flag=' -z defs'
  9486. if test "$GCC" = yes; then
  9487. wlarc='${wl}'
  9488. archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9489. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9490. $CC -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'
  9491. else
  9492. case `$CC -V 2>&1` in
  9493. *"Compilers 5.0"*)
  9494. wlarc=''
  9495. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9496. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9497. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  9498. ;;
  9499. *)
  9500. wlarc='${wl}'
  9501. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9502. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9503. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9504. ;;
  9505. esac
  9506. fi
  9507. hardcode_libdir_flag_spec='-R$libdir'
  9508. hardcode_shlibpath_var=no
  9509. case $host_os in
  9510. solaris2.[0-5] | solaris2.[0-5].*) ;;
  9511. *)
  9512. # The compiler driver will combine and reorder linker options,
  9513. # but understands `-z linker_flag'. GCC discards it without `$wl',
  9514. # but is careful enough not to reorder.
  9515. # Supported since Solaris 2.6 (maybe 2.5.1?)
  9516. if test "$GCC" = yes; then
  9517. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  9518. else
  9519. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  9520. fi
  9521. ;;
  9522. esac
  9523. link_all_deplibs=yes
  9524. ;;
  9525. sunos4*)
  9526. if test "x$host_vendor" = xsequent; then
  9527. # Use $CC to link under sequent, because it throws in some extra .o
  9528. # files that make .init and .fini sections work.
  9529. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9530. else
  9531. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  9532. fi
  9533. hardcode_libdir_flag_spec='-L$libdir'
  9534. hardcode_direct=yes
  9535. hardcode_minus_L=yes
  9536. hardcode_shlibpath_var=no
  9537. ;;
  9538. sysv4)
  9539. case $host_vendor in
  9540. sni)
  9541. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9542. hardcode_direct=yes # is this really true???
  9543. ;;
  9544. siemens)
  9545. ## LD is ld it makes a PLAMLIB
  9546. ## CC just makes a GrossModule.
  9547. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  9548. reload_cmds='$CC -r -o $output$reload_objs'
  9549. hardcode_direct=no
  9550. ;;
  9551. motorola)
  9552. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9553. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  9554. ;;
  9555. esac
  9556. runpath_var='LD_RUN_PATH'
  9557. hardcode_shlibpath_var=no
  9558. ;;
  9559. sysv4.3*)
  9560. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9561. hardcode_shlibpath_var=no
  9562. export_dynamic_flag_spec='-Bexport'
  9563. ;;
  9564. sysv4*MP*)
  9565. if test -d /usr/nec; then
  9566. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9567. hardcode_shlibpath_var=no
  9568. runpath_var=LD_RUN_PATH
  9569. hardcode_runpath_var=yes
  9570. ld_shlibs=yes
  9571. fi
  9572. ;;
  9573. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  9574. no_undefined_flag='${wl}-z,text'
  9575. archive_cmds_need_lc=no
  9576. hardcode_shlibpath_var=no
  9577. runpath_var='LD_RUN_PATH'
  9578. if test "$GCC" = yes; then
  9579. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9580. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9581. else
  9582. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9583. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9584. fi
  9585. ;;
  9586. sysv5* | sco3.2v5* | sco5v6*)
  9587. # Note: We can NOT use -z defs as we might desire, because we do not
  9588. # link with -lc, and that would cause any symbols used from libc to
  9589. # always be unresolved, which means just about no library would
  9590. # ever link correctly. If we're not using GNU ld we use -z text
  9591. # though, which does catch some bad symbols but isn't as heavy-handed
  9592. # as -z defs.
  9593. no_undefined_flag='${wl}-z,text'
  9594. allow_undefined_flag='${wl}-z,nodefs'
  9595. archive_cmds_need_lc=no
  9596. hardcode_shlibpath_var=no
  9597. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  9598. hardcode_libdir_separator=':'
  9599. link_all_deplibs=yes
  9600. export_dynamic_flag_spec='${wl}-Bexport'
  9601. runpath_var='LD_RUN_PATH'
  9602. if test "$GCC" = yes; then
  9603. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9604. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9605. else
  9606. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9607. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9608. fi
  9609. ;;
  9610. uts4*)
  9611. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9612. hardcode_libdir_flag_spec='-L$libdir'
  9613. hardcode_shlibpath_var=no
  9614. ;;
  9615. *)
  9616. ld_shlibs=no
  9617. ;;
  9618. esac
  9619. if test x$host_vendor = xsni; then
  9620. case $host in
  9621. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  9622. export_dynamic_flag_spec='${wl}-Blargedynsym'
  9623. ;;
  9624. esac
  9625. fi
  9626. fi
  9627. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  9628. $as_echo "$ld_shlibs" >&6; }
  9629. test "$ld_shlibs" = no && can_build_shared=no
  9630. with_gnu_ld=$with_gnu_ld
  9631. #
  9632. # Do we need to explicitly link libc?
  9633. #
  9634. case "x$archive_cmds_need_lc" in
  9635. x|xyes)
  9636. # Assume -lc should be added
  9637. archive_cmds_need_lc=yes
  9638. if test "$enable_shared" = yes && test "$GCC" = yes; then
  9639. case $archive_cmds in
  9640. *'~'*)
  9641. # FIXME: we may have to deal with multi-command sequences.
  9642. ;;
  9643. '$CC '*)
  9644. # Test whether the compiler implicitly links with -lc since on some
  9645. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  9646. # to ld, don't add -lc before -lgcc.
  9647. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  9648. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  9649. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  9650. $as_echo_n "(cached) " >&6
  9651. else
  9652. $RM conftest*
  9653. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9654. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9655. (eval $ac_compile) 2>&5
  9656. ac_status=$?
  9657. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9658. test $ac_status = 0; } 2>conftest.err; then
  9659. soname=conftest
  9660. lib=conftest
  9661. libobjs=conftest.$ac_objext
  9662. deplibs=
  9663. wl=$lt_prog_compiler_wl
  9664. pic_flag=$lt_prog_compiler_pic
  9665. compiler_flags=-v
  9666. linker_flags=-v
  9667. verstring=
  9668. output_objdir=.
  9669. libname=conftest
  9670. lt_save_allow_undefined_flag=$allow_undefined_flag
  9671. allow_undefined_flag=
  9672. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  9673. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9674. ac_status=$?
  9675. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9676. test $ac_status = 0; }
  9677. then
  9678. lt_cv_archive_cmds_need_lc=no
  9679. else
  9680. lt_cv_archive_cmds_need_lc=yes
  9681. fi
  9682. allow_undefined_flag=$lt_save_allow_undefined_flag
  9683. else
  9684. cat conftest.err 1>&5
  9685. fi
  9686. $RM conftest*
  9687. fi
  9688. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  9689. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  9690. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  9691. ;;
  9692. esac
  9693. fi
  9694. ;;
  9695. esac
  9696. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  9697. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  9698. if test "$GCC" = yes; then
  9699. case $host_os in
  9700. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  9701. *) lt_awk_arg="/^libraries:/" ;;
  9702. esac
  9703. case $host_os in
  9704. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  9705. *) lt_sed_strip_eq="s,=/,/,g" ;;
  9706. esac
  9707. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  9708. case $lt_search_path_spec in
  9709. *\;*)
  9710. # if the path contains ";" then we assume it to be the separator
  9711. # otherwise default to the standard path separator (i.e. ":") - it is
  9712. # assumed that no part of a normal pathname contains ";" but that should
  9713. # okay in the real world where ";" in dirpaths is itself problematic.
  9714. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  9715. ;;
  9716. *)
  9717. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  9718. ;;
  9719. esac
  9720. # Ok, now we have the path, separated by spaces, we can step through it
  9721. # and add multilib dir if necessary.
  9722. lt_tmp_lt_search_path_spec=
  9723. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9724. for lt_sys_path in $lt_search_path_spec; do
  9725. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  9726. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  9727. else
  9728. test -d "$lt_sys_path" && \
  9729. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  9730. fi
  9731. done
  9732. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  9733. BEGIN {RS=" "; FS="/|\n";} {
  9734. lt_foo="";
  9735. lt_count=0;
  9736. for (lt_i = NF; lt_i > 0; lt_i--) {
  9737. if ($lt_i != "" && $lt_i != ".") {
  9738. if ($lt_i == "..") {
  9739. lt_count++;
  9740. } else {
  9741. if (lt_count == 0) {
  9742. lt_foo="/" $lt_i lt_foo;
  9743. } else {
  9744. lt_count--;
  9745. }
  9746. }
  9747. }
  9748. }
  9749. if (lt_foo != "") { lt_freq[lt_foo]++; }
  9750. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9751. }'`
  9752. # AWK program above erroneously prepends '/' to C:/dos/paths
  9753. # for these hosts.
  9754. case $host_os in
  9755. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  9756. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  9757. esac
  9758. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  9759. else
  9760. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9761. fi
  9762. library_names_spec=
  9763. libname_spec='lib$name'
  9764. soname_spec=
  9765. shrext_cmds=".so"
  9766. postinstall_cmds=
  9767. postuninstall_cmds=
  9768. finish_cmds=
  9769. finish_eval=
  9770. shlibpath_var=
  9771. shlibpath_overrides_runpath=unknown
  9772. version_type=none
  9773. dynamic_linker="$host_os ld.so"
  9774. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9775. need_lib_prefix=unknown
  9776. hardcode_into_libs=no
  9777. # when you set need_version to no, make sure it does not cause -set_version
  9778. # flags to be left without arguments
  9779. need_version=unknown
  9780. case $host_os in
  9781. aix3*)
  9782. version_type=linux # correct to gnu/linux during the next big refactor
  9783. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  9784. shlibpath_var=LIBPATH
  9785. # AIX 3 has no versioning support, so we append a major version to the name.
  9786. soname_spec='${libname}${release}${shared_ext}$major'
  9787. ;;
  9788. aix[4-9]*)
  9789. version_type=linux # correct to gnu/linux during the next big refactor
  9790. need_lib_prefix=no
  9791. need_version=no
  9792. hardcode_into_libs=yes
  9793. if test "$host_cpu" = ia64; then
  9794. # AIX 5 supports IA64
  9795. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  9796. shlibpath_var=LD_LIBRARY_PATH
  9797. else
  9798. # With GCC up to 2.95.x, collect2 would create an import file
  9799. # for dependence libraries. The import file would start with
  9800. # the line `#! .'. This would cause the generated library to
  9801. # depend on `.', always an invalid library. This was fixed in
  9802. # development snapshots of GCC prior to 3.0.
  9803. case $host_os in
  9804. aix4 | aix4.[01] | aix4.[01].*)
  9805. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9806. echo ' yes '
  9807. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  9808. :
  9809. else
  9810. can_build_shared=no
  9811. fi
  9812. ;;
  9813. esac
  9814. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  9815. # soname into executable. Probably we can add versioning support to
  9816. # collect2, so additional links can be useful in future.
  9817. if test "$aix_use_runtimelinking" = yes; then
  9818. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9819. # instead of lib<name>.a to let people know that these are not
  9820. # typical AIX shared libraries.
  9821. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9822. else
  9823. # We preserve .a as extension for shared libraries through AIX4.2
  9824. # and later when we are not doing run time linking.
  9825. library_names_spec='${libname}${release}.a $libname.a'
  9826. soname_spec='${libname}${release}${shared_ext}$major'
  9827. fi
  9828. shlibpath_var=LIBPATH
  9829. fi
  9830. ;;
  9831. amigaos*)
  9832. case $host_cpu in
  9833. powerpc)
  9834. # Since July 2007 AmigaOS4 officially supports .so libraries.
  9835. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  9836. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9837. ;;
  9838. m68k)
  9839. library_names_spec='$libname.ixlibrary $libname.a'
  9840. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9841. 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'
  9842. ;;
  9843. esac
  9844. ;;
  9845. beos*)
  9846. library_names_spec='${libname}${shared_ext}'
  9847. dynamic_linker="$host_os ld.so"
  9848. shlibpath_var=LIBRARY_PATH
  9849. ;;
  9850. bsdi[45]*)
  9851. version_type=linux # correct to gnu/linux during the next big refactor
  9852. need_version=no
  9853. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9854. soname_spec='${libname}${release}${shared_ext}$major'
  9855. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9856. shlibpath_var=LD_LIBRARY_PATH
  9857. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9858. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9859. # the default ld.so.conf also contains /usr/contrib/lib and
  9860. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9861. # libtool to hard-code these into programs
  9862. ;;
  9863. cygwin* | mingw* | pw32* | cegcc*)
  9864. version_type=windows
  9865. shrext_cmds=".dll"
  9866. need_version=no
  9867. need_lib_prefix=no
  9868. case $GCC,$cc_basename in
  9869. yes,*)
  9870. # gcc
  9871. library_names_spec='$libname.dll.a'
  9872. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9873. postinstall_cmds='base_file=`basename \${file}`~
  9874. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  9875. dldir=$destdir/`dirname \$dlpath`~
  9876. test -d \$dldir || mkdir -p \$dldir~
  9877. $install_prog $dir/$dlname \$dldir/$dlname~
  9878. chmod a+x \$dldir/$dlname~
  9879. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9880. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9881. fi'
  9882. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9883. dlpath=$dir/\$dldll~
  9884. $RM \$dlpath'
  9885. shlibpath_overrides_runpath=yes
  9886. case $host_os in
  9887. cygwin*)
  9888. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  9889. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9890. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  9891. ;;
  9892. mingw* | cegcc*)
  9893. # MinGW DLLs use traditional 'lib' prefix
  9894. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9895. ;;
  9896. pw32*)
  9897. # pw32 DLLs use 'pw' prefix rather than 'lib'
  9898. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9899. ;;
  9900. esac
  9901. dynamic_linker='Win32 ld.exe'
  9902. ;;
  9903. *,cl*)
  9904. # Native MSVC
  9905. libname_spec='$name'
  9906. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9907. library_names_spec='${libname}.dll.lib'
  9908. case $build_os in
  9909. mingw*)
  9910. sys_lib_search_path_spec=
  9911. lt_save_ifs=$IFS
  9912. IFS=';'
  9913. for lt_path in $LIB
  9914. do
  9915. IFS=$lt_save_ifs
  9916. # Let DOS variable expansion print the short 8.3 style file name.
  9917. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  9918. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  9919. done
  9920. IFS=$lt_save_ifs
  9921. # Convert to MSYS style.
  9922. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  9923. ;;
  9924. cygwin*)
  9925. # Convert to unix form, then to dos form, then back to unix form
  9926. # but this time dos style (no spaces!) so that the unix form looks
  9927. # like /cygdrive/c/PROGRA~1:/cygdr...
  9928. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  9929. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  9930. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9931. ;;
  9932. *)
  9933. sys_lib_search_path_spec="$LIB"
  9934. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  9935. # It is most probably a Windows format PATH.
  9936. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  9937. else
  9938. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9939. fi
  9940. # FIXME: find the short name or the path components, as spaces are
  9941. # common. (e.g. "Program Files" -> "PROGRA~1")
  9942. ;;
  9943. esac
  9944. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9945. postinstall_cmds='base_file=`basename \${file}`~
  9946. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  9947. dldir=$destdir/`dirname \$dlpath`~
  9948. test -d \$dldir || mkdir -p \$dldir~
  9949. $install_prog $dir/$dlname \$dldir/$dlname'
  9950. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9951. dlpath=$dir/\$dldll~
  9952. $RM \$dlpath'
  9953. shlibpath_overrides_runpath=yes
  9954. dynamic_linker='Win32 link.exe'
  9955. ;;
  9956. *)
  9957. # Assume MSVC wrapper
  9958. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  9959. dynamic_linker='Win32 ld.exe'
  9960. ;;
  9961. esac
  9962. # FIXME: first we should search . and the directory the executable is in
  9963. shlibpath_var=PATH
  9964. ;;
  9965. darwin* | rhapsody*)
  9966. dynamic_linker="$host_os dyld"
  9967. version_type=darwin
  9968. need_lib_prefix=no
  9969. need_version=no
  9970. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  9971. soname_spec='${libname}${release}${major}$shared_ext'
  9972. shlibpath_overrides_runpath=yes
  9973. shlibpath_var=DYLD_LIBRARY_PATH
  9974. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  9975. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  9976. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  9977. ;;
  9978. dgux*)
  9979. version_type=linux # correct to gnu/linux during the next big refactor
  9980. need_lib_prefix=no
  9981. need_version=no
  9982. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  9983. soname_spec='${libname}${release}${shared_ext}$major'
  9984. shlibpath_var=LD_LIBRARY_PATH
  9985. ;;
  9986. freebsd* | dragonfly*)
  9987. # DragonFly does not have aout. When/if they implement a new
  9988. # versioning mechanism, adjust this.
  9989. if test -x /usr/bin/objformat; then
  9990. objformat=`/usr/bin/objformat`
  9991. else
  9992. case $host_os in
  9993. freebsd[23].*) objformat=aout ;;
  9994. *) objformat=elf ;;
  9995. esac
  9996. fi
  9997. version_type=freebsd-$objformat
  9998. case $version_type in
  9999. freebsd-elf*)
  10000. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  10001. need_version=no
  10002. need_lib_prefix=no
  10003. ;;
  10004. freebsd-*)
  10005. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  10006. need_version=yes
  10007. ;;
  10008. esac
  10009. shlibpath_var=LD_LIBRARY_PATH
  10010. case $host_os in
  10011. freebsd2.*)
  10012. shlibpath_overrides_runpath=yes
  10013. ;;
  10014. freebsd3.[01]* | freebsdelf3.[01]*)
  10015. shlibpath_overrides_runpath=yes
  10016. hardcode_into_libs=yes
  10017. ;;
  10018. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  10019. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  10020. shlibpath_overrides_runpath=no
  10021. hardcode_into_libs=yes
  10022. ;;
  10023. *) # from 4.6 on, and DragonFly
  10024. shlibpath_overrides_runpath=yes
  10025. hardcode_into_libs=yes
  10026. ;;
  10027. esac
  10028. ;;
  10029. gnu*)
  10030. version_type=linux # correct to gnu/linux during the next big refactor
  10031. need_lib_prefix=no
  10032. need_version=no
  10033. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  10034. soname_spec='${libname}${release}${shared_ext}$major'
  10035. shlibpath_var=LD_LIBRARY_PATH
  10036. shlibpath_overrides_runpath=no
  10037. hardcode_into_libs=yes
  10038. ;;
  10039. haiku*)
  10040. version_type=linux # correct to gnu/linux during the next big refactor
  10041. need_lib_prefix=no
  10042. need_version=no
  10043. dynamic_linker="$host_os runtime_loader"
  10044. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  10045. soname_spec='${libname}${release}${shared_ext}$major'
  10046. shlibpath_var=LIBRARY_PATH
  10047. shlibpath_overrides_runpath=yes
  10048. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  10049. hardcode_into_libs=yes
  10050. ;;
  10051. hpux9* | hpux10* | hpux11*)
  10052. # Give a soname corresponding to the major version so that dld.sl refuses to
  10053. # link against other versions.
  10054. version_type=sunos
  10055. need_lib_prefix=no
  10056. need_version=no
  10057. case $host_cpu in
  10058. ia64*)
  10059. shrext_cmds='.so'
  10060. hardcode_into_libs=yes
  10061. dynamic_linker="$host_os dld.so"
  10062. shlibpath_var=LD_LIBRARY_PATH
  10063. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10064. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10065. soname_spec='${libname}${release}${shared_ext}$major'
  10066. if test "X$HPUX_IA64_MODE" = X32; then
  10067. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  10068. else
  10069. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  10070. fi
  10071. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10072. ;;
  10073. hppa*64*)
  10074. shrext_cmds='.sl'
  10075. hardcode_into_libs=yes
  10076. dynamic_linker="$host_os dld.sl"
  10077. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  10078. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10079. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10080. soname_spec='${libname}${release}${shared_ext}$major'
  10081. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  10082. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10083. ;;
  10084. *)
  10085. shrext_cmds='.sl'
  10086. dynamic_linker="$host_os dld.sl"
  10087. shlibpath_var=SHLIB_PATH
  10088. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  10089. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10090. soname_spec='${libname}${release}${shared_ext}$major'
  10091. ;;
  10092. esac
  10093. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  10094. postinstall_cmds='chmod 555 $lib'
  10095. # or fails outright, so override atomically:
  10096. install_override_mode=555
  10097. ;;
  10098. interix[3-9]*)
  10099. version_type=linux # correct to gnu/linux during the next big refactor
  10100. need_lib_prefix=no
  10101. need_version=no
  10102. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  10103. soname_spec='${libname}${release}${shared_ext}$major'
  10104. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  10105. shlibpath_var=LD_LIBRARY_PATH
  10106. shlibpath_overrides_runpath=no
  10107. hardcode_into_libs=yes
  10108. ;;
  10109. irix5* | irix6* | nonstopux*)
  10110. case $host_os in
  10111. nonstopux*) version_type=nonstopux ;;
  10112. *)
  10113. if test "$lt_cv_prog_gnu_ld" = yes; then
  10114. version_type=linux # correct to gnu/linux during the next big refactor
  10115. else
  10116. version_type=irix
  10117. fi ;;
  10118. esac
  10119. need_lib_prefix=no
  10120. need_version=no
  10121. soname_spec='${libname}${release}${shared_ext}$major'
  10122. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  10123. case $host_os in
  10124. irix5* | nonstopux*)
  10125. libsuff= shlibsuff=
  10126. ;;
  10127. *)
  10128. case $LD in # libtool.m4 will add one of these switches to LD
  10129. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  10130. libsuff= shlibsuff= libmagic=32-bit;;
  10131. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  10132. libsuff=32 shlibsuff=N32 libmagic=N32;;
  10133. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  10134. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  10135. *) libsuff= shlibsuff= libmagic=never-match;;
  10136. esac
  10137. ;;
  10138. esac
  10139. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  10140. shlibpath_overrides_runpath=no
  10141. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  10142. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  10143. hardcode_into_libs=yes
  10144. ;;
  10145. # No shared lib support for Linux oldld, aout, or coff.
  10146. linux*oldld* | linux*aout* | linux*coff*)
  10147. dynamic_linker=no
  10148. ;;
  10149. # This must be glibc/ELF.
  10150. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  10151. version_type=linux # correct to gnu/linux during the next big refactor
  10152. need_lib_prefix=no
  10153. need_version=no
  10154. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10155. soname_spec='${libname}${release}${shared_ext}$major'
  10156. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  10157. shlibpath_var=LD_LIBRARY_PATH
  10158. shlibpath_overrides_runpath=no
  10159. # Some binutils ld are patched to set DT_RUNPATH
  10160. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  10161. $as_echo_n "(cached) " >&6
  10162. else
  10163. lt_cv_shlibpath_overrides_runpath=no
  10164. save_LDFLAGS=$LDFLAGS
  10165. save_libdir=$libdir
  10166. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  10167. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  10168. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10169. /* end confdefs.h. */
  10170. int
  10171. main ()
  10172. {
  10173. ;
  10174. return 0;
  10175. }
  10176. _ACEOF
  10177. if ac_fn_c_try_link "$LINENO"; then :
  10178. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  10179. lt_cv_shlibpath_overrides_runpath=yes
  10180. fi
  10181. fi
  10182. rm -f core conftest.err conftest.$ac_objext \
  10183. conftest$ac_exeext conftest.$ac_ext
  10184. LDFLAGS=$save_LDFLAGS
  10185. libdir=$save_libdir
  10186. fi
  10187. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  10188. # This implies no fast_install, which is unacceptable.
  10189. # Some rework will be needed to allow for fast_install
  10190. # before this can be enabled.
  10191. hardcode_into_libs=yes
  10192. # Add ABI-specific directories to the system library path.
  10193. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  10194. # Append ld.so.conf contents to the search path
  10195. if test -f /etc/ld.so.conf; then
  10196. 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' ' '`
  10197. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  10198. fi
  10199. # We used to test for /lib/ld.so.1 and disable shared libraries on
  10200. # powerpc, because MkLinux only supported shared libraries with the
  10201. # GNU dynamic linker. Since this was broken with cross compilers,
  10202. # most powerpc-linux boxes support dynamic linking these days and
  10203. # people can always --disable-shared, the test was removed, and we
  10204. # assume the GNU/Linux dynamic linker is in use.
  10205. dynamic_linker='GNU/Linux ld.so'
  10206. ;;
  10207. netbsd*)
  10208. version_type=sunos
  10209. need_lib_prefix=no
  10210. need_version=no
  10211. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10212. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  10213. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10214. dynamic_linker='NetBSD (a.out) ld.so'
  10215. else
  10216. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  10217. soname_spec='${libname}${release}${shared_ext}$major'
  10218. dynamic_linker='NetBSD ld.elf_so'
  10219. fi
  10220. shlibpath_var=LD_LIBRARY_PATH
  10221. shlibpath_overrides_runpath=yes
  10222. hardcode_into_libs=yes
  10223. ;;
  10224. newsos6)
  10225. version_type=linux # correct to gnu/linux during the next big refactor
  10226. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10227. shlibpath_var=LD_LIBRARY_PATH
  10228. shlibpath_overrides_runpath=yes
  10229. ;;
  10230. *nto* | *qnx*)
  10231. version_type=qnx
  10232. need_lib_prefix=no
  10233. need_version=no
  10234. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10235. soname_spec='${libname}${release}${shared_ext}$major'
  10236. shlibpath_var=LD_LIBRARY_PATH
  10237. shlibpath_overrides_runpath=no
  10238. hardcode_into_libs=yes
  10239. dynamic_linker='ldqnx.so'
  10240. ;;
  10241. openbsd*)
  10242. version_type=sunos
  10243. sys_lib_dlsearch_path_spec="/usr/lib"
  10244. need_lib_prefix=no
  10245. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  10246. case $host_os in
  10247. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  10248. *) need_version=no ;;
  10249. esac
  10250. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  10251. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10252. shlibpath_var=LD_LIBRARY_PATH
  10253. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  10254. case $host_os in
  10255. openbsd2.[89] | openbsd2.[89].*)
  10256. shlibpath_overrides_runpath=no
  10257. ;;
  10258. *)
  10259. shlibpath_overrides_runpath=yes
  10260. ;;
  10261. esac
  10262. else
  10263. shlibpath_overrides_runpath=yes
  10264. fi
  10265. ;;
  10266. os2*)
  10267. libname_spec='$name'
  10268. shrext_cmds=".dll"
  10269. need_lib_prefix=no
  10270. library_names_spec='$libname${shared_ext} $libname.a'
  10271. dynamic_linker='OS/2 ld.exe'
  10272. shlibpath_var=LIBPATH
  10273. ;;
  10274. osf3* | osf4* | osf5*)
  10275. version_type=osf
  10276. need_lib_prefix=no
  10277. need_version=no
  10278. soname_spec='${libname}${release}${shared_ext}$major'
  10279. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10280. shlibpath_var=LD_LIBRARY_PATH
  10281. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  10282. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  10283. ;;
  10284. rdos*)
  10285. dynamic_linker=no
  10286. ;;
  10287. solaris*)
  10288. version_type=linux # correct to gnu/linux during the next big refactor
  10289. need_lib_prefix=no
  10290. need_version=no
  10291. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10292. soname_spec='${libname}${release}${shared_ext}$major'
  10293. shlibpath_var=LD_LIBRARY_PATH
  10294. shlibpath_overrides_runpath=yes
  10295. hardcode_into_libs=yes
  10296. # ldd complains unless libraries are executable
  10297. postinstall_cmds='chmod +x $lib'
  10298. ;;
  10299. sunos4*)
  10300. version_type=sunos
  10301. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  10302. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  10303. shlibpath_var=LD_LIBRARY_PATH
  10304. shlibpath_overrides_runpath=yes
  10305. if test "$with_gnu_ld" = yes; then
  10306. need_lib_prefix=no
  10307. fi
  10308. need_version=yes
  10309. ;;
  10310. sysv4 | sysv4.3*)
  10311. version_type=linux # correct to gnu/linux during the next big refactor
  10312. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10313. soname_spec='${libname}${release}${shared_ext}$major'
  10314. shlibpath_var=LD_LIBRARY_PATH
  10315. case $host_vendor in
  10316. sni)
  10317. shlibpath_overrides_runpath=no
  10318. need_lib_prefix=no
  10319. runpath_var=LD_RUN_PATH
  10320. ;;
  10321. siemens)
  10322. need_lib_prefix=no
  10323. ;;
  10324. motorola)
  10325. need_lib_prefix=no
  10326. need_version=no
  10327. shlibpath_overrides_runpath=no
  10328. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  10329. ;;
  10330. esac
  10331. ;;
  10332. sysv4*MP*)
  10333. if test -d /usr/nec ;then
  10334. version_type=linux # correct to gnu/linux during the next big refactor
  10335. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  10336. soname_spec='$libname${shared_ext}.$major'
  10337. shlibpath_var=LD_LIBRARY_PATH
  10338. fi
  10339. ;;
  10340. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  10341. version_type=freebsd-elf
  10342. need_lib_prefix=no
  10343. need_version=no
  10344. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  10345. soname_spec='${libname}${release}${shared_ext}$major'
  10346. shlibpath_var=LD_LIBRARY_PATH
  10347. shlibpath_overrides_runpath=yes
  10348. hardcode_into_libs=yes
  10349. if test "$with_gnu_ld" = yes; then
  10350. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  10351. else
  10352. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  10353. case $host_os in
  10354. sco3.2v5*)
  10355. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  10356. ;;
  10357. esac
  10358. fi
  10359. sys_lib_dlsearch_path_spec='/usr/lib'
  10360. ;;
  10361. tpf*)
  10362. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  10363. version_type=linux # correct to gnu/linux during the next big refactor
  10364. need_lib_prefix=no
  10365. need_version=no
  10366. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10367. shlibpath_var=LD_LIBRARY_PATH
  10368. shlibpath_overrides_runpath=no
  10369. hardcode_into_libs=yes
  10370. ;;
  10371. uts4*)
  10372. version_type=linux # correct to gnu/linux during the next big refactor
  10373. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10374. soname_spec='${libname}${release}${shared_ext}$major'
  10375. shlibpath_var=LD_LIBRARY_PATH
  10376. ;;
  10377. *)
  10378. dynamic_linker=no
  10379. ;;
  10380. esac
  10381. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  10382. $as_echo "$dynamic_linker" >&6; }
  10383. test "$dynamic_linker" = no && can_build_shared=no
  10384. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  10385. if test "$GCC" = yes; then
  10386. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  10387. fi
  10388. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  10389. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  10390. fi
  10391. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  10392. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  10393. fi
  10394. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  10395. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  10396. hardcode_action=
  10397. if test -n "$hardcode_libdir_flag_spec" ||
  10398. test -n "$runpath_var" ||
  10399. test "X$hardcode_automatic" = "Xyes" ; then
  10400. # We can hardcode non-existent directories.
  10401. if test "$hardcode_direct" != no &&
  10402. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  10403. # have to relink, otherwise we might link with an installed library
  10404. # when we should be linking with a yet-to-be-installed one
  10405. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  10406. test "$hardcode_minus_L" != no; then
  10407. # Linking always hardcodes the temporary library directory.
  10408. hardcode_action=relink
  10409. else
  10410. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  10411. hardcode_action=immediate
  10412. fi
  10413. else
  10414. # We cannot hardcode anything, or else we can only hardcode existing
  10415. # directories.
  10416. hardcode_action=unsupported
  10417. fi
  10418. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  10419. $as_echo "$hardcode_action" >&6; }
  10420. if test "$hardcode_action" = relink ||
  10421. test "$inherit_rpath" = yes; then
  10422. # Fast installation is not supported
  10423. enable_fast_install=no
  10424. elif test "$shlibpath_overrides_runpath" = yes ||
  10425. test "$enable_shared" = no; then
  10426. # Fast installation is not necessary
  10427. enable_fast_install=needless
  10428. fi
  10429. if test "x$enable_dlopen" != xyes; then
  10430. enable_dlopen=unknown
  10431. enable_dlopen_self=unknown
  10432. enable_dlopen_self_static=unknown
  10433. else
  10434. lt_cv_dlopen=no
  10435. lt_cv_dlopen_libs=
  10436. case $host_os in
  10437. beos*)
  10438. lt_cv_dlopen="load_add_on"
  10439. lt_cv_dlopen_libs=
  10440. lt_cv_dlopen_self=yes
  10441. ;;
  10442. mingw* | pw32* | cegcc*)
  10443. lt_cv_dlopen="LoadLibrary"
  10444. lt_cv_dlopen_libs=
  10445. ;;
  10446. cygwin*)
  10447. lt_cv_dlopen="dlopen"
  10448. lt_cv_dlopen_libs=
  10449. ;;
  10450. darwin*)
  10451. # if libdl is installed we need to link against it
  10452. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10453. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10454. if ${ac_cv_lib_dl_dlopen+:} false; then :
  10455. $as_echo_n "(cached) " >&6
  10456. else
  10457. ac_check_lib_save_LIBS=$LIBS
  10458. LIBS="-ldl $LIBS"
  10459. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10460. /* end confdefs.h. */
  10461. /* Override any GCC internal prototype to avoid an error.
  10462. Use char because int might match the return type of a GCC
  10463. builtin and then its argument prototype would still apply. */
  10464. #ifdef __cplusplus
  10465. extern "C"
  10466. #endif
  10467. char dlopen ();
  10468. int
  10469. main ()
  10470. {
  10471. return dlopen ();
  10472. ;
  10473. return 0;
  10474. }
  10475. _ACEOF
  10476. if ac_fn_c_try_link "$LINENO"; then :
  10477. ac_cv_lib_dl_dlopen=yes
  10478. else
  10479. ac_cv_lib_dl_dlopen=no
  10480. fi
  10481. rm -f core conftest.err conftest.$ac_objext \
  10482. conftest$ac_exeext conftest.$ac_ext
  10483. LIBS=$ac_check_lib_save_LIBS
  10484. fi
  10485. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10486. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10487. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10488. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  10489. else
  10490. lt_cv_dlopen="dyld"
  10491. lt_cv_dlopen_libs=
  10492. lt_cv_dlopen_self=yes
  10493. fi
  10494. ;;
  10495. *)
  10496. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  10497. if test "x$ac_cv_func_shl_load" = xyes; then :
  10498. lt_cv_dlopen="shl_load"
  10499. else
  10500. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  10501. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  10502. if ${ac_cv_lib_dld_shl_load+:} false; then :
  10503. $as_echo_n "(cached) " >&6
  10504. else
  10505. ac_check_lib_save_LIBS=$LIBS
  10506. LIBS="-ldld $LIBS"
  10507. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10508. /* end confdefs.h. */
  10509. /* Override any GCC internal prototype to avoid an error.
  10510. Use char because int might match the return type of a GCC
  10511. builtin and then its argument prototype would still apply. */
  10512. #ifdef __cplusplus
  10513. extern "C"
  10514. #endif
  10515. char shl_load ();
  10516. int
  10517. main ()
  10518. {
  10519. return shl_load ();
  10520. ;
  10521. return 0;
  10522. }
  10523. _ACEOF
  10524. if ac_fn_c_try_link "$LINENO"; then :
  10525. ac_cv_lib_dld_shl_load=yes
  10526. else
  10527. ac_cv_lib_dld_shl_load=no
  10528. fi
  10529. rm -f core conftest.err conftest.$ac_objext \
  10530. conftest$ac_exeext conftest.$ac_ext
  10531. LIBS=$ac_check_lib_save_LIBS
  10532. fi
  10533. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  10534. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  10535. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  10536. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  10537. else
  10538. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  10539. if test "x$ac_cv_func_dlopen" = xyes; then :
  10540. lt_cv_dlopen="dlopen"
  10541. else
  10542. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10543. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10544. if ${ac_cv_lib_dl_dlopen+:} false; then :
  10545. $as_echo_n "(cached) " >&6
  10546. else
  10547. ac_check_lib_save_LIBS=$LIBS
  10548. LIBS="-ldl $LIBS"
  10549. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10550. /* end confdefs.h. */
  10551. /* Override any GCC internal prototype to avoid an error.
  10552. Use char because int might match the return type of a GCC
  10553. builtin and then its argument prototype would still apply. */
  10554. #ifdef __cplusplus
  10555. extern "C"
  10556. #endif
  10557. char dlopen ();
  10558. int
  10559. main ()
  10560. {
  10561. return dlopen ();
  10562. ;
  10563. return 0;
  10564. }
  10565. _ACEOF
  10566. if ac_fn_c_try_link "$LINENO"; then :
  10567. ac_cv_lib_dl_dlopen=yes
  10568. else
  10569. ac_cv_lib_dl_dlopen=no
  10570. fi
  10571. rm -f core conftest.err conftest.$ac_objext \
  10572. conftest$ac_exeext conftest.$ac_ext
  10573. LIBS=$ac_check_lib_save_LIBS
  10574. fi
  10575. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10576. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10577. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10578. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  10579. else
  10580. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  10581. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  10582. if ${ac_cv_lib_svld_dlopen+:} false; then :
  10583. $as_echo_n "(cached) " >&6
  10584. else
  10585. ac_check_lib_save_LIBS=$LIBS
  10586. LIBS="-lsvld $LIBS"
  10587. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10588. /* end confdefs.h. */
  10589. /* Override any GCC internal prototype to avoid an error.
  10590. Use char because int might match the return type of a GCC
  10591. builtin and then its argument prototype would still apply. */
  10592. #ifdef __cplusplus
  10593. extern "C"
  10594. #endif
  10595. char dlopen ();
  10596. int
  10597. main ()
  10598. {
  10599. return dlopen ();
  10600. ;
  10601. return 0;
  10602. }
  10603. _ACEOF
  10604. if ac_fn_c_try_link "$LINENO"; then :
  10605. ac_cv_lib_svld_dlopen=yes
  10606. else
  10607. ac_cv_lib_svld_dlopen=no
  10608. fi
  10609. rm -f core conftest.err conftest.$ac_objext \
  10610. conftest$ac_exeext conftest.$ac_ext
  10611. LIBS=$ac_check_lib_save_LIBS
  10612. fi
  10613. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  10614. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  10615. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  10616. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  10617. else
  10618. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  10619. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  10620. if ${ac_cv_lib_dld_dld_link+:} false; then :
  10621. $as_echo_n "(cached) " >&6
  10622. else
  10623. ac_check_lib_save_LIBS=$LIBS
  10624. LIBS="-ldld $LIBS"
  10625. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10626. /* end confdefs.h. */
  10627. /* Override any GCC internal prototype to avoid an error.
  10628. Use char because int might match the return type of a GCC
  10629. builtin and then its argument prototype would still apply. */
  10630. #ifdef __cplusplus
  10631. extern "C"
  10632. #endif
  10633. char dld_link ();
  10634. int
  10635. main ()
  10636. {
  10637. return dld_link ();
  10638. ;
  10639. return 0;
  10640. }
  10641. _ACEOF
  10642. if ac_fn_c_try_link "$LINENO"; then :
  10643. ac_cv_lib_dld_dld_link=yes
  10644. else
  10645. ac_cv_lib_dld_dld_link=no
  10646. fi
  10647. rm -f core conftest.err conftest.$ac_objext \
  10648. conftest$ac_exeext conftest.$ac_ext
  10649. LIBS=$ac_check_lib_save_LIBS
  10650. fi
  10651. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  10652. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  10653. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  10654. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  10655. fi
  10656. fi
  10657. fi
  10658. fi
  10659. fi
  10660. fi
  10661. ;;
  10662. esac
  10663. if test "x$lt_cv_dlopen" != xno; then
  10664. enable_dlopen=yes
  10665. else
  10666. enable_dlopen=no
  10667. fi
  10668. case $lt_cv_dlopen in
  10669. dlopen)
  10670. save_CPPFLAGS="$CPPFLAGS"
  10671. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  10672. save_LDFLAGS="$LDFLAGS"
  10673. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  10674. save_LIBS="$LIBS"
  10675. LIBS="$lt_cv_dlopen_libs $LIBS"
  10676. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  10677. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  10678. if ${lt_cv_dlopen_self+:} false; then :
  10679. $as_echo_n "(cached) " >&6
  10680. else
  10681. if test "$cross_compiling" = yes; then :
  10682. lt_cv_dlopen_self=cross
  10683. else
  10684. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10685. lt_status=$lt_dlunknown
  10686. cat > conftest.$ac_ext <<_LT_EOF
  10687. #line $LINENO "configure"
  10688. #include "confdefs.h"
  10689. #if HAVE_DLFCN_H
  10690. #include <dlfcn.h>
  10691. #endif
  10692. #include <stdio.h>
  10693. #ifdef RTLD_GLOBAL
  10694. # define LT_DLGLOBAL RTLD_GLOBAL
  10695. #else
  10696. # ifdef DL_GLOBAL
  10697. # define LT_DLGLOBAL DL_GLOBAL
  10698. # else
  10699. # define LT_DLGLOBAL 0
  10700. # endif
  10701. #endif
  10702. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10703. find out it does not work in some platform. */
  10704. #ifndef LT_DLLAZY_OR_NOW
  10705. # ifdef RTLD_LAZY
  10706. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10707. # else
  10708. # ifdef DL_LAZY
  10709. # define LT_DLLAZY_OR_NOW DL_LAZY
  10710. # else
  10711. # ifdef RTLD_NOW
  10712. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10713. # else
  10714. # ifdef DL_NOW
  10715. # define LT_DLLAZY_OR_NOW DL_NOW
  10716. # else
  10717. # define LT_DLLAZY_OR_NOW 0
  10718. # endif
  10719. # endif
  10720. # endif
  10721. # endif
  10722. #endif
  10723. /* When -fvisbility=hidden is used, assume the code has been annotated
  10724. correspondingly for the symbols needed. */
  10725. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10726. int fnord () __attribute__((visibility("default")));
  10727. #endif
  10728. int fnord () { return 42; }
  10729. int main ()
  10730. {
  10731. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10732. int status = $lt_dlunknown;
  10733. if (self)
  10734. {
  10735. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10736. else
  10737. {
  10738. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10739. else puts (dlerror ());
  10740. }
  10741. /* dlclose (self); */
  10742. }
  10743. else
  10744. puts (dlerror ());
  10745. return status;
  10746. }
  10747. _LT_EOF
  10748. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10749. (eval $ac_link) 2>&5
  10750. ac_status=$?
  10751. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10752. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10753. (./conftest; exit; ) >&5 2>/dev/null
  10754. lt_status=$?
  10755. case x$lt_status in
  10756. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  10757. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  10758. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  10759. esac
  10760. else :
  10761. # compilation failed
  10762. lt_cv_dlopen_self=no
  10763. fi
  10764. fi
  10765. rm -fr conftest*
  10766. fi
  10767. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  10768. $as_echo "$lt_cv_dlopen_self" >&6; }
  10769. if test "x$lt_cv_dlopen_self" = xyes; then
  10770. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  10771. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  10772. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  10773. if ${lt_cv_dlopen_self_static+:} false; then :
  10774. $as_echo_n "(cached) " >&6
  10775. else
  10776. if test "$cross_compiling" = yes; then :
  10777. lt_cv_dlopen_self_static=cross
  10778. else
  10779. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10780. lt_status=$lt_dlunknown
  10781. cat > conftest.$ac_ext <<_LT_EOF
  10782. #line $LINENO "configure"
  10783. #include "confdefs.h"
  10784. #if HAVE_DLFCN_H
  10785. #include <dlfcn.h>
  10786. #endif
  10787. #include <stdio.h>
  10788. #ifdef RTLD_GLOBAL
  10789. # define LT_DLGLOBAL RTLD_GLOBAL
  10790. #else
  10791. # ifdef DL_GLOBAL
  10792. # define LT_DLGLOBAL DL_GLOBAL
  10793. # else
  10794. # define LT_DLGLOBAL 0
  10795. # endif
  10796. #endif
  10797. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10798. find out it does not work in some platform. */
  10799. #ifndef LT_DLLAZY_OR_NOW
  10800. # ifdef RTLD_LAZY
  10801. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10802. # else
  10803. # ifdef DL_LAZY
  10804. # define LT_DLLAZY_OR_NOW DL_LAZY
  10805. # else
  10806. # ifdef RTLD_NOW
  10807. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10808. # else
  10809. # ifdef DL_NOW
  10810. # define LT_DLLAZY_OR_NOW DL_NOW
  10811. # else
  10812. # define LT_DLLAZY_OR_NOW 0
  10813. # endif
  10814. # endif
  10815. # endif
  10816. # endif
  10817. #endif
  10818. /* When -fvisbility=hidden is used, assume the code has been annotated
  10819. correspondingly for the symbols needed. */
  10820. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10821. int fnord () __attribute__((visibility("default")));
  10822. #endif
  10823. int fnord () { return 42; }
  10824. int main ()
  10825. {
  10826. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10827. int status = $lt_dlunknown;
  10828. if (self)
  10829. {
  10830. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10831. else
  10832. {
  10833. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10834. else puts (dlerror ());
  10835. }
  10836. /* dlclose (self); */
  10837. }
  10838. else
  10839. puts (dlerror ());
  10840. return status;
  10841. }
  10842. _LT_EOF
  10843. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10844. (eval $ac_link) 2>&5
  10845. ac_status=$?
  10846. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10847. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10848. (./conftest; exit; ) >&5 2>/dev/null
  10849. lt_status=$?
  10850. case x$lt_status in
  10851. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  10852. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  10853. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  10854. esac
  10855. else :
  10856. # compilation failed
  10857. lt_cv_dlopen_self_static=no
  10858. fi
  10859. fi
  10860. rm -fr conftest*
  10861. fi
  10862. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  10863. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  10864. fi
  10865. CPPFLAGS="$save_CPPFLAGS"
  10866. LDFLAGS="$save_LDFLAGS"
  10867. LIBS="$save_LIBS"
  10868. ;;
  10869. esac
  10870. case $lt_cv_dlopen_self in
  10871. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  10872. *) enable_dlopen_self=unknown ;;
  10873. esac
  10874. case $lt_cv_dlopen_self_static in
  10875. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  10876. *) enable_dlopen_self_static=unknown ;;
  10877. esac
  10878. fi
  10879. striplib=
  10880. old_striplib=
  10881. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  10882. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  10883. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  10884. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  10885. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  10886. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10887. $as_echo "yes" >&6; }
  10888. else
  10889. # FIXME - insert some real tests, host_os isn't really good enough
  10890. case $host_os in
  10891. darwin*)
  10892. if test -n "$STRIP" ; then
  10893. striplib="$STRIP -x"
  10894. old_striplib="$STRIP -S"
  10895. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10896. $as_echo "yes" >&6; }
  10897. else
  10898. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10899. $as_echo "no" >&6; }
  10900. fi
  10901. ;;
  10902. *)
  10903. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10904. $as_echo "no" >&6; }
  10905. ;;
  10906. esac
  10907. fi
  10908. # Report which library types will actually be built
  10909. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  10910. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  10911. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  10912. $as_echo "$can_build_shared" >&6; }
  10913. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  10914. $as_echo_n "checking whether to build shared libraries... " >&6; }
  10915. test "$can_build_shared" = "no" && enable_shared=no
  10916. # On AIX, shared libraries and static libraries use the same namespace, and
  10917. # are all built from PIC.
  10918. case $host_os in
  10919. aix3*)
  10920. test "$enable_shared" = yes && enable_static=no
  10921. if test -n "$RANLIB"; then
  10922. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  10923. postinstall_cmds='$RANLIB $lib'
  10924. fi
  10925. ;;
  10926. aix[4-9]*)
  10927. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  10928. test "$enable_shared" = yes && enable_static=no
  10929. fi
  10930. ;;
  10931. esac
  10932. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  10933. $as_echo "$enable_shared" >&6; }
  10934. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  10935. $as_echo_n "checking whether to build static libraries... " >&6; }
  10936. # Make sure either enable_shared or enable_static is yes.
  10937. test "$enable_shared" = yes || enable_static=yes
  10938. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  10939. $as_echo "$enable_static" >&6; }
  10940. fi
  10941. ac_ext=c
  10942. ac_cpp='$CPP $CPPFLAGS'
  10943. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10944. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10945. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10946. CC="$lt_save_CC"
  10947. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  10948. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  10949. (test "X$CXX" != "Xg++"))) ; then
  10950. ac_ext=cpp
  10951. ac_cpp='$CXXCPP $CPPFLAGS'
  10952. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10953. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10954. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10955. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  10956. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  10957. if test -z "$CXXCPP"; then
  10958. if ${ac_cv_prog_CXXCPP+:} false; then :
  10959. $as_echo_n "(cached) " >&6
  10960. else
  10961. # Double quotes because CXXCPP needs to be expanded
  10962. for CXXCPP in "$CXX -E" "/lib/cpp"
  10963. do
  10964. ac_preproc_ok=false
  10965. for ac_cxx_preproc_warn_flag in '' yes
  10966. do
  10967. # Use a header file that comes with gcc, so configuring glibc
  10968. # with a fresh cross-compiler works.
  10969. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10970. # <limits.h> exists even on freestanding compilers.
  10971. # On the NeXT, cc -E runs the code through the compiler's parser,
  10972. # not just through cpp. "Syntax error" is here to catch this case.
  10973. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10974. /* end confdefs.h. */
  10975. #ifdef __STDC__
  10976. # include <limits.h>
  10977. #else
  10978. # include <assert.h>
  10979. #endif
  10980. Syntax error
  10981. _ACEOF
  10982. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10983. else
  10984. # Broken: fails on valid input.
  10985. continue
  10986. fi
  10987. rm -f conftest.err conftest.i conftest.$ac_ext
  10988. # OK, works on sane cases. Now check whether nonexistent headers
  10989. # can be detected and how.
  10990. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10991. /* end confdefs.h. */
  10992. #include <ac_nonexistent.h>
  10993. _ACEOF
  10994. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10995. # Broken: success on invalid input.
  10996. continue
  10997. else
  10998. # Passes both tests.
  10999. ac_preproc_ok=:
  11000. break
  11001. fi
  11002. rm -f conftest.err conftest.i conftest.$ac_ext
  11003. done
  11004. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  11005. rm -f conftest.i conftest.err conftest.$ac_ext
  11006. if $ac_preproc_ok; then :
  11007. break
  11008. fi
  11009. done
  11010. ac_cv_prog_CXXCPP=$CXXCPP
  11011. fi
  11012. CXXCPP=$ac_cv_prog_CXXCPP
  11013. else
  11014. ac_cv_prog_CXXCPP=$CXXCPP
  11015. fi
  11016. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  11017. $as_echo "$CXXCPP" >&6; }
  11018. ac_preproc_ok=false
  11019. for ac_cxx_preproc_warn_flag in '' yes
  11020. do
  11021. # Use a header file that comes with gcc, so configuring glibc
  11022. # with a fresh cross-compiler works.
  11023. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11024. # <limits.h> exists even on freestanding compilers.
  11025. # On the NeXT, cc -E runs the code through the compiler's parser,
  11026. # not just through cpp. "Syntax error" is here to catch this case.
  11027. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11028. /* end confdefs.h. */
  11029. #ifdef __STDC__
  11030. # include <limits.h>
  11031. #else
  11032. # include <assert.h>
  11033. #endif
  11034. Syntax error
  11035. _ACEOF
  11036. if ac_fn_cxx_try_cpp "$LINENO"; then :
  11037. else
  11038. # Broken: fails on valid input.
  11039. continue
  11040. fi
  11041. rm -f conftest.err conftest.i conftest.$ac_ext
  11042. # OK, works on sane cases. Now check whether nonexistent headers
  11043. # can be detected and how.
  11044. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11045. /* end confdefs.h. */
  11046. #include <ac_nonexistent.h>
  11047. _ACEOF
  11048. if ac_fn_cxx_try_cpp "$LINENO"; then :
  11049. # Broken: success on invalid input.
  11050. continue
  11051. else
  11052. # Passes both tests.
  11053. ac_preproc_ok=:
  11054. break
  11055. fi
  11056. rm -f conftest.err conftest.i conftest.$ac_ext
  11057. done
  11058. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  11059. rm -f conftest.i conftest.err conftest.$ac_ext
  11060. if $ac_preproc_ok; then :
  11061. else
  11062. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11063. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  11064. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  11065. See \`config.log' for more details" "$LINENO" 5; }
  11066. fi
  11067. ac_ext=c
  11068. ac_cpp='$CPP $CPPFLAGS'
  11069. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11070. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11071. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11072. else
  11073. _lt_caught_CXX_error=yes
  11074. fi
  11075. ac_ext=cpp
  11076. ac_cpp='$CXXCPP $CPPFLAGS'
  11077. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11078. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11079. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  11080. archive_cmds_need_lc_CXX=no
  11081. allow_undefined_flag_CXX=
  11082. always_export_symbols_CXX=no
  11083. archive_expsym_cmds_CXX=
  11084. compiler_needs_object_CXX=no
  11085. export_dynamic_flag_spec_CXX=
  11086. hardcode_direct_CXX=no
  11087. hardcode_direct_absolute_CXX=no
  11088. hardcode_libdir_flag_spec_CXX=
  11089. hardcode_libdir_separator_CXX=
  11090. hardcode_minus_L_CXX=no
  11091. hardcode_shlibpath_var_CXX=unsupported
  11092. hardcode_automatic_CXX=no
  11093. inherit_rpath_CXX=no
  11094. module_cmds_CXX=
  11095. module_expsym_cmds_CXX=
  11096. link_all_deplibs_CXX=unknown
  11097. old_archive_cmds_CXX=$old_archive_cmds
  11098. reload_flag_CXX=$reload_flag
  11099. reload_cmds_CXX=$reload_cmds
  11100. no_undefined_flag_CXX=
  11101. whole_archive_flag_spec_CXX=
  11102. enable_shared_with_static_runtimes_CXX=no
  11103. # Source file extension for C++ test sources.
  11104. ac_ext=cpp
  11105. # Object file extension for compiled C++ test sources.
  11106. objext=o
  11107. objext_CXX=$objext
  11108. # No sense in running all these tests if we already determined that
  11109. # the CXX compiler isn't working. Some variables (like enable_shared)
  11110. # are currently assumed to apply to all compilers on this platform,
  11111. # and will be corrupted by setting them based on a non-working compiler.
  11112. if test "$_lt_caught_CXX_error" != yes; then
  11113. # Code to be used in simple compile tests
  11114. lt_simple_compile_test_code="int some_variable = 0;"
  11115. # Code to be used in simple link tests
  11116. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  11117. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  11118. # If no C compiler was specified, use CC.
  11119. LTCC=${LTCC-"$CC"}
  11120. # If no C compiler flags were specified, use CFLAGS.
  11121. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  11122. # Allow CC to be a program name with arguments.
  11123. compiler=$CC
  11124. # save warnings/boilerplate of simple test code
  11125. ac_outfile=conftest.$ac_objext
  11126. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  11127. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11128. _lt_compiler_boilerplate=`cat conftest.err`
  11129. $RM conftest*
  11130. ac_outfile=conftest.$ac_objext
  11131. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  11132. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11133. _lt_linker_boilerplate=`cat conftest.err`
  11134. $RM -r conftest*
  11135. # Allow CC to be a program name with arguments.
  11136. lt_save_CC=$CC
  11137. lt_save_CFLAGS=$CFLAGS
  11138. lt_save_LD=$LD
  11139. lt_save_GCC=$GCC
  11140. GCC=$GXX
  11141. lt_save_with_gnu_ld=$with_gnu_ld
  11142. lt_save_path_LD=$lt_cv_path_LD
  11143. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  11144. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  11145. else
  11146. $as_unset lt_cv_prog_gnu_ld
  11147. fi
  11148. if test -n "${lt_cv_path_LDCXX+set}"; then
  11149. lt_cv_path_LD=$lt_cv_path_LDCXX
  11150. else
  11151. $as_unset lt_cv_path_LD
  11152. fi
  11153. test -z "${LDCXX+set}" || LD=$LDCXX
  11154. CC=${CXX-"c++"}
  11155. CFLAGS=$CXXFLAGS
  11156. compiler=$CC
  11157. compiler_CXX=$CC
  11158. for cc_temp in $compiler""; do
  11159. case $cc_temp in
  11160. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  11161. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  11162. \-*) ;;
  11163. *) break;;
  11164. esac
  11165. done
  11166. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  11167. if test -n "$compiler"; then
  11168. # We don't want -fno-exception when compiling C++ code, so set the
  11169. # no_builtin_flag separately
  11170. if test "$GXX" = yes; then
  11171. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  11172. else
  11173. lt_prog_compiler_no_builtin_flag_CXX=
  11174. fi
  11175. if test "$GXX" = yes; then
  11176. # Set up default GNU C++ configuration
  11177. # Check whether --with-gnu-ld was given.
  11178. if test "${with_gnu_ld+set}" = set; then :
  11179. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  11180. else
  11181. with_gnu_ld=no
  11182. fi
  11183. ac_prog=ld
  11184. if test "$GCC" = yes; then
  11185. # Check if gcc -print-prog-name=ld gives a path.
  11186. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  11187. $as_echo_n "checking for ld used by $CC... " >&6; }
  11188. case $host in
  11189. *-*-mingw*)
  11190. # gcc leaves a trailing carriage return which upsets mingw
  11191. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  11192. *)
  11193. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  11194. esac
  11195. case $ac_prog in
  11196. # Accept absolute paths.
  11197. [\\/]* | ?:[\\/]*)
  11198. re_direlt='/[^/][^/]*/\.\./'
  11199. # Canonicalize the pathname of ld
  11200. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  11201. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  11202. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  11203. done
  11204. test -z "$LD" && LD="$ac_prog"
  11205. ;;
  11206. "")
  11207. # If it fails, then pretend we aren't using GCC.
  11208. ac_prog=ld
  11209. ;;
  11210. *)
  11211. # If it is relative, then search for the first ld in PATH.
  11212. with_gnu_ld=unknown
  11213. ;;
  11214. esac
  11215. elif test "$with_gnu_ld" = yes; then
  11216. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  11217. $as_echo_n "checking for GNU ld... " >&6; }
  11218. else
  11219. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  11220. $as_echo_n "checking for non-GNU ld... " >&6; }
  11221. fi
  11222. if ${lt_cv_path_LD+:} false; then :
  11223. $as_echo_n "(cached) " >&6
  11224. else
  11225. if test -z "$LD"; then
  11226. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  11227. for ac_dir in $PATH; do
  11228. IFS="$lt_save_ifs"
  11229. test -z "$ac_dir" && ac_dir=.
  11230. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  11231. lt_cv_path_LD="$ac_dir/$ac_prog"
  11232. # Check to see if the program is GNU ld. I'd rather use --version,
  11233. # but apparently some variants of GNU ld only accept -v.
  11234. # Break only if it was the GNU/non-GNU ld that we prefer.
  11235. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  11236. *GNU* | *'with BFD'*)
  11237. test "$with_gnu_ld" != no && break
  11238. ;;
  11239. *)
  11240. test "$with_gnu_ld" != yes && break
  11241. ;;
  11242. esac
  11243. fi
  11244. done
  11245. IFS="$lt_save_ifs"
  11246. else
  11247. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  11248. fi
  11249. fi
  11250. LD="$lt_cv_path_LD"
  11251. if test -n "$LD"; then
  11252. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  11253. $as_echo "$LD" >&6; }
  11254. else
  11255. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11256. $as_echo "no" >&6; }
  11257. fi
  11258. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  11259. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  11260. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  11261. if ${lt_cv_prog_gnu_ld+:} false; then :
  11262. $as_echo_n "(cached) " >&6
  11263. else
  11264. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  11265. case `$LD -v 2>&1 </dev/null` in
  11266. *GNU* | *'with BFD'*)
  11267. lt_cv_prog_gnu_ld=yes
  11268. ;;
  11269. *)
  11270. lt_cv_prog_gnu_ld=no
  11271. ;;
  11272. esac
  11273. fi
  11274. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  11275. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  11276. with_gnu_ld=$lt_cv_prog_gnu_ld
  11277. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  11278. # archiving commands below assume that GNU ld is being used.
  11279. if test "$with_gnu_ld" = yes; then
  11280. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11281. 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'
  11282. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11283. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11284. # If archive_cmds runs LD, not CC, wlarc should be empty
  11285. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  11286. # investigate it a little bit more. (MM)
  11287. wlarc='${wl}'
  11288. # ancient GNU ld didn't support --whole-archive et. al.
  11289. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  11290. $GREP 'no-whole-archive' > /dev/null; then
  11291. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11292. else
  11293. whole_archive_flag_spec_CXX=
  11294. fi
  11295. else
  11296. with_gnu_ld=no
  11297. wlarc=
  11298. # A generic and very simple default shared library creation
  11299. # command for GNU C++ for the case where it uses the native
  11300. # linker, instead of GNU ld. If possible, this setting should
  11301. # overridden to take advantage of the native linker features on
  11302. # the platform it is being used on.
  11303. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11304. fi
  11305. # Commands to make compiler produce verbose output that lists
  11306. # what "hidden" libraries, object files and flags are used when
  11307. # linking a shared library.
  11308. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11309. else
  11310. GXX=no
  11311. with_gnu_ld=no
  11312. wlarc=
  11313. fi
  11314. # PORTME: fill in a description of your system's C++ link characteristics
  11315. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  11316. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  11317. ld_shlibs_CXX=yes
  11318. case $host_os in
  11319. aix3*)
  11320. # FIXME: insert proper C++ library support
  11321. ld_shlibs_CXX=no
  11322. ;;
  11323. aix[4-9]*)
  11324. if test "$host_cpu" = ia64; then
  11325. # On IA64, the linker does run time linking by default, so we don't
  11326. # have to do anything special.
  11327. aix_use_runtimelinking=no
  11328. exp_sym_flag='-Bexport'
  11329. no_entry_flag=""
  11330. else
  11331. aix_use_runtimelinking=no
  11332. # Test if we are trying to use run time linking or normal
  11333. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  11334. # need to do runtime linking.
  11335. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  11336. for ld_flag in $LDFLAGS; do
  11337. case $ld_flag in
  11338. *-brtl*)
  11339. aix_use_runtimelinking=yes
  11340. break
  11341. ;;
  11342. esac
  11343. done
  11344. ;;
  11345. esac
  11346. exp_sym_flag='-bexport'
  11347. no_entry_flag='-bnoentry'
  11348. fi
  11349. # When large executables or shared objects are built, AIX ld can
  11350. # have problems creating the table of contents. If linking a library
  11351. # or program results in "error TOC overflow" add -mminimal-toc to
  11352. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  11353. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  11354. archive_cmds_CXX=''
  11355. hardcode_direct_CXX=yes
  11356. hardcode_direct_absolute_CXX=yes
  11357. hardcode_libdir_separator_CXX=':'
  11358. link_all_deplibs_CXX=yes
  11359. file_list_spec_CXX='${wl}-f,'
  11360. if test "$GXX" = yes; then
  11361. case $host_os in aix4.[012]|aix4.[012].*)
  11362. # We only want to do this on AIX 4.2 and lower, the check
  11363. # below for broken collect2 doesn't work under 4.3+
  11364. collect2name=`${CC} -print-prog-name=collect2`
  11365. if test -f "$collect2name" &&
  11366. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  11367. then
  11368. # We have reworked collect2
  11369. :
  11370. else
  11371. # We have old collect2
  11372. hardcode_direct_CXX=unsupported
  11373. # It fails to find uninstalled libraries when the uninstalled
  11374. # path is not listed in the libpath. Setting hardcode_minus_L
  11375. # to unsupported forces relinking
  11376. hardcode_minus_L_CXX=yes
  11377. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11378. hardcode_libdir_separator_CXX=
  11379. fi
  11380. esac
  11381. shared_flag='-shared'
  11382. if test "$aix_use_runtimelinking" = yes; then
  11383. shared_flag="$shared_flag "'${wl}-G'
  11384. fi
  11385. else
  11386. # not using gcc
  11387. if test "$host_cpu" = ia64; then
  11388. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  11389. # chokes on -Wl,-G. The following line is correct:
  11390. shared_flag='-G'
  11391. else
  11392. if test "$aix_use_runtimelinking" = yes; then
  11393. shared_flag='${wl}-G'
  11394. else
  11395. shared_flag='${wl}-bM:SRE'
  11396. fi
  11397. fi
  11398. fi
  11399. export_dynamic_flag_spec_CXX='${wl}-bexpall'
  11400. # It seems that -bexpall does not export symbols beginning with
  11401. # underscore (_), so it is better to generate a list of symbols to
  11402. # export.
  11403. always_export_symbols_CXX=yes
  11404. if test "$aix_use_runtimelinking" = yes; then
  11405. # Warning - without using the other runtime loading flags (-brtl),
  11406. # -berok will link without error, but may produce a broken library.
  11407. allow_undefined_flag_CXX='-berok'
  11408. # Determine the default libpath from the value encoded in an empty
  11409. # executable.
  11410. if test "${lt_cv_aix_libpath+set}" = set; then
  11411. aix_libpath=$lt_cv_aix_libpath
  11412. else
  11413. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11414. $as_echo_n "(cached) " >&6
  11415. else
  11416. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11417. /* end confdefs.h. */
  11418. int
  11419. main ()
  11420. {
  11421. ;
  11422. return 0;
  11423. }
  11424. _ACEOF
  11425. if ac_fn_cxx_try_link "$LINENO"; then :
  11426. lt_aix_libpath_sed='
  11427. /Import File Strings/,/^$/ {
  11428. /^0/ {
  11429. s/^0 *\([^ ]*\) *$/\1/
  11430. p
  11431. }
  11432. }'
  11433. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11434. # Check for a 64-bit object if we didn't find anything.
  11435. if test -z "$lt_cv_aix_libpath__CXX"; then
  11436. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11437. fi
  11438. fi
  11439. rm -f core conftest.err conftest.$ac_objext \
  11440. conftest$ac_exeext conftest.$ac_ext
  11441. if test -z "$lt_cv_aix_libpath__CXX"; then
  11442. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  11443. fi
  11444. fi
  11445. aix_libpath=$lt_cv_aix_libpath__CXX
  11446. fi
  11447. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11448. 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"
  11449. else
  11450. if test "$host_cpu" = ia64; then
  11451. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  11452. allow_undefined_flag_CXX="-z nodefs"
  11453. 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"
  11454. else
  11455. # Determine the default libpath from the value encoded in an
  11456. # empty executable.
  11457. if test "${lt_cv_aix_libpath+set}" = set; then
  11458. aix_libpath=$lt_cv_aix_libpath
  11459. else
  11460. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11461. $as_echo_n "(cached) " >&6
  11462. else
  11463. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11464. /* end confdefs.h. */
  11465. int
  11466. main ()
  11467. {
  11468. ;
  11469. return 0;
  11470. }
  11471. _ACEOF
  11472. if ac_fn_cxx_try_link "$LINENO"; then :
  11473. lt_aix_libpath_sed='
  11474. /Import File Strings/,/^$/ {
  11475. /^0/ {
  11476. s/^0 *\([^ ]*\) *$/\1/
  11477. p
  11478. }
  11479. }'
  11480. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11481. # Check for a 64-bit object if we didn't find anything.
  11482. if test -z "$lt_cv_aix_libpath__CXX"; then
  11483. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11484. fi
  11485. fi
  11486. rm -f core conftest.err conftest.$ac_objext \
  11487. conftest$ac_exeext conftest.$ac_ext
  11488. if test -z "$lt_cv_aix_libpath__CXX"; then
  11489. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  11490. fi
  11491. fi
  11492. aix_libpath=$lt_cv_aix_libpath__CXX
  11493. fi
  11494. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11495. # Warning - without using the other run time loading flags,
  11496. # -berok will link without error, but may produce a broken library.
  11497. no_undefined_flag_CXX=' ${wl}-bernotok'
  11498. allow_undefined_flag_CXX=' ${wl}-berok'
  11499. if test "$with_gnu_ld" = yes; then
  11500. # We only use this code for GNU lds that support --whole-archive.
  11501. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11502. else
  11503. # Exported symbols can be pulled into shared objects from archives
  11504. whole_archive_flag_spec_CXX='$convenience'
  11505. fi
  11506. archive_cmds_need_lc_CXX=yes
  11507. # This is similar to how AIX traditionally builds its shared
  11508. # libraries.
  11509. 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'
  11510. fi
  11511. fi
  11512. ;;
  11513. beos*)
  11514. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11515. allow_undefined_flag_CXX=unsupported
  11516. # Joseph Beckenbach <[email protected]> says some releases of gcc
  11517. # support --undefined. This deserves some investigation. FIXME
  11518. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11519. else
  11520. ld_shlibs_CXX=no
  11521. fi
  11522. ;;
  11523. chorus*)
  11524. case $cc_basename in
  11525. *)
  11526. # FIXME: insert proper C++ library support
  11527. ld_shlibs_CXX=no
  11528. ;;
  11529. esac
  11530. ;;
  11531. cygwin* | mingw* | pw32* | cegcc*)
  11532. case $GXX,$cc_basename in
  11533. ,cl* | no,cl*)
  11534. # Native MSVC
  11535. # hardcode_libdir_flag_spec is actually meaningless, as there is
  11536. # no search path for DLLs.
  11537. hardcode_libdir_flag_spec_CXX=' '
  11538. allow_undefined_flag_CXX=unsupported
  11539. always_export_symbols_CXX=yes
  11540. file_list_spec_CXX='@'
  11541. # Tell ltmain to make .lib files, not .a files.
  11542. libext=lib
  11543. # Tell ltmain to make .dll files, not .so files.
  11544. shrext_cmds=".dll"
  11545. # FIXME: Setting linknames here is a bad hack.
  11546. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  11547. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11548. $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  11549. else
  11550. $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  11551. fi~
  11552. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  11553. linknames='
  11554. # The linker will not automatically build a static lib if we build a DLL.
  11555. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  11556. enable_shared_with_static_runtimes_CXX=yes
  11557. # Don't use ranlib
  11558. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  11559. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  11560. lt_tool_outputfile="@TOOL_OUTPUT@"~
  11561. case $lt_outputfile in
  11562. *.exe|*.EXE) ;;
  11563. *)
  11564. lt_outputfile="$lt_outputfile.exe"
  11565. lt_tool_outputfile="$lt_tool_outputfile.exe"
  11566. ;;
  11567. esac~
  11568. func_to_tool_file "$lt_outputfile"~
  11569. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  11570. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  11571. $RM "$lt_outputfile.manifest";
  11572. fi'
  11573. ;;
  11574. *)
  11575. # g++
  11576. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  11577. # as there is no search path for DLLs.
  11578. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11579. export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
  11580. allow_undefined_flag_CXX=unsupported
  11581. always_export_symbols_CXX=no
  11582. enable_shared_with_static_runtimes_CXX=yes
  11583. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  11584. 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'
  11585. # If the export-symbols file already is a .def file (1st line
  11586. # is EXPORTS), use it as is; otherwise, prepend...
  11587. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11588. cp $export_symbols $output_objdir/$soname.def;
  11589. else
  11590. echo EXPORTS > $output_objdir/$soname.def;
  11591. cat $export_symbols >> $output_objdir/$soname.def;
  11592. fi~
  11593. $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'
  11594. else
  11595. ld_shlibs_CXX=no
  11596. fi
  11597. ;;
  11598. esac
  11599. ;;
  11600. darwin* | rhapsody*)
  11601. archive_cmds_need_lc_CXX=no
  11602. hardcode_direct_CXX=no
  11603. hardcode_automatic_CXX=yes
  11604. hardcode_shlibpath_var_CXX=unsupported
  11605. if test "$lt_cv_ld_force_load" = "yes"; then
  11606. 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\"`'
  11607. else
  11608. whole_archive_flag_spec_CXX=''
  11609. fi
  11610. link_all_deplibs_CXX=yes
  11611. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  11612. case $cc_basename in
  11613. ifort*) _lt_dar_can_shared=yes ;;
  11614. *) _lt_dar_can_shared=$GCC ;;
  11615. esac
  11616. if test "$_lt_dar_can_shared" = "yes"; then
  11617. output_verbose_link_cmd=func_echo_all
  11618. 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}"
  11619. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  11620. 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}"
  11621. 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}"
  11622. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  11623. 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}"
  11624. 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}"
  11625. fi
  11626. else
  11627. ld_shlibs_CXX=no
  11628. fi
  11629. ;;
  11630. dgux*)
  11631. case $cc_basename in
  11632. ec++*)
  11633. # FIXME: insert proper C++ library support
  11634. ld_shlibs_CXX=no
  11635. ;;
  11636. ghcx*)
  11637. # Green Hills C++ Compiler
  11638. # FIXME: insert proper C++ library support
  11639. ld_shlibs_CXX=no
  11640. ;;
  11641. *)
  11642. # FIXME: insert proper C++ library support
  11643. ld_shlibs_CXX=no
  11644. ;;
  11645. esac
  11646. ;;
  11647. freebsd2.*)
  11648. # C++ shared libraries reported to be fairly broken before
  11649. # switch to ELF
  11650. ld_shlibs_CXX=no
  11651. ;;
  11652. freebsd-elf*)
  11653. archive_cmds_need_lc_CXX=no
  11654. ;;
  11655. freebsd* | dragonfly*)
  11656. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  11657. # conventions
  11658. ld_shlibs_CXX=yes
  11659. ;;
  11660. gnu*)
  11661. ;;
  11662. haiku*)
  11663. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11664. link_all_deplibs_CXX=yes
  11665. ;;
  11666. hpux9*)
  11667. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11668. hardcode_libdir_separator_CXX=:
  11669. export_dynamic_flag_spec_CXX='${wl}-E'
  11670. hardcode_direct_CXX=yes
  11671. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11672. # but as the default
  11673. # location of the library.
  11674. case $cc_basename in
  11675. CC*)
  11676. # FIXME: insert proper C++ library support
  11677. ld_shlibs_CXX=no
  11678. ;;
  11679. aCC*)
  11680. 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'
  11681. # Commands to make compiler produce verbose output that lists
  11682. # what "hidden" libraries, object files and flags are used when
  11683. # linking a shared library.
  11684. #
  11685. # There doesn't appear to be a way to prevent this compiler from
  11686. # explicitly linking system object files so we need to strip them
  11687. # from the output so that they don't get included in the library
  11688. # dependencies.
  11689. 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"'
  11690. ;;
  11691. *)
  11692. if test "$GXX" = yes; then
  11693. 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'
  11694. else
  11695. # FIXME: insert proper C++ library support
  11696. ld_shlibs_CXX=no
  11697. fi
  11698. ;;
  11699. esac
  11700. ;;
  11701. hpux10*|hpux11*)
  11702. if test $with_gnu_ld = no; then
  11703. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11704. hardcode_libdir_separator_CXX=:
  11705. case $host_cpu in
  11706. hppa*64*|ia64*)
  11707. ;;
  11708. *)
  11709. export_dynamic_flag_spec_CXX='${wl}-E'
  11710. ;;
  11711. esac
  11712. fi
  11713. case $host_cpu in
  11714. hppa*64*|ia64*)
  11715. hardcode_direct_CXX=no
  11716. hardcode_shlibpath_var_CXX=no
  11717. ;;
  11718. *)
  11719. hardcode_direct_CXX=yes
  11720. hardcode_direct_absolute_CXX=yes
  11721. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11722. # but as the default
  11723. # location of the library.
  11724. ;;
  11725. esac
  11726. case $cc_basename in
  11727. CC*)
  11728. # FIXME: insert proper C++ library support
  11729. ld_shlibs_CXX=no
  11730. ;;
  11731. aCC*)
  11732. case $host_cpu in
  11733. hppa*64*)
  11734. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11735. ;;
  11736. ia64*)
  11737. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11738. ;;
  11739. *)
  11740. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11741. ;;
  11742. esac
  11743. # Commands to make compiler produce verbose output that lists
  11744. # what "hidden" libraries, object files and flags are used when
  11745. # linking a shared library.
  11746. #
  11747. # There doesn't appear to be a way to prevent this compiler from
  11748. # explicitly linking system object files so we need to strip them
  11749. # from the output so that they don't get included in the library
  11750. # dependencies.
  11751. 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"'
  11752. ;;
  11753. *)
  11754. if test "$GXX" = yes; then
  11755. if test $with_gnu_ld = no; then
  11756. case $host_cpu in
  11757. hppa*64*)
  11758. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11759. ;;
  11760. ia64*)
  11761. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11762. ;;
  11763. *)
  11764. 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'
  11765. ;;
  11766. esac
  11767. fi
  11768. else
  11769. # FIXME: insert proper C++ library support
  11770. ld_shlibs_CXX=no
  11771. fi
  11772. ;;
  11773. esac
  11774. ;;
  11775. interix[3-9]*)
  11776. hardcode_direct_CXX=no
  11777. hardcode_shlibpath_var_CXX=no
  11778. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11779. export_dynamic_flag_spec_CXX='${wl}-E'
  11780. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  11781. # Instead, shared libraries are loaded at an image base (0x10000000 by
  11782. # default) and relocated if they conflict, which is a slow very memory
  11783. # consuming and fragmenting process. To avoid this, we pick a random,
  11784. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  11785. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  11786. 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'
  11787. 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'
  11788. ;;
  11789. irix5* | irix6*)
  11790. case $cc_basename in
  11791. CC*)
  11792. # SGI C++
  11793. 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'
  11794. # Archives containing C++ object files must be created using
  11795. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  11796. # necessary to make sure instantiated templates are included
  11797. # in the archive.
  11798. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  11799. ;;
  11800. *)
  11801. if test "$GXX" = yes; then
  11802. if test "$with_gnu_ld" = no; then
  11803. 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'
  11804. else
  11805. 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'
  11806. fi
  11807. fi
  11808. link_all_deplibs_CXX=yes
  11809. ;;
  11810. esac
  11811. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11812. hardcode_libdir_separator_CXX=:
  11813. inherit_rpath_CXX=yes
  11814. ;;
  11815. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  11816. case $cc_basename in
  11817. KCC*)
  11818. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11819. # KCC will only create a shared library if the output file
  11820. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11821. # to its proper name (with version) after linking.
  11822. 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'
  11823. 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'
  11824. # Commands to make compiler produce verbose output that lists
  11825. # what "hidden" libraries, object files and flags are used when
  11826. # linking a shared library.
  11827. #
  11828. # There doesn't appear to be a way to prevent this compiler from
  11829. # explicitly linking system object files so we need to strip them
  11830. # from the output so that they don't get included in the library
  11831. # dependencies.
  11832. 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"'
  11833. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11834. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11835. # Archives containing C++ object files must be created using
  11836. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  11837. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  11838. ;;
  11839. icpc* | ecpc* )
  11840. # Intel C++
  11841. with_gnu_ld=yes
  11842. # version 8.0 and above of icpc choke on multiply defined symbols
  11843. # if we add $predep_objects and $postdep_objects, however 7.1 and
  11844. # earlier do not add the objects themselves.
  11845. case `$CC -V 2>&1` in
  11846. *"Version 7."*)
  11847. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11848. 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'
  11849. ;;
  11850. *) # Version 8.0 or newer
  11851. tmp_idyn=
  11852. case $host_cpu in
  11853. ia64*) tmp_idyn=' -i_dynamic';;
  11854. esac
  11855. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11856. 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'
  11857. ;;
  11858. esac
  11859. archive_cmds_need_lc_CXX=no
  11860. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11861. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11862. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11863. ;;
  11864. pgCC* | pgcpp*)
  11865. # Portland Group C++ compiler
  11866. case `$CC -V` in
  11867. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  11868. prelink_cmds_CXX='tpldir=Template.dir~
  11869. rm -rf $tpldir~
  11870. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  11871. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  11872. old_archive_cmds_CXX='tpldir=Template.dir~
  11873. rm -rf $tpldir~
  11874. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  11875. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  11876. $RANLIB $oldlib'
  11877. archive_cmds_CXX='tpldir=Template.dir~
  11878. rm -rf $tpldir~
  11879. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11880. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11881. archive_expsym_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 ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
  11885. ;;
  11886. *) # Version 6 and above use weak symbols
  11887. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11888. 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'
  11889. ;;
  11890. esac
  11891. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  11892. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11893. 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'
  11894. ;;
  11895. cxx*)
  11896. # Compaq C++
  11897. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11898. 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'
  11899. runpath_var=LD_RUN_PATH
  11900. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11901. hardcode_libdir_separator_CXX=:
  11902. # Commands to make compiler produce verbose output that lists
  11903. # what "hidden" libraries, object files and flags are used when
  11904. # linking a shared library.
  11905. #
  11906. # There doesn't appear to be a way to prevent this compiler from
  11907. # explicitly linking system object files so we need to strip them
  11908. # from the output so that they don't get included in the library
  11909. # dependencies.
  11910. 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'
  11911. ;;
  11912. xl* | mpixl* | bgxl*)
  11913. # IBM XL 8.0 on PPC, with GNU ld
  11914. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11915. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11916. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11917. if test "x$supports_anon_versioning" = xyes; then
  11918. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  11919. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  11920. echo "local: *; };" >> $output_objdir/$libname.ver~
  11921. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  11922. fi
  11923. ;;
  11924. *)
  11925. case `$CC -V 2>&1 | sed 5q` in
  11926. *Sun\ C*)
  11927. # Sun C++ 5.9
  11928. no_undefined_flag_CXX=' -zdefs'
  11929. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11930. 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'
  11931. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11932. 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'
  11933. compiler_needs_object_CXX=yes
  11934. # Not sure whether something based on
  11935. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  11936. # would be better.
  11937. output_verbose_link_cmd='func_echo_all'
  11938. # Archives containing C++ object files must be created using
  11939. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11940. # necessary to make sure instantiated templates are included
  11941. # in the archive.
  11942. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11943. ;;
  11944. esac
  11945. ;;
  11946. esac
  11947. ;;
  11948. lynxos*)
  11949. # FIXME: insert proper C++ library support
  11950. ld_shlibs_CXX=no
  11951. ;;
  11952. m88k*)
  11953. # FIXME: insert proper C++ library support
  11954. ld_shlibs_CXX=no
  11955. ;;
  11956. mvs*)
  11957. case $cc_basename in
  11958. cxx*)
  11959. # FIXME: insert proper C++ library support
  11960. ld_shlibs_CXX=no
  11961. ;;
  11962. *)
  11963. # FIXME: insert proper C++ library support
  11964. ld_shlibs_CXX=no
  11965. ;;
  11966. esac
  11967. ;;
  11968. netbsd*)
  11969. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11970. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  11971. wlarc=
  11972. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11973. hardcode_direct_CXX=yes
  11974. hardcode_shlibpath_var_CXX=no
  11975. fi
  11976. # Workaround some broken pre-1.5 toolchains
  11977. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  11978. ;;
  11979. *nto* | *qnx*)
  11980. ld_shlibs_CXX=yes
  11981. ;;
  11982. openbsd2*)
  11983. # C++ shared libraries are fairly broken
  11984. ld_shlibs_CXX=no
  11985. ;;
  11986. openbsd*)
  11987. if test -f /usr/libexec/ld.so; then
  11988. hardcode_direct_CXX=yes
  11989. hardcode_shlibpath_var_CXX=no
  11990. hardcode_direct_absolute_CXX=yes
  11991. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11992. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11993. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11994. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  11995. export_dynamic_flag_spec_CXX='${wl}-E'
  11996. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11997. fi
  11998. output_verbose_link_cmd=func_echo_all
  11999. else
  12000. ld_shlibs_CXX=no
  12001. fi
  12002. ;;
  12003. osf3* | osf4* | osf5*)
  12004. case $cc_basename in
  12005. KCC*)
  12006. # Kuck and Associates, Inc. (KAI) C++ Compiler
  12007. # KCC will only create a shared library if the output file
  12008. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  12009. # to its proper name (with version) after linking.
  12010. 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'
  12011. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  12012. hardcode_libdir_separator_CXX=:
  12013. # Archives containing C++ object files must be created using
  12014. # the KAI C++ compiler.
  12015. case $host in
  12016. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  12017. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  12018. esac
  12019. ;;
  12020. RCC*)
  12021. # Rational C++ 2.4.1
  12022. # FIXME: insert proper C++ library support
  12023. ld_shlibs_CXX=no
  12024. ;;
  12025. cxx*)
  12026. case $host in
  12027. osf3*)
  12028. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  12029. 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'
  12030. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  12031. ;;
  12032. *)
  12033. allow_undefined_flag_CXX=' -expect_unresolved \*'
  12034. 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'
  12035. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  12036. echo "-hidden">> $lib.exp~
  12037. $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~
  12038. $RM $lib.exp'
  12039. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  12040. ;;
  12041. esac
  12042. hardcode_libdir_separator_CXX=:
  12043. # Commands to make compiler produce verbose output that lists
  12044. # what "hidden" libraries, object files and flags are used when
  12045. # linking a shared library.
  12046. #
  12047. # There doesn't appear to be a way to prevent this compiler from
  12048. # explicitly linking system object files so we need to strip them
  12049. # from the output so that they don't get included in the library
  12050. # dependencies.
  12051. 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"'
  12052. ;;
  12053. *)
  12054. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  12055. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  12056. case $host in
  12057. osf3*)
  12058. 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'
  12059. ;;
  12060. *)
  12061. 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'
  12062. ;;
  12063. esac
  12064. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  12065. hardcode_libdir_separator_CXX=:
  12066. # Commands to make compiler produce verbose output that lists
  12067. # what "hidden" libraries, object files and flags are used when
  12068. # linking a shared library.
  12069. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  12070. else
  12071. # FIXME: insert proper C++ library support
  12072. ld_shlibs_CXX=no
  12073. fi
  12074. ;;
  12075. esac
  12076. ;;
  12077. psos*)
  12078. # FIXME: insert proper C++ library support
  12079. ld_shlibs_CXX=no
  12080. ;;
  12081. sunos4*)
  12082. case $cc_basename in
  12083. CC*)
  12084. # Sun C++ 4.x
  12085. # FIXME: insert proper C++ library support
  12086. ld_shlibs_CXX=no
  12087. ;;
  12088. lcc*)
  12089. # Lucid
  12090. # FIXME: insert proper C++ library support
  12091. ld_shlibs_CXX=no
  12092. ;;
  12093. *)
  12094. # FIXME: insert proper C++ library support
  12095. ld_shlibs_CXX=no
  12096. ;;
  12097. esac
  12098. ;;
  12099. solaris*)
  12100. case $cc_basename in
  12101. CC* | sunCC*)
  12102. # Sun C++ 4.2, 5.x and Centerline C++
  12103. archive_cmds_need_lc_CXX=yes
  12104. no_undefined_flag_CXX=' -zdefs'
  12105. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12106. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12107. $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'
  12108. hardcode_libdir_flag_spec_CXX='-R$libdir'
  12109. hardcode_shlibpath_var_CXX=no
  12110. case $host_os in
  12111. solaris2.[0-5] | solaris2.[0-5].*) ;;
  12112. *)
  12113. # The compiler driver will combine and reorder linker options,
  12114. # but understands `-z linker_flag'.
  12115. # Supported since Solaris 2.6 (maybe 2.5.1?)
  12116. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  12117. ;;
  12118. esac
  12119. link_all_deplibs_CXX=yes
  12120. output_verbose_link_cmd='func_echo_all'
  12121. # Archives containing C++ object files must be created using
  12122. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  12123. # necessary to make sure instantiated templates are included
  12124. # in the archive.
  12125. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  12126. ;;
  12127. gcx*)
  12128. # Green Hills C++ Compiler
  12129. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  12130. # The C++ compiler must be used to create the archive.
  12131. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  12132. ;;
  12133. *)
  12134. # GNU C++ compiler with Solaris linker
  12135. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  12136. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  12137. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  12138. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  12139. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12140. $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  12141. # Commands to make compiler produce verbose output that lists
  12142. # what "hidden" libraries, object files and flags are used when
  12143. # linking a shared library.
  12144. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  12145. else
  12146. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  12147. # platform.
  12148. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  12149. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12150. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  12151. # Commands to make compiler produce verbose output that lists
  12152. # what "hidden" libraries, object files and flags are used when
  12153. # linking a shared library.
  12154. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  12155. fi
  12156. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  12157. case $host_os in
  12158. solaris2.[0-5] | solaris2.[0-5].*) ;;
  12159. *)
  12160. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  12161. ;;
  12162. esac
  12163. fi
  12164. ;;
  12165. esac
  12166. ;;
  12167. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  12168. no_undefined_flag_CXX='${wl}-z,text'
  12169. archive_cmds_need_lc_CXX=no
  12170. hardcode_shlibpath_var_CXX=no
  12171. runpath_var='LD_RUN_PATH'
  12172. case $cc_basename in
  12173. CC*)
  12174. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12175. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12176. ;;
  12177. *)
  12178. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12179. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12180. ;;
  12181. esac
  12182. ;;
  12183. sysv5* | sco3.2v5* | sco5v6*)
  12184. # Note: We can NOT use -z defs as we might desire, because we do not
  12185. # link with -lc, and that would cause any symbols used from libc to
  12186. # always be unresolved, which means just about no library would
  12187. # ever link correctly. If we're not using GNU ld we use -z text
  12188. # though, which does catch some bad symbols but isn't as heavy-handed
  12189. # as -z defs.
  12190. no_undefined_flag_CXX='${wl}-z,text'
  12191. allow_undefined_flag_CXX='${wl}-z,nodefs'
  12192. archive_cmds_need_lc_CXX=no
  12193. hardcode_shlibpath_var_CXX=no
  12194. hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  12195. hardcode_libdir_separator_CXX=':'
  12196. link_all_deplibs_CXX=yes
  12197. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  12198. runpath_var='LD_RUN_PATH'
  12199. case $cc_basename in
  12200. CC*)
  12201. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12202. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12203. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  12204. '"$old_archive_cmds_CXX"
  12205. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  12206. '"$reload_cmds_CXX"
  12207. ;;
  12208. *)
  12209. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12210. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12211. ;;
  12212. esac
  12213. ;;
  12214. tandem*)
  12215. case $cc_basename in
  12216. NCC*)
  12217. # NonStop-UX NCC 3.20
  12218. # FIXME: insert proper C++ library support
  12219. ld_shlibs_CXX=no
  12220. ;;
  12221. *)
  12222. # FIXME: insert proper C++ library support
  12223. ld_shlibs_CXX=no
  12224. ;;
  12225. esac
  12226. ;;
  12227. vxworks*)
  12228. # FIXME: insert proper C++ library support
  12229. ld_shlibs_CXX=no
  12230. ;;
  12231. *)
  12232. # FIXME: insert proper C++ library support
  12233. ld_shlibs_CXX=no
  12234. ;;
  12235. esac
  12236. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12237. $as_echo "$ld_shlibs_CXX" >&6; }
  12238. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12239. GCC_CXX="$GXX"
  12240. LD_CXX="$LD"
  12241. ## CAVEAT EMPTOR:
  12242. ## There is no encapsulation within the following macros, do not change
  12243. ## the running order or otherwise move them around unless you know exactly
  12244. ## what you are doing...
  12245. # Dependencies to place before and after the object being linked:
  12246. predep_objects_CXX=
  12247. postdep_objects_CXX=
  12248. predeps_CXX=
  12249. postdeps_CXX=
  12250. compiler_lib_search_path_CXX=
  12251. cat > conftest.$ac_ext <<_LT_EOF
  12252. class Foo
  12253. {
  12254. public:
  12255. Foo (void) { a = 0; }
  12256. private:
  12257. int a;
  12258. };
  12259. _LT_EOF
  12260. _lt_libdeps_save_CFLAGS=$CFLAGS
  12261. case "$CC $CFLAGS " in #(
  12262. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  12263. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  12264. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  12265. esac
  12266. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12267. (eval $ac_compile) 2>&5
  12268. ac_status=$?
  12269. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12270. test $ac_status = 0; }; then
  12271. # Parse the compiler output and extract the necessary
  12272. # objects, libraries and library flags.
  12273. # Sentinel used to keep track of whether or not we are before
  12274. # the conftest object file.
  12275. pre_test_object_deps_done=no
  12276. for p in `eval "$output_verbose_link_cmd"`; do
  12277. case ${prev}${p} in
  12278. -L* | -R* | -l*)
  12279. # Some compilers place space between "-{L,R}" and the path.
  12280. # Remove the space.
  12281. if test $p = "-L" ||
  12282. test $p = "-R"; then
  12283. prev=$p
  12284. continue
  12285. fi
  12286. # Expand the sysroot to ease extracting the directories later.
  12287. if test -z "$prev"; then
  12288. case $p in
  12289. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  12290. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  12291. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  12292. esac
  12293. fi
  12294. case $p in
  12295. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  12296. esac
  12297. if test "$pre_test_object_deps_done" = no; then
  12298. case ${prev} in
  12299. -L | -R)
  12300. # Internal compiler library paths should come after those
  12301. # provided the user. The postdeps already come after the
  12302. # user supplied libs so there is no need to process them.
  12303. if test -z "$compiler_lib_search_path_CXX"; then
  12304. compiler_lib_search_path_CXX="${prev}${p}"
  12305. else
  12306. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  12307. fi
  12308. ;;
  12309. # The "-l" case would never come before the object being
  12310. # linked, so don't bother handling this case.
  12311. esac
  12312. else
  12313. if test -z "$postdeps_CXX"; then
  12314. postdeps_CXX="${prev}${p}"
  12315. else
  12316. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  12317. fi
  12318. fi
  12319. prev=
  12320. ;;
  12321. *.lto.$objext) ;; # Ignore GCC LTO objects
  12322. *.$objext)
  12323. # This assumes that the test object file only shows up
  12324. # once in the compiler output.
  12325. if test "$p" = "conftest.$objext"; then
  12326. pre_test_object_deps_done=yes
  12327. continue
  12328. fi
  12329. if test "$pre_test_object_deps_done" = no; then
  12330. if test -z "$predep_objects_CXX"; then
  12331. predep_objects_CXX="$p"
  12332. else
  12333. predep_objects_CXX="$predep_objects_CXX $p"
  12334. fi
  12335. else
  12336. if test -z "$postdep_objects_CXX"; then
  12337. postdep_objects_CXX="$p"
  12338. else
  12339. postdep_objects_CXX="$postdep_objects_CXX $p"
  12340. fi
  12341. fi
  12342. ;;
  12343. *) ;; # Ignore the rest.
  12344. esac
  12345. done
  12346. # Clean up.
  12347. rm -f a.out a.exe
  12348. else
  12349. echo "libtool.m4: error: problem compiling CXX test program"
  12350. fi
  12351. $RM -f confest.$objext
  12352. CFLAGS=$_lt_libdeps_save_CFLAGS
  12353. # PORTME: override above test on systems where it is broken
  12354. case $host_os in
  12355. interix[3-9]*)
  12356. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  12357. # hack all around it, let's just trust "g++" to DTRT.
  12358. predep_objects_CXX=
  12359. postdep_objects_CXX=
  12360. postdeps_CXX=
  12361. ;;
  12362. linux*)
  12363. case `$CC -V 2>&1 | sed 5q` in
  12364. *Sun\ C*)
  12365. # Sun C++ 5.9
  12366. # The more standards-conforming stlport4 library is
  12367. # incompatible with the Cstd library. Avoid specifying
  12368. # it if it's in CXXFLAGS. Ignore libCrun as
  12369. # -library=stlport4 depends on it.
  12370. case " $CXX $CXXFLAGS " in
  12371. *" -library=stlport4 "*)
  12372. solaris_use_stlport4=yes
  12373. ;;
  12374. esac
  12375. if test "$solaris_use_stlport4" != yes; then
  12376. postdeps_CXX='-library=Cstd -library=Crun'
  12377. fi
  12378. ;;
  12379. esac
  12380. ;;
  12381. solaris*)
  12382. case $cc_basename in
  12383. CC* | sunCC*)
  12384. # The more standards-conforming stlport4 library is
  12385. # incompatible with the Cstd library. Avoid specifying
  12386. # it if it's in CXXFLAGS. Ignore libCrun as
  12387. # -library=stlport4 depends on it.
  12388. case " $CXX $CXXFLAGS " in
  12389. *" -library=stlport4 "*)
  12390. solaris_use_stlport4=yes
  12391. ;;
  12392. esac
  12393. # Adding this requires a known-good setup of shared libraries for
  12394. # Sun compiler versions before 5.6, else PIC objects from an old
  12395. # archive will be linked into the output, leading to subtle bugs.
  12396. if test "$solaris_use_stlport4" != yes; then
  12397. postdeps_CXX='-library=Cstd -library=Crun'
  12398. fi
  12399. ;;
  12400. esac
  12401. ;;
  12402. esac
  12403. case " $postdeps_CXX " in
  12404. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  12405. esac
  12406. compiler_lib_search_dirs_CXX=
  12407. if test -n "${compiler_lib_search_path_CXX}"; then
  12408. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  12409. fi
  12410. lt_prog_compiler_wl_CXX=
  12411. lt_prog_compiler_pic_CXX=
  12412. lt_prog_compiler_static_CXX=
  12413. # C++ specific cases for pic, static, wl, etc.
  12414. if test "$GXX" = yes; then
  12415. lt_prog_compiler_wl_CXX='-Wl,'
  12416. lt_prog_compiler_static_CXX='-static'
  12417. case $host_os in
  12418. aix*)
  12419. # All AIX code is PIC.
  12420. if test "$host_cpu" = ia64; then
  12421. # AIX 5 now supports IA64 processor
  12422. lt_prog_compiler_static_CXX='-Bstatic'
  12423. fi
  12424. ;;
  12425. amigaos*)
  12426. case $host_cpu in
  12427. powerpc)
  12428. # see comment about AmigaOS4 .so support
  12429. lt_prog_compiler_pic_CXX='-fPIC'
  12430. ;;
  12431. m68k)
  12432. # FIXME: we need at least 68020 code to build shared libraries, but
  12433. # adding the `-m68020' flag to GCC prevents building anything better,
  12434. # like `-m68040'.
  12435. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  12436. ;;
  12437. esac
  12438. ;;
  12439. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  12440. # PIC is the default for these OSes.
  12441. ;;
  12442. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12443. # This hack is so that the source file can tell whether it is being
  12444. # built for inclusion in a dll (and should export symbols for example).
  12445. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  12446. # (--disable-auto-import) libraries
  12447. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12448. ;;
  12449. darwin* | rhapsody*)
  12450. # PIC is the default on this platform
  12451. # Common symbols not allowed in MH_DYLIB files
  12452. lt_prog_compiler_pic_CXX='-fno-common'
  12453. ;;
  12454. *djgpp*)
  12455. # DJGPP does not support shared libraries at all
  12456. lt_prog_compiler_pic_CXX=
  12457. ;;
  12458. haiku*)
  12459. # PIC is the default for Haiku.
  12460. # The "-static" flag exists, but is broken.
  12461. lt_prog_compiler_static_CXX=
  12462. ;;
  12463. interix[3-9]*)
  12464. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  12465. # Instead, we relocate shared libraries at runtime.
  12466. ;;
  12467. sysv4*MP*)
  12468. if test -d /usr/nec; then
  12469. lt_prog_compiler_pic_CXX=-Kconform_pic
  12470. fi
  12471. ;;
  12472. hpux*)
  12473. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  12474. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  12475. # sets the default TLS model and affects inlining.
  12476. case $host_cpu in
  12477. hppa*64*)
  12478. ;;
  12479. *)
  12480. lt_prog_compiler_pic_CXX='-fPIC'
  12481. ;;
  12482. esac
  12483. ;;
  12484. *qnx* | *nto*)
  12485. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12486. # it will coredump.
  12487. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12488. ;;
  12489. *)
  12490. lt_prog_compiler_pic_CXX='-fPIC'
  12491. ;;
  12492. esac
  12493. else
  12494. case $host_os in
  12495. aix[4-9]*)
  12496. # All AIX code is PIC.
  12497. if test "$host_cpu" = ia64; then
  12498. # AIX 5 now supports IA64 processor
  12499. lt_prog_compiler_static_CXX='-Bstatic'
  12500. else
  12501. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  12502. fi
  12503. ;;
  12504. chorus*)
  12505. case $cc_basename in
  12506. cxch68*)
  12507. # Green Hills C++ Compiler
  12508. # _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"
  12509. ;;
  12510. esac
  12511. ;;
  12512. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12513. # This hack is so that the source file can tell whether it is being
  12514. # built for inclusion in a dll (and should export symbols for example).
  12515. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12516. ;;
  12517. dgux*)
  12518. case $cc_basename in
  12519. ec++*)
  12520. lt_prog_compiler_pic_CXX='-KPIC'
  12521. ;;
  12522. ghcx*)
  12523. # Green Hills C++ Compiler
  12524. lt_prog_compiler_pic_CXX='-pic'
  12525. ;;
  12526. *)
  12527. ;;
  12528. esac
  12529. ;;
  12530. freebsd* | dragonfly*)
  12531. # FreeBSD uses GNU C++
  12532. ;;
  12533. hpux9* | hpux10* | hpux11*)
  12534. case $cc_basename in
  12535. CC*)
  12536. lt_prog_compiler_wl_CXX='-Wl,'
  12537. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12538. if test "$host_cpu" != ia64; then
  12539. lt_prog_compiler_pic_CXX='+Z'
  12540. fi
  12541. ;;
  12542. aCC*)
  12543. lt_prog_compiler_wl_CXX='-Wl,'
  12544. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12545. case $host_cpu in
  12546. hppa*64*|ia64*)
  12547. # +Z the default
  12548. ;;
  12549. *)
  12550. lt_prog_compiler_pic_CXX='+Z'
  12551. ;;
  12552. esac
  12553. ;;
  12554. *)
  12555. ;;
  12556. esac
  12557. ;;
  12558. interix*)
  12559. # This is c89, which is MS Visual C++ (no shared libs)
  12560. # Anyone wants to do a port?
  12561. ;;
  12562. irix5* | irix6* | nonstopux*)
  12563. case $cc_basename in
  12564. CC*)
  12565. lt_prog_compiler_wl_CXX='-Wl,'
  12566. lt_prog_compiler_static_CXX='-non_shared'
  12567. # CC pic flag -KPIC is the default.
  12568. ;;
  12569. *)
  12570. ;;
  12571. esac
  12572. ;;
  12573. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  12574. case $cc_basename in
  12575. KCC*)
  12576. # KAI C++ Compiler
  12577. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12578. lt_prog_compiler_pic_CXX='-fPIC'
  12579. ;;
  12580. ecpc* )
  12581. # old Intel C++ for x86_64 which still supported -KPIC.
  12582. lt_prog_compiler_wl_CXX='-Wl,'
  12583. lt_prog_compiler_pic_CXX='-KPIC'
  12584. lt_prog_compiler_static_CXX='-static'
  12585. ;;
  12586. icpc* )
  12587. # Intel C++, used to be incompatible with GCC.
  12588. # ICC 10 doesn't accept -KPIC any more.
  12589. lt_prog_compiler_wl_CXX='-Wl,'
  12590. lt_prog_compiler_pic_CXX='-fPIC'
  12591. lt_prog_compiler_static_CXX='-static'
  12592. ;;
  12593. pgCC* | pgcpp*)
  12594. # Portland Group C++ compiler
  12595. lt_prog_compiler_wl_CXX='-Wl,'
  12596. lt_prog_compiler_pic_CXX='-fpic'
  12597. lt_prog_compiler_static_CXX='-Bstatic'
  12598. ;;
  12599. cxx*)
  12600. # Compaq C++
  12601. # Make sure the PIC flag is empty. It appears that all Alpha
  12602. # Linux and Compaq Tru64 Unix objects are PIC.
  12603. lt_prog_compiler_pic_CXX=
  12604. lt_prog_compiler_static_CXX='-non_shared'
  12605. ;;
  12606. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  12607. # IBM XL 8.0, 9.0 on PPC and BlueGene
  12608. lt_prog_compiler_wl_CXX='-Wl,'
  12609. lt_prog_compiler_pic_CXX='-qpic'
  12610. lt_prog_compiler_static_CXX='-qstaticlink'
  12611. ;;
  12612. *)
  12613. case `$CC -V 2>&1 | sed 5q` in
  12614. *Sun\ C*)
  12615. # Sun C++ 5.9
  12616. lt_prog_compiler_pic_CXX='-KPIC'
  12617. lt_prog_compiler_static_CXX='-Bstatic'
  12618. lt_prog_compiler_wl_CXX='-Qoption ld '
  12619. ;;
  12620. esac
  12621. ;;
  12622. esac
  12623. ;;
  12624. lynxos*)
  12625. ;;
  12626. m88k*)
  12627. ;;
  12628. mvs*)
  12629. case $cc_basename in
  12630. cxx*)
  12631. lt_prog_compiler_pic_CXX='-W c,exportall'
  12632. ;;
  12633. *)
  12634. ;;
  12635. esac
  12636. ;;
  12637. netbsd*)
  12638. ;;
  12639. *qnx* | *nto*)
  12640. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12641. # it will coredump.
  12642. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12643. ;;
  12644. osf3* | osf4* | osf5*)
  12645. case $cc_basename in
  12646. KCC*)
  12647. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12648. ;;
  12649. RCC*)
  12650. # Rational C++ 2.4.1
  12651. lt_prog_compiler_pic_CXX='-pic'
  12652. ;;
  12653. cxx*)
  12654. # Digital/Compaq C++
  12655. lt_prog_compiler_wl_CXX='-Wl,'
  12656. # Make sure the PIC flag is empty. It appears that all Alpha
  12657. # Linux and Compaq Tru64 Unix objects are PIC.
  12658. lt_prog_compiler_pic_CXX=
  12659. lt_prog_compiler_static_CXX='-non_shared'
  12660. ;;
  12661. *)
  12662. ;;
  12663. esac
  12664. ;;
  12665. psos*)
  12666. ;;
  12667. solaris*)
  12668. case $cc_basename in
  12669. CC* | sunCC*)
  12670. # Sun C++ 4.2, 5.x and Centerline C++
  12671. lt_prog_compiler_pic_CXX='-KPIC'
  12672. lt_prog_compiler_static_CXX='-Bstatic'
  12673. lt_prog_compiler_wl_CXX='-Qoption ld '
  12674. ;;
  12675. gcx*)
  12676. # Green Hills C++ Compiler
  12677. lt_prog_compiler_pic_CXX='-PIC'
  12678. ;;
  12679. *)
  12680. ;;
  12681. esac
  12682. ;;
  12683. sunos4*)
  12684. case $cc_basename in
  12685. CC*)
  12686. # Sun C++ 4.x
  12687. lt_prog_compiler_pic_CXX='-pic'
  12688. lt_prog_compiler_static_CXX='-Bstatic'
  12689. ;;
  12690. lcc*)
  12691. # Lucid
  12692. lt_prog_compiler_pic_CXX='-pic'
  12693. ;;
  12694. *)
  12695. ;;
  12696. esac
  12697. ;;
  12698. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  12699. case $cc_basename in
  12700. CC*)
  12701. lt_prog_compiler_wl_CXX='-Wl,'
  12702. lt_prog_compiler_pic_CXX='-KPIC'
  12703. lt_prog_compiler_static_CXX='-Bstatic'
  12704. ;;
  12705. esac
  12706. ;;
  12707. tandem*)
  12708. case $cc_basename in
  12709. NCC*)
  12710. # NonStop-UX NCC 3.20
  12711. lt_prog_compiler_pic_CXX='-KPIC'
  12712. ;;
  12713. *)
  12714. ;;
  12715. esac
  12716. ;;
  12717. vxworks*)
  12718. ;;
  12719. *)
  12720. lt_prog_compiler_can_build_shared_CXX=no
  12721. ;;
  12722. esac
  12723. fi
  12724. case $host_os in
  12725. # For platforms which do not support PIC, -DPIC is meaningless:
  12726. *djgpp*)
  12727. lt_prog_compiler_pic_CXX=
  12728. ;;
  12729. *)
  12730. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  12731. ;;
  12732. esac
  12733. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  12734. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  12735. if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
  12736. $as_echo_n "(cached) " >&6
  12737. else
  12738. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  12739. fi
  12740. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  12741. $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
  12742. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  12743. #
  12744. # Check to make sure the PIC flag actually works.
  12745. #
  12746. if test -n "$lt_prog_compiler_pic_CXX"; then
  12747. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  12748. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  12749. if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  12750. $as_echo_n "(cached) " >&6
  12751. else
  12752. lt_cv_prog_compiler_pic_works_CXX=no
  12753. ac_outfile=conftest.$ac_objext
  12754. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12755. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  12756. # Insert the option either (1) after the last *FLAGS variable, or
  12757. # (2) before a word containing "conftest.", or (3) at the end.
  12758. # Note that $ac_compile itself does not contain backslashes and begins
  12759. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12760. # The option is referenced via a variable to avoid confusing sed.
  12761. lt_compile=`echo "$ac_compile" | $SED \
  12762. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12763. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12764. -e 's:$: $lt_compiler_flag:'`
  12765. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12766. (eval "$lt_compile" 2>conftest.err)
  12767. ac_status=$?
  12768. cat conftest.err >&5
  12769. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12770. if (exit $ac_status) && test -s "$ac_outfile"; then
  12771. # The compiler can only warn and ignore the option if not recognized
  12772. # So say no if there are warnings other than the usual output.
  12773. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  12774. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12775. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  12776. lt_cv_prog_compiler_pic_works_CXX=yes
  12777. fi
  12778. fi
  12779. $RM conftest*
  12780. fi
  12781. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  12782. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  12783. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  12784. case $lt_prog_compiler_pic_CXX in
  12785. "" | " "*) ;;
  12786. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  12787. esac
  12788. else
  12789. lt_prog_compiler_pic_CXX=
  12790. lt_prog_compiler_can_build_shared_CXX=no
  12791. fi
  12792. fi
  12793. #
  12794. # Check to make sure the static flag actually works.
  12795. #
  12796. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  12797. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  12798. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  12799. if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  12800. $as_echo_n "(cached) " >&6
  12801. else
  12802. lt_cv_prog_compiler_static_works_CXX=no
  12803. save_LDFLAGS="$LDFLAGS"
  12804. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  12805. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  12806. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  12807. # The linker can only warn and ignore the option if not recognized
  12808. # So say no if there are warnings
  12809. if test -s conftest.err; then
  12810. # Append any errors to the config.log.
  12811. cat conftest.err 1>&5
  12812. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  12813. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12814. if diff conftest.exp conftest.er2 >/dev/null; then
  12815. lt_cv_prog_compiler_static_works_CXX=yes
  12816. fi
  12817. else
  12818. lt_cv_prog_compiler_static_works_CXX=yes
  12819. fi
  12820. fi
  12821. $RM -r conftest*
  12822. LDFLAGS="$save_LDFLAGS"
  12823. fi
  12824. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  12825. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  12826. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  12827. :
  12828. else
  12829. lt_prog_compiler_static_CXX=
  12830. fi
  12831. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12832. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12833. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12834. $as_echo_n "(cached) " >&6
  12835. else
  12836. lt_cv_prog_compiler_c_o_CXX=no
  12837. $RM -r conftest 2>/dev/null
  12838. mkdir conftest
  12839. cd conftest
  12840. mkdir out
  12841. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12842. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12843. # Insert the option either (1) after the last *FLAGS variable, or
  12844. # (2) before a word containing "conftest.", or (3) at the end.
  12845. # Note that $ac_compile itself does not contain backslashes and begins
  12846. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12847. lt_compile=`echo "$ac_compile" | $SED \
  12848. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12849. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12850. -e 's:$: $lt_compiler_flag:'`
  12851. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12852. (eval "$lt_compile" 2>out/conftest.err)
  12853. ac_status=$?
  12854. cat out/conftest.err >&5
  12855. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12856. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12857. then
  12858. # The compiler can only warn and ignore the option if not recognized
  12859. # So say no if there are warnings
  12860. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12861. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12862. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12863. lt_cv_prog_compiler_c_o_CXX=yes
  12864. fi
  12865. fi
  12866. chmod u+w . 2>&5
  12867. $RM conftest*
  12868. # SGI C++ compiler will create directory out/ii_files/ for
  12869. # template instantiation
  12870. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12871. $RM out/* && rmdir out
  12872. cd ..
  12873. $RM -r conftest
  12874. $RM conftest*
  12875. fi
  12876. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12877. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12878. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12879. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12880. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12881. $as_echo_n "(cached) " >&6
  12882. else
  12883. lt_cv_prog_compiler_c_o_CXX=no
  12884. $RM -r conftest 2>/dev/null
  12885. mkdir conftest
  12886. cd conftest
  12887. mkdir out
  12888. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12889. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12890. # Insert the option either (1) after the last *FLAGS variable, or
  12891. # (2) before a word containing "conftest.", or (3) at the end.
  12892. # Note that $ac_compile itself does not contain backslashes and begins
  12893. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12894. lt_compile=`echo "$ac_compile" | $SED \
  12895. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12896. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12897. -e 's:$: $lt_compiler_flag:'`
  12898. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12899. (eval "$lt_compile" 2>out/conftest.err)
  12900. ac_status=$?
  12901. cat out/conftest.err >&5
  12902. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12903. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12904. then
  12905. # The compiler can only warn and ignore the option if not recognized
  12906. # So say no if there are warnings
  12907. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12908. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12909. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12910. lt_cv_prog_compiler_c_o_CXX=yes
  12911. fi
  12912. fi
  12913. chmod u+w . 2>&5
  12914. $RM conftest*
  12915. # SGI C++ compiler will create directory out/ii_files/ for
  12916. # template instantiation
  12917. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12918. $RM out/* && rmdir out
  12919. cd ..
  12920. $RM -r conftest
  12921. $RM conftest*
  12922. fi
  12923. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12924. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12925. hard_links="nottested"
  12926. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  12927. # do not overwrite the value of need_locks provided by the user
  12928. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  12929. $as_echo_n "checking if we can lock with hard links... " >&6; }
  12930. hard_links=yes
  12931. $RM conftest*
  12932. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12933. touch conftest.a
  12934. ln conftest.a conftest.b 2>&5 || hard_links=no
  12935. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12936. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  12937. $as_echo "$hard_links" >&6; }
  12938. if test "$hard_links" = no; then
  12939. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  12940. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  12941. need_locks=warn
  12942. fi
  12943. else
  12944. need_locks=no
  12945. fi
  12946. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12947. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12948. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12949. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  12950. case $host_os in
  12951. aix[4-9]*)
  12952. # If we're using GNU nm, then we don't want the "-C" option.
  12953. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  12954. # Also, AIX nm treats weak defined symbols like other global defined
  12955. # symbols, whereas GNU nm marks them as "W".
  12956. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  12957. 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'
  12958. else
  12959. 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'
  12960. fi
  12961. ;;
  12962. pw32*)
  12963. export_symbols_cmds_CXX="$ltdll_cmds"
  12964. ;;
  12965. cygwin* | mingw* | cegcc*)
  12966. case $cc_basename in
  12967. cl*)
  12968. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  12969. ;;
  12970. *)
  12971. 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'
  12972. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  12973. ;;
  12974. esac
  12975. ;;
  12976. *)
  12977. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12978. ;;
  12979. esac
  12980. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12981. $as_echo "$ld_shlibs_CXX" >&6; }
  12982. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12983. with_gnu_ld_CXX=$with_gnu_ld
  12984. #
  12985. # Do we need to explicitly link libc?
  12986. #
  12987. case "x$archive_cmds_need_lc_CXX" in
  12988. x|xyes)
  12989. # Assume -lc should be added
  12990. archive_cmds_need_lc_CXX=yes
  12991. if test "$enable_shared" = yes && test "$GCC" = yes; then
  12992. case $archive_cmds_CXX in
  12993. *'~'*)
  12994. # FIXME: we may have to deal with multi-command sequences.
  12995. ;;
  12996. '$CC '*)
  12997. # Test whether the compiler implicitly links with -lc since on some
  12998. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  12999. # to ld, don't add -lc before -lgcc.
  13000. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  13001. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  13002. if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  13003. $as_echo_n "(cached) " >&6
  13004. else
  13005. $RM conftest*
  13006. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  13007. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  13008. (eval $ac_compile) 2>&5
  13009. ac_status=$?
  13010. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13011. test $ac_status = 0; } 2>conftest.err; then
  13012. soname=conftest
  13013. lib=conftest
  13014. libobjs=conftest.$ac_objext
  13015. deplibs=
  13016. wl=$lt_prog_compiler_wl_CXX
  13017. pic_flag=$lt_prog_compiler_pic_CXX
  13018. compiler_flags=-v
  13019. linker_flags=-v
  13020. verstring=
  13021. output_objdir=.
  13022. libname=conftest
  13023. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  13024. allow_undefined_flag_CXX=
  13025. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  13026. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  13027. ac_status=$?
  13028. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13029. test $ac_status = 0; }
  13030. then
  13031. lt_cv_archive_cmds_need_lc_CXX=no
  13032. else
  13033. lt_cv_archive_cmds_need_lc_CXX=yes
  13034. fi
  13035. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  13036. else
  13037. cat conftest.err 1>&5
  13038. fi
  13039. $RM conftest*
  13040. fi
  13041. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  13042. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  13043. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  13044. ;;
  13045. esac
  13046. fi
  13047. ;;
  13048. esac
  13049. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  13050. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  13051. library_names_spec=
  13052. libname_spec='lib$name'
  13053. soname_spec=
  13054. shrext_cmds=".so"
  13055. postinstall_cmds=
  13056. postuninstall_cmds=
  13057. finish_cmds=
  13058. finish_eval=
  13059. shlibpath_var=
  13060. shlibpath_overrides_runpath=unknown
  13061. version_type=none
  13062. dynamic_linker="$host_os ld.so"
  13063. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  13064. need_lib_prefix=unknown
  13065. hardcode_into_libs=no
  13066. # when you set need_version to no, make sure it does not cause -set_version
  13067. # flags to be left without arguments
  13068. need_version=unknown
  13069. case $host_os in
  13070. aix3*)
  13071. version_type=linux # correct to gnu/linux during the next big refactor
  13072. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  13073. shlibpath_var=LIBPATH
  13074. # AIX 3 has no versioning support, so we append a major version to the name.
  13075. soname_spec='${libname}${release}${shared_ext}$major'
  13076. ;;
  13077. aix[4-9]*)
  13078. version_type=linux # correct to gnu/linux during the next big refactor
  13079. need_lib_prefix=no
  13080. need_version=no
  13081. hardcode_into_libs=yes
  13082. if test "$host_cpu" = ia64; then
  13083. # AIX 5 supports IA64
  13084. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  13085. shlibpath_var=LD_LIBRARY_PATH
  13086. else
  13087. # With GCC up to 2.95.x, collect2 would create an import file
  13088. # for dependence libraries. The import file would start with
  13089. # the line `#! .'. This would cause the generated library to
  13090. # depend on `.', always an invalid library. This was fixed in
  13091. # development snapshots of GCC prior to 3.0.
  13092. case $host_os in
  13093. aix4 | aix4.[01] | aix4.[01].*)
  13094. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  13095. echo ' yes '
  13096. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  13097. :
  13098. else
  13099. can_build_shared=no
  13100. fi
  13101. ;;
  13102. esac
  13103. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  13104. # soname into executable. Probably we can add versioning support to
  13105. # collect2, so additional links can be useful in future.
  13106. if test "$aix_use_runtimelinking" = yes; then
  13107. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  13108. # instead of lib<name>.a to let people know that these are not
  13109. # typical AIX shared libraries.
  13110. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13111. else
  13112. # We preserve .a as extension for shared libraries through AIX4.2
  13113. # and later when we are not doing run time linking.
  13114. library_names_spec='${libname}${release}.a $libname.a'
  13115. soname_spec='${libname}${release}${shared_ext}$major'
  13116. fi
  13117. shlibpath_var=LIBPATH
  13118. fi
  13119. ;;
  13120. amigaos*)
  13121. case $host_cpu in
  13122. powerpc)
  13123. # Since July 2007 AmigaOS4 officially supports .so libraries.
  13124. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  13125. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13126. ;;
  13127. m68k)
  13128. library_names_spec='$libname.ixlibrary $libname.a'
  13129. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  13130. 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'
  13131. ;;
  13132. esac
  13133. ;;
  13134. beos*)
  13135. library_names_spec='${libname}${shared_ext}'
  13136. dynamic_linker="$host_os ld.so"
  13137. shlibpath_var=LIBRARY_PATH
  13138. ;;
  13139. bsdi[45]*)
  13140. version_type=linux # correct to gnu/linux during the next big refactor
  13141. need_version=no
  13142. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13143. soname_spec='${libname}${release}${shared_ext}$major'
  13144. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  13145. shlibpath_var=LD_LIBRARY_PATH
  13146. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  13147. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  13148. # the default ld.so.conf also contains /usr/contrib/lib and
  13149. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  13150. # libtool to hard-code these into programs
  13151. ;;
  13152. cygwin* | mingw* | pw32* | cegcc*)
  13153. version_type=windows
  13154. shrext_cmds=".dll"
  13155. need_version=no
  13156. need_lib_prefix=no
  13157. case $GCC,$cc_basename in
  13158. yes,*)
  13159. # gcc
  13160. library_names_spec='$libname.dll.a'
  13161. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  13162. postinstall_cmds='base_file=`basename \${file}`~
  13163. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  13164. dldir=$destdir/`dirname \$dlpath`~
  13165. test -d \$dldir || mkdir -p \$dldir~
  13166. $install_prog $dir/$dlname \$dldir/$dlname~
  13167. chmod a+x \$dldir/$dlname~
  13168. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  13169. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  13170. fi'
  13171. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  13172. dlpath=$dir/\$dldll~
  13173. $RM \$dlpath'
  13174. shlibpath_overrides_runpath=yes
  13175. case $host_os in
  13176. cygwin*)
  13177. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  13178. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13179. ;;
  13180. mingw* | cegcc*)
  13181. # MinGW DLLs use traditional 'lib' prefix
  13182. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13183. ;;
  13184. pw32*)
  13185. # pw32 DLLs use 'pw' prefix rather than 'lib'
  13186. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13187. ;;
  13188. esac
  13189. dynamic_linker='Win32 ld.exe'
  13190. ;;
  13191. *,cl*)
  13192. # Native MSVC
  13193. libname_spec='$name'
  13194. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13195. library_names_spec='${libname}.dll.lib'
  13196. case $build_os in
  13197. mingw*)
  13198. sys_lib_search_path_spec=
  13199. lt_save_ifs=$IFS
  13200. IFS=';'
  13201. for lt_path in $LIB
  13202. do
  13203. IFS=$lt_save_ifs
  13204. # Let DOS variable expansion print the short 8.3 style file name.
  13205. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  13206. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  13207. done
  13208. IFS=$lt_save_ifs
  13209. # Convert to MSYS style.
  13210. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  13211. ;;
  13212. cygwin*)
  13213. # Convert to unix form, then to dos form, then back to unix form
  13214. # but this time dos style (no spaces!) so that the unix form looks
  13215. # like /cygdrive/c/PROGRA~1:/cygdr...
  13216. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  13217. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  13218. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13219. ;;
  13220. *)
  13221. sys_lib_search_path_spec="$LIB"
  13222. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  13223. # It is most probably a Windows format PATH.
  13224. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  13225. else
  13226. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13227. fi
  13228. # FIXME: find the short name or the path components, as spaces are
  13229. # common. (e.g. "Program Files" -> "PROGRA~1")
  13230. ;;
  13231. esac
  13232. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  13233. postinstall_cmds='base_file=`basename \${file}`~
  13234. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  13235. dldir=$destdir/`dirname \$dlpath`~
  13236. test -d \$dldir || mkdir -p \$dldir~
  13237. $install_prog $dir/$dlname \$dldir/$dlname'
  13238. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  13239. dlpath=$dir/\$dldll~
  13240. $RM \$dlpath'
  13241. shlibpath_overrides_runpath=yes
  13242. dynamic_linker='Win32 link.exe'
  13243. ;;
  13244. *)
  13245. # Assume MSVC wrapper
  13246. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  13247. dynamic_linker='Win32 ld.exe'
  13248. ;;
  13249. esac
  13250. # FIXME: first we should search . and the directory the executable is in
  13251. shlibpath_var=PATH
  13252. ;;
  13253. darwin* | rhapsody*)
  13254. dynamic_linker="$host_os dyld"
  13255. version_type=darwin
  13256. need_lib_prefix=no
  13257. need_version=no
  13258. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  13259. soname_spec='${libname}${release}${major}$shared_ext'
  13260. shlibpath_overrides_runpath=yes
  13261. shlibpath_var=DYLD_LIBRARY_PATH
  13262. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  13263. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  13264. ;;
  13265. dgux*)
  13266. version_type=linux # correct to gnu/linux during the next big refactor
  13267. need_lib_prefix=no
  13268. need_version=no
  13269. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  13270. soname_spec='${libname}${release}${shared_ext}$major'
  13271. shlibpath_var=LD_LIBRARY_PATH
  13272. ;;
  13273. freebsd* | dragonfly*)
  13274. # DragonFly does not have aout. When/if they implement a new
  13275. # versioning mechanism, adjust this.
  13276. if test -x /usr/bin/objformat; then
  13277. objformat=`/usr/bin/objformat`
  13278. else
  13279. case $host_os in
  13280. freebsd[23].*) objformat=aout ;;
  13281. *) objformat=elf ;;
  13282. esac
  13283. fi
  13284. version_type=freebsd-$objformat
  13285. case $version_type in
  13286. freebsd-elf*)
  13287. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13288. need_version=no
  13289. need_lib_prefix=no
  13290. ;;
  13291. freebsd-*)
  13292. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  13293. need_version=yes
  13294. ;;
  13295. esac
  13296. shlibpath_var=LD_LIBRARY_PATH
  13297. case $host_os in
  13298. freebsd2.*)
  13299. shlibpath_overrides_runpath=yes
  13300. ;;
  13301. freebsd3.[01]* | freebsdelf3.[01]*)
  13302. shlibpath_overrides_runpath=yes
  13303. hardcode_into_libs=yes
  13304. ;;
  13305. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  13306. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  13307. shlibpath_overrides_runpath=no
  13308. hardcode_into_libs=yes
  13309. ;;
  13310. *) # from 4.6 on, and DragonFly
  13311. shlibpath_overrides_runpath=yes
  13312. hardcode_into_libs=yes
  13313. ;;
  13314. esac
  13315. ;;
  13316. gnu*)
  13317. version_type=linux # correct to gnu/linux during the next big refactor
  13318. need_lib_prefix=no
  13319. need_version=no
  13320. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  13321. soname_spec='${libname}${release}${shared_ext}$major'
  13322. shlibpath_var=LD_LIBRARY_PATH
  13323. shlibpath_overrides_runpath=no
  13324. hardcode_into_libs=yes
  13325. ;;
  13326. haiku*)
  13327. version_type=linux # correct to gnu/linux during the next big refactor
  13328. need_lib_prefix=no
  13329. need_version=no
  13330. dynamic_linker="$host_os runtime_loader"
  13331. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  13332. soname_spec='${libname}${release}${shared_ext}$major'
  13333. shlibpath_var=LIBRARY_PATH
  13334. shlibpath_overrides_runpath=yes
  13335. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  13336. hardcode_into_libs=yes
  13337. ;;
  13338. hpux9* | hpux10* | hpux11*)
  13339. # Give a soname corresponding to the major version so that dld.sl refuses to
  13340. # link against other versions.
  13341. version_type=sunos
  13342. need_lib_prefix=no
  13343. need_version=no
  13344. case $host_cpu in
  13345. ia64*)
  13346. shrext_cmds='.so'
  13347. hardcode_into_libs=yes
  13348. dynamic_linker="$host_os dld.so"
  13349. shlibpath_var=LD_LIBRARY_PATH
  13350. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13351. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13352. soname_spec='${libname}${release}${shared_ext}$major'
  13353. if test "X$HPUX_IA64_MODE" = X32; then
  13354. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  13355. else
  13356. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  13357. fi
  13358. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13359. ;;
  13360. hppa*64*)
  13361. shrext_cmds='.sl'
  13362. hardcode_into_libs=yes
  13363. dynamic_linker="$host_os dld.sl"
  13364. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  13365. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13366. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13367. soname_spec='${libname}${release}${shared_ext}$major'
  13368. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  13369. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13370. ;;
  13371. *)
  13372. shrext_cmds='.sl'
  13373. dynamic_linker="$host_os dld.sl"
  13374. shlibpath_var=SHLIB_PATH
  13375. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  13376. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13377. soname_spec='${libname}${release}${shared_ext}$major'
  13378. ;;
  13379. esac
  13380. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  13381. postinstall_cmds='chmod 555 $lib'
  13382. # or fails outright, so override atomically:
  13383. install_override_mode=555
  13384. ;;
  13385. interix[3-9]*)
  13386. version_type=linux # correct to gnu/linux during the next big refactor
  13387. need_lib_prefix=no
  13388. need_version=no
  13389. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13390. soname_spec='${libname}${release}${shared_ext}$major'
  13391. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  13392. shlibpath_var=LD_LIBRARY_PATH
  13393. shlibpath_overrides_runpath=no
  13394. hardcode_into_libs=yes
  13395. ;;
  13396. irix5* | irix6* | nonstopux*)
  13397. case $host_os in
  13398. nonstopux*) version_type=nonstopux ;;
  13399. *)
  13400. if test "$lt_cv_prog_gnu_ld" = yes; then
  13401. version_type=linux # correct to gnu/linux during the next big refactor
  13402. else
  13403. version_type=irix
  13404. fi ;;
  13405. esac
  13406. need_lib_prefix=no
  13407. need_version=no
  13408. soname_spec='${libname}${release}${shared_ext}$major'
  13409. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  13410. case $host_os in
  13411. irix5* | nonstopux*)
  13412. libsuff= shlibsuff=
  13413. ;;
  13414. *)
  13415. case $LD in # libtool.m4 will add one of these switches to LD
  13416. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  13417. libsuff= shlibsuff= libmagic=32-bit;;
  13418. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  13419. libsuff=32 shlibsuff=N32 libmagic=N32;;
  13420. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  13421. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  13422. *) libsuff= shlibsuff= libmagic=never-match;;
  13423. esac
  13424. ;;
  13425. esac
  13426. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  13427. shlibpath_overrides_runpath=no
  13428. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  13429. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  13430. hardcode_into_libs=yes
  13431. ;;
  13432. # No shared lib support for Linux oldld, aout, or coff.
  13433. linux*oldld* | linux*aout* | linux*coff*)
  13434. dynamic_linker=no
  13435. ;;
  13436. # This must be glibc/ELF.
  13437. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  13438. version_type=linux # correct to gnu/linux during the next big refactor
  13439. need_lib_prefix=no
  13440. need_version=no
  13441. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13442. soname_spec='${libname}${release}${shared_ext}$major'
  13443. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  13444. shlibpath_var=LD_LIBRARY_PATH
  13445. shlibpath_overrides_runpath=no
  13446. # Some binutils ld are patched to set DT_RUNPATH
  13447. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  13448. $as_echo_n "(cached) " >&6
  13449. else
  13450. lt_cv_shlibpath_overrides_runpath=no
  13451. save_LDFLAGS=$LDFLAGS
  13452. save_libdir=$libdir
  13453. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  13454. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  13455. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13456. /* end confdefs.h. */
  13457. int
  13458. main ()
  13459. {
  13460. ;
  13461. return 0;
  13462. }
  13463. _ACEOF
  13464. if ac_fn_cxx_try_link "$LINENO"; then :
  13465. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  13466. lt_cv_shlibpath_overrides_runpath=yes
  13467. fi
  13468. fi
  13469. rm -f core conftest.err conftest.$ac_objext \
  13470. conftest$ac_exeext conftest.$ac_ext
  13471. LDFLAGS=$save_LDFLAGS
  13472. libdir=$save_libdir
  13473. fi
  13474. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  13475. # This implies no fast_install, which is unacceptable.
  13476. # Some rework will be needed to allow for fast_install
  13477. # before this can be enabled.
  13478. hardcode_into_libs=yes
  13479. # Add ABI-specific directories to the system library path.
  13480. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  13481. # Append ld.so.conf contents to the search path
  13482. if test -f /etc/ld.so.conf; then
  13483. 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' ' '`
  13484. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  13485. fi
  13486. # We used to test for /lib/ld.so.1 and disable shared libraries on
  13487. # powerpc, because MkLinux only supported shared libraries with the
  13488. # GNU dynamic linker. Since this was broken with cross compilers,
  13489. # most powerpc-linux boxes support dynamic linking these days and
  13490. # people can always --disable-shared, the test was removed, and we
  13491. # assume the GNU/Linux dynamic linker is in use.
  13492. dynamic_linker='GNU/Linux ld.so'
  13493. ;;
  13494. netbsd*)
  13495. version_type=sunos
  13496. need_lib_prefix=no
  13497. need_version=no
  13498. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13499. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13500. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13501. dynamic_linker='NetBSD (a.out) ld.so'
  13502. else
  13503. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13504. soname_spec='${libname}${release}${shared_ext}$major'
  13505. dynamic_linker='NetBSD ld.elf_so'
  13506. fi
  13507. shlibpath_var=LD_LIBRARY_PATH
  13508. shlibpath_overrides_runpath=yes
  13509. hardcode_into_libs=yes
  13510. ;;
  13511. newsos6)
  13512. version_type=linux # correct to gnu/linux during the next big refactor
  13513. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13514. shlibpath_var=LD_LIBRARY_PATH
  13515. shlibpath_overrides_runpath=yes
  13516. ;;
  13517. *nto* | *qnx*)
  13518. version_type=qnx
  13519. need_lib_prefix=no
  13520. need_version=no
  13521. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13522. soname_spec='${libname}${release}${shared_ext}$major'
  13523. shlibpath_var=LD_LIBRARY_PATH
  13524. shlibpath_overrides_runpath=no
  13525. hardcode_into_libs=yes
  13526. dynamic_linker='ldqnx.so'
  13527. ;;
  13528. openbsd*)
  13529. version_type=sunos
  13530. sys_lib_dlsearch_path_spec="/usr/lib"
  13531. need_lib_prefix=no
  13532. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  13533. case $host_os in
  13534. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  13535. *) need_version=no ;;
  13536. esac
  13537. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13538. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13539. shlibpath_var=LD_LIBRARY_PATH
  13540. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  13541. case $host_os in
  13542. openbsd2.[89] | openbsd2.[89].*)
  13543. shlibpath_overrides_runpath=no
  13544. ;;
  13545. *)
  13546. shlibpath_overrides_runpath=yes
  13547. ;;
  13548. esac
  13549. else
  13550. shlibpath_overrides_runpath=yes
  13551. fi
  13552. ;;
  13553. os2*)
  13554. libname_spec='$name'
  13555. shrext_cmds=".dll"
  13556. need_lib_prefix=no
  13557. library_names_spec='$libname${shared_ext} $libname.a'
  13558. dynamic_linker='OS/2 ld.exe'
  13559. shlibpath_var=LIBPATH
  13560. ;;
  13561. osf3* | osf4* | osf5*)
  13562. version_type=osf
  13563. need_lib_prefix=no
  13564. need_version=no
  13565. soname_spec='${libname}${release}${shared_ext}$major'
  13566. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13567. shlibpath_var=LD_LIBRARY_PATH
  13568. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  13569. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  13570. ;;
  13571. rdos*)
  13572. dynamic_linker=no
  13573. ;;
  13574. solaris*)
  13575. version_type=linux # correct to gnu/linux during the next big refactor
  13576. need_lib_prefix=no
  13577. need_version=no
  13578. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13579. soname_spec='${libname}${release}${shared_ext}$major'
  13580. shlibpath_var=LD_LIBRARY_PATH
  13581. shlibpath_overrides_runpath=yes
  13582. hardcode_into_libs=yes
  13583. # ldd complains unless libraries are executable
  13584. postinstall_cmds='chmod +x $lib'
  13585. ;;
  13586. sunos4*)
  13587. version_type=sunos
  13588. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13589. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  13590. shlibpath_var=LD_LIBRARY_PATH
  13591. shlibpath_overrides_runpath=yes
  13592. if test "$with_gnu_ld" = yes; then
  13593. need_lib_prefix=no
  13594. fi
  13595. need_version=yes
  13596. ;;
  13597. sysv4 | sysv4.3*)
  13598. version_type=linux # correct to gnu/linux during the next big refactor
  13599. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13600. soname_spec='${libname}${release}${shared_ext}$major'
  13601. shlibpath_var=LD_LIBRARY_PATH
  13602. case $host_vendor in
  13603. sni)
  13604. shlibpath_overrides_runpath=no
  13605. need_lib_prefix=no
  13606. runpath_var=LD_RUN_PATH
  13607. ;;
  13608. siemens)
  13609. need_lib_prefix=no
  13610. ;;
  13611. motorola)
  13612. need_lib_prefix=no
  13613. need_version=no
  13614. shlibpath_overrides_runpath=no
  13615. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  13616. ;;
  13617. esac
  13618. ;;
  13619. sysv4*MP*)
  13620. if test -d /usr/nec ;then
  13621. version_type=linux # correct to gnu/linux during the next big refactor
  13622. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  13623. soname_spec='$libname${shared_ext}.$major'
  13624. shlibpath_var=LD_LIBRARY_PATH
  13625. fi
  13626. ;;
  13627. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  13628. version_type=freebsd-elf
  13629. need_lib_prefix=no
  13630. need_version=no
  13631. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13632. soname_spec='${libname}${release}${shared_ext}$major'
  13633. shlibpath_var=LD_LIBRARY_PATH
  13634. shlibpath_overrides_runpath=yes
  13635. hardcode_into_libs=yes
  13636. if test "$with_gnu_ld" = yes; then
  13637. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  13638. else
  13639. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  13640. case $host_os in
  13641. sco3.2v5*)
  13642. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  13643. ;;
  13644. esac
  13645. fi
  13646. sys_lib_dlsearch_path_spec='/usr/lib'
  13647. ;;
  13648. tpf*)
  13649. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  13650. version_type=linux # correct to gnu/linux during the next big refactor
  13651. need_lib_prefix=no
  13652. need_version=no
  13653. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13654. shlibpath_var=LD_LIBRARY_PATH
  13655. shlibpath_overrides_runpath=no
  13656. hardcode_into_libs=yes
  13657. ;;
  13658. uts4*)
  13659. version_type=linux # correct to gnu/linux during the next big refactor
  13660. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13661. soname_spec='${libname}${release}${shared_ext}$major'
  13662. shlibpath_var=LD_LIBRARY_PATH
  13663. ;;
  13664. *)
  13665. dynamic_linker=no
  13666. ;;
  13667. esac
  13668. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  13669. $as_echo "$dynamic_linker" >&6; }
  13670. test "$dynamic_linker" = no && can_build_shared=no
  13671. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  13672. if test "$GCC" = yes; then
  13673. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  13674. fi
  13675. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  13676. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  13677. fi
  13678. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  13679. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  13680. fi
  13681. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  13682. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  13683. hardcode_action_CXX=
  13684. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  13685. test -n "$runpath_var_CXX" ||
  13686. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  13687. # We can hardcode non-existent directories.
  13688. if test "$hardcode_direct_CXX" != no &&
  13689. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  13690. # have to relink, otherwise we might link with an installed library
  13691. # when we should be linking with a yet-to-be-installed one
  13692. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  13693. test "$hardcode_minus_L_CXX" != no; then
  13694. # Linking always hardcodes the temporary library directory.
  13695. hardcode_action_CXX=relink
  13696. else
  13697. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  13698. hardcode_action_CXX=immediate
  13699. fi
  13700. else
  13701. # We cannot hardcode anything, or else we can only hardcode existing
  13702. # directories.
  13703. hardcode_action_CXX=unsupported
  13704. fi
  13705. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  13706. $as_echo "$hardcode_action_CXX" >&6; }
  13707. if test "$hardcode_action_CXX" = relink ||
  13708. test "$inherit_rpath_CXX" = yes; then
  13709. # Fast installation is not supported
  13710. enable_fast_install=no
  13711. elif test "$shlibpath_overrides_runpath" = yes ||
  13712. test "$enable_shared" = no; then
  13713. # Fast installation is not necessary
  13714. enable_fast_install=needless
  13715. fi
  13716. fi # test -n "$compiler"
  13717. CC=$lt_save_CC
  13718. CFLAGS=$lt_save_CFLAGS
  13719. LDCXX=$LD
  13720. LD=$lt_save_LD
  13721. GCC=$lt_save_GCC
  13722. with_gnu_ld=$lt_save_with_gnu_ld
  13723. lt_cv_path_LDCXX=$lt_cv_path_LD
  13724. lt_cv_path_LD=$lt_save_path_LD
  13725. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  13726. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  13727. fi # test "$_lt_caught_CXX_error" != yes
  13728. ac_ext=c
  13729. ac_cpp='$CPP $CPPFLAGS'
  13730. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13731. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13732. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13733. ac_config_commands="$ac_config_commands libtool"
  13734. # Only expand once:
  13735. # Checks for header files.
  13736. ac_header_dirent=no
  13737. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  13738. as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  13739. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
  13740. $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
  13741. if eval \${$as_ac_Header+:} false; then :
  13742. $as_echo_n "(cached) " >&6
  13743. else
  13744. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13745. /* end confdefs.h. */
  13746. #include <sys/types.h>
  13747. #include <$ac_hdr>
  13748. int
  13749. main ()
  13750. {
  13751. if ((DIR *) 0)
  13752. return 0;
  13753. ;
  13754. return 0;
  13755. }
  13756. _ACEOF
  13757. if ac_fn_c_try_compile "$LINENO"; then :
  13758. eval "$as_ac_Header=yes"
  13759. else
  13760. eval "$as_ac_Header=no"
  13761. fi
  13762. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13763. fi
  13764. eval ac_res=\$$as_ac_Header
  13765. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  13766. $as_echo "$ac_res" >&6; }
  13767. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  13768. cat >>confdefs.h <<_ACEOF
  13769. #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  13770. _ACEOF
  13771. ac_header_dirent=$ac_hdr; break
  13772. fi
  13773. done
  13774. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  13775. if test $ac_header_dirent = dirent.h; then
  13776. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
  13777. $as_echo_n "checking for library containing opendir... " >&6; }
  13778. if ${ac_cv_search_opendir+:} false; then :
  13779. $as_echo_n "(cached) " >&6
  13780. else
  13781. ac_func_search_save_LIBS=$LIBS
  13782. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13783. /* end confdefs.h. */
  13784. /* Override any GCC internal prototype to avoid an error.
  13785. Use char because int might match the return type of a GCC
  13786. builtin and then its argument prototype would still apply. */
  13787. #ifdef __cplusplus
  13788. extern "C"
  13789. #endif
  13790. char opendir ();
  13791. int
  13792. main ()
  13793. {
  13794. return opendir ();
  13795. ;
  13796. return 0;
  13797. }
  13798. _ACEOF
  13799. for ac_lib in '' dir; do
  13800. if test -z "$ac_lib"; then
  13801. ac_res="none required"
  13802. else
  13803. ac_res=-l$ac_lib
  13804. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  13805. fi
  13806. if ac_fn_c_try_link "$LINENO"; then :
  13807. ac_cv_search_opendir=$ac_res
  13808. fi
  13809. rm -f core conftest.err conftest.$ac_objext \
  13810. conftest$ac_exeext
  13811. if ${ac_cv_search_opendir+:} false; then :
  13812. break
  13813. fi
  13814. done
  13815. if ${ac_cv_search_opendir+:} false; then :
  13816. else
  13817. ac_cv_search_opendir=no
  13818. fi
  13819. rm conftest.$ac_ext
  13820. LIBS=$ac_func_search_save_LIBS
  13821. fi
  13822. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
  13823. $as_echo "$ac_cv_search_opendir" >&6; }
  13824. ac_res=$ac_cv_search_opendir
  13825. if test "$ac_res" != no; then :
  13826. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  13827. fi
  13828. else
  13829. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
  13830. $as_echo_n "checking for library containing opendir... " >&6; }
  13831. if ${ac_cv_search_opendir+:} false; then :
  13832. $as_echo_n "(cached) " >&6
  13833. else
  13834. ac_func_search_save_LIBS=$LIBS
  13835. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13836. /* end confdefs.h. */
  13837. /* Override any GCC internal prototype to avoid an error.
  13838. Use char because int might match the return type of a GCC
  13839. builtin and then its argument prototype would still apply. */
  13840. #ifdef __cplusplus
  13841. extern "C"
  13842. #endif
  13843. char opendir ();
  13844. int
  13845. main ()
  13846. {
  13847. return opendir ();
  13848. ;
  13849. return 0;
  13850. }
  13851. _ACEOF
  13852. for ac_lib in '' x; do
  13853. if test -z "$ac_lib"; then
  13854. ac_res="none required"
  13855. else
  13856. ac_res=-l$ac_lib
  13857. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  13858. fi
  13859. if ac_fn_c_try_link "$LINENO"; then :
  13860. ac_cv_search_opendir=$ac_res
  13861. fi
  13862. rm -f core conftest.err conftest.$ac_objext \
  13863. conftest$ac_exeext
  13864. if ${ac_cv_search_opendir+:} false; then :
  13865. break
  13866. fi
  13867. done
  13868. if ${ac_cv_search_opendir+:} false; then :
  13869. else
  13870. ac_cv_search_opendir=no
  13871. fi
  13872. rm conftest.$ac_ext
  13873. LIBS=$ac_func_search_save_LIBS
  13874. fi
  13875. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
  13876. $as_echo "$ac_cv_search_opendir" >&6; }
  13877. ac_res=$ac_cv_search_opendir
  13878. if test "$ac_res" != no; then :
  13879. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  13880. fi
  13881. fi
  13882. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  13883. $as_echo_n "checking for ANSI C header files... " >&6; }
  13884. if ${ac_cv_header_stdc+:} false; then :
  13885. $as_echo_n "(cached) " >&6
  13886. else
  13887. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13888. /* end confdefs.h. */
  13889. #include <stdlib.h>
  13890. #include <stdarg.h>
  13891. #include <string.h>
  13892. #include <float.h>
  13893. int
  13894. main ()
  13895. {
  13896. ;
  13897. return 0;
  13898. }
  13899. _ACEOF
  13900. if ac_fn_c_try_compile "$LINENO"; then :
  13901. ac_cv_header_stdc=yes
  13902. else
  13903. ac_cv_header_stdc=no
  13904. fi
  13905. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13906. if test $ac_cv_header_stdc = yes; then
  13907. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  13908. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13909. /* end confdefs.h. */
  13910. #include <string.h>
  13911. _ACEOF
  13912. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13913. $EGREP "memchr" >/dev/null 2>&1; then :
  13914. else
  13915. ac_cv_header_stdc=no
  13916. fi
  13917. rm -f conftest*
  13918. fi
  13919. if test $ac_cv_header_stdc = yes; then
  13920. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  13921. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13922. /* end confdefs.h. */
  13923. #include <stdlib.h>
  13924. _ACEOF
  13925. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13926. $EGREP "free" >/dev/null 2>&1; then :
  13927. else
  13928. ac_cv_header_stdc=no
  13929. fi
  13930. rm -f conftest*
  13931. fi
  13932. if test $ac_cv_header_stdc = yes; then
  13933. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  13934. if test "$cross_compiling" = yes; then :
  13935. :
  13936. else
  13937. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13938. /* end confdefs.h. */
  13939. #include <ctype.h>
  13940. #include <stdlib.h>
  13941. #if ((' ' & 0x0FF) == 0x020)
  13942. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  13943. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  13944. #else
  13945. # define ISLOWER(c) \
  13946. (('a' <= (c) && (c) <= 'i') \
  13947. || ('j' <= (c) && (c) <= 'r') \
  13948. || ('s' <= (c) && (c) <= 'z'))
  13949. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  13950. #endif
  13951. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  13952. int
  13953. main ()
  13954. {
  13955. int i;
  13956. for (i = 0; i < 256; i++)
  13957. if (XOR (islower (i), ISLOWER (i))
  13958. || toupper (i) != TOUPPER (i))
  13959. return 2;
  13960. return 0;
  13961. }
  13962. _ACEOF
  13963. if ac_fn_c_try_run "$LINENO"; then :
  13964. else
  13965. ac_cv_header_stdc=no
  13966. fi
  13967. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13968. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13969. fi
  13970. fi
  13971. fi
  13972. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  13973. $as_echo "$ac_cv_header_stdc" >&6; }
  13974. if test $ac_cv_header_stdc = yes; then
  13975. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  13976. fi
  13977. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
  13978. $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
  13979. if ${ac_cv_header_sys_wait_h+:} false; then :
  13980. $as_echo_n "(cached) " >&6
  13981. else
  13982. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13983. /* end confdefs.h. */
  13984. #include <sys/types.h>
  13985. #include <sys/wait.h>
  13986. #ifndef WEXITSTATUS
  13987. # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
  13988. #endif
  13989. #ifndef WIFEXITED
  13990. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  13991. #endif
  13992. int
  13993. main ()
  13994. {
  13995. int s;
  13996. wait (&s);
  13997. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  13998. ;
  13999. return 0;
  14000. }
  14001. _ACEOF
  14002. if ac_fn_c_try_compile "$LINENO"; then :
  14003. ac_cv_header_sys_wait_h=yes
  14004. else
  14005. ac_cv_header_sys_wait_h=no
  14006. fi
  14007. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14008. fi
  14009. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
  14010. $as_echo "$ac_cv_header_sys_wait_h" >&6; }
  14011. if test $ac_cv_header_sys_wait_h = yes; then
  14012. $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
  14013. fi
  14014. 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
  14015. do :
  14016. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  14017. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  14018. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  14019. cat >>confdefs.h <<_ACEOF
  14020. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  14021. _ACEOF
  14022. fi
  14023. done
  14024. # Checks for typedefs, structures, and compiler characteristics.
  14025. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
  14026. $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
  14027. if ${ac_cv_header_stat_broken+:} false; then :
  14028. $as_echo_n "(cached) " >&6
  14029. else
  14030. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14031. /* end confdefs.h. */
  14032. #include <sys/types.h>
  14033. #include <sys/stat.h>
  14034. #if defined S_ISBLK && defined S_IFDIR
  14035. extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
  14036. #endif
  14037. #if defined S_ISBLK && defined S_IFCHR
  14038. extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
  14039. #endif
  14040. #if defined S_ISLNK && defined S_IFREG
  14041. extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
  14042. #endif
  14043. #if defined S_ISSOCK && defined S_IFREG
  14044. extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
  14045. #endif
  14046. _ACEOF
  14047. if ac_fn_c_try_compile "$LINENO"; then :
  14048. ac_cv_header_stat_broken=no
  14049. else
  14050. ac_cv_header_stat_broken=yes
  14051. fi
  14052. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14053. fi
  14054. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
  14055. $as_echo "$ac_cv_header_stat_broken" >&6; }
  14056. if test $ac_cv_header_stat_broken = yes; then
  14057. $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
  14058. fi
  14059. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  14060. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  14061. if ${ac_cv_c_const+:} false; then :
  14062. $as_echo_n "(cached) " >&6
  14063. else
  14064. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14065. /* end confdefs.h. */
  14066. int
  14067. main ()
  14068. {
  14069. #ifndef __cplusplus
  14070. /* Ultrix mips cc rejects this sort of thing. */
  14071. typedef int charset[2];
  14072. const charset cs = { 0, 0 };
  14073. /* SunOS 4.1.1 cc rejects this. */
  14074. char const *const *pcpcc;
  14075. char **ppc;
  14076. /* NEC SVR4.0.2 mips cc rejects this. */
  14077. struct point {int x, y;};
  14078. static struct point const zero = {0,0};
  14079. /* AIX XL C 1.02.0.0 rejects this.
  14080. It does not let you subtract one const X* pointer from another in
  14081. an arm of an if-expression whose if-part is not a constant
  14082. expression */
  14083. const char *g = "string";
  14084. pcpcc = &g + (g ? g-g : 0);
  14085. /* HPUX 7.0 cc rejects these. */
  14086. ++pcpcc;
  14087. ppc = (char**) pcpcc;
  14088. pcpcc = (char const *const *) ppc;
  14089. { /* SCO 3.2v4 cc rejects this sort of thing. */
  14090. char tx;
  14091. char *t = &tx;
  14092. char const *s = 0 ? (char *) 0 : (char const *) 0;
  14093. *t++ = 0;
  14094. if (s) return 0;
  14095. }
  14096. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  14097. int x[] = {25, 17};
  14098. const int *foo = &x[0];
  14099. ++foo;
  14100. }
  14101. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  14102. typedef const int *iptr;
  14103. iptr p = 0;
  14104. ++p;
  14105. }
  14106. { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
  14107. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  14108. struct s { int j; const int *ap[3]; } bx;
  14109. struct s *b = &bx; b->j = 5;
  14110. }
  14111. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  14112. const int foo = 10;
  14113. if (!foo) return 0;
  14114. }
  14115. return !cs[0] && !zero.x;
  14116. #endif
  14117. ;
  14118. return 0;
  14119. }
  14120. _ACEOF
  14121. if ac_fn_c_try_compile "$LINENO"; then :
  14122. ac_cv_c_const=yes
  14123. else
  14124. ac_cv_c_const=no
  14125. fi
  14126. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14127. fi
  14128. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  14129. $as_echo "$ac_cv_c_const" >&6; }
  14130. if test $ac_cv_c_const = no; then
  14131. $as_echo "#define const /**/" >>confdefs.h
  14132. fi
  14133. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
  14134. $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
  14135. if ${ac_cv_header_stdbool_h+:} false; then :
  14136. $as_echo_n "(cached) " >&6
  14137. else
  14138. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14139. /* end confdefs.h. */
  14140. #include <stdbool.h>
  14141. #ifndef bool
  14142. "error: bool is not defined"
  14143. #endif
  14144. #ifndef false
  14145. "error: false is not defined"
  14146. #endif
  14147. #if false
  14148. "error: false is not 0"
  14149. #endif
  14150. #ifndef true
  14151. "error: true is not defined"
  14152. #endif
  14153. #if true != 1
  14154. "error: true is not 1"
  14155. #endif
  14156. #ifndef __bool_true_false_are_defined
  14157. "error: __bool_true_false_are_defined is not defined"
  14158. #endif
  14159. struct s { _Bool s: 1; _Bool t; } s;
  14160. char a[true == 1 ? 1 : -1];
  14161. char b[false == 0 ? 1 : -1];
  14162. char c[__bool_true_false_are_defined == 1 ? 1 : -1];
  14163. char d[(bool) 0.5 == true ? 1 : -1];
  14164. /* See body of main program for 'e'. */
  14165. char f[(_Bool) 0.0 == false ? 1 : -1];
  14166. char g[true];
  14167. char h[sizeof (_Bool)];
  14168. char i[sizeof s.t];
  14169. enum { j = false, k = true, l = false * true, m = true * 256 };
  14170. /* The following fails for
  14171. HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
  14172. _Bool n[m];
  14173. char o[sizeof n == m * sizeof n[0] ? 1 : -1];
  14174. char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
  14175. /* Catch a bug in an HP-UX C compiler. See
  14176. http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
  14177. http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
  14178. */
  14179. _Bool q = true;
  14180. _Bool *pq = &q;
  14181. int
  14182. main ()
  14183. {
  14184. bool e = &s;
  14185. *pq |= q;
  14186. *pq |= ! q;
  14187. /* Refer to every declared value, to avoid compiler optimizations. */
  14188. return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
  14189. + !m + !n + !o + !p + !q + !pq);
  14190. ;
  14191. return 0;
  14192. }
  14193. _ACEOF
  14194. if ac_fn_c_try_compile "$LINENO"; then :
  14195. ac_cv_header_stdbool_h=yes
  14196. else
  14197. ac_cv_header_stdbool_h=no
  14198. fi
  14199. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14200. fi
  14201. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
  14202. $as_echo "$ac_cv_header_stdbool_h" >&6; }
  14203. ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
  14204. if test "x$ac_cv_type__Bool" = xyes; then :
  14205. cat >>confdefs.h <<_ACEOF
  14206. #define HAVE__BOOL 1
  14207. _ACEOF
  14208. fi
  14209. if test $ac_cv_header_stdbool_h = yes; then
  14210. $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
  14211. fi
  14212. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
  14213. $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
  14214. if ${ac_cv_type_uid_t+:} false; then :
  14215. $as_echo_n "(cached) " >&6
  14216. else
  14217. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14218. /* end confdefs.h. */
  14219. #include <sys/types.h>
  14220. _ACEOF
  14221. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14222. $EGREP "uid_t" >/dev/null 2>&1; then :
  14223. ac_cv_type_uid_t=yes
  14224. else
  14225. ac_cv_type_uid_t=no
  14226. fi
  14227. rm -f conftest*
  14228. fi
  14229. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
  14230. $as_echo "$ac_cv_type_uid_t" >&6; }
  14231. if test $ac_cv_type_uid_t = no; then
  14232. $as_echo "#define uid_t int" >>confdefs.h
  14233. $as_echo "#define gid_t int" >>confdefs.h
  14234. fi
  14235. ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
  14236. if test "x$ac_cv_type_pid_t" = xyes; then :
  14237. else
  14238. cat >>confdefs.h <<_ACEOF
  14239. #define pid_t int
  14240. _ACEOF
  14241. fi
  14242. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  14243. if test "x$ac_cv_type_size_t" = xyes; then :
  14244. else
  14245. cat >>confdefs.h <<_ACEOF
  14246. #define size_t unsigned int
  14247. _ACEOF
  14248. fi
  14249. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
  14250. $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
  14251. if ${ac_cv_header_time+:} false; then :
  14252. $as_echo_n "(cached) " >&6
  14253. else
  14254. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14255. /* end confdefs.h. */
  14256. #include <sys/types.h>
  14257. #include <sys/time.h>
  14258. #include <time.h>
  14259. int
  14260. main ()
  14261. {
  14262. if ((struct tm *) 0)
  14263. return 0;
  14264. ;
  14265. return 0;
  14266. }
  14267. _ACEOF
  14268. if ac_fn_c_try_compile "$LINENO"; then :
  14269. ac_cv_header_time=yes
  14270. else
  14271. ac_cv_header_time=no
  14272. fi
  14273. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14274. fi
  14275. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
  14276. $as_echo "$ac_cv_header_time" >&6; }
  14277. if test $ac_cv_header_time = yes; then
  14278. $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
  14279. fi
  14280. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
  14281. $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
  14282. if ${ac_cv_struct_tm+:} false; then :
  14283. $as_echo_n "(cached) " >&6
  14284. else
  14285. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14286. /* end confdefs.h. */
  14287. #include <sys/types.h>
  14288. #include <time.h>
  14289. int
  14290. main ()
  14291. {
  14292. struct tm tm;
  14293. int *p = &tm.tm_sec;
  14294. return !p;
  14295. ;
  14296. return 0;
  14297. }
  14298. _ACEOF
  14299. if ac_fn_c_try_compile "$LINENO"; then :
  14300. ac_cv_struct_tm=time.h
  14301. else
  14302. ac_cv_struct_tm=sys/time.h
  14303. fi
  14304. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14305. fi
  14306. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
  14307. $as_echo "$ac_cv_struct_tm" >&6; }
  14308. if test $ac_cv_struct_tm = sys/time.h; then
  14309. $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
  14310. fi
  14311. # Checks for library functions.
  14312. for ac_header in unistd.h
  14313. do :
  14314. ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
  14315. if test "x$ac_cv_header_unistd_h" = xyes; then :
  14316. cat >>confdefs.h <<_ACEOF
  14317. #define HAVE_UNISTD_H 1
  14318. _ACEOF
  14319. fi
  14320. done
  14321. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5
  14322. $as_echo_n "checking for working chown... " >&6; }
  14323. if ${ac_cv_func_chown_works+:} false; then :
  14324. $as_echo_n "(cached) " >&6
  14325. else
  14326. if test "$cross_compiling" = yes; then :
  14327. ac_cv_func_chown_works=no
  14328. else
  14329. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14330. /* end confdefs.h. */
  14331. $ac_includes_default
  14332. #include <fcntl.h>
  14333. int
  14334. main ()
  14335. {
  14336. char *f = "conftest.chown";
  14337. struct stat before, after;
  14338. if (creat (f, 0600) < 0)
  14339. return 1;
  14340. if (stat (f, &before) < 0)
  14341. return 1;
  14342. if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
  14343. return 1;
  14344. if (stat (f, &after) < 0)
  14345. return 1;
  14346. return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
  14347. ;
  14348. return 0;
  14349. }
  14350. _ACEOF
  14351. if ac_fn_c_try_run "$LINENO"; then :
  14352. ac_cv_func_chown_works=yes
  14353. else
  14354. ac_cv_func_chown_works=no
  14355. fi
  14356. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14357. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14358. fi
  14359. rm -f conftest.chown
  14360. fi
  14361. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5
  14362. $as_echo "$ac_cv_func_chown_works" >&6; }
  14363. if test $ac_cv_func_chown_works = yes; then
  14364. $as_echo "#define HAVE_CHOWN 1" >>confdefs.h
  14365. fi
  14366. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
  14367. $as_echo_n "checking whether closedir returns void... " >&6; }
  14368. if ${ac_cv_func_closedir_void+:} false; then :
  14369. $as_echo_n "(cached) " >&6
  14370. else
  14371. if test "$cross_compiling" = yes; then :
  14372. ac_cv_func_closedir_void=yes
  14373. else
  14374. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14375. /* end confdefs.h. */
  14376. $ac_includes_default
  14377. #include <$ac_header_dirent>
  14378. #ifndef __cplusplus
  14379. int closedir ();
  14380. #endif
  14381. int
  14382. main ()
  14383. {
  14384. return closedir (opendir (".")) != 0;
  14385. ;
  14386. return 0;
  14387. }
  14388. _ACEOF
  14389. if ac_fn_c_try_run "$LINENO"; then :
  14390. ac_cv_func_closedir_void=no
  14391. else
  14392. ac_cv_func_closedir_void=yes
  14393. fi
  14394. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14395. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14396. fi
  14397. fi
  14398. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
  14399. $as_echo "$ac_cv_func_closedir_void" >&6; }
  14400. if test $ac_cv_func_closedir_void = yes; then
  14401. $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
  14402. fi
  14403. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
  14404. $as_echo_n "checking for error_at_line... " >&6; }
  14405. if ${ac_cv_lib_error_at_line+:} false; then :
  14406. $as_echo_n "(cached) " >&6
  14407. else
  14408. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14409. /* end confdefs.h. */
  14410. #include <error.h>
  14411. int
  14412. main ()
  14413. {
  14414. error_at_line (0, 0, "", 0, "an error occurred");
  14415. ;
  14416. return 0;
  14417. }
  14418. _ACEOF
  14419. if ac_fn_c_try_link "$LINENO"; then :
  14420. ac_cv_lib_error_at_line=yes
  14421. else
  14422. ac_cv_lib_error_at_line=no
  14423. fi
  14424. rm -f core conftest.err conftest.$ac_objext \
  14425. conftest$ac_exeext conftest.$ac_ext
  14426. fi
  14427. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
  14428. $as_echo "$ac_cv_lib_error_at_line" >&6; }
  14429. if test $ac_cv_lib_error_at_line = no; then
  14430. case " $LIBOBJS " in
  14431. *" error.$ac_objext "* ) ;;
  14432. *) LIBOBJS="$LIBOBJS error.$ac_objext"
  14433. ;;
  14434. esac
  14435. fi
  14436. for ac_header in vfork.h
  14437. do :
  14438. ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
  14439. if test "x$ac_cv_header_vfork_h" = xyes; then :
  14440. cat >>confdefs.h <<_ACEOF
  14441. #define HAVE_VFORK_H 1
  14442. _ACEOF
  14443. fi
  14444. done
  14445. for ac_func in fork vfork
  14446. do :
  14447. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14448. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14449. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14450. cat >>confdefs.h <<_ACEOF
  14451. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14452. _ACEOF
  14453. fi
  14454. done
  14455. if test "x$ac_cv_func_fork" = xyes; then
  14456. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
  14457. $as_echo_n "checking for working fork... " >&6; }
  14458. if ${ac_cv_func_fork_works+:} false; then :
  14459. $as_echo_n "(cached) " >&6
  14460. else
  14461. if test "$cross_compiling" = yes; then :
  14462. ac_cv_func_fork_works=cross
  14463. else
  14464. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14465. /* end confdefs.h. */
  14466. $ac_includes_default
  14467. int
  14468. main ()
  14469. {
  14470. /* By Ruediger Kuhlmann. */
  14471. return fork () < 0;
  14472. ;
  14473. return 0;
  14474. }
  14475. _ACEOF
  14476. if ac_fn_c_try_run "$LINENO"; then :
  14477. ac_cv_func_fork_works=yes
  14478. else
  14479. ac_cv_func_fork_works=no
  14480. fi
  14481. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14482. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14483. fi
  14484. fi
  14485. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
  14486. $as_echo "$ac_cv_func_fork_works" >&6; }
  14487. else
  14488. ac_cv_func_fork_works=$ac_cv_func_fork
  14489. fi
  14490. if test "x$ac_cv_func_fork_works" = xcross; then
  14491. case $host in
  14492. *-*-amigaos* | *-*-msdosdjgpp*)
  14493. # Override, as these systems have only a dummy fork() stub
  14494. ac_cv_func_fork_works=no
  14495. ;;
  14496. *)
  14497. ac_cv_func_fork_works=yes
  14498. ;;
  14499. esac
  14500. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  14501. $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  14502. fi
  14503. ac_cv_func_vfork_works=$ac_cv_func_vfork
  14504. if test "x$ac_cv_func_vfork" = xyes; then
  14505. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
  14506. $as_echo_n "checking for working vfork... " >&6; }
  14507. if ${ac_cv_func_vfork_works+:} false; then :
  14508. $as_echo_n "(cached) " >&6
  14509. else
  14510. if test "$cross_compiling" = yes; then :
  14511. ac_cv_func_vfork_works=cross
  14512. else
  14513. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14514. /* end confdefs.h. */
  14515. /* Thanks to Paul Eggert for this test. */
  14516. $ac_includes_default
  14517. #include <sys/wait.h>
  14518. #ifdef HAVE_VFORK_H
  14519. # include <vfork.h>
  14520. #endif
  14521. /* On some sparc systems, changes by the child to local and incoming
  14522. argument registers are propagated back to the parent. The compiler
  14523. is told about this with #include <vfork.h>, but some compilers
  14524. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  14525. static variable whose address is put into a register that is
  14526. clobbered by the vfork. */
  14527. static void
  14528. #ifdef __cplusplus
  14529. sparc_address_test (int arg)
  14530. # else
  14531. sparc_address_test (arg) int arg;
  14532. #endif
  14533. {
  14534. static pid_t child;
  14535. if (!child) {
  14536. child = vfork ();
  14537. if (child < 0) {
  14538. perror ("vfork");
  14539. _exit(2);
  14540. }
  14541. if (!child) {
  14542. arg = getpid();
  14543. write(-1, "", 0);
  14544. _exit (arg);
  14545. }
  14546. }
  14547. }
  14548. int
  14549. main ()
  14550. {
  14551. pid_t parent = getpid ();
  14552. pid_t child;
  14553. sparc_address_test (0);
  14554. child = vfork ();
  14555. if (child == 0) {
  14556. /* Here is another test for sparc vfork register problems. This
  14557. test uses lots of local variables, at least as many local
  14558. variables as main has allocated so far including compiler
  14559. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  14560. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  14561. reuse the register of parent for one of the local variables,
  14562. since it will think that parent can't possibly be used any more
  14563. in this routine. Assigning to the local variable will thus
  14564. munge parent in the parent process. */
  14565. pid_t
  14566. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  14567. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  14568. /* Convince the compiler that p..p7 are live; otherwise, it might
  14569. use the same hardware register for all 8 local variables. */
  14570. if (p != p1 || p != p2 || p != p3 || p != p4
  14571. || p != p5 || p != p6 || p != p7)
  14572. _exit(1);
  14573. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  14574. from child file descriptors. If the child closes a descriptor
  14575. before it execs or exits, this munges the parent's descriptor
  14576. as well. Test for this by closing stdout in the child. */
  14577. _exit(close(fileno(stdout)) != 0);
  14578. } else {
  14579. int status;
  14580. struct stat st;
  14581. while (wait(&status) != child)
  14582. ;
  14583. return (
  14584. /* Was there some problem with vforking? */
  14585. child < 0
  14586. /* Did the child fail? (This shouldn't happen.) */
  14587. || status
  14588. /* Did the vfork/compiler bug occur? */
  14589. || parent != getpid()
  14590. /* Did the file descriptor bug occur? */
  14591. || fstat(fileno(stdout), &st) != 0
  14592. );
  14593. }
  14594. }
  14595. _ACEOF
  14596. if ac_fn_c_try_run "$LINENO"; then :
  14597. ac_cv_func_vfork_works=yes
  14598. else
  14599. ac_cv_func_vfork_works=no
  14600. fi
  14601. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14602. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14603. fi
  14604. fi
  14605. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
  14606. $as_echo "$ac_cv_func_vfork_works" >&6; }
  14607. fi;
  14608. if test "x$ac_cv_func_fork_works" = xcross; then
  14609. ac_cv_func_vfork_works=$ac_cv_func_vfork
  14610. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  14611. $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  14612. fi
  14613. if test "x$ac_cv_func_vfork_works" = xyes; then
  14614. $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
  14615. else
  14616. $as_echo "#define vfork fork" >>confdefs.h
  14617. fi
  14618. if test "x$ac_cv_func_fork_works" = xyes; then
  14619. $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
  14620. fi
  14621. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
  14622. $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
  14623. if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
  14624. $as_echo_n "(cached) " >&6
  14625. else
  14626. rm -f conftest.sym conftest.file
  14627. echo >conftest.file
  14628. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  14629. if test "$cross_compiling" = yes; then :
  14630. ac_cv_func_lstat_dereferences_slashed_symlink=no
  14631. else
  14632. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14633. /* end confdefs.h. */
  14634. $ac_includes_default
  14635. int
  14636. main ()
  14637. {
  14638. struct stat sbuf;
  14639. /* Linux will dereference the symlink and fail, as required by POSIX.
  14640. That is better in the sense that it means we will not
  14641. have to compile and use the lstat wrapper. */
  14642. return lstat ("conftest.sym/", &sbuf) == 0;
  14643. ;
  14644. return 0;
  14645. }
  14646. _ACEOF
  14647. if ac_fn_c_try_run "$LINENO"; then :
  14648. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  14649. else
  14650. ac_cv_func_lstat_dereferences_slashed_symlink=no
  14651. fi
  14652. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14653. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14654. fi
  14655. else
  14656. # If the `ln -s' command failed, then we probably don't even
  14657. # have an lstat function.
  14658. ac_cv_func_lstat_dereferences_slashed_symlink=no
  14659. fi
  14660. rm -f conftest.sym conftest.file
  14661. fi
  14662. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  14663. $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  14664. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  14665. cat >>confdefs.h <<_ACEOF
  14666. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  14667. _ACEOF
  14668. if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
  14669. case " $LIBOBJS " in
  14670. *" lstat.$ac_objext "* ) ;;
  14671. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  14672. ;;
  14673. esac
  14674. fi
  14675. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat accepts an empty string" >&5
  14676. $as_echo_n "checking whether lstat accepts an empty string... " >&6; }
  14677. if ${ac_cv_func_lstat_empty_string_bug+:} false; then :
  14678. $as_echo_n "(cached) " >&6
  14679. else
  14680. if test "$cross_compiling" = yes; then :
  14681. ac_cv_func_lstat_empty_string_bug=yes
  14682. else
  14683. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14684. /* end confdefs.h. */
  14685. $ac_includes_default
  14686. int
  14687. main ()
  14688. {
  14689. struct stat sbuf;
  14690. return lstat ("", &sbuf) == 0;
  14691. ;
  14692. return 0;
  14693. }
  14694. _ACEOF
  14695. if ac_fn_c_try_run "$LINENO"; then :
  14696. ac_cv_func_lstat_empty_string_bug=no
  14697. else
  14698. ac_cv_func_lstat_empty_string_bug=yes
  14699. fi
  14700. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14701. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14702. fi
  14703. fi
  14704. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_empty_string_bug" >&5
  14705. $as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
  14706. if test $ac_cv_func_lstat_empty_string_bug = yes; then
  14707. case " $LIBOBJS " in
  14708. *" lstat.$ac_objext "* ) ;;
  14709. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  14710. ;;
  14711. esac
  14712. cat >>confdefs.h <<_ACEOF
  14713. #define HAVE_LSTAT_EMPTY_STRING_BUG 1
  14714. _ACEOF
  14715. fi
  14716. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
  14717. $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
  14718. if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
  14719. $as_echo_n "(cached) " >&6
  14720. else
  14721. rm -f conftest.sym conftest.file
  14722. echo >conftest.file
  14723. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  14724. if test "$cross_compiling" = yes; then :
  14725. ac_cv_func_lstat_dereferences_slashed_symlink=no
  14726. else
  14727. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14728. /* end confdefs.h. */
  14729. $ac_includes_default
  14730. int
  14731. main ()
  14732. {
  14733. struct stat sbuf;
  14734. /* Linux will dereference the symlink and fail, as required by POSIX.
  14735. That is better in the sense that it means we will not
  14736. have to compile and use the lstat wrapper. */
  14737. return lstat ("conftest.sym/", &sbuf) == 0;
  14738. ;
  14739. return 0;
  14740. }
  14741. _ACEOF
  14742. if ac_fn_c_try_run "$LINENO"; then :
  14743. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  14744. else
  14745. ac_cv_func_lstat_dereferences_slashed_symlink=no
  14746. fi
  14747. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14748. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14749. fi
  14750. else
  14751. # If the `ln -s' command failed, then we probably don't even
  14752. # have an lstat function.
  14753. ac_cv_func_lstat_dereferences_slashed_symlink=no
  14754. fi
  14755. rm -f conftest.sym conftest.file
  14756. fi
  14757. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  14758. $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  14759. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  14760. cat >>confdefs.h <<_ACEOF
  14761. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  14762. _ACEOF
  14763. if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
  14764. case " $LIBOBJS " in
  14765. *" lstat.$ac_objext "* ) ;;
  14766. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  14767. ;;
  14768. esac
  14769. fi
  14770. for ac_header in stdlib.h
  14771. do :
  14772. ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
  14773. if test "x$ac_cv_header_stdlib_h" = xyes; then :
  14774. cat >>confdefs.h <<_ACEOF
  14775. #define HAVE_STDLIB_H 1
  14776. _ACEOF
  14777. fi
  14778. done
  14779. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
  14780. $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
  14781. if ${ac_cv_func_malloc_0_nonnull+:} false; then :
  14782. $as_echo_n "(cached) " >&6
  14783. else
  14784. if test "$cross_compiling" = yes; then :
  14785. ac_cv_func_malloc_0_nonnull=no
  14786. else
  14787. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14788. /* end confdefs.h. */
  14789. #if defined STDC_HEADERS || defined HAVE_STDLIB_H
  14790. # include <stdlib.h>
  14791. #else
  14792. char *malloc ();
  14793. #endif
  14794. int
  14795. main ()
  14796. {
  14797. return ! malloc (0);
  14798. ;
  14799. return 0;
  14800. }
  14801. _ACEOF
  14802. if ac_fn_c_try_run "$LINENO"; then :
  14803. ac_cv_func_malloc_0_nonnull=yes
  14804. else
  14805. ac_cv_func_malloc_0_nonnull=no
  14806. fi
  14807. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14808. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14809. fi
  14810. fi
  14811. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
  14812. $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
  14813. if test $ac_cv_func_malloc_0_nonnull = yes; then :
  14814. $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
  14815. else
  14816. $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
  14817. case " $LIBOBJS " in
  14818. *" malloc.$ac_objext "* ) ;;
  14819. *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
  14820. ;;
  14821. esac
  14822. $as_echo "#define malloc rpl_malloc" >>confdefs.h
  14823. fi
  14824. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
  14825. $as_echo_n "checking for working memcmp... " >&6; }
  14826. if ${ac_cv_func_memcmp_working+:} false; then :
  14827. $as_echo_n "(cached) " >&6
  14828. else
  14829. if test "$cross_compiling" = yes; then :
  14830. ac_cv_func_memcmp_working=no
  14831. else
  14832. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14833. /* end confdefs.h. */
  14834. $ac_includes_default
  14835. int
  14836. main ()
  14837. {
  14838. /* Some versions of memcmp are not 8-bit clean. */
  14839. char c0 = '\100', c1 = '\200', c2 = '\201';
  14840. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  14841. return 1;
  14842. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  14843. or more and with at least one buffer not starting on a 4-byte boundary.
  14844. William Lewis provided this test program. */
  14845. {
  14846. char foo[21];
  14847. char bar[21];
  14848. int i;
  14849. for (i = 0; i < 4; i++)
  14850. {
  14851. char *a = foo + i;
  14852. char *b = bar + i;
  14853. strcpy (a, "--------01111111");
  14854. strcpy (b, "--------10000000");
  14855. if (memcmp (a, b, 16) >= 0)
  14856. return 1;
  14857. }
  14858. return 0;
  14859. }
  14860. ;
  14861. return 0;
  14862. }
  14863. _ACEOF
  14864. if ac_fn_c_try_run "$LINENO"; then :
  14865. ac_cv_func_memcmp_working=yes
  14866. else
  14867. ac_cv_func_memcmp_working=no
  14868. fi
  14869. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14870. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14871. fi
  14872. fi
  14873. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
  14874. $as_echo "$ac_cv_func_memcmp_working" >&6; }
  14875. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  14876. *" memcmp.$ac_objext "* ) ;;
  14877. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  14878. ;;
  14879. esac
  14880. for ac_header in $ac_header_list
  14881. do :
  14882. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  14883. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  14884. "
  14885. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  14886. cat >>confdefs.h <<_ACEOF
  14887. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  14888. _ACEOF
  14889. fi
  14890. done
  14891. for ac_func in getpagesize
  14892. do :
  14893. ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
  14894. if test "x$ac_cv_func_getpagesize" = xyes; then :
  14895. cat >>confdefs.h <<_ACEOF
  14896. #define HAVE_GETPAGESIZE 1
  14897. _ACEOF
  14898. fi
  14899. done
  14900. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
  14901. $as_echo_n "checking for working mmap... " >&6; }
  14902. if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
  14903. $as_echo_n "(cached) " >&6
  14904. else
  14905. if test "$cross_compiling" = yes; then :
  14906. ac_cv_func_mmap_fixed_mapped=no
  14907. else
  14908. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14909. /* end confdefs.h. */
  14910. $ac_includes_default
  14911. /* malloc might have been renamed as rpl_malloc. */
  14912. #undef malloc
  14913. /* Thanks to Mike Haertel and Jim Avera for this test.
  14914. Here is a matrix of mmap possibilities:
  14915. mmap private not fixed
  14916. mmap private fixed at somewhere currently unmapped
  14917. mmap private fixed at somewhere already mapped
  14918. mmap shared not fixed
  14919. mmap shared fixed at somewhere currently unmapped
  14920. mmap shared fixed at somewhere already mapped
  14921. For private mappings, we should verify that changes cannot be read()
  14922. back from the file, nor mmap's back from the file at a different
  14923. address. (There have been systems where private was not correctly
  14924. implemented like the infamous i386 svr4.0, and systems where the
  14925. VM page cache was not coherent with the file system buffer cache
  14926. like early versions of FreeBSD and possibly contemporary NetBSD.)
  14927. For shared mappings, we should conversely verify that changes get
  14928. propagated back to all the places they're supposed to be.
  14929. Grep wants private fixed already mapped.
  14930. The main things grep needs to know about mmap are:
  14931. * does it exist and is it safe to write into the mmap'd area
  14932. * how to use it (BSD variants) */
  14933. #include <fcntl.h>
  14934. #include <sys/mman.h>
  14935. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  14936. char *malloc ();
  14937. #endif
  14938. /* This mess was copied from the GNU getpagesize.h. */
  14939. #ifndef HAVE_GETPAGESIZE
  14940. # ifdef _SC_PAGESIZE
  14941. # define getpagesize() sysconf(_SC_PAGESIZE)
  14942. # else /* no _SC_PAGESIZE */
  14943. # ifdef HAVE_SYS_PARAM_H
  14944. # include <sys/param.h>
  14945. # ifdef EXEC_PAGESIZE
  14946. # define getpagesize() EXEC_PAGESIZE
  14947. # else /* no EXEC_PAGESIZE */
  14948. # ifdef NBPG
  14949. # define getpagesize() NBPG * CLSIZE
  14950. # ifndef CLSIZE
  14951. # define CLSIZE 1
  14952. # endif /* no CLSIZE */
  14953. # else /* no NBPG */
  14954. # ifdef NBPC
  14955. # define getpagesize() NBPC
  14956. # else /* no NBPC */
  14957. # ifdef PAGESIZE
  14958. # define getpagesize() PAGESIZE
  14959. # endif /* PAGESIZE */
  14960. # endif /* no NBPC */
  14961. # endif /* no NBPG */
  14962. # endif /* no EXEC_PAGESIZE */
  14963. # else /* no HAVE_SYS_PARAM_H */
  14964. # define getpagesize() 8192 /* punt totally */
  14965. # endif /* no HAVE_SYS_PARAM_H */
  14966. # endif /* no _SC_PAGESIZE */
  14967. #endif /* no HAVE_GETPAGESIZE */
  14968. int
  14969. main ()
  14970. {
  14971. char *data, *data2, *data3;
  14972. const char *cdata2;
  14973. int i, pagesize;
  14974. int fd, fd2;
  14975. pagesize = getpagesize ();
  14976. /* First, make a file with some known garbage in it. */
  14977. data = (char *) malloc (pagesize);
  14978. if (!data)
  14979. return 1;
  14980. for (i = 0; i < pagesize; ++i)
  14981. *(data + i) = rand ();
  14982. umask (0);
  14983. fd = creat ("conftest.mmap", 0600);
  14984. if (fd < 0)
  14985. return 2;
  14986. if (write (fd, data, pagesize) != pagesize)
  14987. return 3;
  14988. close (fd);
  14989. /* Next, check that the tail of a page is zero-filled. File must have
  14990. non-zero length, otherwise we risk SIGBUS for entire page. */
  14991. fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
  14992. if (fd2 < 0)
  14993. return 4;
  14994. cdata2 = "";
  14995. if (write (fd2, cdata2, 1) != 1)
  14996. return 5;
  14997. data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
  14998. if (data2 == MAP_FAILED)
  14999. return 6;
  15000. for (i = 0; i < pagesize; ++i)
  15001. if (*(data2 + i))
  15002. return 7;
  15003. close (fd2);
  15004. if (munmap (data2, pagesize))
  15005. return 8;
  15006. /* Next, try to mmap the file at a fixed address which already has
  15007. something else allocated at it. If we can, also make sure that
  15008. we see the same garbage. */
  15009. fd = open ("conftest.mmap", O_RDWR);
  15010. if (fd < 0)
  15011. return 9;
  15012. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  15013. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  15014. return 10;
  15015. for (i = 0; i < pagesize; ++i)
  15016. if (*(data + i) != *(data2 + i))
  15017. return 11;
  15018. /* Finally, make sure that changes to the mapped area do not
  15019. percolate back to the file as seen by read(). (This is a bug on
  15020. some variants of i386 svr4.0.) */
  15021. for (i = 0; i < pagesize; ++i)
  15022. *(data2 + i) = *(data2 + i) + 1;
  15023. data3 = (char *) malloc (pagesize);
  15024. if (!data3)
  15025. return 12;
  15026. if (read (fd, data3, pagesize) != pagesize)
  15027. return 13;
  15028. for (i = 0; i < pagesize; ++i)
  15029. if (*(data + i) != *(data3 + i))
  15030. return 14;
  15031. close (fd);
  15032. return 0;
  15033. }
  15034. _ACEOF
  15035. if ac_fn_c_try_run "$LINENO"; then :
  15036. ac_cv_func_mmap_fixed_mapped=yes
  15037. else
  15038. ac_cv_func_mmap_fixed_mapped=no
  15039. fi
  15040. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15041. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15042. fi
  15043. fi
  15044. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
  15045. $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
  15046. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  15047. $as_echo "#define HAVE_MMAP 1" >>confdefs.h
  15048. fi
  15049. rm -f conftest.mmap conftest.txt
  15050. { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
  15051. $as_echo_n "checking return type of signal handlers... " >&6; }
  15052. if ${ac_cv_type_signal+:} false; then :
  15053. $as_echo_n "(cached) " >&6
  15054. else
  15055. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15056. /* end confdefs.h. */
  15057. #include <sys/types.h>
  15058. #include <signal.h>
  15059. int
  15060. main ()
  15061. {
  15062. return *(signal (0, 0)) (0) == 1;
  15063. ;
  15064. return 0;
  15065. }
  15066. _ACEOF
  15067. if ac_fn_c_try_compile "$LINENO"; then :
  15068. ac_cv_type_signal=int
  15069. else
  15070. ac_cv_type_signal=void
  15071. fi
  15072. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15073. fi
  15074. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
  15075. $as_echo "$ac_cv_type_signal" >&6; }
  15076. cat >>confdefs.h <<_ACEOF
  15077. #define RETSIGTYPE $ac_cv_type_signal
  15078. _ACEOF
  15079. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
  15080. $as_echo_n "checking whether stat accepts an empty string... " >&6; }
  15081. if ${ac_cv_func_stat_empty_string_bug+:} false; then :
  15082. $as_echo_n "(cached) " >&6
  15083. else
  15084. if test "$cross_compiling" = yes; then :
  15085. ac_cv_func_stat_empty_string_bug=yes
  15086. else
  15087. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15088. /* end confdefs.h. */
  15089. $ac_includes_default
  15090. int
  15091. main ()
  15092. {
  15093. struct stat sbuf;
  15094. return stat ("", &sbuf) == 0;
  15095. ;
  15096. return 0;
  15097. }
  15098. _ACEOF
  15099. if ac_fn_c_try_run "$LINENO"; then :
  15100. ac_cv_func_stat_empty_string_bug=no
  15101. else
  15102. ac_cv_func_stat_empty_string_bug=yes
  15103. fi
  15104. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15105. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15106. fi
  15107. fi
  15108. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
  15109. $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
  15110. if test $ac_cv_func_stat_empty_string_bug = yes; then
  15111. case " $LIBOBJS " in
  15112. *" stat.$ac_objext "* ) ;;
  15113. *) LIBOBJS="$LIBOBJS stat.$ac_objext"
  15114. ;;
  15115. esac
  15116. cat >>confdefs.h <<_ACEOF
  15117. #define HAVE_STAT_EMPTY_STRING_BUG 1
  15118. _ACEOF
  15119. fi
  15120. ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
  15121. if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
  15122. ac_have_decl=1
  15123. else
  15124. ac_have_decl=0
  15125. fi
  15126. cat >>confdefs.h <<_ACEOF
  15127. #define HAVE_DECL_STRERROR_R $ac_have_decl
  15128. _ACEOF
  15129. for ac_func in strerror_r
  15130. do :
  15131. ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
  15132. if test "x$ac_cv_func_strerror_r" = xyes; then :
  15133. cat >>confdefs.h <<_ACEOF
  15134. #define HAVE_STRERROR_R 1
  15135. _ACEOF
  15136. fi
  15137. done
  15138. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
  15139. $as_echo_n "checking whether strerror_r returns char *... " >&6; }
  15140. if ${ac_cv_func_strerror_r_char_p+:} false; then :
  15141. $as_echo_n "(cached) " >&6
  15142. else
  15143. ac_cv_func_strerror_r_char_p=no
  15144. if test $ac_cv_have_decl_strerror_r = yes; then
  15145. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15146. /* end confdefs.h. */
  15147. $ac_includes_default
  15148. int
  15149. main ()
  15150. {
  15151. char buf[100];
  15152. char x = *strerror_r (0, buf, sizeof buf);
  15153. char *p = strerror_r (0, buf, sizeof buf);
  15154. return !p || x;
  15155. ;
  15156. return 0;
  15157. }
  15158. _ACEOF
  15159. if ac_fn_c_try_compile "$LINENO"; then :
  15160. ac_cv_func_strerror_r_char_p=yes
  15161. fi
  15162. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15163. else
  15164. # strerror_r is not declared. Choose between
  15165. # systems that have relatively inaccessible declarations for the
  15166. # function. BeOS and DEC UNIX 4.0 fall in this category, but the
  15167. # former has a strerror_r that returns char*, while the latter
  15168. # has a strerror_r that returns `int'.
  15169. # This test should segfault on the DEC system.
  15170. if test "$cross_compiling" = yes; then :
  15171. :
  15172. else
  15173. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15174. /* end confdefs.h. */
  15175. $ac_includes_default
  15176. extern char *strerror_r ();
  15177. int
  15178. main ()
  15179. {
  15180. char buf[100];
  15181. char x = *strerror_r (0, buf, sizeof buf);
  15182. return ! isalpha (x);
  15183. ;
  15184. return 0;
  15185. }
  15186. _ACEOF
  15187. if ac_fn_c_try_run "$LINENO"; then :
  15188. ac_cv_func_strerror_r_char_p=yes
  15189. fi
  15190. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15191. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15192. fi
  15193. fi
  15194. fi
  15195. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
  15196. $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
  15197. if test $ac_cv_func_strerror_r_char_p = yes; then
  15198. $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
  15199. fi
  15200. for ac_func in strftime
  15201. do :
  15202. ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
  15203. if test "x$ac_cv_func_strftime" = xyes; then :
  15204. cat >>confdefs.h <<_ACEOF
  15205. #define HAVE_STRFTIME 1
  15206. _ACEOF
  15207. else
  15208. # strftime is in -lintl on SCO UNIX.
  15209. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
  15210. $as_echo_n "checking for strftime in -lintl... " >&6; }
  15211. if ${ac_cv_lib_intl_strftime+:} false; then :
  15212. $as_echo_n "(cached) " >&6
  15213. else
  15214. ac_check_lib_save_LIBS=$LIBS
  15215. LIBS="-lintl $LIBS"
  15216. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15217. /* end confdefs.h. */
  15218. /* Override any GCC internal prototype to avoid an error.
  15219. Use char because int might match the return type of a GCC
  15220. builtin and then its argument prototype would still apply. */
  15221. #ifdef __cplusplus
  15222. extern "C"
  15223. #endif
  15224. char strftime ();
  15225. int
  15226. main ()
  15227. {
  15228. return strftime ();
  15229. ;
  15230. return 0;
  15231. }
  15232. _ACEOF
  15233. if ac_fn_c_try_link "$LINENO"; then :
  15234. ac_cv_lib_intl_strftime=yes
  15235. else
  15236. ac_cv_lib_intl_strftime=no
  15237. fi
  15238. rm -f core conftest.err conftest.$ac_objext \
  15239. conftest$ac_exeext conftest.$ac_ext
  15240. LIBS=$ac_check_lib_save_LIBS
  15241. fi
  15242. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
  15243. $as_echo "$ac_cv_lib_intl_strftime" >&6; }
  15244. if test "x$ac_cv_lib_intl_strftime" = xyes; then :
  15245. $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
  15246. LIBS="-lintl $LIBS"
  15247. fi
  15248. fi
  15249. done
  15250. for ac_func in vprintf
  15251. do :
  15252. ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
  15253. if test "x$ac_cv_func_vprintf" = xyes; then :
  15254. cat >>confdefs.h <<_ACEOF
  15255. #define HAVE_VPRINTF 1
  15256. _ACEOF
  15257. ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
  15258. if test "x$ac_cv_func__doprnt" = xyes; then :
  15259. $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
  15260. fi
  15261. fi
  15262. done
  15263. for ac_func in setrlimit endpwent ftruncate getcwd gethostbyname inet_ntoa localtime_r memmove memset mkdir munmap putenv rmdir socket strcasecmp strchr strcspn strdup strerror strncasecmp strpbrk strrchr strstr strtol tzset
  15264. do :
  15265. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  15266. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  15267. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  15268. cat >>confdefs.h <<_ACEOF
  15269. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  15270. _ACEOF
  15271. fi
  15272. done
  15273. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-debug" >&5
  15274. $as_echo_n "checking for --enable-debug... " >&6; }
  15275. # Check whether --enable-debug was given.
  15276. if test "${enable_debug+set}" = set; then :
  15277. enableval=$enable_debug;
  15278. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15279. $as_echo "yes" >&6; }
  15280. debug_defs="-g3 -DDEBUG -DMCC_DEBUG"
  15281. else
  15282. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15283. $as_echo "no" >&6; }
  15284. debug_defs=""
  15285. fi
  15286. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-asan" >&5
  15287. $as_echo_n "checking for --enable-asan... " >&6; }
  15288. # Check whether --enable-asan was given.
  15289. if test "${enable_asan+set}" = set; then :
  15290. enableval=$enable_asan;
  15291. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15292. $as_echo "yes" >&6; }
  15293. asan_defs="-fsanitize=address -fno-omit-frame-pointer"
  15294. else
  15295. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15296. $as_echo "no" >&6; }
  15297. asan_defs=""
  15298. fi
  15299. if test -f /usr/lib/rpm/redhat/redhat-hardened-cc1; then
  15300. RPM_HARDEND_CC_TRUE=
  15301. RPM_HARDEND_CC_FALSE='#'
  15302. else
  15303. RPM_HARDEND_CC_TRUE='#'
  15304. RPM_HARDEND_CC_FALSE=
  15305. fi
  15306. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-gcc-security" >&5
  15307. $as_echo_n "checking for --enable-gcc-security... " >&6; }
  15308. # Check whether --enable-gcc-security was given.
  15309. if test "${enable_gcc_security+set}" = set; then :
  15310. enableval=$enable_gcc_security;
  15311. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15312. $as_echo "yes" >&6; }
  15313. if test -z "$RPM_HARDEND_CC_TRUE"; then :
  15314. 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 "
  15315. else
  15316. gccsec_defs="-Wall -Wp,-D_FORITY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -Werror=format-security"
  15317. fi
  15318. else
  15319. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15320. $as_echo "no" >&6; }
  15321. gccsec_defs=""
  15322. fi
  15323. # Used for legacy style packaging where we bundle all of the dependencies.
  15324. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-bundle" >&5
  15325. $as_echo_n "checking for --enable-bundle... " >&6; }
  15326. # Check whether --enable-bundle was given.
  15327. if test "${enable_bundle+set}" = set; then :
  15328. enableval=$enable_bundle;
  15329. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15330. $as_echo "yes" >&6; }
  15331. bundle="1";
  15332. else
  15333. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15334. $as_echo "no" >&6; }
  15335. bundle="";
  15336. fi
  15337. if test "$bundle" = "1"; then
  15338. BUNDLE_TRUE=
  15339. BUNDLE_FALSE='#'
  15340. else
  15341. BUNDLE_TRUE='#'
  15342. BUNDLE_FALSE=
  15343. fi
  15344. # these enables are for optional or experimental features
  15345. if test -z "$enable_pam_passthru" ; then
  15346. enable_pam_passthru=yes # if not set on cmdline, set default
  15347. fi
  15348. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-pam-passthru" >&5
  15349. $as_echo_n "checking for --enable-pam-passthru... " >&6; }
  15350. # Check whether --enable-pam-passthru was given.
  15351. if test "${enable_pam_passthru+set}" = set; then :
  15352. enableval=$enable_pam_passthru;
  15353. fi
  15354. if test "$enable_pam_passthru" = yes ; then
  15355. # check for pam header file used by plugins/pass_passthru/pam_ptimpl.c
  15356. ac_fn_c_check_header_mongrel "$LINENO" "security/pam_appl.h" "ac_cv_header_security_pam_appl_h" "$ac_includes_default"
  15357. if test "x$ac_cv_header_security_pam_appl_h" = xyes; then :
  15358. else
  15359. as_fn_error $? "Missing header file security/pam_appl.h" "$LINENO" 5
  15360. fi
  15361. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15362. $as_echo "yes" >&6; }
  15363. $as_echo "#define ENABLE_PAM_PASSTHRU 1" >>confdefs.h
  15364. else
  15365. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15366. $as_echo "no" >&6; }
  15367. fi
  15368. if test "$enable_pam_passthru" = "yes"; then
  15369. enable_pam_passthru_TRUE=
  15370. enable_pam_passthru_FALSE='#'
  15371. else
  15372. enable_pam_passthru_TRUE='#'
  15373. enable_pam_passthru_FALSE=
  15374. fi
  15375. if test -z "$enable_dna" ; then
  15376. enable_dna=yes # if not set on cmdline, set default
  15377. fi
  15378. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-dna" >&5
  15379. $as_echo_n "checking for --enable-dna... " >&6; }
  15380. # Check whether --enable-dna was given.
  15381. if test "${enable_dna+set}" = set; then :
  15382. enableval=$enable_dna;
  15383. fi
  15384. if test "$enable_dna" = yes ; then
  15385. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15386. $as_echo "yes" >&6; }
  15387. $as_echo "#define ENABLE_DNA 1" >>confdefs.h
  15388. else
  15389. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15390. $as_echo "no" >&6; }
  15391. fi
  15392. if test "$enable_dna" = "yes"; then
  15393. enable_dna_TRUE=
  15394. enable_dna_FALSE='#'
  15395. else
  15396. enable_dna_TRUE='#'
  15397. enable_dna_FALSE=
  15398. fi
  15399. if test -z "$enable_ldapi" ; then
  15400. enable_ldapi=yes # if not set on cmdline, set default
  15401. fi
  15402. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-ldapi" >&5
  15403. $as_echo_n "checking for --enable-ldapi... " >&6; }
  15404. # Check whether --enable-ldapi was given.
  15405. if test "${enable_ldapi+set}" = set; then :
  15406. enableval=$enable_ldapi;
  15407. fi
  15408. if test "$enable_ldapi" = yes ; then
  15409. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15410. $as_echo "yes" >&6; }
  15411. $as_echo "#define ENABLE_LDAPI 1" >>confdefs.h
  15412. else
  15413. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15414. $as_echo "no" >&6; }
  15415. fi
  15416. if test "$enable_ldapi" = "yes"; then
  15417. enable_ldapi_TRUE=
  15418. enable_ldapi_FALSE='#'
  15419. else
  15420. enable_ldapi_TRUE='#'
  15421. enable_ldapi_FALSE=
  15422. fi
  15423. if test -z "$enable_autobind" ; then
  15424. enable_autobind=no # if not set on cmdline, set default
  15425. fi
  15426. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-autobind" >&5
  15427. $as_echo_n "checking for --enable-autobind... " >&6; }
  15428. # Check whether --enable-autobind was given.
  15429. if test "${enable_autobind+set}" = set; then :
  15430. enableval=$enable_autobind;
  15431. fi
  15432. if test "$enable_ldapi" = yes -a "$enable_autobind" = yes ; then
  15433. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15434. $as_echo "yes" >&6; }
  15435. $as_echo "#define ENABLE_AUTOBIND 1" >>confdefs.h
  15436. else
  15437. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15438. $as_echo "no" >&6; }
  15439. fi
  15440. if test "$enable_autobind" = "yes"; then
  15441. enable_autobind_TRUE=
  15442. enable_autobind_FALSE='#'
  15443. else
  15444. enable_autobind_TRUE='#'
  15445. enable_autobind_FALSE=
  15446. fi
  15447. if test -z "$enable_auto_dn_suffix" ; then
  15448. enable_auto_dn_suffix=no # if not set on cmdline, set default
  15449. fi
  15450. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-auto-dn-suffix" >&5
  15451. $as_echo_n "checking for --enable-auto-dn-suffix... " >&6; }
  15452. # Check whether --enable-autobind was given.
  15453. if test "${enable_autobind+set}" = set; then :
  15454. enableval=$enable_autobind;
  15455. fi
  15456. if test "$enable_ldapi" = yes -a "$enable_autobind" = yes -a "$enable_auto_dn_suffix" = "yes"; then
  15457. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15458. $as_echo "yes" >&6; }
  15459. $as_echo "#define ENABLE_AUTO_DN_SUFFIX 1" >>confdefs.h
  15460. else
  15461. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15462. $as_echo "no" >&6; }
  15463. fi
  15464. if test "$enable_auto_dn_suffix" = "yes"; then
  15465. enable_auto_dn_suffix_TRUE=
  15466. enable_auto_dn_suffix_FALSE='#'
  15467. else
  15468. enable_auto_dn_suffix_TRUE='#'
  15469. enable_auto_dn_suffix_FALSE=
  15470. fi
  15471. if test -z "$enable_bitwise" ; then
  15472. enable_bitwise=yes # if not set on cmdline, set default
  15473. fi
  15474. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-bitwise" >&5
  15475. $as_echo_n "checking for --enable-bitwise... " >&6; }
  15476. # Check whether --enable-bitwise was given.
  15477. if test "${enable_bitwise+set}" = set; then :
  15478. enableval=$enable_bitwise;
  15479. fi
  15480. if test "$enable_bitwise" = yes ; then
  15481. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15482. $as_echo "yes" >&6; }
  15483. $as_echo "#define ENABLE_BITWISE 1" >>confdefs.h
  15484. else
  15485. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15486. $as_echo "no" >&6; }
  15487. fi
  15488. if test "$enable_bitwise" = "yes"; then
  15489. enable_bitwise_TRUE=
  15490. enable_bitwise_FALSE='#'
  15491. else
  15492. enable_bitwise_TRUE='#'
  15493. enable_bitwise_FALSE=
  15494. fi
  15495. if test -z "$enable_presence" ; then
  15496. enable_presence=no # if not set on cmdline, set default
  15497. fi
  15498. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-presence" >&5
  15499. $as_echo_n "checking for --enable-presence... " >&6; }
  15500. # Check whether --enable-presence was given.
  15501. if test "${enable_presence+set}" = set; then :
  15502. enableval=$enable_presence;
  15503. fi
  15504. if test "$enable_presence" = yes ; then
  15505. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15506. $as_echo "yes" >&6; }
  15507. $as_echo "#define ENABLE_PRESENCE 1" >>confdefs.h
  15508. else
  15509. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15510. $as_echo "no" >&6; }
  15511. fi
  15512. if test "$enable_presence" = "yes"; then
  15513. enable_presence_TRUE=
  15514. enable_presence_FALSE='#'
  15515. else
  15516. enable_presence_TRUE='#'
  15517. enable_presence_FALSE=
  15518. fi
  15519. if test -z "$enable_acctpolicy" ; then
  15520. enable_acctpolicy=yes # if not set on cmdline, set default
  15521. fi
  15522. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-acctpolicy" >&5
  15523. $as_echo_n "checking for --enable-acctpolicy... " >&6; }
  15524. # Check whether --enable-acctpolicy was given.
  15525. if test "${enable_acctpolicy+set}" = set; then :
  15526. enableval=$enable_acctpolicy;
  15527. fi
  15528. if test "$enable_acctpolicy" = yes ; then
  15529. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15530. $as_echo "yes" >&6; }
  15531. $as_echo "#define ENABLE_ACCTPOLICY 1" >>confdefs.h
  15532. else
  15533. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15534. $as_echo "no" >&6; }
  15535. fi
  15536. if test "$enable_acctpolicy" = "yes"; then
  15537. enable_acctpolicy_TRUE=
  15538. enable_acctpolicy_FALSE='#'
  15539. else
  15540. enable_acctpolicy_TRUE='#'
  15541. enable_acctpolicy_FALSE=
  15542. fi
  15543. if test -z "$enable_posix_winsync" ; then
  15544. enable_posix_winsync=yes # if not set on cmdline, set default
  15545. fi
  15546. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-posix-winsync" >&5
  15547. $as_echo_n "checking for --enable-posix-winsync... " >&6; }
  15548. # Check whether --enable-posix_winsync was given.
  15549. if test "${enable_posix_winsync+set}" = set; then :
  15550. enableval=$enable_posix_winsync;
  15551. fi
  15552. if test "$enable_posix_winsync" = yes ; then
  15553. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15554. $as_echo "yes" >&6; }
  15555. $as_echo "#define ENABLE_POSIX_WINSYNC 1" >>confdefs.h
  15556. else
  15557. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15558. $as_echo "no" >&6; }
  15559. fi
  15560. if test "$enable_posix_winsync" = "yes"; then
  15561. enable_posix_winsync_TRUE=
  15562. enable_posix_winsync_FALSE='#'
  15563. else
  15564. enable_posix_winsync_TRUE='#'
  15565. enable_posix_winsync_FALSE=
  15566. fi
  15567. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-nunc-stans" >&5
  15568. $as_echo_n "checking for --enable-nunc-stans... " >&6; }
  15569. # Check whether --enable-nunc_stans was given.
  15570. if test "${enable_nunc_stans+set}" = set; then :
  15571. enableval=$enable_nunc_stans;
  15572. fi
  15573. if test "$enable_nunc_stans" = yes ; then
  15574. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15575. $as_echo "yes" >&6; }
  15576. $as_echo "#define ENABLE_NUNC_STANS 1" >>confdefs.h
  15577. else
  15578. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15579. $as_echo "no" >&6; }
  15580. fi
  15581. if test "$enable_nunc_stans" = "yes"; then
  15582. enable_nunc_stans_TRUE=
  15583. enable_nunc_stans_FALSE='#'
  15584. else
  15585. enable_nunc_stans_TRUE='#'
  15586. enable_nunc_stans_FALSE=
  15587. fi
  15588. # the default prefix - override with --prefix or --with-fhs
  15589. # BEGIN COPYRIGHT BLOCK
  15590. # Copyright (C) 2006 Red Hat, Inc.
  15591. # All rights reserved.
  15592. #
  15593. # License: GPL (version 3 or any later version).
  15594. # See LICENSE for details.
  15595. # END COPYRIGHT BLOCK
  15596. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FHS..." >&5
  15597. $as_echo "$as_me: checking for FHS..." >&6;}
  15598. # check for --with-fhs
  15599. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-fhs" >&5
  15600. $as_echo_n "checking for --with-fhs... " >&6; }
  15601. # Check whether --with-fhs was given.
  15602. if test "${with_fhs+set}" = set; then :
  15603. withval=$with_fhs;
  15604. with_fhs=yes
  15605. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15606. $as_echo "yes" >&6; }
  15607. else
  15608. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15609. $as_echo "no" >&6; }
  15610. fi
  15611. if test "$with_fhs" = "yes"; then
  15612. $as_echo "#define IS_FHS 1" >>confdefs.h
  15613. fi
  15614. # check for --with-fhs-opt
  15615. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-fhs-opt" >&5
  15616. $as_echo_n "checking for --with-fhs-opt... " >&6; }
  15617. # Check whether --with-fhs-opt was given.
  15618. if test "${with_fhs_opt+set}" = set; then :
  15619. withval=$with_fhs_opt;
  15620. with_fhs_opt=yes
  15621. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15622. $as_echo "yes" >&6; }
  15623. else
  15624. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15625. $as_echo "no" >&6; }
  15626. fi
  15627. if test "$with_fhs_opt" = "yes"; then
  15628. $as_echo "#define IS_FHS_OPT 1" >>confdefs.h
  15629. fi
  15630. if test "$with_fhs" = "yes" -a "$with_fhs_opt" = "yes"; then
  15631. as_fn_error $? "Can't set both --with-fhs and --with-fhs-opt. Please only use one of these options." "$LINENO" 5
  15632. fi
  15633. localrundir='/run'
  15634. # installation paths - by default, we store everything
  15635. # under the prefix. The with-fhs option will use /usr,
  15636. # /etc, and /var. The with-fhs-opt option will use the
  15637. # prefix, but it's sysconfdir and localstatedir will be
  15638. # /etc/opt, and /var/opt.
  15639. if test "$with_fhs_opt" = "yes"; then
  15640. # Override sysconfdir and localstatedir if FHS optional
  15641. # package was requested.
  15642. sysconfdir='/etc/opt'
  15643. localstatedir='/var/opt'
  15644. localrundir='/var/opt/run'
  15645. # relative to datadir
  15646. sampledatadir=/data
  15647. # relative to datadir
  15648. scripttemplatedir=/script-templates
  15649. # relative to datadir
  15650. updatedir=/updates
  15651. # relative to libdir
  15652. serverdir=
  15653. # relative to includedir
  15654. serverincdir=
  15655. # relative to libdir
  15656. serverplugindir=/plugins
  15657. # relative to datadir
  15658. infdir=/inf
  15659. # relative to datadir
  15660. mibdir=/mibs
  15661. # location of property/resource files, relative to datadir
  15662. propertydir=/properties
  15663. # relative to libdir
  15664. perldir=/perl
  15665. # relative to libdir
  15666. pythondir=/python
  15667. else
  15668. if test "$with_fhs" = "yes"; then
  15669. ac_default_prefix=/usr
  15670. prefix=$ac_default_prefix
  15671. exec_prefix=$prefix
  15672. sysconfdir='/etc'
  15673. localstatedir='/var'
  15674. localrundir='/run'
  15675. fi
  15676. # relative to datadir
  15677. sampledatadir=/$PACKAGE_NAME/data
  15678. # relative to datadir
  15679. scripttemplatedir=/$PACKAGE_NAME/script-templates
  15680. # relative to datadir
  15681. updatedir=/$PACKAGE_NAME/updates
  15682. # relative to libdir
  15683. serverdir=/$PACKAGE_NAME
  15684. # relative to includedir
  15685. serverincdir=/$PACKAGE_NAME
  15686. # relative to libdir
  15687. serverplugindir=/$PACKAGE_NAME/plugins
  15688. # relative to datadir
  15689. infdir=/$PACKAGE_NAME/inf
  15690. # relative to datadir
  15691. mibdir=/$PACKAGE_NAME/mibs
  15692. # location of property/resource files, relative to datadir
  15693. propertydir=/$PACKAGE_NAME/properties
  15694. # relative to libdir
  15695. perldir=/$PACKAGE_NAME/perl
  15696. # relative to libdir
  15697. pythondir=/$PACKAGE_NAME/python
  15698. fi
  15699. # if mandir is the default value, override it
  15700. # otherwise, the user must have set it - just use it
  15701. if test X"$mandir" = X'${prefix}/man' ; then
  15702. mandir='$(datadir)/man'
  15703. fi
  15704. # Shared paths for all layouts
  15705. # relative to sysconfdir
  15706. configdir=/$PACKAGE_NAME/config
  15707. # relative to sysconfdir
  15708. schemadir=/$PACKAGE_NAME/schema
  15709. # default user, group
  15710. defaultuser=dirsrv
  15711. defaultgroup=dirsrv
  15712. if test -z "$with_tmpfiles_d" ; then
  15713. if test -d $sysconfdir/tmpfiles.d ; then
  15714. with_tmpfiles_d='$(sysconfdir)/tmpfiles.d'
  15715. fi
  15716. fi
  15717. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-tmpfiles-d" >&5
  15718. $as_echo_n "checking for --with-tmpfiles-d... " >&6; }
  15719. # Check whether --with-tmpfiles-d was given.
  15720. if test "${with_tmpfiles_d+set}" = set; then :
  15721. withval=$with_tmpfiles_d;
  15722. fi
  15723. if test "$with_tmpfiles_d" = yes ; then
  15724. as_fn_error $? "You must specify --with-tmpfiles-d=/full/path/to/tmpfiles.d directory" "$LINENO" 5
  15725. elif test "$with_tmpfiles_d" = no ; then
  15726. with_tmpfiles_d=
  15727. else
  15728. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tmpfiles_d" >&5
  15729. $as_echo "$with_tmpfiles_d" >&6; }
  15730. fi
  15731. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  15732. if test -n "$ac_tool_prefix"; then
  15733. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  15734. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  15735. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15736. $as_echo_n "checking for $ac_word... " >&6; }
  15737. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  15738. $as_echo_n "(cached) " >&6
  15739. else
  15740. case $PKG_CONFIG in
  15741. [\\/]* | ?:[\\/]*)
  15742. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  15743. ;;
  15744. *)
  15745. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15746. for as_dir in $PATH
  15747. do
  15748. IFS=$as_save_IFS
  15749. test -z "$as_dir" && as_dir=.
  15750. for ac_exec_ext in '' $ac_executable_extensions; do
  15751. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15752. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  15753. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15754. break 2
  15755. fi
  15756. done
  15757. done
  15758. IFS=$as_save_IFS
  15759. ;;
  15760. esac
  15761. fi
  15762. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  15763. if test -n "$PKG_CONFIG"; then
  15764. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  15765. $as_echo "$PKG_CONFIG" >&6; }
  15766. else
  15767. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15768. $as_echo "no" >&6; }
  15769. fi
  15770. fi
  15771. if test -z "$ac_cv_path_PKG_CONFIG"; then
  15772. ac_pt_PKG_CONFIG=$PKG_CONFIG
  15773. # Extract the first word of "pkg-config", so it can be a program name with args.
  15774. set dummy pkg-config; ac_word=$2
  15775. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15776. $as_echo_n "checking for $ac_word... " >&6; }
  15777. if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
  15778. $as_echo_n "(cached) " >&6
  15779. else
  15780. case $ac_pt_PKG_CONFIG in
  15781. [\\/]* | ?:[\\/]*)
  15782. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  15783. ;;
  15784. *)
  15785. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15786. for as_dir in $PATH
  15787. do
  15788. IFS=$as_save_IFS
  15789. test -z "$as_dir" && as_dir=.
  15790. for ac_exec_ext in '' $ac_executable_extensions; do
  15791. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15792. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  15793. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15794. break 2
  15795. fi
  15796. done
  15797. done
  15798. IFS=$as_save_IFS
  15799. ;;
  15800. esac
  15801. fi
  15802. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  15803. if test -n "$ac_pt_PKG_CONFIG"; then
  15804. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  15805. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  15806. else
  15807. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15808. $as_echo "no" >&6; }
  15809. fi
  15810. if test "x$ac_pt_PKG_CONFIG" = x; then
  15811. PKG_CONFIG=""
  15812. else
  15813. case $cross_compiling:$ac_tool_warned in
  15814. yes:)
  15815. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  15816. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  15817. ac_tool_warned=yes ;;
  15818. esac
  15819. PKG_CONFIG=$ac_pt_PKG_CONFIG
  15820. fi
  15821. else
  15822. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  15823. fi
  15824. fi
  15825. if test -n "$PKG_CONFIG"; then
  15826. _pkg_min_version=0.9.0
  15827. { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  15828. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  15829. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  15830. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15831. $as_echo "yes" >&6; }
  15832. else
  15833. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15834. $as_echo "no" >&6; }
  15835. PKG_CONFIG=""
  15836. fi
  15837. fi
  15838. if test -n "$PKG_CONFIG" ; then
  15839. default_systemdsystemunitdir=`$PKG_CONFIG --variable=systemdsystemunitdir systemd`
  15840. default_systemdsystemconfdir=`$PKG_CONFIG --variable=systemdsystemconfdir systemd`
  15841. fi
  15842. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-perldir" >&5
  15843. $as_echo_n "checking for --with-perldir... " >&6; }
  15844. # Check whether --with-perldir was given.
  15845. if test "${with_perldir+set}" = set; then :
  15846. withval=$with_perldir;
  15847. fi
  15848. if test -n "$with_perldir"; then
  15849. if test "$with_perldir" = yes ; then
  15850. as_fn_error $? "You must specify --with-perldir=/full/path/to/perl" "$LINENO" 5
  15851. elif test "$with_perldir" = no ; then
  15852. with_perldir=
  15853. else
  15854. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_perldir" >&5
  15855. $as_echo "$with_perldir" >&6; }
  15856. fi
  15857. else
  15858. with_perldir=
  15859. fi
  15860. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pythondir" >&5
  15861. $as_echo_n "checking for --with-pythondir... " >&6; }
  15862. # Check whether --with-pythondir was given.
  15863. if test "${with_pythondir+set}" = set; then :
  15864. withval=$with_pythondir;
  15865. fi
  15866. if test -n "$with_pythondir"; then
  15867. if test "$with_pythondir" = yes ; then
  15868. as_fn_error $? "You must specify --with-pythondir=/full/path/to/python" "$LINENO" 5
  15869. elif test "$with_pythondir" = no ; then
  15870. with_pythondir=
  15871. else
  15872. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_pythondir" >&5
  15873. $as_echo "$with_pythondir" >&6; }
  15874. fi
  15875. else
  15876. with_pythondir=
  15877. fi
  15878. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-systemdsystemunitdir" >&5
  15879. $as_echo_n "checking for --with-systemdsystemunitdir... " >&6; }
  15880. # Check whether --with-systemdsystemunitdir was given.
  15881. if test "${with_systemdsystemunitdir+set}" = set; then :
  15882. withval=$with_systemdsystemunitdir;
  15883. fi
  15884. if test "$with_systemdsystemunitdir" = yes ; then
  15885. if test -n "$default_systemdsystemunitdir" ; then
  15886. with_systemdsystemunitdir=$default_systemdsystemunitdir
  15887. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_systemdsystemunitdir" >&5
  15888. $as_echo "$with_systemdsystemunitdir" >&6; }
  15889. else
  15890. as_fn_error $? "You must specify --with-systemdsystemconfdir=/full/path/to/systemd/system directory" "$LINENO" 5
  15891. fi
  15892. elif test "$with_systemdsystemunitdir" = no ; then
  15893. with_systemdsystemunitdir=
  15894. else
  15895. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_systemdsystemunitdir" >&5
  15896. $as_echo "$with_systemdsystemunitdir" >&6; }
  15897. fi
  15898. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-systemdsystemconfdir" >&5
  15899. $as_echo_n "checking for --with-systemdsystemconfdir... " >&6; }
  15900. # Check whether --with-systemdsystemconfdir was given.
  15901. if test "${with_systemdsystemconfdir+set}" = set; then :
  15902. withval=$with_systemdsystemconfdir;
  15903. fi
  15904. if test "$with_systemdsystemconfdir" = yes ; then
  15905. if test -n "$default_systemdsystemconfdir" ; then
  15906. with_systemdsystemconfdir=$default_systemdsystemconfdir
  15907. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_systemdsystemconfdir" >&5
  15908. $as_echo "$with_systemdsystemconfdir" >&6; }
  15909. else
  15910. as_fn_error $? "You must specify --with-systemdsystemconfdir=/full/path/to/systemd/system directory" "$LINENO" 5
  15911. fi
  15912. elif test "$with_systemdsystemconfdir" = no ; then
  15913. with_systemdsystemconfdir=
  15914. else
  15915. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_systemdsystemconfdir" >&5
  15916. $as_echo "$with_systemdsystemconfdir" >&6; }
  15917. fi
  15918. if test -n "$with_systemdsystemunitdir" -o -n "$with_systemdsystemconfdir" ; then
  15919. if test -z "$with_systemdgroupname" ; then
  15920. with_systemdgroupname=$PACKAGE_NAME.target
  15921. fi
  15922. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-systemdgroupname" >&5
  15923. $as_echo_n "checking for --with-systemdgroupname... " >&6; }
  15924. # Check whether --with-systemdgroupname was given.
  15925. if test "${with_systemdgroupname+set}" = set; then :
  15926. withval=$with_systemdgroupname;
  15927. fi
  15928. if test "$with_systemdgroupname" = yes ; then
  15929. as_fn_error $? "You must specify --with-systemdgroupname=name.of.group" "$LINENO" 5
  15930. elif test "$with_systemdgroupname" = no ; then
  15931. as_fn_error $? "You must specify --with-systemdgroupname=name.of.group" "$LINENO" 5
  15932. else
  15933. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_systemdgroupname" >&5
  15934. $as_echo "$with_systemdgroupname" >&6; }
  15935. fi
  15936. fi
  15937. # check for --with-instconfigdir
  15938. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-instconfigdir" >&5
  15939. $as_echo_n "checking for --with-instconfigdir... " >&6; }
  15940. # Check whether --with-instconfigdir was given.
  15941. if test "${with_instconfigdir+set}" = set; then :
  15942. withval=$with_instconfigdir;
  15943. if test $withval = yes ; then
  15944. as_fn_error $? "Please specify a full path with --with-instconfigdir" "$LINENO" 5
  15945. fi
  15946. instconfigdir="$withval"
  15947. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
  15948. $as_echo "$withval" >&6; }
  15949. else
  15950. instconfigdir='$(sysconfdir)/$(PACKAGE_NAME)'
  15951. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15952. $as_echo "no" >&6; }
  15953. fi
  15954. # WINNT should be true if building on Windows system not using
  15955. # cygnus, mingw, or the like and using cmd.exe as the shell
  15956. if false; then
  15957. WINNT_TRUE=
  15958. WINNT_FALSE='#'
  15959. else
  15960. WINNT_TRUE='#'
  15961. WINNT_FALSE=
  15962. fi
  15963. # Deal with platform dependent defines
  15964. # initdir is the location for the SysV init scripts - very heavily platform
  15965. # dependent and not specified in fhs or lsb
  15966. # and not used if systemd is used
  15967. initdir='$(sysconfdir)/rc.d'
  15968. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-initddir" >&5
  15969. $as_echo_n "checking for --with-initddir... " >&6; }
  15970. # Check whether --with-initddir was given.
  15971. if test "${with_initddir+set}" = set; then :
  15972. withval=$with_initddir;
  15973. if test "$withval" = yes -o "$withval" = no ; then
  15974. as_fn_error $? "Please specify a full path with --with-initddir" "$LINENO" 5
  15975. fi
  15976. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
  15977. $as_echo "$withval" >&6; }
  15978. else
  15979. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15980. $as_echo "no" >&6; }
  15981. fi
  15982. # on most platforms, we will just use perl from PATH
  15983. # On some platforms, we cannot. Why not just use any old
  15984. # perl? Because of perldap. We use a perldap that is
  15985. # compiled to either 32bit or 64bit, so we must use a native
  15986. # perl binary compiled with the same bitsize. On Solaris
  15987. # and HP-UX, /usr/bin/perl is 32 bit, so we cannot use
  15988. # those with our 64 bit compiled product.
  15989. if test -n "$with_perldir"; then
  15990. perlexec="$with_perldir/perl"
  15991. else
  15992. perlexec='/usr/bin/env perl'
  15993. fi
  15994. # we use stty in perl scripts to disable password echo
  15995. # this doesn't work unless the full absolute path of the
  15996. # stty command is used e.g. system("stty -echo") does not
  15997. # work but system("/bin/stty -echo") does work
  15998. # since the path of stty may not be the same on all
  15999. # platforms, we set the default here to /bin/stty and
  16000. # allow that value to be overridden in the platform
  16001. # specific section below
  16002. sttyexec=/bin/stty
  16003. case $host in
  16004. *-*-linux*)
  16005. $as_echo "#define Linux 1" >>confdefs.h
  16006. $as_echo "#define LINUX 1" >>confdefs.h
  16007. $as_echo "#define LINUX2_0 1" >>confdefs.h
  16008. $as_echo "#define LINUX2_2 1" >>confdefs.h
  16009. $as_echo "#define LINUX2_4 1" >>confdefs.h
  16010. $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
  16011. platform="linux"
  16012. initdir='$(sysconfdir)/rc.d/init.d'
  16013. # do arch specific linux stuff here
  16014. case $host in
  16015. i*86-*-linux*)
  16016. $as_echo "#define CPU_x86 /**/" >>confdefs.h
  16017. $as_echo "#define ATOMIC_64BIT_OPERATIONS 1" >>confdefs.h
  16018. ;;
  16019. x86_64-*-linux*)
  16020. $as_echo "#define CPU_x86_64 /**/" >>confdefs.h
  16021. $as_echo "#define ATOMIC_64BIT_OPERATIONS 1" >>confdefs.h
  16022. ;;
  16023. aarch64-*-linux*)
  16024. $as_echo "#define CPU_arm /**/" >>confdefs.h
  16025. ;;
  16026. arm*-linux*)
  16027. $as_echo "#define CPU_arm /**/" >>confdefs.h
  16028. ;;
  16029. esac
  16030. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC provided 64-bit atomic bool cas function ..." >&5
  16031. $as_echo_n "checking for GCC provided 64-bit atomic bool cas function ...... " >&6; }
  16032. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16033. /* end confdefs.h. */
  16034. int
  16035. main ()
  16036. {
  16037. long long ptrval = 0, val = 0, newval = 1; (void)__sync_bool_compare_and_swap_8(&ptrval, val, newval);
  16038. ;
  16039. return 0;
  16040. }
  16041. _ACEOF
  16042. if ac_fn_c_try_link "$LINENO"; then :
  16043. $as_echo "#define HAVE_64BIT_ATOMIC_CAS_FUNC 1" >>confdefs.h
  16044. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16045. $as_echo "yes" >&6; }
  16046. else
  16047. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16048. $as_echo "no" >&6; }
  16049. fi
  16050. rm -f core conftest.err conftest.$ac_objext \
  16051. conftest$ac_exeext conftest.$ac_ext
  16052. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC provided 64-bit atomic ops functions ..." >&5
  16053. $as_echo_n "checking for GCC provided 64-bit atomic ops functions ...... " >&6; }
  16054. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16055. /* end confdefs.h. */
  16056. int
  16057. main ()
  16058. {
  16059. long long ptrval = 0, val = 0; (void)__sync_add_and_fetch_8(&ptrval, val);
  16060. ;
  16061. return 0;
  16062. }
  16063. _ACEOF
  16064. if ac_fn_c_try_link "$LINENO"; then :
  16065. $as_echo "#define HAVE_64BIT_ATOMIC_OP_FUNCS 1" >>confdefs.h
  16066. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16067. $as_echo "yes" >&6; }
  16068. else
  16069. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16070. $as_echo "no" >&6; }
  16071. fi
  16072. rm -f core conftest.err conftest.$ac_objext \
  16073. conftest$ac_exeext conftest.$ac_ext
  16074. # some programs use the native thread library directly
  16075. THREADLIB=-lpthread
  16076. THREADLIB=$THREADLIB
  16077. LIBCRYPT=-lcrypt
  16078. LIBCRYPT=$LIBCRYPT
  16079. $as_echo "#define USE_POSIX_RWLOCKS 1" >>confdefs.h
  16080. ;;
  16081. ia64-hp-hpux*)
  16082. $as_echo "#define hpux 1" >>confdefs.h
  16083. $as_echo "#define HPUX 1" >>confdefs.h
  16084. $as_echo "#define HPUX11 1" >>confdefs.h
  16085. $as_echo "#define HPUX11_23 1" >>confdefs.h
  16086. $as_echo "#define CPU_ia64 /**/" >>confdefs.h
  16087. $as_echo "#define OS_hpux 1" >>confdefs.h
  16088. $as_echo "#define _POSIX_C_SOURCE 199506L" >>confdefs.h
  16089. $as_echo "#define _HPUX_SOURCE 1" >>confdefs.h
  16090. $as_echo "#define _INCLUDE_STDC__SOURCE_199901 1" >>confdefs.h
  16091. # assume 64 bit
  16092. perlexec='/opt/perl_64/bin/perl'
  16093. platform="hpux"
  16094. initconfigdir="/$PACKAGE_NAME/config"
  16095. # HPUX doesn't use /etc for this
  16096. initdir=/init.d
  16097. ;;
  16098. hppa*-hp-hpux*)
  16099. $as_echo "#define hpux 1" >>confdefs.h
  16100. $as_echo "#define HPUX 1" >>confdefs.h
  16101. $as_echo "#define HPUX11 1" >>confdefs.h
  16102. $as_echo "#define HPUX11_11 1" >>confdefs.h
  16103. $as_echo "#define CPU_hppa /**/" >>confdefs.h
  16104. $as_echo "#define OS_hpux 1" >>confdefs.h
  16105. $as_echo "#define _POSIX_C_SOURCE 199506L" >>confdefs.h
  16106. $as_echo "#define _HPUX_SOURCE 1" >>confdefs.h
  16107. $as_echo "#define _INCLUDE_STDC__SOURCE_199901 1" >>confdefs.h
  16108. $as_echo "#define ATOMIC_64BIT_OPERATIONS 1" >>confdefs.h
  16109. # assume 64 bit
  16110. initconfigdir="/$PACKAGE_NAME/config"
  16111. perlexec='/opt/perl_64/bin/perl'
  16112. platform="hpux"
  16113. # HPUX doesn't use /etc for this
  16114. initdir=/init.d
  16115. ;;
  16116. *-*-solaris*)
  16117. $as_echo "#define SVR4 1" >>confdefs.h
  16118. $as_echo "#define __svr4 1" >>confdefs.h
  16119. $as_echo "#define __svr4__ 1" >>confdefs.h
  16120. $as_echo "#define _SVID_GETTOD 1" >>confdefs.h
  16121. $as_echo "#define SOLARIS 1" >>confdefs.h
  16122. $as_echo "#define OS_solaris 1" >>confdefs.h
  16123. $as_echo "#define sunos5 1" >>confdefs.h
  16124. $as_echo "#define OSVERSION 509" >>confdefs.h
  16125. $as_echo "#define _REENTRANT 1" >>confdefs.h
  16126. $as_echo "#define NO_DOMAINNAME 1" >>confdefs.h
  16127. LIBSOCKET=-lsocket
  16128. LIBSOCKET=$LIBSOCKET
  16129. LIBNSL=-lnsl
  16130. LIBNSL=$LIBNSL
  16131. LIBDL=-ldl
  16132. LIBDL=$LIBDL
  16133. LIBCSTD=-lCstd
  16134. LIBCSTD=$LIBCSTD
  16135. LIBCRUN=-lCrun
  16136. LIBCRUN=$LIBCRUN
  16137. platform="solaris"
  16138. initdir='$(sysconfdir)/init.d'
  16139. case $host in
  16140. i?86-*-solaris2.1[0-9]*)
  16141. $as_echo "#define HAVE_GETPEERUCRED 1" >>confdefs.h
  16142. ;;
  16143. sparc-*-solaris*)
  16144. $as_echo "#define ATOMIC_64BIT_OPERATIONS 1" >>confdefs.h
  16145. $as_echo "#define CPU_sparc /**/" >>confdefs.h
  16146. TARGET='SPARC'
  16147. ;;
  16148. esac
  16149. ;;
  16150. *)
  16151. platform=""
  16152. ;;
  16153. esac
  16154. # cmd line overrides default setting above
  16155. if test -n "$with_initddir" ; then
  16156. initdir="$with_initddir"
  16157. fi
  16158. # sysv init scripts not used when systemd is used
  16159. # set default initconfigdir if not already set
  16160. # value will be set so as to be relative to $(sysconfdir)
  16161. if test -z "$initconfigdir" ; then
  16162. if test -d /etc/sysconfig ; then
  16163. initconfigdir=/sysconfig
  16164. elif test -d /etc/default ; then
  16165. initconfigdir=/default
  16166. else
  16167. initconfigdir="/$PACKAGE_NAME/config"
  16168. fi
  16169. fi
  16170. if test "$platform" = "hpux"; then
  16171. HPUX_TRUE=
  16172. HPUX_FALSE='#'
  16173. else
  16174. HPUX_TRUE='#'
  16175. HPUX_FALSE=
  16176. fi
  16177. if test "$platform" = "solaris"; then
  16178. SOLARIS_TRUE=
  16179. SOLARIS_FALSE='#'
  16180. else
  16181. SOLARIS_TRUE='#'
  16182. SOLARIS_FALSE=
  16183. fi
  16184. if test -n "$with_systemdsystemunitdir" -o -n "$with_systemdsystemconfdir"; then
  16185. SYSTEMD_TRUE=
  16186. SYSTEMD_FALSE='#'
  16187. else
  16188. SYSTEMD_TRUE='#'
  16189. SYSTEMD_FALSE=
  16190. fi
  16191. # Check for library dependencies
  16192. # BEGIN COPYRIGHT BLOCK
  16193. # Copyright (C) 2007 Red Hat, Inc.
  16194. # All rights reserved.
  16195. #
  16196. # License: GPL (version 3 or any later version).
  16197. # See LICENSE for details.
  16198. # END COPYRIGHT BLOCK
  16199. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NSPR..." >&5
  16200. $as_echo "$as_me: checking for NSPR..." >&6;}
  16201. # check for --with-nspr
  16202. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-nspr" >&5
  16203. $as_echo_n "checking for --with-nspr... " >&6; }
  16204. # Check whether --with-nspr was given.
  16205. if test "${with_nspr+set}" = set; then :
  16206. withval=$with_nspr;
  16207. if test "$withval" = "yes"
  16208. then
  16209. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16210. $as_echo "yes" >&6; }
  16211. elif test "$withval" = "no"
  16212. then
  16213. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16214. $as_echo "no" >&6; }
  16215. as_fn_error $? "NSPR is required." "$LINENO" 5
  16216. elif test -e "$withval"/include/nspr.h -a -d "$withval"/lib
  16217. then
  16218. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16219. $as_echo "using $withval" >&6; }
  16220. NSPRDIR=$withval
  16221. nspr_inc="-I$NSPRDIR/include"
  16222. nspr_lib="-L$NSPRDIR/lib"
  16223. nspr_libdir="$NSPRDIR/lib"
  16224. else
  16225. echo
  16226. as_fn_error $? "$withval not found" "$LINENO" 5
  16227. fi
  16228. else
  16229. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16230. $as_echo "yes" >&6; }
  16231. fi
  16232. # check for --with-nspr-inc
  16233. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-nspr-inc" >&5
  16234. $as_echo_n "checking for --with-nspr-inc... " >&6; }
  16235. # Check whether --with-nspr-inc was given.
  16236. if test "${with_nspr_inc+set}" = set; then :
  16237. withval=$with_nspr_inc;
  16238. if test -e "$withval"/nspr.h
  16239. then
  16240. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16241. $as_echo "using $withval" >&6; }
  16242. nspr_inc="-I$withval"
  16243. else
  16244. echo
  16245. as_fn_error $? "$withval not found" "$LINENO" 5
  16246. fi
  16247. else
  16248. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16249. $as_echo "no" >&6; }
  16250. fi
  16251. # check for --with-nspr-lib
  16252. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-nspr-lib" >&5
  16253. $as_echo_n "checking for --with-nspr-lib... " >&6; }
  16254. # Check whether --with-nspr-lib was given.
  16255. if test "${with_nspr_lib+set}" = set; then :
  16256. withval=$with_nspr_lib;
  16257. if test -d "$withval"
  16258. then
  16259. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16260. $as_echo "using $withval" >&6; }
  16261. nspr_lib="-L$withval"
  16262. nspr_libdir="$withval"
  16263. else
  16264. echo
  16265. as_fn_error $? "$withval not found" "$LINENO" 5
  16266. fi
  16267. else
  16268. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16269. $as_echo "no" >&6; }
  16270. fi
  16271. # if NSPR is not found yet, try pkg-config
  16272. # last resort
  16273. if test -z "$nspr_inc" -o -z "$nspr_lib" -o -z "$nspr_libdir"; then
  16274. # Extract the first word of "pkg-config", so it can be a program name with args.
  16275. set dummy pkg-config; ac_word=$2
  16276. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16277. $as_echo_n "checking for $ac_word... " >&6; }
  16278. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  16279. $as_echo_n "(cached) " >&6
  16280. else
  16281. case $PKG_CONFIG in
  16282. [\\/]* | ?:[\\/]*)
  16283. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  16284. ;;
  16285. *)
  16286. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16287. for as_dir in $PATH
  16288. do
  16289. IFS=$as_save_IFS
  16290. test -z "$as_dir" && as_dir=.
  16291. for ac_exec_ext in '' $ac_executable_extensions; do
  16292. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16293. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  16294. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16295. break 2
  16296. fi
  16297. done
  16298. done
  16299. IFS=$as_save_IFS
  16300. ;;
  16301. esac
  16302. fi
  16303. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  16304. if test -n "$PKG_CONFIG"; then
  16305. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  16306. $as_echo "$PKG_CONFIG" >&6; }
  16307. else
  16308. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16309. $as_echo "no" >&6; }
  16310. fi
  16311. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nspr with pkg-config" >&5
  16312. $as_echo_n "checking for nspr with pkg-config... " >&6; }
  16313. if test -n "$PKG_CONFIG"; then
  16314. if $PKG_CONFIG --exists nspr; then
  16315. nspr_inc=`$PKG_CONFIG --cflags-only-I nspr`
  16316. nspr_lib=`$PKG_CONFIG --libs-only-L nspr`
  16317. nspr_libdir=`$PKG_CONFIG --libs-only-L nspr | sed -e s/-L// | sed -e s/\ .*$//`
  16318. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using system NSPR" >&5
  16319. $as_echo "using system NSPR" >&6; }
  16320. elif $PKG_CONFIG --exists dirsec-nspr; then
  16321. nspr_inc=`$PKG_CONFIG --cflags-only-I dirsec-nspr`
  16322. nspr_lib=`$PKG_CONFIG --libs-only-L dirsec-nspr`
  16323. nspr_libdir=`$PKG_CONFIG --libs-only-L dirsec-nspr | sed -e s/-L// | sed -e s/\ .*$//`
  16324. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using system dirsec NSPR" >&5
  16325. $as_echo "using system dirsec NSPR" >&6; }
  16326. else
  16327. as_fn_error $? "NSPR not found, specify with --with-nspr." "$LINENO" 5
  16328. fi
  16329. fi
  16330. fi
  16331. # BEGIN COPYRIGHT BLOCK
  16332. # Copyright (C) 2007 Red Hat, Inc.
  16333. # All rights reserved.
  16334. #
  16335. # License: GPL (version 3 or any later version).
  16336. # See LICENSE for details.
  16337. # END COPYRIGHT BLOCK
  16338. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NSS..." >&5
  16339. $as_echo "$as_me: checking for NSS..." >&6;}
  16340. # check for --with-nss
  16341. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-nss" >&5
  16342. $as_echo_n "checking for --with-nss... " >&6; }
  16343. # Check whether --with-nss was given.
  16344. if test "${with_nss+set}" = set; then :
  16345. withval=$with_nss;
  16346. if test "$withval" = "yes"
  16347. then
  16348. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16349. $as_echo "yes" >&6; }
  16350. elif test "$withval" = "no"
  16351. then
  16352. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16353. $as_echo "no" >&6; }
  16354. as_fn_error $? "NSS is required." "$LINENO" 5
  16355. elif test -e "$withval"/include/nss.h -a -d "$withval"/lib
  16356. then
  16357. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16358. $as_echo "using $withval" >&6; }
  16359. NSSDIR=$withval
  16360. nss_inc="-I$NSSDIR/include"
  16361. nss_lib="-L$NSSDIR/lib"
  16362. nss_libdir="$NSSDIR/lib"
  16363. else
  16364. echo
  16365. as_fn_error $? "$withval not found" "$LINENO" 5
  16366. fi
  16367. else
  16368. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16369. $as_echo "yes" >&6; }
  16370. fi
  16371. # check for --with-nss-inc
  16372. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-nss-inc" >&5
  16373. $as_echo_n "checking for --with-nss-inc... " >&6; }
  16374. # Check whether --with-nss-inc was given.
  16375. if test "${with_nss_inc+set}" = set; then :
  16376. withval=$with_nss_inc;
  16377. if test -e "$withval"/nss.h
  16378. then
  16379. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16380. $as_echo "using $withval" >&6; }
  16381. nss_inc="-I$withval"
  16382. else
  16383. echo
  16384. as_fn_error $? "$withval not found" "$LINENO" 5
  16385. fi
  16386. else
  16387. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16388. $as_echo "no" >&6; }
  16389. fi
  16390. # check for --with-nss-lib
  16391. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-nss-lib" >&5
  16392. $as_echo_n "checking for --with-nss-lib... " >&6; }
  16393. # Check whether --with-nss-lib was given.
  16394. if test "${with_nss_lib+set}" = set; then :
  16395. withval=$with_nss_lib;
  16396. if test -d "$withval"
  16397. then
  16398. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16399. $as_echo "using $withval" >&6; }
  16400. nss_lib="-L$withval"
  16401. nss_libdir="$withval"
  16402. else
  16403. echo
  16404. as_fn_error $? "$withval not found" "$LINENO" 5
  16405. fi
  16406. else
  16407. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16408. $as_echo "no" >&6; }
  16409. fi
  16410. # if NSS is not found yet, try pkg-config
  16411. # last resort
  16412. if test -z "$nss_inc" -o -z "$nss_lib" -o -z "$nss_libdir"; then
  16413. # Extract the first word of "pkg-config", so it can be a program name with args.
  16414. set dummy pkg-config; ac_word=$2
  16415. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16416. $as_echo_n "checking for $ac_word... " >&6; }
  16417. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  16418. $as_echo_n "(cached) " >&6
  16419. else
  16420. case $PKG_CONFIG in
  16421. [\\/]* | ?:[\\/]*)
  16422. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  16423. ;;
  16424. *)
  16425. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16426. for as_dir in $PATH
  16427. do
  16428. IFS=$as_save_IFS
  16429. test -z "$as_dir" && as_dir=.
  16430. for ac_exec_ext in '' $ac_executable_extensions; do
  16431. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16432. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  16433. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16434. break 2
  16435. fi
  16436. done
  16437. done
  16438. IFS=$as_save_IFS
  16439. ;;
  16440. esac
  16441. fi
  16442. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  16443. if test -n "$PKG_CONFIG"; then
  16444. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  16445. $as_echo "$PKG_CONFIG" >&6; }
  16446. else
  16447. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16448. $as_echo "no" >&6; }
  16449. fi
  16450. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nss with pkg-config" >&5
  16451. $as_echo_n "checking for nss with pkg-config... " >&6; }
  16452. if test -n "$PKG_CONFIG"; then
  16453. if $PKG_CONFIG --exists nss; then
  16454. nss_inc=`$PKG_CONFIG --cflags-only-I nss`
  16455. nss_lib=`$PKG_CONFIG --libs-only-L nss`
  16456. nss_libdir=`$PKG_CONFIG --libs-only-L nss | sed -e s/-L// | sed -e s/\ .*$//`
  16457. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using system NSS" >&5
  16458. $as_echo "using system NSS" >&6; }
  16459. elif $PKG_CONFIG --exists dirsec-nss; then
  16460. nss_inc=`$PKG_CONFIG --cflags-only-I dirsec-nss`
  16461. nss_lib=`$PKG_CONFIG --libs-only-L dirsec-nss`
  16462. nss_libdir=`$PKG_CONFIG --libs-only-L dirsec-nss | sed -e s/-L// | sed -e s/\ .*$//`
  16463. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using system dirsec NSS" >&5
  16464. $as_echo "using system dirsec NSS" >&6; }
  16465. else
  16466. as_fn_error $? "NSS not found, specify with --with-nss." "$LINENO" 5
  16467. fi
  16468. fi
  16469. fi
  16470. # BEGIN COPYRIGHT BLOCK
  16471. # Copyright (C) 2009 Red Hat, Inc.
  16472. # All rights reserved.
  16473. #
  16474. # License: GPL (version 3 or any later version).
  16475. # See LICENSE for details.
  16476. # END COPYRIGHT BLOCK
  16477. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenLDAP..." >&5
  16478. $as_echo "$as_me: checking for OpenLDAP..." >&6;}
  16479. # check for --with-openldap
  16480. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-openldap" >&5
  16481. $as_echo_n "checking for --with-openldap... " >&6; }
  16482. # Check whether --with-openldap was given.
  16483. if test "${with_openldap+set}" = set; then :
  16484. withval=$with_openldap;
  16485. if test "$withval" = yes
  16486. then
  16487. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using system OpenLDAP" >&5
  16488. $as_echo "using system OpenLDAP" >&6; }
  16489. elif test "$withval" = no
  16490. then
  16491. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16492. $as_echo "no" >&6; }
  16493. elif test -e "$withval"/include/ldap.h -a -d "$withval"/lib
  16494. then
  16495. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16496. $as_echo "using $withval" >&6; }
  16497. OPENLDAPDIR=$withval
  16498. openldap_incdir="$OPENLDAPDIR/include"
  16499. openldap_inc="-I$openldap_incdir"
  16500. openldap_lib="-L$OPENLDAPDIR/lib"
  16501. openldap_libdir="$OPENLDAPDIR/lib"
  16502. openldap_bindir="$OPENLDAPDIR/bin"
  16503. with_openldap=yes
  16504. else
  16505. echo
  16506. as_fn_error $? "$withval not found" "$LINENO" 5
  16507. fi
  16508. else
  16509. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16510. $as_echo "no" >&6; }
  16511. fi
  16512. # check for --with-openldap-inc
  16513. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-openldap-inc" >&5
  16514. $as_echo_n "checking for --with-openldap-inc... " >&6; }
  16515. # Check whether --with-openldap-inc was given.
  16516. if test "${with_openldap_inc+set}" = set; then :
  16517. withval=$with_openldap_inc;
  16518. if test -e "$withval"/ldap.h
  16519. then
  16520. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16521. $as_echo "using $withval" >&6; }
  16522. openldap_incdir="$withval"
  16523. openldap_inc="-I$withval"
  16524. with_openldap=yes
  16525. else
  16526. echo
  16527. as_fn_error $? "$withval not found" "$LINENO" 5
  16528. fi
  16529. else
  16530. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16531. $as_echo "no" >&6; }
  16532. fi
  16533. # check for --with-openldap-lib
  16534. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-openldap-lib" >&5
  16535. $as_echo_n "checking for --with-openldap-lib... " >&6; }
  16536. # Check whether --with-openldap-lib was given.
  16537. if test "${with_openldap_lib+set}" = set; then :
  16538. withval=$with_openldap_lib;
  16539. if test -d "$withval"
  16540. then
  16541. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16542. $as_echo "using $withval" >&6; }
  16543. openldap_lib="-L$withval"
  16544. openldap_libdir="$withval"
  16545. with_openldap=yes
  16546. else
  16547. echo
  16548. as_fn_error $? "$withval not found" "$LINENO" 5
  16549. fi
  16550. else
  16551. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16552. $as_echo "no" >&6; }
  16553. fi
  16554. # check for --with-openldap-bin
  16555. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-openldap-bin" >&5
  16556. $as_echo_n "checking for --with-openldap-bin... " >&6; }
  16557. # Check whether --with-openldap-bin was given.
  16558. if test "${with_openldap_bin+set}" = set; then :
  16559. withval=$with_openldap_bin;
  16560. if test -d "$withval"
  16561. then
  16562. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16563. $as_echo "using $withval" >&6; }
  16564. openldap_bindir="$withval"
  16565. with_openldap=yes
  16566. else
  16567. echo
  16568. as_fn_error $? "$withval not found" "$LINENO" 5
  16569. fi
  16570. else
  16571. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16572. $as_echo "no" >&6; }
  16573. fi
  16574. # if OPENLDAP is not found yet, try pkg-config
  16575. if test "$with_openldap" = yes ; then # user wants to use openldap, but didn't specify paths
  16576. if test -z "$openldap_inc" -o -z "$openldap_lib" -o -z "$openldap_libdir" -o -z "$openldap_bindir"; then
  16577. # Extract the first word of "pkg-config", so it can be a program name with args.
  16578. set dummy pkg-config; ac_word=$2
  16579. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16580. $as_echo_n "checking for $ac_word... " >&6; }
  16581. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  16582. $as_echo_n "(cached) " >&6
  16583. else
  16584. case $PKG_CONFIG in
  16585. [\\/]* | ?:[\\/]*)
  16586. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  16587. ;;
  16588. *)
  16589. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16590. for as_dir in $PATH
  16591. do
  16592. IFS=$as_save_IFS
  16593. test -z "$as_dir" && as_dir=.
  16594. for ac_exec_ext in '' $ac_executable_extensions; do
  16595. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16596. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  16597. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16598. break 2
  16599. fi
  16600. done
  16601. done
  16602. IFS=$as_save_IFS
  16603. ;;
  16604. esac
  16605. fi
  16606. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  16607. if test -n "$PKG_CONFIG"; then
  16608. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  16609. $as_echo "$PKG_CONFIG" >&6; }
  16610. else
  16611. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16612. $as_echo "no" >&6; }
  16613. fi
  16614. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenLDAP with pkg-config" >&5
  16615. $as_echo_n "checking for OpenLDAP with pkg-config... " >&6; }
  16616. if test -n "$PKG_CONFIG" && $PKG_CONFIG --exists openldap; then
  16617. openldap_inc=`$PKG_CONFIG --cflags-only-I openldap`
  16618. openldap_lib=`$PKG_CONFIG --libs-only-L openldap`
  16619. openldap_libdir=`$PKG_CONFIG --libs-only-L openldap | sed -e s/-L// | sed -e s/\ .*$//`
  16620. openldap_bindir=`$PKG_CONFIG --variable=bindir openldap`
  16621. openldap_incdir=`$PKG_CONFIG --variable=includedir openldap`
  16622. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using system OpenLDAP from pkg-config" >&5
  16623. $as_echo "using system OpenLDAP from pkg-config" >&6; }
  16624. else
  16625. openldap_incdir="/usr/include"
  16626. openldap_inc="-I$openldap_incdir"
  16627. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no OpenLDAP pkg-config files" >&5
  16628. $as_echo "no OpenLDAP pkg-config files" >&6; }
  16629. fi
  16630. fi
  16631. fi
  16632. if test "$with_openldap" = yes ; then
  16633. save_cppflags="$CPPFLAGS"
  16634. CPPFLAGS="$openldap_inc $nss_inc $nspr_inc"
  16635. ac_fn_c_check_header_mongrel "$LINENO" "ldap_features.h" "ac_cv_header_ldap_features_h" "$ac_includes_default"
  16636. if test "x$ac_cv_header_ldap_features_h" = xyes; then :
  16637. else
  16638. as_fn_error $? "specified with-openldap but ldap_features.h not found" "$LINENO" 5
  16639. fi
  16640. ol_ver_maj=`grep LDAP_VENDOR_VERSION_MAJOR $openldap_incdir/ldap_features.h | awk '{print $3}'`
  16641. ol_ver_min=`grep LDAP_VENDOR_VERSION_MINOR $openldap_incdir/ldap_features.h | awk '{print $3}'`
  16642. ol_ver_pat=`grep LDAP_VENDOR_VERSION_PATCH $openldap_incdir/ldap_features.h | awk '{print $3}'`
  16643. ol_libver="-${ol_ver_maj}.${ol_ver_min}"
  16644. save_ldflags="$LDFLAGS"
  16645. LDFLAGS="$openldap_lib $LDFLAGS"
  16646. as_ac_Lib=`$as_echo "ac_cv_lib_ldap$ol_libver''_ldap_initialize" | $as_tr_sh`
  16647. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_initialize in -lldap$ol_libver" >&5
  16648. $as_echo_n "checking for ldap_initialize in -lldap$ol_libver... " >&6; }
  16649. if eval \${$as_ac_Lib+:} false; then :
  16650. $as_echo_n "(cached) " >&6
  16651. else
  16652. ac_check_lib_save_LIBS=$LIBS
  16653. LIBS="-lldap$ol_libver $LIBS"
  16654. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16655. /* end confdefs.h. */
  16656. /* Override any GCC internal prototype to avoid an error.
  16657. Use char because int might match the return type of a GCC
  16658. builtin and then its argument prototype would still apply. */
  16659. #ifdef __cplusplus
  16660. extern "C"
  16661. #endif
  16662. char ldap_initialize ();
  16663. int
  16664. main ()
  16665. {
  16666. return ldap_initialize ();
  16667. ;
  16668. return 0;
  16669. }
  16670. _ACEOF
  16671. if ac_fn_c_try_link "$LINENO"; then :
  16672. eval "$as_ac_Lib=yes"
  16673. else
  16674. eval "$as_ac_Lib=no"
  16675. fi
  16676. rm -f core conftest.err conftest.$ac_objext \
  16677. conftest$ac_exeext conftest.$ac_ext
  16678. LIBS=$ac_check_lib_save_LIBS
  16679. fi
  16680. eval ac_res=\$$as_ac_Lib
  16681. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  16682. $as_echo "$ac_res" >&6; }
  16683. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  16684. have_ldap_lib=1
  16685. fi
  16686. if test -z "$have_ldap_lib" ; then
  16687. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_initialize in -lldap" >&5
  16688. $as_echo_n "checking for ldap_initialize in -lldap... " >&6; }
  16689. if ${ac_cv_lib_ldap_ldap_initialize+:} false; then :
  16690. $as_echo_n "(cached) " >&6
  16691. else
  16692. ac_check_lib_save_LIBS=$LIBS
  16693. LIBS="-lldap $LIBS"
  16694. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16695. /* end confdefs.h. */
  16696. /* Override any GCC internal prototype to avoid an error.
  16697. Use char because int might match the return type of a GCC
  16698. builtin and then its argument prototype would still apply. */
  16699. #ifdef __cplusplus
  16700. extern "C"
  16701. #endif
  16702. char ldap_initialize ();
  16703. int
  16704. main ()
  16705. {
  16706. return ldap_initialize ();
  16707. ;
  16708. return 0;
  16709. }
  16710. _ACEOF
  16711. if ac_fn_c_try_link "$LINENO"; then :
  16712. ac_cv_lib_ldap_ldap_initialize=yes
  16713. else
  16714. ac_cv_lib_ldap_ldap_initialize=no
  16715. fi
  16716. rm -f core conftest.err conftest.$ac_objext \
  16717. conftest$ac_exeext conftest.$ac_ext
  16718. LIBS=$ac_check_lib_save_LIBS
  16719. fi
  16720. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_ldap_initialize" >&5
  16721. $as_echo "$ac_cv_lib_ldap_ldap_initialize" >&6; }
  16722. if test "x$ac_cv_lib_ldap_ldap_initialize" = xyes; then :
  16723. unset ol_libver
  16724. else
  16725. as_fn_error $? "specified with-openldap but libldap not found" "$LINENO" 5
  16726. fi
  16727. fi
  16728. as_ac_Lib=`$as_echo "ac_cv_lib_ldap$ol_libver''_ldap_url_parse_ext" | $as_tr_sh`
  16729. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_url_parse_ext in -lldap$ol_libver" >&5
  16730. $as_echo_n "checking for ldap_url_parse_ext in -lldap$ol_libver... " >&6; }
  16731. if eval \${$as_ac_Lib+:} false; then :
  16732. $as_echo_n "(cached) " >&6
  16733. else
  16734. ac_check_lib_save_LIBS=$LIBS
  16735. LIBS="-lldap$ol_libver $LIBS"
  16736. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16737. /* end confdefs.h. */
  16738. /* Override any GCC internal prototype to avoid an error.
  16739. Use char because int might match the return type of a GCC
  16740. builtin and then its argument prototype would still apply. */
  16741. #ifdef __cplusplus
  16742. extern "C"
  16743. #endif
  16744. char ldap_url_parse_ext ();
  16745. int
  16746. main ()
  16747. {
  16748. return ldap_url_parse_ext ();
  16749. ;
  16750. return 0;
  16751. }
  16752. _ACEOF
  16753. if ac_fn_c_try_link "$LINENO"; then :
  16754. eval "$as_ac_Lib=yes"
  16755. else
  16756. eval "$as_ac_Lib=no"
  16757. fi
  16758. rm -f core conftest.err conftest.$ac_objext \
  16759. conftest$ac_exeext conftest.$ac_ext
  16760. LIBS=$ac_check_lib_save_LIBS
  16761. fi
  16762. eval ac_res=\$$as_ac_Lib
  16763. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  16764. $as_echo "$ac_res" >&6; }
  16765. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  16766. $as_echo "#define HAVE_LDAP_URL_PARSE_EXT 1" >>confdefs.h
  16767. fi
  16768. ldap_lib_ldif=""
  16769. LDFLAGS="$LDFLAGS -lldap$ol_libver"
  16770. as_ac_Lib=`$as_echo "ac_cv_lib_ldif$ol_libver''__init" | $as_tr_sh`
  16771. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _init in -lldif$ol_libver" >&5
  16772. $as_echo_n "checking for _init in -lldif$ol_libver... " >&6; }
  16773. if eval \${$as_ac_Lib+:} false; then :
  16774. $as_echo_n "(cached) " >&6
  16775. else
  16776. ac_check_lib_save_LIBS=$LIBS
  16777. LIBS="-lldif$ol_libver $LIBS"
  16778. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16779. /* end confdefs.h. */
  16780. /* Override any GCC internal prototype to avoid an error.
  16781. Use char because int might match the return type of a GCC
  16782. builtin and then its argument prototype would still apply. */
  16783. #ifdef __cplusplus
  16784. extern "C"
  16785. #endif
  16786. char _init ();
  16787. int
  16788. main ()
  16789. {
  16790. return _init ();
  16791. ;
  16792. return 0;
  16793. }
  16794. _ACEOF
  16795. if ac_fn_c_try_link "$LINENO"; then :
  16796. eval "$as_ac_Lib=yes"
  16797. else
  16798. eval "$as_ac_Lib=no"
  16799. fi
  16800. rm -f core conftest.err conftest.$ac_objext \
  16801. conftest$ac_exeext conftest.$ac_ext
  16802. LIBS=$ac_check_lib_save_LIBS
  16803. fi
  16804. eval ac_res=\$$as_ac_Lib
  16805. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  16806. $as_echo "$ac_res" >&6; }
  16807. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  16808. ldap_lib_ldif=-lldif$ol_libver
  16809. else
  16810. ldap_lib_ldif=
  16811. fi
  16812. LDFLAGS="$save_ldflags"
  16813. CPPFLAGS="$save_cppflags"
  16814. $as_echo "#define USE_OPENLDAP 1" >>confdefs.h
  16815. # where to find ldapsearch, et. al.
  16816. ldaptool_bindir=$openldap_bindir
  16817. # default options to pass to the tools
  16818. # use -x because all of our scripts use simple bind
  16819. ldaptool_opts=-x
  16820. # get plain output from ldapsearch - no version, no comments
  16821. plainldif_opts=-LLL
  16822. fi
  16823. # BEGIN COPYRIGHT BLOCK
  16824. # Copyright (C) 2007 Red Hat, Inc.
  16825. # All rights reserved.
  16826. #
  16827. # License: GPL (version 3 or any later version).
  16828. # See LICENSE for details.
  16829. # END COPYRIGHT BLOCK
  16830. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mozilla LDAPSDK..." >&5
  16831. $as_echo "$as_me: checking for Mozilla LDAPSDK..." >&6;}
  16832. # check for --with-ldapsdk
  16833. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-ldapsdk" >&5
  16834. $as_echo_n "checking for --with-ldapsdk... " >&6; }
  16835. # Check whether --with-ldapsdk was given.
  16836. if test "${with_ldapsdk+set}" = set; then :
  16837. withval=$with_ldapsdk;
  16838. if test "$withval" = yes
  16839. then
  16840. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16841. $as_echo "yes" >&6; }
  16842. elif test "$withval" = no
  16843. then
  16844. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16845. $as_echo "no" >&6; }
  16846. elif test -e "$withval"/include/ldap.h -a -d "$withval"/lib
  16847. then
  16848. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16849. $as_echo "using $withval" >&6; }
  16850. LDAPSDKDIR=$withval
  16851. ldapsdk_inc="-I$LDAPSDKDIR/include"
  16852. ldapsdk_lib="-L$LDAPSDKDIR/lib"
  16853. ldapsdk_libdir="$LDAPSDKDIR/lib"
  16854. ldapsdk_bindir="$LDAPSDKDIR/bin"
  16855. with_ldapsdk=yes
  16856. else
  16857. echo
  16858. as_fn_error $? "$withval not found" "$LINENO" 5
  16859. fi
  16860. if test "$with_ldapsdk" = yes -a "$with_openldap" = yes
  16861. then
  16862. as_fn_error $? "Cannot use both LDAPSDK and OpenLDAP." "$LINENO" 5
  16863. fi
  16864. if test "$with_ldapsdk" != yes -a "$with_openldap" != yes
  16865. then
  16866. as_fn_error $? "Either LDAPSDK or OpenLDAP must be used." "$LINENO" 5
  16867. fi
  16868. else
  16869. if test "$with_openldap" = yes
  16870. then
  16871. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16872. $as_echo "no" >&6; }
  16873. else
  16874. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16875. $as_echo "yes" >&6; }
  16876. with_ldapsdk=yes
  16877. fi
  16878. fi
  16879. # check for --with-ldapsdk-inc
  16880. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-ldapsdk-inc" >&5
  16881. $as_echo_n "checking for --with-ldapsdk-inc... " >&6; }
  16882. # Check whether --with-ldapsdk-inc was given.
  16883. if test "${with_ldapsdk_inc+set}" = set; then :
  16884. withval=$with_ldapsdk_inc;
  16885. if test -e "$withval"/ldap.h
  16886. then
  16887. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16888. $as_echo "using $withval" >&6; }
  16889. ldapsdk_inc="-I$withval"
  16890. with_ldapsdk=yes
  16891. else
  16892. echo
  16893. as_fn_error $? "$withval not found" "$LINENO" 5
  16894. fi
  16895. else
  16896. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16897. $as_echo "no" >&6; }
  16898. fi
  16899. # check for --with-ldapsdk-lib
  16900. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-ldapsdk-lib" >&5
  16901. $as_echo_n "checking for --with-ldapsdk-lib... " >&6; }
  16902. # Check whether --with-ldapsdk-lib was given.
  16903. if test "${with_ldapsdk_lib+set}" = set; then :
  16904. withval=$with_ldapsdk_lib;
  16905. if test -d "$withval"
  16906. then
  16907. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16908. $as_echo "using $withval" >&6; }
  16909. ldapsdk_lib="-L$withval"
  16910. ldapsdk_libdir="$withval"
  16911. with_ldapsdk=yes
  16912. else
  16913. echo
  16914. as_fn_error $? "$withval not found" "$LINENO" 5
  16915. fi
  16916. else
  16917. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16918. $as_echo "no" >&6; }
  16919. fi
  16920. # check for --with-ldapsdk-bin
  16921. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-ldapsdk-bin" >&5
  16922. $as_echo_n "checking for --with-ldapsdk-bin... " >&6; }
  16923. # Check whether --with-ldapsdk-bin was given.
  16924. if test "${with_ldapsdk_bin+set}" = set; then :
  16925. withval=$with_ldapsdk_bin;
  16926. if test -d "$withval"
  16927. then
  16928. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16929. $as_echo "using $withval" >&6; }
  16930. ldapsdk_bindir="$withval"
  16931. with_ldapsdk=yes
  16932. else
  16933. echo
  16934. as_fn_error $? "$withval not found" "$LINENO" 5
  16935. fi
  16936. else
  16937. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16938. $as_echo "no" >&6; }
  16939. fi
  16940. # if LDAPSDK is not found yet, try pkg-config
  16941. # last resort
  16942. if test "$with_ldapsdk" = yes ; then
  16943. if test -z "$ldapsdk_inc" -o -z "$ldapsdk_lib" -o -z "$ldapsdk_libdir" -o -z "$ldapsdk_bindir"; then
  16944. # Extract the first word of "pkg-config", so it can be a program name with args.
  16945. set dummy pkg-config; ac_word=$2
  16946. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16947. $as_echo_n "checking for $ac_word... " >&6; }
  16948. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  16949. $as_echo_n "(cached) " >&6
  16950. else
  16951. case $PKG_CONFIG in
  16952. [\\/]* | ?:[\\/]*)
  16953. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  16954. ;;
  16955. *)
  16956. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16957. for as_dir in $PATH
  16958. do
  16959. IFS=$as_save_IFS
  16960. test -z "$as_dir" && as_dir=.
  16961. for ac_exec_ext in '' $ac_executable_extensions; do
  16962. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16963. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  16964. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16965. break 2
  16966. fi
  16967. done
  16968. done
  16969. IFS=$as_save_IFS
  16970. ;;
  16971. esac
  16972. fi
  16973. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  16974. if test -n "$PKG_CONFIG"; then
  16975. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  16976. $as_echo "$PKG_CONFIG" >&6; }
  16977. else
  16978. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16979. $as_echo "no" >&6; }
  16980. fi
  16981. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mozldap with pkg-config" >&5
  16982. $as_echo_n "checking for mozldap with pkg-config... " >&6; }
  16983. if test -n "$PKG_CONFIG"; then
  16984. if $PKG_CONFIG --exists mozldap6; then
  16985. mozldappkg=mozldap6
  16986. elif $PKG_CONFIG --exists mozldap; then
  16987. mozldappkg=mozldap
  16988. else
  16989. as_fn_error $? "LDAPSDK not found, specify with --with-ldapsdk-inc|-lib|-bin." "$LINENO" 5
  16990. fi
  16991. ldapsdk_inc=`$PKG_CONFIG --cflags-only-I $mozldappkg`
  16992. ldapsdk_lib=`$PKG_CONFIG --libs-only-L $mozldappkg`
  16993. ldapsdk_libdir=`$PKG_CONFIG --libs-only-L $mozldappkg | sed -e s/-L// | sed -e s/\ .*$//`
  16994. ldapsdk_bindir=`$PKG_CONFIG --variable=bindir $mozldappkg`
  16995. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using system $mozldappkg" >&5
  16996. $as_echo "using system $mozldappkg" >&6; }
  16997. fi
  16998. fi
  16999. fi
  17000. if test "$with_ldapsdk" = yes ; then
  17001. if test -z "$ldapsdk_inc" -o -z "$ldapsdk_lib"; then
  17002. as_fn_error $? "LDAPSDK not found, specify with --with-ldapsdk-inc|-lib|-bin." "$LINENO" 5
  17003. fi
  17004. if test -z "$ldapsdk_bindir" ; then
  17005. if -d $libdir/mozldap6 ; then
  17006. ldapsdk_bindir=$libdir/mozldap6
  17007. else
  17008. ldapsdk_bindir=$libdir/mozldap
  17009. fi
  17010. fi
  17011. save_cppflags="$CPPFLAGS"
  17012. CPPFLAGS="$ldapsdk_inc $nss_inc $nspr_inc"
  17013. ac_fn_c_check_header_compile "$LINENO" "ldap.h" "ac_cv_header_ldap_h" "#include <ldap-standard.h>
  17014. #if LDAP_VENDOR_VERSION < 600
  17015. #error The LDAP C SDK version is not supported
  17016. #endif
  17017. "
  17018. if test "x$ac_cv_header_ldap_h" = xyes; then :
  17019. isversion6=1
  17020. else
  17021. isversion6=
  17022. fi
  17023. CPPFLAGS="$save_cppflags"
  17024. if test -z "$isversion6" ; then
  17025. as_fn_error $? "The LDAPSDK version in $ldapsdk_inc/ldap-standard.h is not supported" "$LINENO" 5
  17026. fi
  17027. $as_echo "#define USE_MOZLDAP 1" >>confdefs.h
  17028. $as_echo "#define HAVE_LDAP_URL_PARSE_NO_DEFAULTS 1" >>confdefs.h
  17029. # where to find ldapsearch, et. al.
  17030. ldaptool_bindir=$ldapsdk_bindir
  17031. # default options to pass to the tools
  17032. ldaptool_opts=
  17033. # get plain output from ldapsearch - no version
  17034. plainldif_opts=-1
  17035. fi
  17036. # BEGIN COPYRIGHT BLOCK
  17037. # Copyright (C) 2007 Red Hat, Inc.
  17038. # All rights reserved.
  17039. #
  17040. # License: GPL (version 3 or any later version).
  17041. # See LICENSE for details.
  17042. # END COPYRIGHT BLOCK
  17043. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for db..." >&5
  17044. $as_echo "$as_me: checking for db..." >&6;}
  17045. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-db" >&5
  17046. $as_echo_n "checking for --with-db... " >&6; }
  17047. # Check whether --with-db was given.
  17048. if test "${with_db+set}" = set; then :
  17049. withval=$with_db;
  17050. if test "$withval" = "yes"; then
  17051. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17052. $as_echo "yes" >&6; }
  17053. elif test "$withval" = "no"; then
  17054. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17055. $as_echo "no" >&6; }
  17056. as_fn_error $? "db is required." "$LINENO" 5
  17057. elif test -d "$withval"/include -a -d "$withval"/lib; then
  17058. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17059. $as_echo "using $withval" >&6; }
  17060. DBDIR=$withval
  17061. db_lib="-L$DBDIR/lib"
  17062. db_libdir="$DBDIR/lib"
  17063. db_incdir="$DBDIR/include"
  17064. if ! test -e "$db_incdir/db.h" ; then
  17065. as_fn_error $? "$withval include dir not found" "$LINENO" 5
  17066. fi
  17067. db_inc="-I$db_incdir"
  17068. else
  17069. echo
  17070. as_fn_error $? "$withval not found" "$LINENO" 5
  17071. fi
  17072. else
  17073. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17074. $as_echo "yes" >&6; }
  17075. fi
  17076. # check for --with-db-inc
  17077. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-db-inc" >&5
  17078. $as_echo_n "checking for --with-db-inc... " >&6; }
  17079. # Check whether --with-db-inc was given.
  17080. if test "${with_db_inc+set}" = set; then :
  17081. withval=$with_db_inc;
  17082. if test -e "$withval"/db.h
  17083. then
  17084. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17085. $as_echo "using $withval" >&6; }
  17086. db_incdir="$withval"
  17087. db_inc="-I$withval"
  17088. else
  17089. echo
  17090. as_fn_error $? "$withval not found" "$LINENO" 5
  17091. fi
  17092. else
  17093. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17094. $as_echo "no" >&6; }
  17095. fi
  17096. # check for --with-db-lib
  17097. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-db-lib" >&5
  17098. $as_echo_n "checking for --with-db-lib... " >&6; }
  17099. # Check whether --with-db-lib was given.
  17100. if test "${with_db_lib+set}" = set; then :
  17101. withval=$with_db_lib;
  17102. if test -d "$withval"
  17103. then
  17104. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17105. $as_echo "using $withval" >&6; }
  17106. db_lib="-L$withval"
  17107. db_libdir="$withval"
  17108. else
  17109. echo
  17110. as_fn_error $? "$withval not found" "$LINENO" 5
  17111. fi
  17112. else
  17113. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17114. $as_echo "no" >&6; }
  17115. fi
  17116. if test -z "$db_inc"; then
  17117. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for db.h" >&5
  17118. $as_echo_n "checking for db.h... " >&6; }
  17119. if test -f "/usr/include/db4/db.h"; then
  17120. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using /usr/include/db4/db.h" >&5
  17121. $as_echo "using /usr/include/db4/db.h" >&6; }
  17122. db_incdir="/usr/include/db4"
  17123. db_inc="-I/usr/include/db4"
  17124. db_lib='-L$(libdir)'
  17125. db_libdir='$(libdir)'
  17126. elif test -f "/usr/include/libdb/db.h"; then
  17127. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using /usr/include/libdb/db.h" >&5
  17128. $as_echo "using /usr/include/libdb/db.h" >&6; }
  17129. db_incdir="/usr/include/libdb"
  17130. db_inc="-I/usr/include/libdb"
  17131. db_lib='-L$(libdir)'
  17132. db_libdir='$(libdir)'
  17133. elif test -f "/usr/include/db.h"; then
  17134. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using /usr/include/db.h" >&5
  17135. $as_echo "using /usr/include/db.h" >&6; }
  17136. db_incdir="/usr/include"
  17137. db_inc="-I/usr/include"
  17138. db_lib='-L$(libdir)'
  17139. db_libdir='$(libdir)'
  17140. else
  17141. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17142. $as_echo "no" >&6; }
  17143. as_fn_error $? "db not found, specify with --with-db." "$LINENO" 5
  17144. fi
  17145. fi
  17146. db_ver_maj=`grep DB_VERSION_MAJOR $db_incdir/db.h | awk '{print $3}'`
  17147. db_ver_min=`grep DB_VERSION_MINOR $db_incdir/db.h | awk '{print $3}'`
  17148. db_ver_pat=`grep DB_VERSION_PATCH $db_incdir/db.h | awk '{print $3}'`
  17149. db_libver=${db_ver_maj}.${db_ver_min}
  17150. save_ldflags="$LDFLAGS"
  17151. LDFLAGS="$db_lib $LDFLAGS"
  17152. as_ac_Lib=`$as_echo "ac_cv_lib_db-$db_libver''_db_create" | $as_tr_sh`
  17153. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for db_create in -ldb-$db_libver" >&5
  17154. $as_echo_n "checking for db_create in -ldb-$db_libver... " >&6; }
  17155. if eval \${$as_ac_Lib+:} false; then :
  17156. $as_echo_n "(cached) " >&6
  17157. else
  17158. ac_check_lib_save_LIBS=$LIBS
  17159. LIBS="-ldb-$db_libver $LIBNSL $LIBS"
  17160. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17161. /* end confdefs.h. */
  17162. /* Override any GCC internal prototype to avoid an error.
  17163. Use char because int might match the return type of a GCC
  17164. builtin and then its argument prototype would still apply. */
  17165. #ifdef __cplusplus
  17166. extern "C"
  17167. #endif
  17168. char db_create ();
  17169. int
  17170. main ()
  17171. {
  17172. return db_create ();
  17173. ;
  17174. return 0;
  17175. }
  17176. _ACEOF
  17177. if ac_fn_c_try_link "$LINENO"; then :
  17178. eval "$as_ac_Lib=yes"
  17179. else
  17180. eval "$as_ac_Lib=no"
  17181. fi
  17182. rm -f core conftest.err conftest.$ac_objext \
  17183. conftest$ac_exeext conftest.$ac_ext
  17184. LIBS=$ac_check_lib_save_LIBS
  17185. fi
  17186. eval ac_res=\$$as_ac_Lib
  17187. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  17188. $as_echo "$ac_res" >&6; }
  17189. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  17190. true
  17191. else
  17192. as_fn_error $? "$db_incdir/db.h is version $db_libver but libdb-$db_libver not found" "$LINENO" 5
  17193. fi
  17194. LDFLAGS="$save_ldflags"
  17195. # if DB is not found yet, try pkg-config
  17196. # last resort
  17197. # Although the other db_* variables are correctly assigned at this point,
  17198. # db_bindir needs to be set by pkg-config if possible (e.g., on 64-bit Solaris)
  17199. if test -n "$PKG_CONFIG"; then
  17200. if $PKG_CONFIG --exists db; then
  17201. db_bindir=`$PKG_CONFIG --variable=bindir db`
  17202. else
  17203. db_bindir=/usr/bin
  17204. fi
  17205. else
  17206. db_bindir=/usr/bin
  17207. fi
  17208. # BEGIN COPYRIGHT BLOCK
  17209. # Copyright (C) 2007 Red Hat, Inc.
  17210. # All rights reserved.
  17211. #
  17212. # License: GPL (version 3 or any later version).
  17213. # See LICENSE for details.
  17214. # END COPYRIGHT BLOCK
  17215. # -*- tab-width: 4; -*-
  17216. # Configure paths for SASL
  17217. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SASL..." >&5
  17218. $as_echo "$as_me: checking for SASL..." >&6;}
  17219. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-sasl" >&5
  17220. $as_echo_n "checking for --with-sasl... " >&6; }
  17221. # Check whether --with-sasl was given.
  17222. if test "${with_sasl+set}" = set; then :
  17223. withval=$with_sasl;
  17224. if test "$withval" = "yes"; then
  17225. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17226. $as_echo "yes" >&6; }
  17227. elif test "$withval" = "no"; then
  17228. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17229. $as_echo "no" >&6; }
  17230. as_fn_error $? "SASL is required." "$LINENO" 5
  17231. elif test -d "$withval" -a -d "$withval/lib" -a -d "$withval/include" ; then
  17232. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17233. $as_echo "using $withval" >&6; }
  17234. if test -f "$withval/include/sasl/sasl.h"; then
  17235. sasl_inc="-I$withval/include/sasl"
  17236. elif test -f "$withval/include/sasl.h"; then
  17237. sasl_inc="-I$withval/include"
  17238. else
  17239. as_fn_error $? "sasl.h not found" "$LINENO" 5
  17240. fi
  17241. sasl_lib="-L$withval/lib"
  17242. sasl_libdir="$withval/lib"
  17243. else
  17244. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17245. $as_echo "yes" >&6; }
  17246. as_fn_error $? "SASL not found in $withval" "$LINENO" 5
  17247. fi
  17248. else
  17249. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17250. $as_echo "yes" >&6; }
  17251. fi
  17252. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-sasl-inc" >&5
  17253. $as_echo_n "checking for --with-sasl-inc... " >&6; }
  17254. # Check whether --with-sasl-inc was given.
  17255. if test "${with_sasl_inc+set}" = set; then :
  17256. withval=$with_sasl_inc;
  17257. if test -f "$withval"/sasl.h; then
  17258. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17259. $as_echo "using $withval" >&6; }
  17260. sasl_inc="-I$withval"
  17261. else
  17262. echo
  17263. as_fn_error $? "$withval/sasl.h not found" "$LINENO" 5
  17264. fi
  17265. else
  17266. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17267. $as_echo "no" >&6; }
  17268. fi
  17269. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-sasl-lib" >&5
  17270. $as_echo_n "checking for --with-sasl-lib... " >&6; }
  17271. # Check whether --with-sasl-lib was given.
  17272. if test "${with_sasl_lib+set}" = set; then :
  17273. withval=$with_sasl_lib;
  17274. if test -d "$withval"; then
  17275. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17276. $as_echo "using $withval" >&6; }
  17277. sasl_lib="-L$withval"
  17278. sasl_libdir="$withval"
  17279. else
  17280. echo
  17281. as_fn_error $? "$withval not found" "$LINENO" 5
  17282. fi
  17283. else
  17284. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17285. $as_echo "no" >&6; }
  17286. fi
  17287. if test -z "$sasl_inc"; then
  17288. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sasl.h" >&5
  17289. $as_echo_n "checking for sasl.h... " >&6; }
  17290. if test -f /usr/include/sasl/sasl.h; then
  17291. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using /usr/include/sasl/sasl.h" >&5
  17292. $as_echo "using /usr/include/sasl/sasl.h" >&6; }
  17293. sasl_inc="-I/usr/include/sasl"
  17294. elif test -f /usr/include/sasl.h; then
  17295. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using /usr/include/sasl.h" >&5
  17296. $as_echo "using /usr/include/sasl.h" >&6; }
  17297. sasl_inc="-I/usr/include"
  17298. else
  17299. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17300. $as_echo "no" >&6; }
  17301. as_fn_error $? "SASL not found, specify with --with-sasl." "$LINENO" 5
  17302. fi
  17303. fi
  17304. # BEGIN COPYRIGHT BLOCK
  17305. # Copyright (C) 2007 Red Hat, Inc.
  17306. # All rights reserved.
  17307. #
  17308. # License: GPL (version 3 or any later version).
  17309. # See LICENSE for details.
  17310. # END COPYRIGHT BLOCK
  17311. #
  17312. # Configure paths for SVRCORE
  17313. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SVRCORE..." >&5
  17314. $as_echo "$as_me: checking for SVRCORE..." >&6;}
  17315. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-svrcore" >&5
  17316. $as_echo_n "checking for --with-svrcore... " >&6; }
  17317. # Check whether --with-svrcore was given.
  17318. if test "${with_svrcore+set}" = set; then :
  17319. withval=$with_svrcore;
  17320. if test "$withval" = "yes"; then
  17321. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17322. $as_echo "yes" >&6; }
  17323. elif test "$withval" = "no"; then
  17324. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17325. $as_echo "no" >&6; }
  17326. as_fn_error $? "SVRCORE is required." "$LINENO" 5
  17327. elif test -d "$withval" -a -d "$withval/lib" -a -d "$withval/include" ; then
  17328. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17329. $as_echo "using $withval" >&6; }
  17330. if test -f "$withval/include/svrcore.h"; then
  17331. svrcore_inc="-I$withval/include"
  17332. else
  17333. as_fn_error $? "svrcore.h not found" "$LINENO" 5
  17334. fi
  17335. svrcore_lib="-L$withval/lib"
  17336. else
  17337. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17338. $as_echo "yes" >&6; }
  17339. as_fn_error $? "SVRCORE not found in $withval" "$LINENO" 5
  17340. fi
  17341. else
  17342. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17343. $as_echo "yes" >&6; }
  17344. fi
  17345. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-svrcore-inc" >&5
  17346. $as_echo_n "checking for --with-svrcore-inc... " >&6; }
  17347. # Check whether --with-svrcore-inc was given.
  17348. if test "${with_svrcore_inc+set}" = set; then :
  17349. withval=$with_svrcore_inc;
  17350. if test -f "$withval"/svrcore.h; then
  17351. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17352. $as_echo "using $withval" >&6; }
  17353. svrcore_inc="-I$withval"
  17354. else
  17355. echo
  17356. as_fn_error $? "$withval/svrcore.h not found" "$LINENO" 5
  17357. fi
  17358. else
  17359. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17360. $as_echo "no" >&6; }
  17361. fi
  17362. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-svrcore-lib" >&5
  17363. $as_echo_n "checking for --with-svrcore-lib... " >&6; }
  17364. # Check whether --with-svrcore-lib was given.
  17365. if test "${with_svrcore_lib+set}" = set; then :
  17366. withval=$with_svrcore_lib;
  17367. if test -d "$withval"; then
  17368. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17369. $as_echo "using $withval" >&6; }
  17370. svrcore_lib="-L$withval"
  17371. else
  17372. echo
  17373. as_fn_error $? "$withval not found" "$LINENO" 5
  17374. fi
  17375. else
  17376. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17377. $as_echo "no" >&6; }
  17378. fi
  17379. if test -z "$svrcore_inc" -o -z "$svrcore_lib"; then
  17380. # Extract the first word of "pkg-config", so it can be a program name with args.
  17381. set dummy pkg-config; ac_word=$2
  17382. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17383. $as_echo_n "checking for $ac_word... " >&6; }
  17384. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  17385. $as_echo_n "(cached) " >&6
  17386. else
  17387. case $PKG_CONFIG in
  17388. [\\/]* | ?:[\\/]*)
  17389. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  17390. ;;
  17391. *)
  17392. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17393. for as_dir in $PATH
  17394. do
  17395. IFS=$as_save_IFS
  17396. test -z "$as_dir" && as_dir=.
  17397. for ac_exec_ext in '' $ac_executable_extensions; do
  17398. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17399. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  17400. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17401. break 2
  17402. fi
  17403. done
  17404. done
  17405. IFS=$as_save_IFS
  17406. ;;
  17407. esac
  17408. fi
  17409. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  17410. if test -n "$PKG_CONFIG"; then
  17411. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  17412. $as_echo "$PKG_CONFIG" >&6; }
  17413. else
  17414. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17415. $as_echo "no" >&6; }
  17416. fi
  17417. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SVRCORE with pkg-config" >&5
  17418. $as_echo_n "checking for SVRCORE with pkg-config... " >&6; }
  17419. if test -n "$PKG_CONFIG"; then
  17420. if $PKG_CONFIG --exists svrcore; then
  17421. svrcore_inc=`$PKG_CONFIG --cflags-only-I svrcore`
  17422. svrcore_lib=`$PKG_CONFIG --libs-only-L svrcore`
  17423. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using system svrcore" >&5
  17424. $as_echo "using system svrcore" >&6; }
  17425. fi
  17426. fi
  17427. fi
  17428. if test -z "$svrcore_inc" -o -z "$svrcore_lib"; then
  17429. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SVRCORE_GetRegisteredPinObj in -lsvrcore" >&5
  17430. $as_echo_n "checking for SVRCORE_GetRegisteredPinObj in -lsvrcore... " >&6; }
  17431. if ${ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj+:} false; then :
  17432. $as_echo_n "(cached) " >&6
  17433. else
  17434. ac_check_lib_save_LIBS=$LIBS
  17435. LIBS="-lsvrcore $nss_inc $nspr_inc $nss_lib -lnss3 -lsoftokn3 $nspr_lib -lplds4 -lplc4 -lnspr4 $LIBS"
  17436. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17437. /* end confdefs.h. */
  17438. /* Override any GCC internal prototype to avoid an error.
  17439. Use char because int might match the return type of a GCC
  17440. builtin and then its argument prototype would still apply. */
  17441. #ifdef __cplusplus
  17442. extern "C"
  17443. #endif
  17444. char SVRCORE_GetRegisteredPinObj ();
  17445. int
  17446. main ()
  17447. {
  17448. return SVRCORE_GetRegisteredPinObj ();
  17449. ;
  17450. return 0;
  17451. }
  17452. _ACEOF
  17453. if ac_fn_c_try_link "$LINENO"; then :
  17454. ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj=yes
  17455. else
  17456. ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj=no
  17457. fi
  17458. rm -f core conftest.err conftest.$ac_objext \
  17459. conftest$ac_exeext conftest.$ac_ext
  17460. LIBS=$ac_check_lib_save_LIBS
  17461. fi
  17462. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj" >&5
  17463. $as_echo "$ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj" >&6; }
  17464. if test "x$ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj" = xyes; then :
  17465. havesvrcore=1
  17466. fi
  17467. if test -n "$havesvrcore" ; then
  17468. save_cppflags="$CPPFLAGS"
  17469. CPPFLAGS="$nss_inc $nspr_inc"
  17470. ac_fn_c_check_header_mongrel "$LINENO" "svrcore.h" "ac_cv_header_svrcore_h" "$ac_includes_default"
  17471. if test "x$ac_cv_header_svrcore_h" = xyes; then :
  17472. havesvrcore=1
  17473. else
  17474. havesvrcore=
  17475. fi
  17476. CPPFLAGS="$save_cppflags"
  17477. fi
  17478. if test -z "$havesvrcore" ; then
  17479. as_fn_error $? "SVRCORE not found, specify with --with-svrcore." "$LINENO" 5
  17480. fi
  17481. fi
  17482. if test -z "$svrcore_inc" -o -z "$svrcore_lib"; then
  17483. if test -f /usr/include/svrcore.h; then
  17484. svrcore_inc="-I/usr/include"
  17485. svrcore_lib="-L/usr/lib"
  17486. else
  17487. as_fn_error $? "SVRCORE not found, specify with --with-svrcore." "$LINENO" 5
  17488. fi
  17489. fi
  17490. # BEGIN COPYRIGHT BLOCK
  17491. # Copyright (C) 2006 Red Hat, Inc.
  17492. # All rights reserved.
  17493. #
  17494. # License: GPL (version 3 or any later version).
  17495. # See LICENSE for details.
  17496. # END COPYRIGHT BLOCK
  17497. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBICU..." >&5
  17498. $as_echo "$as_me: checking for LIBICU..." >&6;}
  17499. # check for --with-icu
  17500. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-icu" >&5
  17501. $as_echo_n "checking for --with-icu... " >&6; }
  17502. # Check whether --with-icu was given.
  17503. if test "${with_icu+set}" = set; then :
  17504. withval=$with_icu;
  17505. if test "$withval" = "yes"
  17506. then
  17507. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17508. $as_echo "yes" >&6; }
  17509. elif test "$withval" = "no"
  17510. then
  17511. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17512. $as_echo "no" >&6; }
  17513. as_fn_error $? "ICU is required." "$LINENO" 5
  17514. elif test -d "$withval"/lib
  17515. then
  17516. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17517. $as_echo "using $withval" >&6; }
  17518. ICUDIR=$withval
  17519. icu_lib="-L$ICUDIR/lib"
  17520. icu_inc="-I$withval/include"
  17521. icu_bin="$withval/bin"
  17522. else
  17523. echo
  17524. as_fn_error $? "$withval not found" "$LINENO" 5
  17525. fi
  17526. else
  17527. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17528. $as_echo "yes" >&6; }
  17529. fi
  17530. # check for --with-icu-inc
  17531. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-icu-inc" >&5
  17532. $as_echo_n "checking for --with-icu-inc... " >&6; }
  17533. # Check whether --with-icu-inc was given.
  17534. if test "${with_icu_inc+set}" = set; then :
  17535. withval=$with_icu_inc;
  17536. if test -d "$withval"
  17537. then
  17538. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17539. $as_echo "using $withval" >&6; }
  17540. icu_inc="-I$withval"
  17541. else
  17542. echo
  17543. as_fn_error $? "$withval not found" "$LINENO" 5
  17544. fi
  17545. else
  17546. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17547. $as_echo "no" >&6; }
  17548. fi
  17549. # check for --with-icu-lib
  17550. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-icu-lib" >&5
  17551. $as_echo_n "checking for --with-icu-lib... " >&6; }
  17552. # Check whether --with-icu-lib was given.
  17553. if test "${with_icu_lib+set}" = set; then :
  17554. withval=$with_icu_lib;
  17555. if test -d "$withval"
  17556. then
  17557. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17558. $as_echo "using $withval" >&6; }
  17559. icu_lib="-L$withval"
  17560. else
  17561. echo
  17562. as_fn_error $? "$withval not found" "$LINENO" 5
  17563. fi
  17564. else
  17565. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17566. $as_echo "no" >&6; }
  17567. fi
  17568. # check for --with-icu-bin
  17569. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-icu-bin" >&5
  17570. $as_echo_n "checking for --with-icu-bin... " >&6; }
  17571. # Check whether --with-icu-bin was given.
  17572. if test "${with_icu_bin+set}" = set; then :
  17573. withval=$with_icu_bin;
  17574. if test -d "$withval"
  17575. then
  17576. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17577. $as_echo "using $withval" >&6; }
  17578. icu_bin="$withval"
  17579. else
  17580. echo
  17581. as_fn_error $? "$withval not found" "$LINENO" 5
  17582. fi
  17583. else
  17584. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17585. $as_echo "no" >&6; }
  17586. fi
  17587. # if ICU is not found yet, try pkg-config
  17588. # last resort
  17589. if test -z "$icu_lib"; then
  17590. # Extract the first word of "icu-config", so it can be a program name with args.
  17591. set dummy icu-config; ac_word=$2
  17592. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17593. $as_echo_n "checking for $ac_word... " >&6; }
  17594. if ${ac_cv_path_ICU_CONFIG+:} false; then :
  17595. $as_echo_n "(cached) " >&6
  17596. else
  17597. case $ICU_CONFIG in
  17598. [\\/]* | ?:[\\/]*)
  17599. ac_cv_path_ICU_CONFIG="$ICU_CONFIG" # Let the user override the test with a path.
  17600. ;;
  17601. *)
  17602. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17603. for as_dir in $PATH
  17604. do
  17605. IFS=$as_save_IFS
  17606. test -z "$as_dir" && as_dir=.
  17607. for ac_exec_ext in '' $ac_executable_extensions; do
  17608. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17609. ac_cv_path_ICU_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  17610. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17611. break 2
  17612. fi
  17613. done
  17614. done
  17615. IFS=$as_save_IFS
  17616. ;;
  17617. esac
  17618. fi
  17619. ICU_CONFIG=$ac_cv_path_ICU_CONFIG
  17620. if test -n "$ICU_CONFIG"; then
  17621. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICU_CONFIG" >&5
  17622. $as_echo "$ICU_CONFIG" >&6; }
  17623. else
  17624. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17625. $as_echo "no" >&6; }
  17626. fi
  17627. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for icu with icu-config" >&5
  17628. $as_echo_n "checking for icu with icu-config... " >&6; }
  17629. if test -n "$ICU_CONFIG"; then
  17630. icu_lib=`$ICU_CONFIG --ldflags-searchpath`
  17631. icu_inc=`$ICU_CONFIG --cppflags-searchpath`
  17632. icu_bin=`$ICU_CONFIG --bindir`
  17633. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using system ICU" >&5
  17634. $as_echo "using system ICU" >&6; }
  17635. else
  17636. as_fn_error $? "ICU not found, specify with --with-icu." "$LINENO" 5
  17637. fi
  17638. fi
  17639. # BEGIN COPYRIGHT BLOCK
  17640. # Copyright (C) 2006 Red Hat, Inc.
  17641. # All rights reserved.
  17642. #
  17643. # License: GPL (version 3 or any later version).
  17644. # See LICENSE for details.
  17645. # END COPYRIGHT BLOCK
  17646. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Net-SNMP..." >&5
  17647. $as_echo "$as_me: checking for Net-SNMP..." >&6;}
  17648. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-netsnmp" >&5
  17649. $as_echo_n "checking for --with-netsnmp... " >&6; }
  17650. # Check whether --with-netsnmp was given.
  17651. if test "${with_netsnmp+set}" = set; then :
  17652. withval=$with_netsnmp;
  17653. if test "$withval" = "yes"; then
  17654. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17655. $as_echo "yes" >&6; }
  17656. elif test "$withval" = "no"; then
  17657. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17658. $as_echo "no" >&6; }
  17659. as_fn_error $? "Net-SNMP is required." "$LINENO" 5
  17660. elif test -d "$withval" -a -d "$withval/lib" -a -d "$withval/include"; then
  17661. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17662. $as_echo "using $withval" >&6; }
  17663. NETSNMPDIR=$withval
  17664. if test -f "$withval/include/net-snmp/net-snmp-includes.h"; then
  17665. netsnmp_inc="-I$withval/include"
  17666. else
  17667. as_fn_error $? "net-snmp-config.h not found" "$LINENO" 5
  17668. fi
  17669. netsnmp_lib="-L$withval/lib"
  17670. netsnmp_libdir="$withval/lib"
  17671. else
  17672. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17673. $as_echo "yes" >&6; }
  17674. as_fn_error $? "$withval not found" "$LINENO" 5
  17675. fi
  17676. else
  17677. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17678. $as_echo "yes" >&6; }
  17679. fi
  17680. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-netsnmp-inc" >&5
  17681. $as_echo_n "checking for --with-netsnmp-inc... " >&6; }
  17682. # Check whether --with-netsnmp-inc was given.
  17683. if test "${with_netsnmp_inc+set}" = set; then :
  17684. withval=$with_netsnmp_inc;
  17685. if test -f "$withval/net-snmp/net-snmp-includes.h"; then
  17686. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17687. $as_echo "using $withval" >&6; }
  17688. netsnmp_inc="-I$withval"
  17689. else
  17690. echo
  17691. as_fn_error $? "$withval/net-snmp/net-snmp-includes.h not found" "$LINENO" 5
  17692. fi
  17693. else
  17694. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17695. $as_echo "no" >&6; }
  17696. fi
  17697. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-netsnmp-lib" >&5
  17698. $as_echo_n "checking for --with-netsnmp-lib... " >&6; }
  17699. # Check whether --with-netsnmp-lib was given.
  17700. if test "${with_netsnmp_lib+set}" = set; then :
  17701. withval=$with_netsnmp_lib;
  17702. if test -d "$withval"
  17703. then
  17704. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17705. $as_echo "using $withval" >&6; }
  17706. netsnmp_lib="-L$withval"
  17707. netsnmp_libdir="$withval"
  17708. else
  17709. echo
  17710. as_fn_error $? "$withval not found" "$LINENO" 5
  17711. fi
  17712. else
  17713. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17714. $as_echo "no" >&6; }
  17715. fi
  17716. if test -z "$netsnmp_inc" -o -z "$netsnmp_lib"; then
  17717. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for net-snmp-includes.h" >&5
  17718. $as_echo_n "checking for net-snmp-includes.h... " >&6; }
  17719. if test -f /usr/include/net-snmp/net-snmp-includes.h; then
  17720. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using /usr/include/net-snmp/net-snmp-includes.h" >&5
  17721. $as_echo "using /usr/include/net-snmp/net-snmp-includes.h" >&6; }
  17722. netsnmp_inc="-I/usr/include"
  17723. else
  17724. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17725. $as_echo "no" >&6; }
  17726. as_fn_error $? "net-snmp not found, specify with --with-netsnmp." "$LINENO" 5
  17727. fi
  17728. fi
  17729. if test -n "$netsnmp_inc"; then
  17730. if test -x "$NETSNMPDIR/bin/net-snmp-config"; then
  17731. NETSNMP_CONFIG=$NETSNMPDIR/bin/net-snmp-config
  17732. else
  17733. # Extract the first word of "net-snmp-config", so it can be a program name with args.
  17734. set dummy net-snmp-config; ac_word=$2
  17735. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17736. $as_echo_n "checking for $ac_word... " >&6; }
  17737. if ${ac_cv_path_NETSNMP_CONFIG+:} false; then :
  17738. $as_echo_n "(cached) " >&6
  17739. else
  17740. case $NETSNMP_CONFIG in
  17741. [\\/]* | ?:[\\/]*)
  17742. ac_cv_path_NETSNMP_CONFIG="$NETSNMP_CONFIG" # Let the user override the test with a path.
  17743. ;;
  17744. *)
  17745. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17746. for as_dir in $PATH
  17747. do
  17748. IFS=$as_save_IFS
  17749. test -z "$as_dir" && as_dir=.
  17750. for ac_exec_ext in '' $ac_executable_extensions; do
  17751. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17752. ac_cv_path_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  17753. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17754. break 2
  17755. fi
  17756. done
  17757. done
  17758. IFS=$as_save_IFS
  17759. ;;
  17760. esac
  17761. fi
  17762. NETSNMP_CONFIG=$ac_cv_path_NETSNMP_CONFIG
  17763. if test -n "$NETSNMP_CONFIG"; then
  17764. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NETSNMP_CONFIG" >&5
  17765. $as_echo "$NETSNMP_CONFIG" >&6; }
  17766. else
  17767. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17768. $as_echo "no" >&6; }
  17769. fi
  17770. fi
  17771. if test -n "$NETSNMP_CONFIG"; then
  17772. netsnmp_link=`$NETSNMP_CONFIG --agent-libs`
  17773. else
  17774. as_fn_error $? "net-snmp-config not found, specify with --with-netsnmp." "$LINENO" 5
  17775. fi
  17776. else
  17777. as_fn_error $? "Net-SNMP not found, specify with --with-netsnmp." "$LINENO" 5
  17778. fi
  17779. # BEGIN COPYRIGHT BLOCK
  17780. # Copyright (C) 2008 Red Hat, Inc.
  17781. # All rights reserved.
  17782. #
  17783. # License: GPL (version 3 or any later version).
  17784. # See LICENSE for details.
  17785. # END COPYRIGHT BLOCK
  17786. # -*- tab-width: 4; -*-
  17787. # Configure paths for Kerberos
  17788. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Kerberos..." >&5
  17789. $as_echo "$as_me: checking for Kerberos..." >&6;}
  17790. if test -z "$with_kerberos" ; then
  17791. with_kerberos=yes # if not set on cmdline, set default
  17792. fi
  17793. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-kerberos" >&5
  17794. $as_echo_n "checking for --with-kerberos... " >&6; }
  17795. # Check whether --with-kerberos was given.
  17796. if test "${with_kerberos+set}" = set; then :
  17797. withval=$with_kerberos;
  17798. if test "x$withval" = "xyes"; then
  17799. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17800. $as_echo "yes" >&6; }
  17801. elif test "x$withval" = "xno"; then
  17802. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17803. $as_echo "no" >&6; }
  17804. with_kerberos=
  17805. elif test -d "$withval" -a -d "$withval/lib" -a -d "$withval/include" ; then
  17806. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17807. $as_echo "using $withval" >&6; }
  17808. kerberos_incdir="$withval/include"
  17809. kerberos_libdir="$withval/lib"
  17810. else
  17811. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17812. $as_echo "yes" >&6; }
  17813. as_fn_error $? "kerberos not found in $withval" "$LINENO" 5
  17814. fi
  17815. else
  17816. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17817. $as_echo "no" >&6; }
  17818. with_kerberos=
  17819. fi
  17820. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-kerberos-inc" >&5
  17821. $as_echo_n "checking for --with-kerberos-inc... " >&6; }
  17822. # Check whether --with-kerberos-inc was given.
  17823. if test "${with_kerberos_inc+set}" = set; then :
  17824. withval=$with_kerberos_inc;
  17825. if test -f "$withval"/krb5.h; then
  17826. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17827. $as_echo "using $withval" >&6; }
  17828. kerberos_incdir="$withval"
  17829. with_kerberos=yes # implies use of kerberos
  17830. else
  17831. echo
  17832. as_fn_error $? "$withval/krb5.h not found" "$LINENO" 5
  17833. fi
  17834. else
  17835. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17836. $as_echo "no" >&6; }
  17837. fi
  17838. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-kerberos-lib" >&5
  17839. $as_echo_n "checking for --with-kerberos-lib... " >&6; }
  17840. # Check whether --with-kerberos-lib was given.
  17841. if test "${with_kerberos_lib+set}" = set; then :
  17842. withval=$with_kerberos_lib;
  17843. if test -d "$withval"; then
  17844. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17845. $as_echo "using $withval" >&6; }
  17846. kerberos_libdir="$withval"
  17847. with_kerberos=yes # implies use of kerberos
  17848. else
  17849. echo
  17850. as_fn_error $? "$withval not found" "$LINENO" 5
  17851. fi
  17852. else
  17853. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17854. $as_echo "no" >&6; }
  17855. fi
  17856. if test -n "$with_kerberos" ; then
  17857. if test -z "$kerberos_incdir" -o -z "$kerberos_libdir" ; then
  17858. if test -z "$KRB5_CONFIG_BIN" ; then
  17859. # Extract the first word of "krb5-config", so it can be a program name with args.
  17860. set dummy krb5-config; ac_word=$2
  17861. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17862. $as_echo_n "checking for $ac_word... " >&6; }
  17863. if ${ac_cv_path_KRB5_CONFIG_BIN+:} false; then :
  17864. $as_echo_n "(cached) " >&6
  17865. else
  17866. case $KRB5_CONFIG_BIN in
  17867. [\\/]* | ?:[\\/]*)
  17868. ac_cv_path_KRB5_CONFIG_BIN="$KRB5_CONFIG_BIN" # Let the user override the test with a path.
  17869. ;;
  17870. *)
  17871. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17872. for as_dir in $PATH
  17873. do
  17874. IFS=$as_save_IFS
  17875. test -z "$as_dir" && as_dir=.
  17876. for ac_exec_ext in '' $ac_executable_extensions; do
  17877. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17878. ac_cv_path_KRB5_CONFIG_BIN="$as_dir/$ac_word$ac_exec_ext"
  17879. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17880. break 2
  17881. fi
  17882. done
  17883. done
  17884. IFS=$as_save_IFS
  17885. ;;
  17886. esac
  17887. fi
  17888. KRB5_CONFIG_BIN=$ac_cv_path_KRB5_CONFIG_BIN
  17889. if test -n "$KRB5_CONFIG_BIN"; then
  17890. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KRB5_CONFIG_BIN" >&5
  17891. $as_echo "$KRB5_CONFIG_BIN" >&6; }
  17892. else
  17893. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17894. $as_echo "no" >&6; }
  17895. fi
  17896. fi
  17897. if test -n "$KRB5_CONFIG_BIN" ; then
  17898. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kerberos with $KRB5_CONFIG_BIN" >&5
  17899. $as_echo_n "checking for kerberos with $KRB5_CONFIG_BIN... " >&6; }
  17900. if test -z "$kerberos_libdir" ; then
  17901. kerberos_lib=`$KRB5_CONFIG_BIN --libs krb5`
  17902. fi
  17903. if test -z "$kerberos_incdir" ; then
  17904. kerberos_inc=`$KRB5_CONFIG_BIN --cflags krb5`
  17905. fi
  17906. if test -n "$kerberos_lib" ; then
  17907. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using kerberos found with $KRB5_CONFIG_BIN" >&5
  17908. $as_echo "using kerberos found with $KRB5_CONFIG_BIN" >&6; }
  17909. have_krb5=yes
  17910. fi
  17911. fi
  17912. fi
  17913. fi
  17914. if test -n "$with_kerberos" -a -z "$kerberos_lib" ; then
  17915. # save these in order to set them to use the check macros below
  17916. # like AC_CHECK_HEADERS, AC_CHECK_LIB, and AC_CHECK_FUNCS
  17917. save_CPPFLAGS="$CPPFLAGS"
  17918. if test -n "$kerberos_incdir" ; then
  17919. CPPFLAGS="-I$kerberos_incdir $CPPFLAGS"
  17920. fi
  17921. save_LDFLAGS="$LDFLAGS"
  17922. if test -n "$kerberos_libdir" ; then
  17923. LDFLAGS="-L$kerberos_libdir $LDFLAGS"
  17924. fi
  17925. krb5_impl=mit
  17926. for ac_header in heim_err.h
  17927. do :
  17928. ac_fn_c_check_header_mongrel "$LINENO" "heim_err.h" "ac_cv_header_heim_err_h" "$ac_includes_default"
  17929. if test "x$ac_cv_header_heim_err_h" = xyes; then :
  17930. cat >>confdefs.h <<_ACEOF
  17931. #define HAVE_HEIM_ERR_H 1
  17932. _ACEOF
  17933. fi
  17934. done
  17935. if test $ac_cv_header_heim_err_h = yes ; then
  17936. krb5_impl=heimdal
  17937. fi
  17938. if test "x$krb5_impl" = "xmit"; then
  17939. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lk5crypto" >&5
  17940. $as_echo_n "checking for main in -lk5crypto... " >&6; }
  17941. if ${ac_cv_lib_k5crypto_main+:} false; then :
  17942. $as_echo_n "(cached) " >&6
  17943. else
  17944. ac_check_lib_save_LIBS=$LIBS
  17945. LIBS="-lk5crypto $LIBS"
  17946. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17947. /* end confdefs.h. */
  17948. int
  17949. main ()
  17950. {
  17951. return main ();
  17952. ;
  17953. return 0;
  17954. }
  17955. _ACEOF
  17956. if ac_fn_c_try_link "$LINENO"; then :
  17957. ac_cv_lib_k5crypto_main=yes
  17958. else
  17959. ac_cv_lib_k5crypto_main=no
  17960. fi
  17961. rm -f core conftest.err conftest.$ac_objext \
  17962. conftest$ac_exeext conftest.$ac_ext
  17963. LIBS=$ac_check_lib_save_LIBS
  17964. fi
  17965. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_main" >&5
  17966. $as_echo "$ac_cv_lib_k5crypto_main" >&6; }
  17967. if test "x$ac_cv_lib_k5crypto_main" = xyes; then :
  17968. krb5crypto=k5crypto
  17969. else
  17970. krb5crypto=crypto
  17971. fi
  17972. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lkrb5" >&5
  17973. $as_echo_n "checking for main in -lkrb5... " >&6; }
  17974. if ${ac_cv_lib_krb5_main+:} false; then :
  17975. $as_echo_n "(cached) " >&6
  17976. else
  17977. ac_check_lib_save_LIBS=$LIBS
  17978. LIBS="-lkrb5 -l$krb5crypto -lcom_err $LIBS"
  17979. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17980. /* end confdefs.h. */
  17981. int
  17982. main ()
  17983. {
  17984. return main ();
  17985. ;
  17986. return 0;
  17987. }
  17988. _ACEOF
  17989. if ac_fn_c_try_link "$LINENO"; then :
  17990. ac_cv_lib_krb5_main=yes
  17991. else
  17992. ac_cv_lib_krb5_main=no
  17993. fi
  17994. rm -f core conftest.err conftest.$ac_objext \
  17995. conftest$ac_exeext conftest.$ac_ext
  17996. LIBS=$ac_check_lib_save_LIBS
  17997. fi
  17998. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_main" >&5
  17999. $as_echo "$ac_cv_lib_krb5_main" >&6; }
  18000. if test "x$ac_cv_lib_krb5_main" = xyes; then :
  18001. have_krb5=yes
  18002. kerberos_lib="-lkrb5 -l$krb5crypto -lcom_err"
  18003. else
  18004. have_krb5=no
  18005. fi
  18006. elif test "x$krb5_impl" = "xheimdal"; then
  18007. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ldes" >&5
  18008. $as_echo_n "checking for main in -ldes... " >&6; }
  18009. if ${ac_cv_lib_des_main+:} false; then :
  18010. $as_echo_n "(cached) " >&6
  18011. else
  18012. ac_check_lib_save_LIBS=$LIBS
  18013. LIBS="-ldes $LIBS"
  18014. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18015. /* end confdefs.h. */
  18016. int
  18017. main ()
  18018. {
  18019. return main ();
  18020. ;
  18021. return 0;
  18022. }
  18023. _ACEOF
  18024. if ac_fn_c_try_link "$LINENO"; then :
  18025. ac_cv_lib_des_main=yes
  18026. else
  18027. ac_cv_lib_des_main=no
  18028. fi
  18029. rm -f core conftest.err conftest.$ac_objext \
  18030. conftest$ac_exeext conftest.$ac_ext
  18031. LIBS=$ac_check_lib_save_LIBS
  18032. fi
  18033. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_main" >&5
  18034. $as_echo "$ac_cv_lib_des_main" >&6; }
  18035. if test "x$ac_cv_lib_des_main" = xyes; then :
  18036. krb5crypto=des
  18037. else
  18038. krb5crypto=crypto
  18039. fi
  18040. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lkrb5" >&5
  18041. $as_echo_n "checking for main in -lkrb5... " >&6; }
  18042. if ${ac_cv_lib_krb5_main+:} false; then :
  18043. $as_echo_n "(cached) " >&6
  18044. else
  18045. ac_check_lib_save_LIBS=$LIBS
  18046. LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
  18047. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18048. /* end confdefs.h. */
  18049. int
  18050. main ()
  18051. {
  18052. return main ();
  18053. ;
  18054. return 0;
  18055. }
  18056. _ACEOF
  18057. if ac_fn_c_try_link "$LINENO"; then :
  18058. ac_cv_lib_krb5_main=yes
  18059. else
  18060. ac_cv_lib_krb5_main=no
  18061. fi
  18062. rm -f core conftest.err conftest.$ac_objext \
  18063. conftest$ac_exeext conftest.$ac_ext
  18064. LIBS=$ac_check_lib_save_LIBS
  18065. fi
  18066. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_main" >&5
  18067. $as_echo "$ac_cv_lib_krb5_main" >&6; }
  18068. if test "x$ac_cv_lib_krb5_main" = xyes; then :
  18069. have_krb5=yes
  18070. kerberos_lib="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err"
  18071. else
  18072. have_krb5=no
  18073. fi
  18074. $as_echo "#define HAVE_HEIMDAL_KERBEROS 1" >>confdefs.h
  18075. else
  18076. have_krb5=no
  18077. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unrecognized Kerberos5 Implementation" >&5
  18078. $as_echo "$as_me: WARNING: Unrecognized Kerberos5 Implementation" >&2;}
  18079. fi
  18080. # reset to original values
  18081. CPPFLAGS="$save_CPPFLAGS"
  18082. LDFLAGS="$save_LDFLAGS"
  18083. if test -n "$kerberos_incdir" ; then
  18084. kerberos_inc="-I$kerberos_incdir"
  18085. fi
  18086. if test -n "$kerberos_libdir" ; then
  18087. kerberos_lib="-L$kerberos_libdir $kerberos_lib"
  18088. fi
  18089. fi
  18090. if test -n "$with_kerberos" ; then
  18091. if test "x$have_krb5" = "xyes" ; then
  18092. $as_echo "#define HAVE_KRB5 1" >>confdefs.h
  18093. else
  18094. as_fn_error $? "Required Kerberos 5 support not available" "$LINENO" 5
  18095. fi
  18096. save_LIBS="$LIBS"
  18097. LIBS="$kerberos_lib"
  18098. save_CPPFLAGS="$CPPFLAGS"
  18099. CPPFLAGS="$kerberos_inc $CPPFLAGS"
  18100. for ac_func in krb5_cc_new_unique
  18101. do :
  18102. ac_fn_c_check_func "$LINENO" "krb5_cc_new_unique" "ac_cv_func_krb5_cc_new_unique"
  18103. if test "x$ac_cv_func_krb5_cc_new_unique" = xyes; then :
  18104. cat >>confdefs.h <<_ACEOF
  18105. #define HAVE_KRB5_CC_NEW_UNIQUE 1
  18106. _ACEOF
  18107. fi
  18108. done
  18109. LIBS="$save_LIBS"
  18110. CPPFLAGS="$save_CPPFLAGS"
  18111. fi
  18112. # BEGIN COPYRIGHT BLOCK
  18113. # Copyright (C) 2007 Red Hat, Inc.
  18114. # All rights reserved.
  18115. #
  18116. # License: GPL (version 3 or any later version).
  18117. # See LICENSE for details.
  18118. # END COPYRIGHT BLOCK
  18119. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCRE..." >&5
  18120. $as_echo "$as_me: checking for PCRE..." >&6;}
  18121. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pcre" >&5
  18122. $as_echo_n "checking for --with-pcre... " >&6; }
  18123. # Check whether --with-pcre was given.
  18124. if test "${with_pcre+set}" = set; then :
  18125. withval=$with_pcre;
  18126. if test "$withval" = "yes"; then
  18127. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18128. $as_echo "yes" >&6; }
  18129. elif test "$withval" = "no"; then
  18130. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18131. $as_echo "no" >&6; }
  18132. as_fn_error $? "PCRE is required." "$LINENO" 5
  18133. elif test -d "$withval"/include -a -d "$withval"/lib; then
  18134. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  18135. $as_echo "using $withval" >&6; }
  18136. PCREDIR=$withval
  18137. pcre_lib="-L$PCREDIR/lib"
  18138. pcre_libdir="$PCREDIR/lib"
  18139. pcre_incdir="$PCREDIR/include"
  18140. if ! test -e "$pcre_incdir/pcre.h" ; then
  18141. as_fn_error $? "$withval include dir not found" "$LINENO" 5
  18142. fi
  18143. pcre_inc="-I$pcre_incdir"
  18144. else
  18145. echo
  18146. as_fn_error $? "$withval not found" "$LINENO" 5
  18147. fi
  18148. else
  18149. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18150. $as_echo "yes" >&6; }
  18151. fi
  18152. #
  18153. # if PCRE is not found yet, try pkg-config
  18154. if test -z "$pcre_inc" -o -z "$pcre_lib" -o -z "$pcre_libdir"; then
  18155. # Extract the first word of "pkg-config", so it can be a program name with args.
  18156. set dummy pkg-config; ac_word=$2
  18157. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18158. $as_echo_n "checking for $ac_word... " >&6; }
  18159. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  18160. $as_echo_n "(cached) " >&6
  18161. else
  18162. case $PKG_CONFIG in
  18163. [\\/]* | ?:[\\/]*)
  18164. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  18165. ;;
  18166. *)
  18167. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18168. for as_dir in $PATH
  18169. do
  18170. IFS=$as_save_IFS
  18171. test -z "$as_dir" && as_dir=.
  18172. for ac_exec_ext in '' $ac_executable_extensions; do
  18173. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18174. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  18175. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18176. break 2
  18177. fi
  18178. done
  18179. done
  18180. IFS=$as_save_IFS
  18181. ;;
  18182. esac
  18183. fi
  18184. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  18185. if test -n "$PKG_CONFIG"; then
  18186. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  18187. $as_echo "$PKG_CONFIG" >&6; }
  18188. else
  18189. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18190. $as_echo "no" >&6; }
  18191. fi
  18192. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcre with pkg-config" >&5
  18193. $as_echo_n "checking for pcre with pkg-config... " >&6; }
  18194. if test -n "$PKG_CONFIG"; then
  18195. if $PKG_CONFIG --exists pcre; then
  18196. pcre_inc=`$PKG_CONFIG --cflags-only-I pcre`
  18197. pcre_lib=`$PKG_CONFIG --libs-only-L pcre`
  18198. pcre_libdir=`$PKG_CONFIG --libs-only-L pcre | sed -e s/-L// | sed -e s/\ .*$//`
  18199. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using system PCRE" >&5
  18200. $as_echo "using system PCRE" >&6; }
  18201. elif $PKG_CONFIG --exists libpcre; then
  18202. pcre_inc=`$PKG_CONFIG --cflags-only-I libpcre`
  18203. pcre_lib=`$PKG_CONFIG --libs-only-L libpcre`
  18204. pcre_libdir=`$PKG_CONFIG --libs-only-L libpcre | sed -e s/-L// | sed -e s/\ .*$//`
  18205. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using system PCRE" >&5
  18206. $as_echo "using system PCRE" >&6; }
  18207. else
  18208. as_fn_error $? "PCRE not found, specify with --with-pcre." "$LINENO" 5
  18209. fi
  18210. fi
  18211. fi
  18212. if test -z "$pcre_inc"; then
  18213. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcre.h" >&5
  18214. $as_echo_n "checking for pcre.h... " >&6; }
  18215. if test -f "/usr/include/pcre/pcre.h"; then
  18216. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using /usr/include/pcre/pcre.h" >&5
  18217. $as_echo "using /usr/include/pcre/pcre.h" >&6; }
  18218. pcre_incdir="/usr/include/pcre"
  18219. pcre_inc="-I/usr/include/pcre"
  18220. pcre_lib='-L$(libdir)'
  18221. pcre_libdir='$(libdir)'
  18222. elif test -f "/usr/include/pcre.h"; then
  18223. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using /usr/include/pcre.h" >&5
  18224. $as_echo "using /usr/include/pcre.h" >&6; }
  18225. pcre_incdir="/usr/include"
  18226. pcre_inc="-I/usr/include"
  18227. pcre_lib='-L$(libdir)'
  18228. pcre_libdir='$(libdir)'
  18229. else
  18230. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18231. $as_echo "no" >&6; }
  18232. as_fn_error $? "PCRE not found, specify with --with-pcre." "$LINENO" 5
  18233. fi
  18234. fi
  18235. # BEGIN COPYRIGHT BLOCK
  18236. # Copyright (C) 2009 Red Hat, Inc.
  18237. # All rights reserved.
  18238. #
  18239. # License: GPL (version 3 or any later version).
  18240. # See LICENSE for details.
  18241. # END COPYRIGHT BLOCK
  18242. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SELinux..." >&5
  18243. $as_echo "$as_me: checking for SELinux..." >&6;}
  18244. # check for --with-selinux
  18245. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-selinux" >&5
  18246. $as_echo_n "checking for --with-selinux... " >&6; }
  18247. # Check whether --with-selinux was given.
  18248. if test "${with_selinux+set}" = set; then :
  18249. withval=$with_selinux;
  18250. if test "$withval" = "no"; then
  18251. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18252. $as_echo "no" >&6; }
  18253. else
  18254. with_selinux=yes
  18255. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18256. $as_echo "yes" >&6; }
  18257. fi
  18258. else
  18259. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18260. $as_echo "no" >&6; }
  18261. fi
  18262. # BEGIN COPYRIGHT BLOCK
  18263. # License: GPL (version 3 or any later version).
  18264. # See LICENSE for details.
  18265. # END COPYRIGHT BLOCK
  18266. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nunc-stans..." >&5
  18267. $as_echo "$as_me: checking for nunc-stans..." >&6;}
  18268. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-nunc-stans" >&5
  18269. $as_echo_n "checking for --with-nunc-stans... " >&6; }
  18270. # Check whether --with-nunc-stans was given.
  18271. if test "${with_nunc_stans+set}" = set; then :
  18272. withval=$with_nunc_stans;
  18273. if test "$withval" = "yes"; then
  18274. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18275. $as_echo "yes" >&6; }
  18276. elif test "$withval" = "no"; then
  18277. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18278. $as_echo "no" >&6; }
  18279. elif test -d "$withval"; then
  18280. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  18281. $as_echo "using $withval" >&6; }
  18282. nunc_stans_lib="-L$withval/lib"
  18283. nunc_stans_libdir="$withval/lib"
  18284. nunc_stans_incdir="$withval/include"
  18285. if ! test -e "$nunc_stans_incdir/nunc-stans/nunc-stans.h" ; then
  18286. as_fn_error $? "$withval include dir not found" "$LINENO" 5
  18287. fi
  18288. nunc_stans_inc="-I$nunc_stans_incdir"
  18289. else
  18290. echo
  18291. as_fn_error $? "$withval not found" "$LINENO" 5
  18292. fi
  18293. else
  18294. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18295. $as_echo "no" >&6; }
  18296. fi
  18297. # check for --with-nunc-stans-inc
  18298. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-nunc-stans-inc" >&5
  18299. $as_echo_n "checking for --with-nunc-stans-inc... " >&6; }
  18300. # Check whether --with-nunc-stans-inc was given.
  18301. if test "${with_nunc_stans_inc+set}" = set; then :
  18302. withval=$with_nunc_stans_inc;
  18303. if test -e "$withval"/nunc-stans/nunc-stans.h
  18304. then
  18305. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  18306. $as_echo "using $withval" >&6; }
  18307. nunc_stans_incdir="$withval"
  18308. nunc_stans_inc="-I$withval"
  18309. else
  18310. echo
  18311. as_fn_error $? "$withval not found" "$LINENO" 5
  18312. fi
  18313. else
  18314. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18315. $as_echo "no" >&6; }
  18316. fi
  18317. # check for --with-nunc-stans-lib
  18318. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-nunc-stans-lib" >&5
  18319. $as_echo_n "checking for --with-nunc-stans-lib... " >&6; }
  18320. # Check whether --with-nunc-stans-lib was given.
  18321. if test "${with_nunc_stans_lib+set}" = set; then :
  18322. withval=$with_nunc_stans_lib;
  18323. if test -d "$withval"
  18324. then
  18325. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  18326. $as_echo "using $withval" >&6; }
  18327. nunc_stans_lib="-L$withval"
  18328. nunc_stans_libdir="$withval"
  18329. else
  18330. echo
  18331. as_fn_error $? "$withval not found" "$LINENO" 5
  18332. fi
  18333. else
  18334. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18335. $as_echo "no" >&6; }
  18336. fi
  18337. # BEGIN COPYRIGHT BLOCK
  18338. # Copyright (C) 2015 Red Hat, Inc.
  18339. # All rights reserved.
  18340. #
  18341. # License: GPL (version 3 or any later version).
  18342. # See LICENSE for details.
  18343. # END COPYRIGHT BLOCK
  18344. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Systemd..." >&5
  18345. $as_echo "$as_me: checking for Systemd..." >&6;}
  18346. # check for --with-systemd
  18347. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-systemd" >&5
  18348. $as_echo_n "checking for --with-systemd... " >&6; }
  18349. # Check whether --with-systemd was given.
  18350. if test "${with_systemd+set}" = set; then :
  18351. withval=$with_systemd;
  18352. if test "$withval" = yes
  18353. then
  18354. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using systemd native features" >&5
  18355. $as_echo "using systemd native features" >&6; }
  18356. with_systemd=yes
  18357. else
  18358. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18359. $as_echo "no" >&6; }
  18360. fi
  18361. else
  18362. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18363. $as_echo "no" >&6; }
  18364. fi
  18365. if test "$with_systemd" = yes; then
  18366. # Extract the first word of "pkg-config", so it can be a program name with args.
  18367. set dummy pkg-config; ac_word=$2
  18368. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18369. $as_echo_n "checking for $ac_word... " >&6; }
  18370. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  18371. $as_echo_n "(cached) " >&6
  18372. else
  18373. case $PKG_CONFIG in
  18374. [\\/]* | ?:[\\/]*)
  18375. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  18376. ;;
  18377. *)
  18378. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18379. for as_dir in $PATH
  18380. do
  18381. IFS=$as_save_IFS
  18382. test -z "$as_dir" && as_dir=.
  18383. for ac_exec_ext in '' $ac_executable_extensions; do
  18384. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18385. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  18386. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18387. break 2
  18388. fi
  18389. done
  18390. done
  18391. IFS=$as_save_IFS
  18392. ;;
  18393. esac
  18394. fi
  18395. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  18396. if test -n "$PKG_CONFIG"; then
  18397. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  18398. $as_echo "$PKG_CONFIG" >&6; }
  18399. else
  18400. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18401. $as_echo "no" >&6; }
  18402. fi
  18403. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Systemd with pkg-config" >&5
  18404. $as_echo_n "checking for Systemd with pkg-config... " >&6; }
  18405. if test -n "$PKG_CONFIG" && $PKG_CONFIG --exists systemd libsystemd-journal libsystemd-daemon ; then
  18406. systemd_inc=`$PKG_CONFIG --cflags-only-I systemd libsystemd-journal libsystemd-daemon`
  18407. systemd_lib=`$PKG_CONFIG --libs-only-l systemd libsystemd-journal libsystemd-daemon`
  18408. systemd_defs="-DWITH_SYSTEMD"
  18409. else
  18410. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no Systemd pkg-config files" >&5
  18411. $as_echo "no Systemd pkg-config files" >&6; }
  18412. fi
  18413. fi
  18414. PACKAGE_BASE_VERSION=`echo $PACKAGE_VERSION | awk -F\. '{print $1"."$2}'`
  18415. # set sasl_path for wrapper scripts
  18416. if test -z "$sasl_libdir" ; then
  18417. sasl_path="$libdir/sasl2"
  18418. else
  18419. sasl_path="$sasl_libdir/sasl2"
  18420. fi
  18421. if test "$with_selinux" = "yes"; then
  18422. SELINUX_TRUE=
  18423. SELINUX_FALSE='#'
  18424. else
  18425. SELINUX_TRUE='#'
  18426. SELINUX_FALSE=
  18427. fi
  18428. if test "$with_openldap" = "yes"; then
  18429. OPENLDAP_TRUE=
  18430. OPENLDAP_FALSE='#'
  18431. else
  18432. OPENLDAP_TRUE='#'
  18433. OPENLDAP_FALSE=
  18434. fi
  18435. if test "$platform" = "solaris"; then
  18436. SOLARIS_TRUE=
  18437. SOLARIS_FALSE='#'
  18438. else
  18439. SOLARIS_TRUE='#'
  18440. SOLARIS_FALSE=
  18441. fi
  18442. if test "x$TARGET" = xSPARC; then
  18443. SPARC_TRUE=
  18444. SPARC_FALSE='#'
  18445. else
  18446. SPARC_TRUE='#'
  18447. SPARC_FALSE=
  18448. fi
  18449. # write out paths for binary components
  18450. # AC_DEFINE([USE_OLD_UNHASHED], [], [Use old unhashed code])
  18451. $as_echo "#define LDAP_DEBUG 1" >>confdefs.h
  18452. $as_echo "#define LDAP_DONT_USE_SMARTHEAP 1" >>confdefs.h
  18453. # libtool on fedora/rhel contains some gcc-isms which cause problems
  18454. # if not using gcc (e.g. Forte on Solaris, aCC on HP-UX)
  18455. # we remove them here
  18456. if test "$GCC" != yes ; then
  18457. { $as_echo "$as_me:${as_lineno-$LINENO}: Not using gcc - fixing libtool to remove gcc-isms . . ." >&5
  18458. $as_echo "$as_me: Not using gcc - fixing libtool to remove gcc-isms . . ." >&6;}
  18459. cp -p libtool libtool.orig
  18460. cp -p libtool libtool.tmp
  18461. # dnl note the special chars [ and ] - since m4 treats [ and ] specially,
  18462. # we have to use the quadrigraph [ for [ and ] for ] - and you thought
  18463. # perl produced write-only code . . .
  18464. sed -e '/^gcc_dir/ d' \
  18465. -e '/^gcc_ver/ d' \
  18466. -e 's/^predep_objects=.*echo \("[^"]*"\).*$/predep_objects=\1/' \
  18467. -e 's/^postdep_objects=.*echo \("[^"]*"\).*$/postdep_objects=\1/' \
  18468. -e 's/^compiler_lib_search_path=.*echo \("[^"]*"\).*$/compiler_lib_search_path=\1/' \
  18469. -e 's/^sys_lib_search_path_spec=.*echo \("[^"]*"\).*$/sys_lib_search_path_spec=\1/' \
  18470. libtool > libtool.tmp
  18471. cp -p libtool.tmp libtool
  18472. rm -f libtool.tmp
  18473. fi
  18474. ac_config_files="$ac_config_files Makefile rpm/389-ds-base.spec"
  18475. cat >confcache <<\_ACEOF
  18476. # This file is a shell script that caches the results of configure
  18477. # tests run on this system so they can be shared between configure
  18478. # scripts and configure runs, see configure's option --config-cache.
  18479. # It is not useful on other systems. If it contains results you don't
  18480. # want to keep, you may remove or edit it.
  18481. #
  18482. # config.status only pays attention to the cache file if you give it
  18483. # the --recheck option to rerun configure.
  18484. #
  18485. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  18486. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  18487. # following values.
  18488. _ACEOF
  18489. # The following way of writing the cache mishandles newlines in values,
  18490. # but we know of no workaround that is simple, portable, and efficient.
  18491. # So, we kill variables containing newlines.
  18492. # Ultrix sh set writes to stderr and can't be redirected directly,
  18493. # and sets the high bit in the cache file unless we assign to the vars.
  18494. (
  18495. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  18496. eval ac_val=\$$ac_var
  18497. case $ac_val in #(
  18498. *${as_nl}*)
  18499. case $ac_var in #(
  18500. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  18501. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  18502. esac
  18503. case $ac_var in #(
  18504. _ | IFS | as_nl) ;; #(
  18505. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  18506. *) { eval $ac_var=; unset $ac_var;} ;;
  18507. esac ;;
  18508. esac
  18509. done
  18510. (set) 2>&1 |
  18511. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  18512. *${as_nl}ac_space=\ *)
  18513. # `set' does not quote correctly, so add quotes: double-quote
  18514. # substitution turns \\\\ into \\, and sed turns \\ into \.
  18515. sed -n \
  18516. "s/'/'\\\\''/g;
  18517. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  18518. ;; #(
  18519. *)
  18520. # `set' quotes correctly as required by POSIX, so do not add quotes.
  18521. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  18522. ;;
  18523. esac |
  18524. sort
  18525. ) |
  18526. sed '
  18527. /^ac_cv_env_/b end
  18528. t clear
  18529. :clear
  18530. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  18531. t end
  18532. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  18533. :end' >>confcache
  18534. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  18535. if test -w "$cache_file"; then
  18536. if test "x$cache_file" != "x/dev/null"; then
  18537. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  18538. $as_echo "$as_me: updating cache $cache_file" >&6;}
  18539. if test ! -f "$cache_file" || test -h "$cache_file"; then
  18540. cat confcache >"$cache_file"
  18541. else
  18542. case $cache_file in #(
  18543. */* | ?:*)
  18544. mv -f confcache "$cache_file"$$ &&
  18545. mv -f "$cache_file"$$ "$cache_file" ;; #(
  18546. *)
  18547. mv -f confcache "$cache_file" ;;
  18548. esac
  18549. fi
  18550. fi
  18551. else
  18552. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  18553. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  18554. fi
  18555. fi
  18556. rm -f confcache
  18557. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  18558. # Let make expand exec_prefix.
  18559. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  18560. DEFS=-DHAVE_CONFIG_H
  18561. ac_libobjs=
  18562. ac_ltlibobjs=
  18563. U=
  18564. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  18565. # 1. Remove the extension, and $U if already installed.
  18566. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  18567. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  18568. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  18569. # will be set to the directory where LIBOBJS objects are built.
  18570. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  18571. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  18572. done
  18573. LIBOBJS=$ac_libobjs
  18574. LTLIBOBJS=$ac_ltlibobjs
  18575. { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  18576. $as_echo_n "checking that generated files are newer than configure... " >&6; }
  18577. if test -n "$am_sleep_pid"; then
  18578. # Hide warnings about reused PIDs.
  18579. wait $am_sleep_pid 2>/dev/null
  18580. fi
  18581. { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
  18582. $as_echo "done" >&6; }
  18583. if test -n "$EXEEXT"; then
  18584. am__EXEEXT_TRUE=
  18585. am__EXEEXT_FALSE='#'
  18586. else
  18587. am__EXEEXT_TRUE='#'
  18588. am__EXEEXT_FALSE=
  18589. fi
  18590. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  18591. as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
  18592. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18593. fi
  18594. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  18595. as_fn_error $? "conditional \"AMDEP\" was never defined.
  18596. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18597. fi
  18598. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  18599. as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
  18600. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18601. fi
  18602. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  18603. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  18604. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18605. fi
  18606. if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
  18607. as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
  18608. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18609. fi
  18610. if test -z "${RPM_HARDEND_CC_TRUE}" && test -z "${RPM_HARDEND_CC_FALSE}"; then
  18611. as_fn_error $? "conditional \"RPM_HARDEND_CC\" was never defined.
  18612. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18613. fi
  18614. if test -z "${BUNDLE_TRUE}" && test -z "${BUNDLE_FALSE}"; then
  18615. as_fn_error $? "conditional \"BUNDLE\" was never defined.
  18616. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18617. fi
  18618. if test -z "${enable_pam_passthru_TRUE}" && test -z "${enable_pam_passthru_FALSE}"; then
  18619. as_fn_error $? "conditional \"enable_pam_passthru\" was never defined.
  18620. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18621. fi
  18622. if test -z "${enable_dna_TRUE}" && test -z "${enable_dna_FALSE}"; then
  18623. as_fn_error $? "conditional \"enable_dna\" was never defined.
  18624. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18625. fi
  18626. if test -z "${enable_ldapi_TRUE}" && test -z "${enable_ldapi_FALSE}"; then
  18627. as_fn_error $? "conditional \"enable_ldapi\" was never defined.
  18628. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18629. fi
  18630. if test -z "${enable_autobind_TRUE}" && test -z "${enable_autobind_FALSE}"; then
  18631. as_fn_error $? "conditional \"enable_autobind\" was never defined.
  18632. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18633. fi
  18634. if test -z "${enable_auto_dn_suffix_TRUE}" && test -z "${enable_auto_dn_suffix_FALSE}"; then
  18635. as_fn_error $? "conditional \"enable_auto_dn_suffix\" was never defined.
  18636. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18637. fi
  18638. if test -z "${enable_bitwise_TRUE}" && test -z "${enable_bitwise_FALSE}"; then
  18639. as_fn_error $? "conditional \"enable_bitwise\" was never defined.
  18640. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18641. fi
  18642. if test -z "${enable_presence_TRUE}" && test -z "${enable_presence_FALSE}"; then
  18643. as_fn_error $? "conditional \"enable_presence\" was never defined.
  18644. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18645. fi
  18646. if test -z "${enable_acctpolicy_TRUE}" && test -z "${enable_acctpolicy_FALSE}"; then
  18647. as_fn_error $? "conditional \"enable_acctpolicy\" was never defined.
  18648. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18649. fi
  18650. if test -z "${enable_posix_winsync_TRUE}" && test -z "${enable_posix_winsync_FALSE}"; then
  18651. as_fn_error $? "conditional \"enable_posix_winsync\" was never defined.
  18652. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18653. fi
  18654. if test -z "${enable_nunc_stans_TRUE}" && test -z "${enable_nunc_stans_FALSE}"; then
  18655. as_fn_error $? "conditional \"enable_nunc_stans\" was never defined.
  18656. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18657. fi
  18658. if test -z "${WINNT_TRUE}" && test -z "${WINNT_FALSE}"; then
  18659. as_fn_error $? "conditional \"WINNT\" was never defined.
  18660. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18661. fi
  18662. if test -z "${HPUX_TRUE}" && test -z "${HPUX_FALSE}"; then
  18663. as_fn_error $? "conditional \"HPUX\" was never defined.
  18664. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18665. fi
  18666. if test -z "${SOLARIS_TRUE}" && test -z "${SOLARIS_FALSE}"; then
  18667. as_fn_error $? "conditional \"SOLARIS\" was never defined.
  18668. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18669. fi
  18670. if test -z "${SYSTEMD_TRUE}" && test -z "${SYSTEMD_FALSE}"; then
  18671. as_fn_error $? "conditional \"SYSTEMD\" was never defined.
  18672. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18673. fi
  18674. if test -z "${SELINUX_TRUE}" && test -z "${SELINUX_FALSE}"; then
  18675. as_fn_error $? "conditional \"SELINUX\" was never defined.
  18676. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18677. fi
  18678. if test -z "${OPENLDAP_TRUE}" && test -z "${OPENLDAP_FALSE}"; then
  18679. as_fn_error $? "conditional \"OPENLDAP\" was never defined.
  18680. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18681. fi
  18682. if test -z "${SOLARIS_TRUE}" && test -z "${SOLARIS_FALSE}"; then
  18683. as_fn_error $? "conditional \"SOLARIS\" was never defined.
  18684. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18685. fi
  18686. if test -z "${SPARC_TRUE}" && test -z "${SPARC_FALSE}"; then
  18687. as_fn_error $? "conditional \"SPARC\" was never defined.
  18688. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18689. fi
  18690. : "${CONFIG_STATUS=./config.status}"
  18691. ac_write_fail=0
  18692. ac_clean_files_save=$ac_clean_files
  18693. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  18694. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  18695. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  18696. as_write_fail=0
  18697. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  18698. #! $SHELL
  18699. # Generated by $as_me.
  18700. # Run this file to recreate the current configuration.
  18701. # Compiler output produced by configure, useful for debugging
  18702. # configure, is in config.log if it exists.
  18703. debug=false
  18704. ac_cs_recheck=false
  18705. ac_cs_silent=false
  18706. SHELL=\${CONFIG_SHELL-$SHELL}
  18707. export SHELL
  18708. _ASEOF
  18709. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  18710. ## -------------------- ##
  18711. ## M4sh Initialization. ##
  18712. ## -------------------- ##
  18713. # Be more Bourne compatible
  18714. DUALCASE=1; export DUALCASE # for MKS sh
  18715. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  18716. emulate sh
  18717. NULLCMD=:
  18718. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  18719. # is contrary to our usage. Disable this feature.
  18720. alias -g '${1+"$@"}'='"$@"'
  18721. setopt NO_GLOB_SUBST
  18722. else
  18723. case `(set -o) 2>/dev/null` in #(
  18724. *posix*) :
  18725. set -o posix ;; #(
  18726. *) :
  18727. ;;
  18728. esac
  18729. fi
  18730. as_nl='
  18731. '
  18732. export as_nl
  18733. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  18734. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  18735. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  18736. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  18737. # Prefer a ksh shell builtin over an external printf program on Solaris,
  18738. # but without wasting forks for bash or zsh.
  18739. if test -z "$BASH_VERSION$ZSH_VERSION" \
  18740. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  18741. as_echo='print -r --'
  18742. as_echo_n='print -rn --'
  18743. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  18744. as_echo='printf %s\n'
  18745. as_echo_n='printf %s'
  18746. else
  18747. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  18748. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  18749. as_echo_n='/usr/ucb/echo -n'
  18750. else
  18751. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  18752. as_echo_n_body='eval
  18753. arg=$1;
  18754. case $arg in #(
  18755. *"$as_nl"*)
  18756. expr "X$arg" : "X\\(.*\\)$as_nl";
  18757. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  18758. esac;
  18759. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  18760. '
  18761. export as_echo_n_body
  18762. as_echo_n='sh -c $as_echo_n_body as_echo'
  18763. fi
  18764. export as_echo_body
  18765. as_echo='sh -c $as_echo_body as_echo'
  18766. fi
  18767. # The user is always right.
  18768. if test "${PATH_SEPARATOR+set}" != set; then
  18769. PATH_SEPARATOR=:
  18770. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  18771. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  18772. PATH_SEPARATOR=';'
  18773. }
  18774. fi
  18775. # IFS
  18776. # We need space, tab and new line, in precisely that order. Quoting is
  18777. # there to prevent editors from complaining about space-tab.
  18778. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  18779. # splitting by setting IFS to empty value.)
  18780. IFS=" "" $as_nl"
  18781. # Find who we are. Look in the path if we contain no directory separator.
  18782. as_myself=
  18783. case $0 in #((
  18784. *[\\/]* ) as_myself=$0 ;;
  18785. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18786. for as_dir in $PATH
  18787. do
  18788. IFS=$as_save_IFS
  18789. test -z "$as_dir" && as_dir=.
  18790. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  18791. done
  18792. IFS=$as_save_IFS
  18793. ;;
  18794. esac
  18795. # We did not find ourselves, most probably we were run as `sh COMMAND'
  18796. # in which case we are not to be found in the path.
  18797. if test "x$as_myself" = x; then
  18798. as_myself=$0
  18799. fi
  18800. if test ! -f "$as_myself"; then
  18801. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  18802. exit 1
  18803. fi
  18804. # Unset variables that we do not need and which cause bugs (e.g. in
  18805. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  18806. # suppresses any "Segmentation fault" message there. '((' could
  18807. # trigger a bug in pdksh 5.2.14.
  18808. for as_var in BASH_ENV ENV MAIL MAILPATH
  18809. do eval test x\${$as_var+set} = xset \
  18810. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  18811. done
  18812. PS1='$ '
  18813. PS2='> '
  18814. PS4='+ '
  18815. # NLS nuisances.
  18816. LC_ALL=C
  18817. export LC_ALL
  18818. LANGUAGE=C
  18819. export LANGUAGE
  18820. # CDPATH.
  18821. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  18822. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  18823. # ----------------------------------------
  18824. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  18825. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  18826. # script with STATUS, using 1 if that was 0.
  18827. as_fn_error ()
  18828. {
  18829. as_status=$1; test $as_status -eq 0 && as_status=1
  18830. if test "$4"; then
  18831. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  18832. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  18833. fi
  18834. $as_echo "$as_me: error: $2" >&2
  18835. as_fn_exit $as_status
  18836. } # as_fn_error
  18837. # as_fn_set_status STATUS
  18838. # -----------------------
  18839. # Set $? to STATUS, without forking.
  18840. as_fn_set_status ()
  18841. {
  18842. return $1
  18843. } # as_fn_set_status
  18844. # as_fn_exit STATUS
  18845. # -----------------
  18846. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  18847. as_fn_exit ()
  18848. {
  18849. set +e
  18850. as_fn_set_status $1
  18851. exit $1
  18852. } # as_fn_exit
  18853. # as_fn_unset VAR
  18854. # ---------------
  18855. # Portably unset VAR.
  18856. as_fn_unset ()
  18857. {
  18858. { eval $1=; unset $1;}
  18859. }
  18860. as_unset=as_fn_unset
  18861. # as_fn_append VAR VALUE
  18862. # ----------------------
  18863. # Append the text in VALUE to the end of the definition contained in VAR. Take
  18864. # advantage of any shell optimizations that allow amortized linear growth over
  18865. # repeated appends, instead of the typical quadratic growth present in naive
  18866. # implementations.
  18867. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  18868. eval 'as_fn_append ()
  18869. {
  18870. eval $1+=\$2
  18871. }'
  18872. else
  18873. as_fn_append ()
  18874. {
  18875. eval $1=\$$1\$2
  18876. }
  18877. fi # as_fn_append
  18878. # as_fn_arith ARG...
  18879. # ------------------
  18880. # Perform arithmetic evaluation on the ARGs, and store the result in the
  18881. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  18882. # must be portable across $(()) and expr.
  18883. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  18884. eval 'as_fn_arith ()
  18885. {
  18886. as_val=$(( $* ))
  18887. }'
  18888. else
  18889. as_fn_arith ()
  18890. {
  18891. as_val=`expr "$@" || test $? -eq 1`
  18892. }
  18893. fi # as_fn_arith
  18894. if expr a : '\(a\)' >/dev/null 2>&1 &&
  18895. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  18896. as_expr=expr
  18897. else
  18898. as_expr=false
  18899. fi
  18900. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  18901. as_basename=basename
  18902. else
  18903. as_basename=false
  18904. fi
  18905. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  18906. as_dirname=dirname
  18907. else
  18908. as_dirname=false
  18909. fi
  18910. as_me=`$as_basename -- "$0" ||
  18911. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  18912. X"$0" : 'X\(//\)$' \| \
  18913. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  18914. $as_echo X/"$0" |
  18915. sed '/^.*\/\([^/][^/]*\)\/*$/{
  18916. s//\1/
  18917. q
  18918. }
  18919. /^X\/\(\/\/\)$/{
  18920. s//\1/
  18921. q
  18922. }
  18923. /^X\/\(\/\).*/{
  18924. s//\1/
  18925. q
  18926. }
  18927. s/.*/./; q'`
  18928. # Avoid depending upon Character Ranges.
  18929. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  18930. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  18931. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  18932. as_cr_digits='0123456789'
  18933. as_cr_alnum=$as_cr_Letters$as_cr_digits
  18934. ECHO_C= ECHO_N= ECHO_T=
  18935. case `echo -n x` in #(((((
  18936. -n*)
  18937. case `echo 'xy\c'` in
  18938. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  18939. xy) ECHO_C='\c';;
  18940. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  18941. ECHO_T=' ';;
  18942. esac;;
  18943. *)
  18944. ECHO_N='-n';;
  18945. esac
  18946. rm -f conf$$ conf$$.exe conf$$.file
  18947. if test -d conf$$.dir; then
  18948. rm -f conf$$.dir/conf$$.file
  18949. else
  18950. rm -f conf$$.dir
  18951. mkdir conf$$.dir 2>/dev/null
  18952. fi
  18953. if (echo >conf$$.file) 2>/dev/null; then
  18954. if ln -s conf$$.file conf$$ 2>/dev/null; then
  18955. as_ln_s='ln -s'
  18956. # ... but there are two gotchas:
  18957. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  18958. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  18959. # In both cases, we have to default to `cp -pR'.
  18960. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  18961. as_ln_s='cp -pR'
  18962. elif ln conf$$.file conf$$ 2>/dev/null; then
  18963. as_ln_s=ln
  18964. else
  18965. as_ln_s='cp -pR'
  18966. fi
  18967. else
  18968. as_ln_s='cp -pR'
  18969. fi
  18970. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  18971. rmdir conf$$.dir 2>/dev/null
  18972. # as_fn_mkdir_p
  18973. # -------------
  18974. # Create "$as_dir" as a directory, including parents if necessary.
  18975. as_fn_mkdir_p ()
  18976. {
  18977. case $as_dir in #(
  18978. -*) as_dir=./$as_dir;;
  18979. esac
  18980. test -d "$as_dir" || eval $as_mkdir_p || {
  18981. as_dirs=
  18982. while :; do
  18983. case $as_dir in #(
  18984. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  18985. *) as_qdir=$as_dir;;
  18986. esac
  18987. as_dirs="'$as_qdir' $as_dirs"
  18988. as_dir=`$as_dirname -- "$as_dir" ||
  18989. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  18990. X"$as_dir" : 'X\(//\)[^/]' \| \
  18991. X"$as_dir" : 'X\(//\)$' \| \
  18992. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  18993. $as_echo X"$as_dir" |
  18994. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  18995. s//\1/
  18996. q
  18997. }
  18998. /^X\(\/\/\)[^/].*/{
  18999. s//\1/
  19000. q
  19001. }
  19002. /^X\(\/\/\)$/{
  19003. s//\1/
  19004. q
  19005. }
  19006. /^X\(\/\).*/{
  19007. s//\1/
  19008. q
  19009. }
  19010. s/.*/./; q'`
  19011. test -d "$as_dir" && break
  19012. done
  19013. test -z "$as_dirs" || eval "mkdir $as_dirs"
  19014. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  19015. } # as_fn_mkdir_p
  19016. if mkdir -p . 2>/dev/null; then
  19017. as_mkdir_p='mkdir -p "$as_dir"'
  19018. else
  19019. test -d ./-p && rmdir ./-p
  19020. as_mkdir_p=false
  19021. fi
  19022. # as_fn_executable_p FILE
  19023. # -----------------------
  19024. # Test if FILE is an executable regular file.
  19025. as_fn_executable_p ()
  19026. {
  19027. test -f "$1" && test -x "$1"
  19028. } # as_fn_executable_p
  19029. as_test_x='test -x'
  19030. as_executable_p=as_fn_executable_p
  19031. # Sed expression to map a string onto a valid CPP name.
  19032. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  19033. # Sed expression to map a string onto a valid variable name.
  19034. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  19035. exec 6>&1
  19036. ## ----------------------------------- ##
  19037. ## Main body of $CONFIG_STATUS script. ##
  19038. ## ----------------------------------- ##
  19039. _ASEOF
  19040. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  19041. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19042. # Save the log message, to keep $0 and so on meaningful, and to
  19043. # report actual input values of CONFIG_FILES etc. instead of their
  19044. # values after options handling.
  19045. ac_log="
  19046. This file was extended by dirsrv $as_me 1.0, which was
  19047. generated by GNU Autoconf 2.69. Invocation command line was
  19048. CONFIG_FILES = $CONFIG_FILES
  19049. CONFIG_HEADERS = $CONFIG_HEADERS
  19050. CONFIG_LINKS = $CONFIG_LINKS
  19051. CONFIG_COMMANDS = $CONFIG_COMMANDS
  19052. $ $0 $@
  19053. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  19054. "
  19055. _ACEOF
  19056. case $ac_config_files in *"
  19057. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  19058. esac
  19059. case $ac_config_headers in *"
  19060. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  19061. esac
  19062. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19063. # Files that config.status was made for.
  19064. config_files="$ac_config_files"
  19065. config_headers="$ac_config_headers"
  19066. config_commands="$ac_config_commands"
  19067. _ACEOF
  19068. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19069. ac_cs_usage="\
  19070. \`$as_me' instantiates files and other configuration actions
  19071. from templates according to the current configuration. Unless the files
  19072. and actions are specified as TAGs, all are instantiated by default.
  19073. Usage: $0 [OPTION]... [TAG]...
  19074. -h, --help print this help, then exit
  19075. -V, --version print version number and configuration settings, then exit
  19076. --config print configuration, then exit
  19077. -q, --quiet, --silent
  19078. do not print progress messages
  19079. -d, --debug don't remove temporary files
  19080. --recheck update $as_me by reconfiguring in the same conditions
  19081. --file=FILE[:TEMPLATE]
  19082. instantiate the configuration file FILE
  19083. --header=FILE[:TEMPLATE]
  19084. instantiate the configuration header FILE
  19085. Configuration files:
  19086. $config_files
  19087. Configuration headers:
  19088. $config_headers
  19089. Configuration commands:
  19090. $config_commands
  19091. Report bugs to <http://bugzilla.redhat.com/>."
  19092. _ACEOF
  19093. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19094. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  19095. ac_cs_version="\\
  19096. dirsrv config.status 1.0
  19097. configured by $0, generated by GNU Autoconf 2.69,
  19098. with options \\"\$ac_cs_config\\"
  19099. Copyright (C) 2012 Free Software Foundation, Inc.
  19100. This config.status script is free software; the Free Software Foundation
  19101. gives unlimited permission to copy, distribute and modify it."
  19102. ac_pwd='$ac_pwd'
  19103. srcdir='$srcdir'
  19104. INSTALL='$INSTALL'
  19105. MKDIR_P='$MKDIR_P'
  19106. AWK='$AWK'
  19107. test -n "\$AWK" || AWK=awk
  19108. _ACEOF
  19109. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19110. # The default lists apply if the user does not specify any file.
  19111. ac_need_defaults=:
  19112. while test $# != 0
  19113. do
  19114. case $1 in
  19115. --*=?*)
  19116. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  19117. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  19118. ac_shift=:
  19119. ;;
  19120. --*=)
  19121. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  19122. ac_optarg=
  19123. ac_shift=:
  19124. ;;
  19125. *)
  19126. ac_option=$1
  19127. ac_optarg=$2
  19128. ac_shift=shift
  19129. ;;
  19130. esac
  19131. case $ac_option in
  19132. # Handling of the options.
  19133. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  19134. ac_cs_recheck=: ;;
  19135. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  19136. $as_echo "$ac_cs_version"; exit ;;
  19137. --config | --confi | --conf | --con | --co | --c )
  19138. $as_echo "$ac_cs_config"; exit ;;
  19139. --debug | --debu | --deb | --de | --d | -d )
  19140. debug=: ;;
  19141. --file | --fil | --fi | --f )
  19142. $ac_shift
  19143. case $ac_optarg in
  19144. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  19145. '') as_fn_error $? "missing file argument" ;;
  19146. esac
  19147. as_fn_append CONFIG_FILES " '$ac_optarg'"
  19148. ac_need_defaults=false;;
  19149. --header | --heade | --head | --hea )
  19150. $ac_shift
  19151. case $ac_optarg in
  19152. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  19153. esac
  19154. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  19155. ac_need_defaults=false;;
  19156. --he | --h)
  19157. # Conflict between --help and --header
  19158. as_fn_error $? "ambiguous option: \`$1'
  19159. Try \`$0 --help' for more information.";;
  19160. --help | --hel | -h )
  19161. $as_echo "$ac_cs_usage"; exit ;;
  19162. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  19163. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  19164. ac_cs_silent=: ;;
  19165. # This is an error.
  19166. -*) as_fn_error $? "unrecognized option: \`$1'
  19167. Try \`$0 --help' for more information." ;;
  19168. *) as_fn_append ac_config_targets " $1"
  19169. ac_need_defaults=false ;;
  19170. esac
  19171. shift
  19172. done
  19173. ac_configure_extra_args=
  19174. if $ac_cs_silent; then
  19175. exec 6>/dev/null
  19176. ac_configure_extra_args="$ac_configure_extra_args --silent"
  19177. fi
  19178. _ACEOF
  19179. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19180. if \$ac_cs_recheck; then
  19181. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  19182. shift
  19183. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  19184. CONFIG_SHELL='$SHELL'
  19185. export CONFIG_SHELL
  19186. exec "\$@"
  19187. fi
  19188. _ACEOF
  19189. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19190. exec 5>>config.log
  19191. {
  19192. echo
  19193. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  19194. ## Running $as_me. ##
  19195. _ASBOX
  19196. $as_echo "$ac_log"
  19197. } >&5
  19198. _ACEOF
  19199. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19200. #
  19201. # INIT-COMMANDS
  19202. #
  19203. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  19204. # The HP-UX ksh and POSIX shell print the target directory to stdout
  19205. # if CDPATH is set.
  19206. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  19207. sed_quote_subst='$sed_quote_subst'
  19208. double_quote_subst='$double_quote_subst'
  19209. delay_variable_subst='$delay_variable_subst'
  19210. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  19211. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  19212. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  19213. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  19214. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  19215. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  19216. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  19217. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  19218. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  19219. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  19220. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  19221. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  19222. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  19223. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  19224. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  19225. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  19226. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  19227. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  19228. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  19229. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  19230. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  19231. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  19232. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  19233. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  19234. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  19235. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  19236. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  19237. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  19238. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  19239. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  19240. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  19241. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  19242. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  19243. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  19244. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  19245. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  19246. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  19247. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  19248. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  19249. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  19250. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  19251. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  19252. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  19253. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  19254. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  19255. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  19256. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  19257. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  19258. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  19259. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  19260. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  19261. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  19262. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  19263. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  19264. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  19265. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  19266. 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"`'
  19267. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  19268. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  19269. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  19270. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  19271. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  19272. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  19273. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  19274. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  19275. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  19276. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  19277. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  19278. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  19279. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  19280. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  19281. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  19282. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  19283. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  19284. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  19285. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  19286. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  19287. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  19288. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  19289. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  19290. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  19291. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  19292. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  19293. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  19294. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  19295. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  19296. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  19297. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  19298. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  19299. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  19300. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  19301. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  19302. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  19303. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  19304. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  19305. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  19306. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  19307. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  19308. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  19309. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  19310. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  19311. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  19312. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  19313. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  19314. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  19315. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  19316. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  19317. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  19318. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  19319. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  19320. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  19321. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  19322. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  19323. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  19324. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  19325. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  19326. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  19327. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  19328. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  19329. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  19330. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  19331. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  19332. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  19333. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  19334. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  19335. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  19336. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  19337. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  19338. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  19339. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  19340. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  19341. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  19342. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  19343. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  19344. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  19345. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  19346. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  19347. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  19348. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  19349. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  19350. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  19351. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  19352. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  19353. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  19354. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  19355. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  19356. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  19357. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  19358. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  19359. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  19360. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  19361. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  19362. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  19363. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  19364. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  19365. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  19366. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  19367. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  19368. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  19369. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  19370. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  19371. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  19372. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  19373. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  19374. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  19375. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  19376. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  19377. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  19378. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  19379. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  19380. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  19381. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  19382. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  19383. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  19384. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  19385. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  19386. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  19387. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  19388. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  19389. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  19390. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  19391. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  19392. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  19393. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  19394. LTCC='$LTCC'
  19395. LTCFLAGS='$LTCFLAGS'
  19396. compiler='$compiler_DEFAULT'
  19397. # A function that is used when there is no print builtin or printf.
  19398. func_fallback_echo ()
  19399. {
  19400. eval 'cat <<_LTECHO_EOF
  19401. \$1
  19402. _LTECHO_EOF'
  19403. }
  19404. # Quote evaled strings.
  19405. for var in SHELL \
  19406. ECHO \
  19407. PATH_SEPARATOR \
  19408. SED \
  19409. GREP \
  19410. EGREP \
  19411. FGREP \
  19412. LD \
  19413. NM \
  19414. LN_S \
  19415. lt_SP2NL \
  19416. lt_NL2SP \
  19417. reload_flag \
  19418. OBJDUMP \
  19419. deplibs_check_method \
  19420. file_magic_cmd \
  19421. file_magic_glob \
  19422. want_nocaseglob \
  19423. DLLTOOL \
  19424. sharedlib_from_linklib_cmd \
  19425. AR \
  19426. AR_FLAGS \
  19427. archiver_list_spec \
  19428. STRIP \
  19429. RANLIB \
  19430. CC \
  19431. CFLAGS \
  19432. compiler \
  19433. lt_cv_sys_global_symbol_pipe \
  19434. lt_cv_sys_global_symbol_to_cdecl \
  19435. lt_cv_sys_global_symbol_to_c_name_address \
  19436. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  19437. nm_file_list_spec \
  19438. lt_prog_compiler_no_builtin_flag \
  19439. lt_prog_compiler_pic \
  19440. lt_prog_compiler_wl \
  19441. lt_prog_compiler_static \
  19442. lt_cv_prog_compiler_c_o \
  19443. need_locks \
  19444. MANIFEST_TOOL \
  19445. DSYMUTIL \
  19446. NMEDIT \
  19447. LIPO \
  19448. OTOOL \
  19449. OTOOL64 \
  19450. shrext_cmds \
  19451. export_dynamic_flag_spec \
  19452. whole_archive_flag_spec \
  19453. compiler_needs_object \
  19454. with_gnu_ld \
  19455. allow_undefined_flag \
  19456. no_undefined_flag \
  19457. hardcode_libdir_flag_spec \
  19458. hardcode_libdir_separator \
  19459. exclude_expsyms \
  19460. include_expsyms \
  19461. file_list_spec \
  19462. variables_saved_for_relink \
  19463. libname_spec \
  19464. library_names_spec \
  19465. soname_spec \
  19466. install_override_mode \
  19467. finish_eval \
  19468. old_striplib \
  19469. striplib \
  19470. compiler_lib_search_dirs \
  19471. predep_objects \
  19472. postdep_objects \
  19473. predeps \
  19474. postdeps \
  19475. compiler_lib_search_path \
  19476. LD_CXX \
  19477. reload_flag_CXX \
  19478. compiler_CXX \
  19479. lt_prog_compiler_no_builtin_flag_CXX \
  19480. lt_prog_compiler_pic_CXX \
  19481. lt_prog_compiler_wl_CXX \
  19482. lt_prog_compiler_static_CXX \
  19483. lt_cv_prog_compiler_c_o_CXX \
  19484. export_dynamic_flag_spec_CXX \
  19485. whole_archive_flag_spec_CXX \
  19486. compiler_needs_object_CXX \
  19487. with_gnu_ld_CXX \
  19488. allow_undefined_flag_CXX \
  19489. no_undefined_flag_CXX \
  19490. hardcode_libdir_flag_spec_CXX \
  19491. hardcode_libdir_separator_CXX \
  19492. exclude_expsyms_CXX \
  19493. include_expsyms_CXX \
  19494. file_list_spec_CXX \
  19495. compiler_lib_search_dirs_CXX \
  19496. predep_objects_CXX \
  19497. postdep_objects_CXX \
  19498. predeps_CXX \
  19499. postdeps_CXX \
  19500. compiler_lib_search_path_CXX; do
  19501. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  19502. *[\\\\\\\`\\"\\\$]*)
  19503. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  19504. ;;
  19505. *)
  19506. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  19507. ;;
  19508. esac
  19509. done
  19510. # Double-quote double-evaled strings.
  19511. for var in reload_cmds \
  19512. old_postinstall_cmds \
  19513. old_postuninstall_cmds \
  19514. old_archive_cmds \
  19515. extract_expsyms_cmds \
  19516. old_archive_from_new_cmds \
  19517. old_archive_from_expsyms_cmds \
  19518. archive_cmds \
  19519. archive_expsym_cmds \
  19520. module_cmds \
  19521. module_expsym_cmds \
  19522. export_symbols_cmds \
  19523. prelink_cmds \
  19524. postlink_cmds \
  19525. postinstall_cmds \
  19526. postuninstall_cmds \
  19527. finish_cmds \
  19528. sys_lib_search_path_spec \
  19529. sys_lib_dlsearch_path_spec \
  19530. reload_cmds_CXX \
  19531. old_archive_cmds_CXX \
  19532. old_archive_from_new_cmds_CXX \
  19533. old_archive_from_expsyms_cmds_CXX \
  19534. archive_cmds_CXX \
  19535. archive_expsym_cmds_CXX \
  19536. module_cmds_CXX \
  19537. module_expsym_cmds_CXX \
  19538. export_symbols_cmds_CXX \
  19539. prelink_cmds_CXX \
  19540. postlink_cmds_CXX; do
  19541. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  19542. *[\\\\\\\`\\"\\\$]*)
  19543. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  19544. ;;
  19545. *)
  19546. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  19547. ;;
  19548. esac
  19549. done
  19550. ac_aux_dir='$ac_aux_dir'
  19551. xsi_shell='$xsi_shell'
  19552. lt_shell_append='$lt_shell_append'
  19553. # See if we are running on zsh, and set the options which allow our
  19554. # commands through without removal of \ escapes INIT.
  19555. if test -n "\${ZSH_VERSION+set}" ; then
  19556. setopt NO_GLOB_SUBST
  19557. fi
  19558. PACKAGE='$PACKAGE'
  19559. VERSION='$VERSION'
  19560. TIMESTAMP='$TIMESTAMP'
  19561. RM='$RM'
  19562. ofile='$ofile'
  19563. _ACEOF
  19564. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19565. # Handling of arguments.
  19566. for ac_config_target in $ac_config_targets
  19567. do
  19568. case $ac_config_target in
  19569. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  19570. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  19571. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  19572. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  19573. "rpm/389-ds-base.spec") CONFIG_FILES="$CONFIG_FILES rpm/389-ds-base.spec" ;;
  19574. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  19575. esac
  19576. done
  19577. # If the user did not use the arguments to specify the items to instantiate,
  19578. # then the envvar interface is used. Set only those that are not.
  19579. # We use the long form for the default assignment because of an extremely
  19580. # bizarre bug on SunOS 4.1.3.
  19581. if $ac_need_defaults; then
  19582. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  19583. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  19584. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  19585. fi
  19586. # Have a temporary directory for convenience. Make it in the build tree
  19587. # simply because there is no reason against having it here, and in addition,
  19588. # creating and moving files from /tmp can sometimes cause problems.
  19589. # Hook for its removal unless debugging.
  19590. # Note that there is a small window in which the directory will not be cleaned:
  19591. # after its creation but before its name has been assigned to `$tmp'.
  19592. $debug ||
  19593. {
  19594. tmp= ac_tmp=
  19595. trap 'exit_status=$?
  19596. : "${ac_tmp:=$tmp}"
  19597. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  19598. ' 0
  19599. trap 'as_fn_exit 1' 1 2 13 15
  19600. }
  19601. # Create a (secure) tmp directory for tmp files.
  19602. {
  19603. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  19604. test -d "$tmp"
  19605. } ||
  19606. {
  19607. tmp=./conf$$-$RANDOM
  19608. (umask 077 && mkdir "$tmp")
  19609. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  19610. ac_tmp=$tmp
  19611. # Set up the scripts for CONFIG_FILES section.
  19612. # No need to generate them if there are no CONFIG_FILES.
  19613. # This happens for instance with `./config.status config.h'.
  19614. if test -n "$CONFIG_FILES"; then
  19615. ac_cr=`echo X | tr X '\015'`
  19616. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  19617. # But we know of no other shell where ac_cr would be empty at this
  19618. # point, so we can use a bashism as a fallback.
  19619. if test "x$ac_cr" = x; then
  19620. eval ac_cr=\$\'\\r\'
  19621. fi
  19622. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  19623. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  19624. ac_cs_awk_cr='\\r'
  19625. else
  19626. ac_cs_awk_cr=$ac_cr
  19627. fi
  19628. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  19629. _ACEOF
  19630. {
  19631. echo "cat >conf$$subs.awk <<_ACEOF" &&
  19632. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  19633. echo "_ACEOF"
  19634. } >conf$$subs.sh ||
  19635. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  19636. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  19637. ac_delim='%!_!# '
  19638. for ac_last_try in false false false false false :; do
  19639. . ./conf$$subs.sh ||
  19640. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  19641. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  19642. if test $ac_delim_n = $ac_delim_num; then
  19643. break
  19644. elif $ac_last_try; then
  19645. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  19646. else
  19647. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  19648. fi
  19649. done
  19650. rm -f conf$$subs.sh
  19651. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19652. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  19653. _ACEOF
  19654. sed -n '
  19655. h
  19656. s/^/S["/; s/!.*/"]=/
  19657. p
  19658. g
  19659. s/^[^!]*!//
  19660. :repl
  19661. t repl
  19662. s/'"$ac_delim"'$//
  19663. t delim
  19664. :nl
  19665. h
  19666. s/\(.\{148\}\)..*/\1/
  19667. t more1
  19668. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  19669. p
  19670. n
  19671. b repl
  19672. :more1
  19673. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  19674. p
  19675. g
  19676. s/.\{148\}//
  19677. t nl
  19678. :delim
  19679. h
  19680. s/\(.\{148\}\)..*/\1/
  19681. t more2
  19682. s/["\\]/\\&/g; s/^/"/; s/$/"/
  19683. p
  19684. b
  19685. :more2
  19686. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  19687. p
  19688. g
  19689. s/.\{148\}//
  19690. t delim
  19691. ' <conf$$subs.awk | sed '
  19692. /^[^""]/{
  19693. N
  19694. s/\n//
  19695. }
  19696. ' >>$CONFIG_STATUS || ac_write_fail=1
  19697. rm -f conf$$subs.awk
  19698. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19699. _ACAWK
  19700. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  19701. for (key in S) S_is_set[key] = 1
  19702. FS = ""
  19703. }
  19704. {
  19705. line = $ 0
  19706. nfields = split(line, field, "@")
  19707. substed = 0
  19708. len = length(field[1])
  19709. for (i = 2; i < nfields; i++) {
  19710. key = field[i]
  19711. keylen = length(key)
  19712. if (S_is_set[key]) {
  19713. value = S[key]
  19714. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  19715. len += length(value) + length(field[++i])
  19716. substed = 1
  19717. } else
  19718. len += 1 + keylen
  19719. }
  19720. print line
  19721. }
  19722. _ACAWK
  19723. _ACEOF
  19724. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19725. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  19726. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  19727. else
  19728. cat
  19729. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  19730. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  19731. _ACEOF
  19732. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  19733. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  19734. # trailing colons and then remove the whole line if VPATH becomes empty
  19735. # (actually we leave an empty line to preserve line numbers).
  19736. if test "x$srcdir" = x.; then
  19737. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  19738. h
  19739. s///
  19740. s/^/:/
  19741. s/[ ]*$/:/
  19742. s/:\$(srcdir):/:/g
  19743. s/:\${srcdir}:/:/g
  19744. s/:@srcdir@:/:/g
  19745. s/^:*//
  19746. s/:*$//
  19747. x
  19748. s/\(=[ ]*\).*/\1/
  19749. G
  19750. s/\n//
  19751. s/^[^=]*=[ ]*$//
  19752. }'
  19753. fi
  19754. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19755. fi # test -n "$CONFIG_FILES"
  19756. # Set up the scripts for CONFIG_HEADERS section.
  19757. # No need to generate them if there are no CONFIG_HEADERS.
  19758. # This happens for instance with `./config.status Makefile'.
  19759. if test -n "$CONFIG_HEADERS"; then
  19760. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  19761. BEGIN {
  19762. _ACEOF
  19763. # Transform confdefs.h into an awk script `defines.awk', embedded as
  19764. # here-document in config.status, that substitutes the proper values into
  19765. # config.h.in to produce config.h.
  19766. # Create a delimiter string that does not exist in confdefs.h, to ease
  19767. # handling of long lines.
  19768. ac_delim='%!_!# '
  19769. for ac_last_try in false false :; do
  19770. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  19771. if test -z "$ac_tt"; then
  19772. break
  19773. elif $ac_last_try; then
  19774. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  19775. else
  19776. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  19777. fi
  19778. done
  19779. # For the awk script, D is an array of macro values keyed by name,
  19780. # likewise P contains macro parameters if any. Preserve backslash
  19781. # newline sequences.
  19782. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  19783. sed -n '
  19784. s/.\{148\}/&'"$ac_delim"'/g
  19785. t rset
  19786. :rset
  19787. s/^[ ]*#[ ]*define[ ][ ]*/ /
  19788. t def
  19789. d
  19790. :def
  19791. s/\\$//
  19792. t bsnl
  19793. s/["\\]/\\&/g
  19794. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  19795. D["\1"]=" \3"/p
  19796. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  19797. d
  19798. :bsnl
  19799. s/["\\]/\\&/g
  19800. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  19801. D["\1"]=" \3\\\\\\n"\\/p
  19802. t cont
  19803. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  19804. t cont
  19805. d
  19806. :cont
  19807. n
  19808. s/.\{148\}/&'"$ac_delim"'/g
  19809. t clear
  19810. :clear
  19811. s/\\$//
  19812. t bsnlc
  19813. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  19814. d
  19815. :bsnlc
  19816. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  19817. b cont
  19818. ' <confdefs.h | sed '
  19819. s/'"$ac_delim"'/"\\\
  19820. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  19821. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19822. for (key in D) D_is_set[key] = 1
  19823. FS = ""
  19824. }
  19825. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  19826. line = \$ 0
  19827. split(line, arg, " ")
  19828. if (arg[1] == "#") {
  19829. defundef = arg[2]
  19830. mac1 = arg[3]
  19831. } else {
  19832. defundef = substr(arg[1], 2)
  19833. mac1 = arg[2]
  19834. }
  19835. split(mac1, mac2, "(") #)
  19836. macro = mac2[1]
  19837. prefix = substr(line, 1, index(line, defundef) - 1)
  19838. if (D_is_set[macro]) {
  19839. # Preserve the white space surrounding the "#".
  19840. print prefix "define", macro P[macro] D[macro]
  19841. next
  19842. } else {
  19843. # Replace #undef with comments. This is necessary, for example,
  19844. # in the case of _POSIX_SOURCE, which is predefined and required
  19845. # on some systems where configure will not decide to define it.
  19846. if (defundef == "undef") {
  19847. print "/*", prefix defundef, macro, "*/"
  19848. next
  19849. }
  19850. }
  19851. }
  19852. { print }
  19853. _ACAWK
  19854. _ACEOF
  19855. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19856. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  19857. fi # test -n "$CONFIG_HEADERS"
  19858. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  19859. shift
  19860. for ac_tag
  19861. do
  19862. case $ac_tag in
  19863. :[FHLC]) ac_mode=$ac_tag; continue;;
  19864. esac
  19865. case $ac_mode$ac_tag in
  19866. :[FHL]*:*);;
  19867. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  19868. :[FH]-) ac_tag=-:-;;
  19869. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  19870. esac
  19871. ac_save_IFS=$IFS
  19872. IFS=:
  19873. set x $ac_tag
  19874. IFS=$ac_save_IFS
  19875. shift
  19876. ac_file=$1
  19877. shift
  19878. case $ac_mode in
  19879. :L) ac_source=$1;;
  19880. :[FH])
  19881. ac_file_inputs=
  19882. for ac_f
  19883. do
  19884. case $ac_f in
  19885. -) ac_f="$ac_tmp/stdin";;
  19886. *) # Look for the file first in the build tree, then in the source tree
  19887. # (if the path is not absolute). The absolute path cannot be DOS-style,
  19888. # because $ac_f cannot contain `:'.
  19889. test -f "$ac_f" ||
  19890. case $ac_f in
  19891. [\\/$]*) false;;
  19892. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  19893. esac ||
  19894. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  19895. esac
  19896. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  19897. as_fn_append ac_file_inputs " '$ac_f'"
  19898. done
  19899. # Let's still pretend it is `configure' which instantiates (i.e., don't
  19900. # use $as_me), people would be surprised to read:
  19901. # /* config.h. Generated by config.status. */
  19902. configure_input='Generated from '`
  19903. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  19904. `' by configure.'
  19905. if test x"$ac_file" != x-; then
  19906. configure_input="$ac_file. $configure_input"
  19907. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  19908. $as_echo "$as_me: creating $ac_file" >&6;}
  19909. fi
  19910. # Neutralize special characters interpreted by sed in replacement strings.
  19911. case $configure_input in #(
  19912. *\&* | *\|* | *\\* )
  19913. ac_sed_conf_input=`$as_echo "$configure_input" |
  19914. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  19915. *) ac_sed_conf_input=$configure_input;;
  19916. esac
  19917. case $ac_tag in
  19918. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  19919. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  19920. esac
  19921. ;;
  19922. esac
  19923. ac_dir=`$as_dirname -- "$ac_file" ||
  19924. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  19925. X"$ac_file" : 'X\(//\)[^/]' \| \
  19926. X"$ac_file" : 'X\(//\)$' \| \
  19927. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  19928. $as_echo X"$ac_file" |
  19929. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  19930. s//\1/
  19931. q
  19932. }
  19933. /^X\(\/\/\)[^/].*/{
  19934. s//\1/
  19935. q
  19936. }
  19937. /^X\(\/\/\)$/{
  19938. s//\1/
  19939. q
  19940. }
  19941. /^X\(\/\).*/{
  19942. s//\1/
  19943. q
  19944. }
  19945. s/.*/./; q'`
  19946. as_dir="$ac_dir"; as_fn_mkdir_p
  19947. ac_builddir=.
  19948. case "$ac_dir" in
  19949. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  19950. *)
  19951. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  19952. # A ".." for each directory in $ac_dir_suffix.
  19953. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  19954. case $ac_top_builddir_sub in
  19955. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  19956. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  19957. esac ;;
  19958. esac
  19959. ac_abs_top_builddir=$ac_pwd
  19960. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  19961. # for backward compatibility:
  19962. ac_top_builddir=$ac_top_build_prefix
  19963. case $srcdir in
  19964. .) # We are building in place.
  19965. ac_srcdir=.
  19966. ac_top_srcdir=$ac_top_builddir_sub
  19967. ac_abs_top_srcdir=$ac_pwd ;;
  19968. [\\/]* | ?:[\\/]* ) # Absolute name.
  19969. ac_srcdir=$srcdir$ac_dir_suffix;
  19970. ac_top_srcdir=$srcdir
  19971. ac_abs_top_srcdir=$srcdir ;;
  19972. *) # Relative name.
  19973. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  19974. ac_top_srcdir=$ac_top_build_prefix$srcdir
  19975. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  19976. esac
  19977. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  19978. case $ac_mode in
  19979. :F)
  19980. #
  19981. # CONFIG_FILE
  19982. #
  19983. case $INSTALL in
  19984. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  19985. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  19986. esac
  19987. ac_MKDIR_P=$MKDIR_P
  19988. case $MKDIR_P in
  19989. [\\/$]* | ?:[\\/]* ) ;;
  19990. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  19991. esac
  19992. _ACEOF
  19993. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19994. # If the template does not know about datarootdir, expand it.
  19995. # FIXME: This hack should be removed a few years after 2.60.
  19996. ac_datarootdir_hack=; ac_datarootdir_seen=
  19997. ac_sed_dataroot='
  19998. /datarootdir/ {
  19999. p
  20000. q
  20001. }
  20002. /@datadir@/p
  20003. /@docdir@/p
  20004. /@infodir@/p
  20005. /@localedir@/p
  20006. /@mandir@/p'
  20007. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  20008. *datarootdir*) ac_datarootdir_seen=yes;;
  20009. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  20010. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  20011. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  20012. _ACEOF
  20013. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  20014. ac_datarootdir_hack='
  20015. s&@datadir@&$datadir&g
  20016. s&@docdir@&$docdir&g
  20017. s&@infodir@&$infodir&g
  20018. s&@localedir@&$localedir&g
  20019. s&@mandir@&$mandir&g
  20020. s&\\\${datarootdir}&$datarootdir&g' ;;
  20021. esac
  20022. _ACEOF
  20023. # Neutralize VPATH when `$srcdir' = `.'.
  20024. # Shell code in configure.ac might set extrasub.
  20025. # FIXME: do we really want to maintain this feature?
  20026. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  20027. ac_sed_extra="$ac_vpsub
  20028. $extrasub
  20029. _ACEOF
  20030. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  20031. :t
  20032. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  20033. s|@configure_input@|$ac_sed_conf_input|;t t
  20034. s&@top_builddir@&$ac_top_builddir_sub&;t t
  20035. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  20036. s&@srcdir@&$ac_srcdir&;t t
  20037. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  20038. s&@top_srcdir@&$ac_top_srcdir&;t t
  20039. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  20040. s&@builddir@&$ac_builddir&;t t
  20041. s&@abs_builddir@&$ac_abs_builddir&;t t
  20042. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  20043. s&@INSTALL@&$ac_INSTALL&;t t
  20044. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  20045. $ac_datarootdir_hack
  20046. "
  20047. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  20048. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  20049. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  20050. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  20051. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  20052. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  20053. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  20054. which seems to be undefined. Please make sure it is defined" >&5
  20055. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  20056. which seems to be undefined. Please make sure it is defined" >&2;}
  20057. rm -f "$ac_tmp/stdin"
  20058. case $ac_file in
  20059. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  20060. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  20061. esac \
  20062. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  20063. ;;
  20064. :H)
  20065. #
  20066. # CONFIG_HEADER
  20067. #
  20068. if test x"$ac_file" != x-; then
  20069. {
  20070. $as_echo "/* $configure_input */" \
  20071. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  20072. } >"$ac_tmp/config.h" \
  20073. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  20074. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  20075. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  20076. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  20077. else
  20078. rm -f "$ac_file"
  20079. mv "$ac_tmp/config.h" "$ac_file" \
  20080. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  20081. fi
  20082. else
  20083. $as_echo "/* $configure_input */" \
  20084. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  20085. || as_fn_error $? "could not create -" "$LINENO" 5
  20086. fi
  20087. # Compute "$ac_file"'s index in $config_headers.
  20088. _am_arg="$ac_file"
  20089. _am_stamp_count=1
  20090. for _am_header in $config_headers :; do
  20091. case $_am_header in
  20092. $_am_arg | $_am_arg:* )
  20093. break ;;
  20094. * )
  20095. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  20096. esac
  20097. done
  20098. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  20099. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20100. X"$_am_arg" : 'X\(//\)[^/]' \| \
  20101. X"$_am_arg" : 'X\(//\)$' \| \
  20102. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  20103. $as_echo X"$_am_arg" |
  20104. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  20105. s//\1/
  20106. q
  20107. }
  20108. /^X\(\/\/\)[^/].*/{
  20109. s//\1/
  20110. q
  20111. }
  20112. /^X\(\/\/\)$/{
  20113. s//\1/
  20114. q
  20115. }
  20116. /^X\(\/\).*/{
  20117. s//\1/
  20118. q
  20119. }
  20120. s/.*/./; q'`/stamp-h$_am_stamp_count
  20121. ;;
  20122. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  20123. $as_echo "$as_me: executing $ac_file commands" >&6;}
  20124. ;;
  20125. esac
  20126. case $ac_file$ac_mode in
  20127. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  20128. # Older Autoconf quotes --file arguments for eval, but not when files
  20129. # are listed without --file. Let's play safe and only enable the eval
  20130. # if we detect the quoting.
  20131. case $CONFIG_FILES in
  20132. *\'*) eval set x "$CONFIG_FILES" ;;
  20133. *) set x $CONFIG_FILES ;;
  20134. esac
  20135. shift
  20136. for mf
  20137. do
  20138. # Strip MF so we end up with the name of the file.
  20139. mf=`echo "$mf" | sed -e 's/:.*$//'`
  20140. # Check whether this is an Automake generated Makefile or not.
  20141. # We used to match only the files named 'Makefile.in', but
  20142. # some people rename them; so instead we look at the file content.
  20143. # Grep'ing the first line is not enough: some people post-process
  20144. # each Makefile.in and add a new line on top of each file to say so.
  20145. # Grep'ing the whole file is not good either: AIX grep has a line
  20146. # limit of 2048, but all sed's we know have understand at least 4000.
  20147. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  20148. dirpart=`$as_dirname -- "$mf" ||
  20149. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20150. X"$mf" : 'X\(//\)[^/]' \| \
  20151. X"$mf" : 'X\(//\)$' \| \
  20152. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  20153. $as_echo X"$mf" |
  20154. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  20155. s//\1/
  20156. q
  20157. }
  20158. /^X\(\/\/\)[^/].*/{
  20159. s//\1/
  20160. q
  20161. }
  20162. /^X\(\/\/\)$/{
  20163. s//\1/
  20164. q
  20165. }
  20166. /^X\(\/\).*/{
  20167. s//\1/
  20168. q
  20169. }
  20170. s/.*/./; q'`
  20171. else
  20172. continue
  20173. fi
  20174. # Extract the definition of DEPDIR, am__include, and am__quote
  20175. # from the Makefile without running 'make'.
  20176. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  20177. test -z "$DEPDIR" && continue
  20178. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  20179. test -z "$am__include" && continue
  20180. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  20181. # Find all dependency output files, they are included files with
  20182. # $(DEPDIR) in their names. We invoke sed twice because it is the
  20183. # simplest approach to changing $(DEPDIR) to its actual value in the
  20184. # expansion.
  20185. for file in `sed -n "
  20186. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  20187. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
  20188. # Make sure the directory exists.
  20189. test -f "$dirpart/$file" && continue
  20190. fdir=`$as_dirname -- "$file" ||
  20191. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20192. X"$file" : 'X\(//\)[^/]' \| \
  20193. X"$file" : 'X\(//\)$' \| \
  20194. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  20195. $as_echo X"$file" |
  20196. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  20197. s//\1/
  20198. q
  20199. }
  20200. /^X\(\/\/\)[^/].*/{
  20201. s//\1/
  20202. q
  20203. }
  20204. /^X\(\/\/\)$/{
  20205. s//\1/
  20206. q
  20207. }
  20208. /^X\(\/\).*/{
  20209. s//\1/
  20210. q
  20211. }
  20212. s/.*/./; q'`
  20213. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  20214. # echo "creating $dirpart/$file"
  20215. echo '# dummy' > "$dirpart/$file"
  20216. done
  20217. done
  20218. }
  20219. ;;
  20220. "libtool":C)
  20221. # See if we are running on zsh, and set the options which allow our
  20222. # commands through without removal of \ escapes.
  20223. if test -n "${ZSH_VERSION+set}" ; then
  20224. setopt NO_GLOB_SUBST
  20225. fi
  20226. cfgfile="${ofile}T"
  20227. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  20228. $RM "$cfgfile"
  20229. cat <<_LT_EOF >> "$cfgfile"
  20230. #! $SHELL
  20231. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  20232. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  20233. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  20234. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  20235. #
  20236. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  20237. # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
  20238. # Foundation, Inc.
  20239. # Written by Gordon Matzigkeit, 1996
  20240. #
  20241. # This file is part of GNU Libtool.
  20242. #
  20243. # GNU Libtool is free software; you can redistribute it and/or
  20244. # modify it under the terms of the GNU General Public License as
  20245. # published by the Free Software Foundation; either version 2 of
  20246. # the License, or (at your option) any later version.
  20247. #
  20248. # As a special exception to the GNU General Public License,
  20249. # if you distribute this file as part of a program or library that
  20250. # is built using GNU Libtool, you may include this file under the
  20251. # same distribution terms that you use for the rest of that program.
  20252. #
  20253. # GNU Libtool is distributed in the hope that it will be useful,
  20254. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  20255. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  20256. # GNU General Public License for more details.
  20257. #
  20258. # You should have received a copy of the GNU General Public License
  20259. # along with GNU Libtool; see the file COPYING. If not, a copy
  20260. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  20261. # obtained by writing to the Free Software Foundation, Inc.,
  20262. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  20263. # The names of the tagged configurations supported by this script.
  20264. available_tags="CXX "
  20265. # ### BEGIN LIBTOOL CONFIG
  20266. # Whether or not to build static libraries.
  20267. build_old_libs=$enable_static
  20268. # Which release of libtool.m4 was used?
  20269. macro_version=$macro_version
  20270. macro_revision=$macro_revision
  20271. # Whether or not to build shared libraries.
  20272. build_libtool_libs=$enable_shared
  20273. # What type of objects to build.
  20274. pic_mode=$pic_mode
  20275. # Whether or not to optimize for fast installation.
  20276. fast_install=$enable_fast_install
  20277. # Shell to use when invoking shell scripts.
  20278. SHELL=$lt_SHELL
  20279. # An echo program that protects backslashes.
  20280. ECHO=$lt_ECHO
  20281. # The PATH separator for the build system.
  20282. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  20283. # The host system.
  20284. host_alias=$host_alias
  20285. host=$host
  20286. host_os=$host_os
  20287. # The build system.
  20288. build_alias=$build_alias
  20289. build=$build
  20290. build_os=$build_os
  20291. # A sed program that does not truncate output.
  20292. SED=$lt_SED
  20293. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  20294. Xsed="\$SED -e 1s/^X//"
  20295. # A grep program that handles long lines.
  20296. GREP=$lt_GREP
  20297. # An ERE matcher.
  20298. EGREP=$lt_EGREP
  20299. # A literal string matcher.
  20300. FGREP=$lt_FGREP
  20301. # A BSD- or MS-compatible name lister.
  20302. NM=$lt_NM
  20303. # Whether we need soft or hard links.
  20304. LN_S=$lt_LN_S
  20305. # What is the maximum length of a command?
  20306. max_cmd_len=$max_cmd_len
  20307. # Object file suffix (normally "o").
  20308. objext=$ac_objext
  20309. # Executable file suffix (normally "").
  20310. exeext=$exeext
  20311. # whether the shell understands "unset".
  20312. lt_unset=$lt_unset
  20313. # turn spaces into newlines.
  20314. SP2NL=$lt_lt_SP2NL
  20315. # turn newlines into spaces.
  20316. NL2SP=$lt_lt_NL2SP
  20317. # convert \$build file names to \$host format.
  20318. to_host_file_cmd=$lt_cv_to_host_file_cmd
  20319. # convert \$build files to toolchain format.
  20320. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  20321. # An object symbol dumper.
  20322. OBJDUMP=$lt_OBJDUMP
  20323. # Method to check whether dependent libraries are shared objects.
  20324. deplibs_check_method=$lt_deplibs_check_method
  20325. # Command to use when deplibs_check_method = "file_magic".
  20326. file_magic_cmd=$lt_file_magic_cmd
  20327. # How to find potential files when deplibs_check_method = "file_magic".
  20328. file_magic_glob=$lt_file_magic_glob
  20329. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  20330. want_nocaseglob=$lt_want_nocaseglob
  20331. # DLL creation program.
  20332. DLLTOOL=$lt_DLLTOOL
  20333. # Command to associate shared and link libraries.
  20334. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  20335. # The archiver.
  20336. AR=$lt_AR
  20337. # Flags to create an archive.
  20338. AR_FLAGS=$lt_AR_FLAGS
  20339. # How to feed a file listing to the archiver.
  20340. archiver_list_spec=$lt_archiver_list_spec
  20341. # A symbol stripping program.
  20342. STRIP=$lt_STRIP
  20343. # Commands used to install an old-style archive.
  20344. RANLIB=$lt_RANLIB
  20345. old_postinstall_cmds=$lt_old_postinstall_cmds
  20346. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  20347. # Whether to use a lock for old archive extraction.
  20348. lock_old_archive_extraction=$lock_old_archive_extraction
  20349. # A C compiler.
  20350. LTCC=$lt_CC
  20351. # LTCC compiler flags.
  20352. LTCFLAGS=$lt_CFLAGS
  20353. # Take the output of nm and produce a listing of raw symbols and C names.
  20354. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  20355. # Transform the output of nm in a proper C declaration.
  20356. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  20357. # Transform the output of nm in a C name address pair.
  20358. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  20359. # Transform the output of nm in a C name address pair when lib prefix is needed.
  20360. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  20361. # Specify filename containing input files for \$NM.
  20362. nm_file_list_spec=$lt_nm_file_list_spec
  20363. # The root where to search for dependent libraries,and in which our libraries should be installed.
  20364. lt_sysroot=$lt_sysroot
  20365. # The name of the directory that contains temporary libtool files.
  20366. objdir=$objdir
  20367. # Used to examine libraries when file_magic_cmd begins with "file".
  20368. MAGIC_CMD=$MAGIC_CMD
  20369. # Must we lock files when doing compilation?
  20370. need_locks=$lt_need_locks
  20371. # Manifest tool.
  20372. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  20373. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  20374. DSYMUTIL=$lt_DSYMUTIL
  20375. # Tool to change global to local symbols on Mac OS X.
  20376. NMEDIT=$lt_NMEDIT
  20377. # Tool to manipulate fat objects and archives on Mac OS X.
  20378. LIPO=$lt_LIPO
  20379. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  20380. OTOOL=$lt_OTOOL
  20381. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  20382. OTOOL64=$lt_OTOOL64
  20383. # Old archive suffix (normally "a").
  20384. libext=$libext
  20385. # Shared library suffix (normally ".so").
  20386. shrext_cmds=$lt_shrext_cmds
  20387. # The commands to extract the exported symbol list from a shared archive.
  20388. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  20389. # Variables whose values should be saved in libtool wrapper scripts and
  20390. # restored at link time.
  20391. variables_saved_for_relink=$lt_variables_saved_for_relink
  20392. # Do we need the "lib" prefix for modules?
  20393. need_lib_prefix=$need_lib_prefix
  20394. # Do we need a version for libraries?
  20395. need_version=$need_version
  20396. # Library versioning type.
  20397. version_type=$version_type
  20398. # Shared library runtime path variable.
  20399. runpath_var=$runpath_var
  20400. # Shared library path variable.
  20401. shlibpath_var=$shlibpath_var
  20402. # Is shlibpath searched before the hard-coded library search path?
  20403. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  20404. # Format of library name prefix.
  20405. libname_spec=$lt_libname_spec
  20406. # List of archive names. First name is the real one, the rest are links.
  20407. # The last name is the one that the linker finds with -lNAME
  20408. library_names_spec=$lt_library_names_spec
  20409. # The coded name of the library, if different from the real name.
  20410. soname_spec=$lt_soname_spec
  20411. # Permission mode override for installation of shared libraries.
  20412. install_override_mode=$lt_install_override_mode
  20413. # Command to use after installation of a shared archive.
  20414. postinstall_cmds=$lt_postinstall_cmds
  20415. # Command to use after uninstallation of a shared archive.
  20416. postuninstall_cmds=$lt_postuninstall_cmds
  20417. # Commands used to finish a libtool library installation in a directory.
  20418. finish_cmds=$lt_finish_cmds
  20419. # As "finish_cmds", except a single script fragment to be evaled but
  20420. # not shown.
  20421. finish_eval=$lt_finish_eval
  20422. # Whether we should hardcode library paths into libraries.
  20423. hardcode_into_libs=$hardcode_into_libs
  20424. # Compile-time system search path for libraries.
  20425. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  20426. # Run-time system search path for libraries.
  20427. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  20428. # Whether dlopen is supported.
  20429. dlopen_support=$enable_dlopen
  20430. # Whether dlopen of programs is supported.
  20431. dlopen_self=$enable_dlopen_self
  20432. # Whether dlopen of statically linked programs is supported.
  20433. dlopen_self_static=$enable_dlopen_self_static
  20434. # Commands to strip libraries.
  20435. old_striplib=$lt_old_striplib
  20436. striplib=$lt_striplib
  20437. # The linker used to build libraries.
  20438. LD=$lt_LD
  20439. # How to create reloadable object files.
  20440. reload_flag=$lt_reload_flag
  20441. reload_cmds=$lt_reload_cmds
  20442. # Commands used to build an old-style archive.
  20443. old_archive_cmds=$lt_old_archive_cmds
  20444. # A language specific compiler.
  20445. CC=$lt_compiler
  20446. # Is the compiler the GNU compiler?
  20447. with_gcc=$GCC
  20448. # Compiler flag to turn off builtin functions.
  20449. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  20450. # Additional compiler flags for building library objects.
  20451. pic_flag=$lt_lt_prog_compiler_pic
  20452. # How to pass a linker flag through the compiler.
  20453. wl=$lt_lt_prog_compiler_wl
  20454. # Compiler flag to prevent dynamic linking.
  20455. link_static_flag=$lt_lt_prog_compiler_static
  20456. # Does compiler simultaneously support -c and -o options?
  20457. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  20458. # Whether or not to add -lc for building shared libraries.
  20459. build_libtool_need_lc=$archive_cmds_need_lc
  20460. # Whether or not to disallow shared libs when runtime libs are static.
  20461. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  20462. # Compiler flag to allow reflexive dlopens.
  20463. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  20464. # Compiler flag to generate shared objects directly from archives.
  20465. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  20466. # Whether the compiler copes with passing no objects directly.
  20467. compiler_needs_object=$lt_compiler_needs_object
  20468. # Create an old-style archive from a shared archive.
  20469. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  20470. # Create a temporary old-style archive to link instead of a shared archive.
  20471. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  20472. # Commands used to build a shared archive.
  20473. archive_cmds=$lt_archive_cmds
  20474. archive_expsym_cmds=$lt_archive_expsym_cmds
  20475. # Commands used to build a loadable module if different from building
  20476. # a shared archive.
  20477. module_cmds=$lt_module_cmds
  20478. module_expsym_cmds=$lt_module_expsym_cmds
  20479. # Whether we are building with GNU ld or not.
  20480. with_gnu_ld=$lt_with_gnu_ld
  20481. # Flag that allows shared libraries with undefined symbols to be built.
  20482. allow_undefined_flag=$lt_allow_undefined_flag
  20483. # Flag that enforces no undefined symbols.
  20484. no_undefined_flag=$lt_no_undefined_flag
  20485. # Flag to hardcode \$libdir into a binary during linking.
  20486. # This must work even if \$libdir does not exist
  20487. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  20488. # Whether we need a single "-rpath" flag with a separated argument.
  20489. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  20490. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  20491. # DIR into the resulting binary.
  20492. hardcode_direct=$hardcode_direct
  20493. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  20494. # DIR into the resulting binary and the resulting library dependency is
  20495. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  20496. # library is relocated.
  20497. hardcode_direct_absolute=$hardcode_direct_absolute
  20498. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  20499. # into the resulting binary.
  20500. hardcode_minus_L=$hardcode_minus_L
  20501. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  20502. # into the resulting binary.
  20503. hardcode_shlibpath_var=$hardcode_shlibpath_var
  20504. # Set to "yes" if building a shared library automatically hardcodes DIR
  20505. # into the library and all subsequent libraries and executables linked
  20506. # against it.
  20507. hardcode_automatic=$hardcode_automatic
  20508. # Set to yes if linker adds runtime paths of dependent libraries
  20509. # to runtime path list.
  20510. inherit_rpath=$inherit_rpath
  20511. # Whether libtool must link a program against all its dependency libraries.
  20512. link_all_deplibs=$link_all_deplibs
  20513. # Set to "yes" if exported symbols are required.
  20514. always_export_symbols=$always_export_symbols
  20515. # The commands to list exported symbols.
  20516. export_symbols_cmds=$lt_export_symbols_cmds
  20517. # Symbols that should not be listed in the preloaded symbols.
  20518. exclude_expsyms=$lt_exclude_expsyms
  20519. # Symbols that must always be exported.
  20520. include_expsyms=$lt_include_expsyms
  20521. # Commands necessary for linking programs (against libraries) with templates.
  20522. prelink_cmds=$lt_prelink_cmds
  20523. # Commands necessary for finishing linking programs.
  20524. postlink_cmds=$lt_postlink_cmds
  20525. # Specify filename containing input files.
  20526. file_list_spec=$lt_file_list_spec
  20527. # How to hardcode a shared library path into an executable.
  20528. hardcode_action=$hardcode_action
  20529. # The directories searched by this compiler when creating a shared library.
  20530. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  20531. # Dependencies to place before and after the objects being linked to
  20532. # create a shared library.
  20533. predep_objects=$lt_predep_objects
  20534. postdep_objects=$lt_postdep_objects
  20535. predeps=$lt_predeps
  20536. postdeps=$lt_postdeps
  20537. # The library search path used internally by the compiler when linking
  20538. # a shared library.
  20539. compiler_lib_search_path=$lt_compiler_lib_search_path
  20540. # ### END LIBTOOL CONFIG
  20541. _LT_EOF
  20542. case $host_os in
  20543. aix3*)
  20544. cat <<\_LT_EOF >> "$cfgfile"
  20545. # AIX sometimes has problems with the GCC collect2 program. For some
  20546. # reason, if we set the COLLECT_NAMES environment variable, the problems
  20547. # vanish in a puff of smoke.
  20548. if test "X${COLLECT_NAMES+set}" != Xset; then
  20549. COLLECT_NAMES=
  20550. export COLLECT_NAMES
  20551. fi
  20552. _LT_EOF
  20553. ;;
  20554. esac
  20555. ltmain="$ac_aux_dir/ltmain.sh"
  20556. # We use sed instead of cat because bash on DJGPP gets confused if
  20557. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  20558. # text mode, it properly converts lines to CR/LF. This bash problem
  20559. # is reportedly fixed, but why not run on old versions too?
  20560. sed '$q' "$ltmain" >> "$cfgfile" \
  20561. || (rm -f "$cfgfile"; exit 1)
  20562. if test x"$xsi_shell" = xyes; then
  20563. sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
  20564. func_dirname ()\
  20565. {\
  20566. \ case ${1} in\
  20567. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  20568. \ * ) func_dirname_result="${3}" ;;\
  20569. \ esac\
  20570. } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
  20571. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20572. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20573. test 0 -eq $? || _lt_function_replace_fail=:
  20574. sed -e '/^func_basename ()$/,/^} # func_basename /c\
  20575. func_basename ()\
  20576. {\
  20577. \ func_basename_result="${1##*/}"\
  20578. } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
  20579. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20580. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20581. test 0 -eq $? || _lt_function_replace_fail=:
  20582. sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
  20583. func_dirname_and_basename ()\
  20584. {\
  20585. \ case ${1} in\
  20586. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  20587. \ * ) func_dirname_result="${3}" ;;\
  20588. \ esac\
  20589. \ func_basename_result="${1##*/}"\
  20590. } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
  20591. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20592. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20593. test 0 -eq $? || _lt_function_replace_fail=:
  20594. sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
  20595. func_stripname ()\
  20596. {\
  20597. \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
  20598. \ # positional parameters, so assign one to ordinary parameter first.\
  20599. \ func_stripname_result=${3}\
  20600. \ func_stripname_result=${func_stripname_result#"${1}"}\
  20601. \ func_stripname_result=${func_stripname_result%"${2}"}\
  20602. } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
  20603. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20604. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20605. test 0 -eq $? || _lt_function_replace_fail=:
  20606. sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
  20607. func_split_long_opt ()\
  20608. {\
  20609. \ func_split_long_opt_name=${1%%=*}\
  20610. \ func_split_long_opt_arg=${1#*=}\
  20611. } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
  20612. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20613. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20614. test 0 -eq $? || _lt_function_replace_fail=:
  20615. sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
  20616. func_split_short_opt ()\
  20617. {\
  20618. \ func_split_short_opt_arg=${1#??}\
  20619. \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
  20620. } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
  20621. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20622. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20623. test 0 -eq $? || _lt_function_replace_fail=:
  20624. sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
  20625. func_lo2o ()\
  20626. {\
  20627. \ case ${1} in\
  20628. \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
  20629. \ *) func_lo2o_result=${1} ;;\
  20630. \ esac\
  20631. } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
  20632. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20633. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20634. test 0 -eq $? || _lt_function_replace_fail=:
  20635. sed -e '/^func_xform ()$/,/^} # func_xform /c\
  20636. func_xform ()\
  20637. {\
  20638. func_xform_result=${1%.*}.lo\
  20639. } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
  20640. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20641. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20642. test 0 -eq $? || _lt_function_replace_fail=:
  20643. sed -e '/^func_arith ()$/,/^} # func_arith /c\
  20644. func_arith ()\
  20645. {\
  20646. func_arith_result=$(( $* ))\
  20647. } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
  20648. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20649. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20650. test 0 -eq $? || _lt_function_replace_fail=:
  20651. sed -e '/^func_len ()$/,/^} # func_len /c\
  20652. func_len ()\
  20653. {\
  20654. func_len_result=${#1}\
  20655. } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
  20656. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20657. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20658. test 0 -eq $? || _lt_function_replace_fail=:
  20659. fi
  20660. if test x"$lt_shell_append" = xyes; then
  20661. sed -e '/^func_append ()$/,/^} # func_append /c\
  20662. func_append ()\
  20663. {\
  20664. eval "${1}+=\\${2}"\
  20665. } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
  20666. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20667. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20668. test 0 -eq $? || _lt_function_replace_fail=:
  20669. sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
  20670. func_append_quoted ()\
  20671. {\
  20672. \ func_quote_for_eval "${2}"\
  20673. \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
  20674. } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
  20675. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20676. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20677. test 0 -eq $? || _lt_function_replace_fail=:
  20678. # Save a `func_append' function call where possible by direct use of '+='
  20679. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
  20680. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20681. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20682. test 0 -eq $? || _lt_function_replace_fail=:
  20683. else
  20684. # Save a `func_append' function call even when '+=' is not available
  20685. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  20686. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20687. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20688. test 0 -eq $? || _lt_function_replace_fail=:
  20689. fi
  20690. if test x"$_lt_function_replace_fail" = x":"; then
  20691. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
  20692. $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
  20693. fi
  20694. mv -f "$cfgfile" "$ofile" ||
  20695. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  20696. chmod +x "$ofile"
  20697. cat <<_LT_EOF >> "$ofile"
  20698. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  20699. # The linker used to build libraries.
  20700. LD=$lt_LD_CXX
  20701. # How to create reloadable object files.
  20702. reload_flag=$lt_reload_flag_CXX
  20703. reload_cmds=$lt_reload_cmds_CXX
  20704. # Commands used to build an old-style archive.
  20705. old_archive_cmds=$lt_old_archive_cmds_CXX
  20706. # A language specific compiler.
  20707. CC=$lt_compiler_CXX
  20708. # Is the compiler the GNU compiler?
  20709. with_gcc=$GCC_CXX
  20710. # Compiler flag to turn off builtin functions.
  20711. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  20712. # Additional compiler flags for building library objects.
  20713. pic_flag=$lt_lt_prog_compiler_pic_CXX
  20714. # How to pass a linker flag through the compiler.
  20715. wl=$lt_lt_prog_compiler_wl_CXX
  20716. # Compiler flag to prevent dynamic linking.
  20717. link_static_flag=$lt_lt_prog_compiler_static_CXX
  20718. # Does compiler simultaneously support -c and -o options?
  20719. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  20720. # Whether or not to add -lc for building shared libraries.
  20721. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  20722. # Whether or not to disallow shared libs when runtime libs are static.
  20723. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  20724. # Compiler flag to allow reflexive dlopens.
  20725. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  20726. # Compiler flag to generate shared objects directly from archives.
  20727. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  20728. # Whether the compiler copes with passing no objects directly.
  20729. compiler_needs_object=$lt_compiler_needs_object_CXX
  20730. # Create an old-style archive from a shared archive.
  20731. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  20732. # Create a temporary old-style archive to link instead of a shared archive.
  20733. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  20734. # Commands used to build a shared archive.
  20735. archive_cmds=$lt_archive_cmds_CXX
  20736. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  20737. # Commands used to build a loadable module if different from building
  20738. # a shared archive.
  20739. module_cmds=$lt_module_cmds_CXX
  20740. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  20741. # Whether we are building with GNU ld or not.
  20742. with_gnu_ld=$lt_with_gnu_ld_CXX
  20743. # Flag that allows shared libraries with undefined symbols to be built.
  20744. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  20745. # Flag that enforces no undefined symbols.
  20746. no_undefined_flag=$lt_no_undefined_flag_CXX
  20747. # Flag to hardcode \$libdir into a binary during linking.
  20748. # This must work even if \$libdir does not exist
  20749. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  20750. # Whether we need a single "-rpath" flag with a separated argument.
  20751. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  20752. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  20753. # DIR into the resulting binary.
  20754. hardcode_direct=$hardcode_direct_CXX
  20755. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  20756. # DIR into the resulting binary and the resulting library dependency is
  20757. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  20758. # library is relocated.
  20759. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  20760. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  20761. # into the resulting binary.
  20762. hardcode_minus_L=$hardcode_minus_L_CXX
  20763. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  20764. # into the resulting binary.
  20765. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  20766. # Set to "yes" if building a shared library automatically hardcodes DIR
  20767. # into the library and all subsequent libraries and executables linked
  20768. # against it.
  20769. hardcode_automatic=$hardcode_automatic_CXX
  20770. # Set to yes if linker adds runtime paths of dependent libraries
  20771. # to runtime path list.
  20772. inherit_rpath=$inherit_rpath_CXX
  20773. # Whether libtool must link a program against all its dependency libraries.
  20774. link_all_deplibs=$link_all_deplibs_CXX
  20775. # Set to "yes" if exported symbols are required.
  20776. always_export_symbols=$always_export_symbols_CXX
  20777. # The commands to list exported symbols.
  20778. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  20779. # Symbols that should not be listed in the preloaded symbols.
  20780. exclude_expsyms=$lt_exclude_expsyms_CXX
  20781. # Symbols that must always be exported.
  20782. include_expsyms=$lt_include_expsyms_CXX
  20783. # Commands necessary for linking programs (against libraries) with templates.
  20784. prelink_cmds=$lt_prelink_cmds_CXX
  20785. # Commands necessary for finishing linking programs.
  20786. postlink_cmds=$lt_postlink_cmds_CXX
  20787. # Specify filename containing input files.
  20788. file_list_spec=$lt_file_list_spec_CXX
  20789. # How to hardcode a shared library path into an executable.
  20790. hardcode_action=$hardcode_action_CXX
  20791. # The directories searched by this compiler when creating a shared library.
  20792. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  20793. # Dependencies to place before and after the objects being linked to
  20794. # create a shared library.
  20795. predep_objects=$lt_predep_objects_CXX
  20796. postdep_objects=$lt_postdep_objects_CXX
  20797. predeps=$lt_predeps_CXX
  20798. postdeps=$lt_postdeps_CXX
  20799. # The library search path used internally by the compiler when linking
  20800. # a shared library.
  20801. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  20802. # ### END LIBTOOL TAG CONFIG: CXX
  20803. _LT_EOF
  20804. ;;
  20805. esac
  20806. done # for ac_tag
  20807. as_fn_exit 0
  20808. _ACEOF
  20809. ac_clean_files=$ac_clean_files_save
  20810. test $ac_write_fail = 0 ||
  20811. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  20812. # configure is writing to config.log, and then calls config.status.
  20813. # config.status does its own redirection, appending to config.log.
  20814. # Unfortunately, on DOS this fails, as config.log is still kept open
  20815. # by configure, so config.status won't be able to write to it; its
  20816. # output is simply discarded. So we exec the FD to /dev/null,
  20817. # effectively closing config.log, so it can be properly (re)opened and
  20818. # appended to by config.status. When coming back to configure, we
  20819. # need to make the FD available again.
  20820. if test "$no_create" != yes; then
  20821. ac_cs_success=:
  20822. ac_config_status_args=
  20823. test "$silent" = yes &&
  20824. ac_config_status_args="$ac_config_status_args --quiet"
  20825. exec 5>/dev/null
  20826. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  20827. exec 5>>config.log
  20828. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  20829. # would make configure fail if this is the last instruction.
  20830. $ac_cs_success || as_fn_exit 1
  20831. fi
  20832. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  20833. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  20834. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  20835. fi