configure 713 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69 for dirsrv 1.0.
  4. #
  5. # Report bugs to <http://bugzilla.redhat.com/>.
  6. #
  7. #
  8. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  9. #
  10. #
  11. # This configure script is free software; the Free Software Foundation
  12. # gives unlimited permission to copy, distribute and modify it.
  13. ## -------------------- ##
  14. ## M4sh Initialization. ##
  15. ## -------------------- ##
  16. # Be more Bourne compatible
  17. DUALCASE=1; export DUALCASE # for MKS sh
  18. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  19. emulate sh
  20. NULLCMD=:
  21. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  22. # is contrary to our usage. Disable this feature.
  23. alias -g '${1+"$@"}'='"$@"'
  24. setopt NO_GLOB_SUBST
  25. else
  26. case `(set -o) 2>/dev/null` in #(
  27. *posix*) :
  28. set -o posix ;; #(
  29. *) :
  30. ;;
  31. esac
  32. fi
  33. as_nl='
  34. '
  35. export as_nl
  36. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  37. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  38. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  39. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  40. # Prefer a ksh shell builtin over an external printf program on Solaris,
  41. # but without wasting forks for bash or zsh.
  42. if test -z "$BASH_VERSION$ZSH_VERSION" \
  43. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  44. as_echo='print -r --'
  45. as_echo_n='print -rn --'
  46. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  47. as_echo='printf %s\n'
  48. as_echo_n='printf %s'
  49. else
  50. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  51. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  52. as_echo_n='/usr/ucb/echo -n'
  53. else
  54. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  55. as_echo_n_body='eval
  56. arg=$1;
  57. case $arg in #(
  58. *"$as_nl"*)
  59. expr "X$arg" : "X\\(.*\\)$as_nl";
  60. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  61. esac;
  62. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  63. '
  64. export as_echo_n_body
  65. as_echo_n='sh -c $as_echo_n_body as_echo'
  66. fi
  67. export as_echo_body
  68. as_echo='sh -c $as_echo_body as_echo'
  69. fi
  70. # The user is always right.
  71. if test "${PATH_SEPARATOR+set}" != set; then
  72. PATH_SEPARATOR=:
  73. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  74. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  75. PATH_SEPARATOR=';'
  76. }
  77. fi
  78. # IFS
  79. # We need space, tab and new line, in precisely that order. Quoting is
  80. # there to prevent editors from complaining about space-tab.
  81. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  82. # splitting by setting IFS to empty value.)
  83. IFS=" "" $as_nl"
  84. # Find who we are. Look in the path if we contain no directory separator.
  85. as_myself=
  86. case $0 in #((
  87. *[\\/]* ) as_myself=$0 ;;
  88. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  89. for as_dir in $PATH
  90. do
  91. IFS=$as_save_IFS
  92. test -z "$as_dir" && as_dir=.
  93. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  94. done
  95. IFS=$as_save_IFS
  96. ;;
  97. esac
  98. # We did not find ourselves, most probably we were run as `sh COMMAND'
  99. # in which case we are not to be found in the path.
  100. if test "x$as_myself" = x; then
  101. as_myself=$0
  102. fi
  103. if test ! -f "$as_myself"; then
  104. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  105. exit 1
  106. fi
  107. # Unset variables that we do not need and which cause bugs (e.g. in
  108. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  109. # suppresses any "Segmentation fault" message there. '((' could
  110. # trigger a bug in pdksh 5.2.14.
  111. for as_var in BASH_ENV ENV MAIL MAILPATH
  112. do eval test x\${$as_var+set} = xset \
  113. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  114. done
  115. PS1='$ '
  116. PS2='> '
  117. PS4='+ '
  118. # NLS nuisances.
  119. LC_ALL=C
  120. export LC_ALL
  121. LANGUAGE=C
  122. export LANGUAGE
  123. # CDPATH.
  124. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  125. # Use a proper internal environment variable to ensure we don't fall
  126. # into an infinite loop, continuously re-executing ourselves.
  127. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  128. _as_can_reexec=no; export _as_can_reexec;
  129. # We cannot yet assume a decent shell, so we have to provide a
  130. # neutralization value for shells without unset; and this also
  131. # works around shells that cannot unset nonexistent variables.
  132. # Preserve -v and -x to the replacement shell.
  133. BASH_ENV=/dev/null
  134. ENV=/dev/null
  135. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  136. case $- in # ((((
  137. *v*x* | *x*v* ) as_opts=-vx ;;
  138. *v* ) as_opts=-v ;;
  139. *x* ) as_opts=-x ;;
  140. * ) as_opts= ;;
  141. esac
  142. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  143. # Admittedly, this is quite paranoid, since all the known shells bail
  144. # out after a failed `exec'.
  145. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  146. as_fn_exit 255
  147. fi
  148. # We don't want this to propagate to other subprocesses.
  149. { _as_can_reexec=; unset _as_can_reexec;}
  150. if test "x$CONFIG_SHELL" = x; then
  151. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  152. emulate sh
  153. NULLCMD=:
  154. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  155. # is contrary to our usage. Disable this feature.
  156. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  157. setopt NO_GLOB_SUBST
  158. else
  159. case \`(set -o) 2>/dev/null\` in #(
  160. *posix*) :
  161. set -o posix ;; #(
  162. *) :
  163. ;;
  164. esac
  165. fi
  166. "
  167. as_required="as_fn_return () { (exit \$1); }
  168. as_fn_success () { as_fn_return 0; }
  169. as_fn_failure () { as_fn_return 1; }
  170. as_fn_ret_success () { return 0; }
  171. as_fn_ret_failure () { return 1; }
  172. exitcode=0
  173. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  174. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  175. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  176. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  177. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  178. else
  179. exitcode=1; echo positional parameters were not saved.
  180. fi
  181. test x\$exitcode = x0 || exit 1
  182. test -x / || exit 1"
  183. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  184. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  185. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  186. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  187. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  188. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  189. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  190. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  191. PATH=/empty FPATH=/empty; export PATH FPATH
  192. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  193. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
  194. test \$(( 1 + 1 )) = 2 || exit 1"
  195. if (eval "$as_required") 2>/dev/null; then :
  196. as_have_required=yes
  197. else
  198. as_have_required=no
  199. fi
  200. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  201. else
  202. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  203. as_found=false
  204. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  205. do
  206. IFS=$as_save_IFS
  207. test -z "$as_dir" && as_dir=.
  208. as_found=:
  209. case $as_dir in #(
  210. /*)
  211. for as_base in sh bash ksh sh5; do
  212. # Try only shells that exist, to save several forks.
  213. as_shell=$as_dir/$as_base
  214. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  215. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  216. CONFIG_SHELL=$as_shell as_have_required=yes
  217. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  218. break 2
  219. fi
  220. fi
  221. done;;
  222. esac
  223. as_found=false
  224. done
  225. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  226. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  227. CONFIG_SHELL=$SHELL as_have_required=yes
  228. fi; }
  229. IFS=$as_save_IFS
  230. if test "x$CONFIG_SHELL" != x; then :
  231. export CONFIG_SHELL
  232. # We cannot yet assume a decent shell, so we have to provide a
  233. # neutralization value for shells without unset; and this also
  234. # works around shells that cannot unset nonexistent variables.
  235. # Preserve -v and -x to the replacement shell.
  236. BASH_ENV=/dev/null
  237. ENV=/dev/null
  238. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  239. case $- in # ((((
  240. *v*x* | *x*v* ) as_opts=-vx ;;
  241. *v* ) as_opts=-v ;;
  242. *x* ) as_opts=-x ;;
  243. * ) as_opts= ;;
  244. esac
  245. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  246. # Admittedly, this is quite paranoid, since all the known shells bail
  247. # out after a failed `exec'.
  248. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  249. exit 255
  250. fi
  251. if test x$as_have_required = xno; then :
  252. $as_echo "$0: This script requires a shell more modern than all"
  253. $as_echo "$0: the shells that I found on your system."
  254. if test x${ZSH_VERSION+set} = xset ; then
  255. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  256. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  257. else
  258. $as_echo "$0: Please tell [email protected] and
  259. $0: http://bugzilla.redhat.com/ about your system,
  260. $0: including any error possibly output before this
  261. $0: message. Then install a modern shell, or manually run
  262. $0: the script under such a shell if you do have one."
  263. fi
  264. exit 1
  265. fi
  266. fi
  267. fi
  268. SHELL=${CONFIG_SHELL-/bin/sh}
  269. export SHELL
  270. # Unset more variables known to interfere with behavior of common tools.
  271. CLICOLOR_FORCE= GREP_OPTIONS=
  272. unset CLICOLOR_FORCE GREP_OPTIONS
  273. ## --------------------- ##
  274. ## M4sh Shell Functions. ##
  275. ## --------------------- ##
  276. # as_fn_unset VAR
  277. # ---------------
  278. # Portably unset VAR.
  279. as_fn_unset ()
  280. {
  281. { eval $1=; unset $1;}
  282. }
  283. as_unset=as_fn_unset
  284. # as_fn_set_status STATUS
  285. # -----------------------
  286. # Set $? to STATUS, without forking.
  287. as_fn_set_status ()
  288. {
  289. return $1
  290. } # as_fn_set_status
  291. # as_fn_exit STATUS
  292. # -----------------
  293. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  294. as_fn_exit ()
  295. {
  296. set +e
  297. as_fn_set_status $1
  298. exit $1
  299. } # as_fn_exit
  300. # as_fn_mkdir_p
  301. # -------------
  302. # Create "$as_dir" as a directory, including parents if necessary.
  303. as_fn_mkdir_p ()
  304. {
  305. case $as_dir in #(
  306. -*) as_dir=./$as_dir;;
  307. esac
  308. test -d "$as_dir" || eval $as_mkdir_p || {
  309. as_dirs=
  310. while :; do
  311. case $as_dir in #(
  312. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  313. *) as_qdir=$as_dir;;
  314. esac
  315. as_dirs="'$as_qdir' $as_dirs"
  316. as_dir=`$as_dirname -- "$as_dir" ||
  317. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  318. X"$as_dir" : 'X\(//\)[^/]' \| \
  319. X"$as_dir" : 'X\(//\)$' \| \
  320. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  321. $as_echo X"$as_dir" |
  322. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  323. s//\1/
  324. q
  325. }
  326. /^X\(\/\/\)[^/].*/{
  327. s//\1/
  328. q
  329. }
  330. /^X\(\/\/\)$/{
  331. s//\1/
  332. q
  333. }
  334. /^X\(\/\).*/{
  335. s//\1/
  336. q
  337. }
  338. s/.*/./; q'`
  339. test -d "$as_dir" && break
  340. done
  341. test -z "$as_dirs" || eval "mkdir $as_dirs"
  342. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  343. } # as_fn_mkdir_p
  344. # as_fn_executable_p FILE
  345. # -----------------------
  346. # Test if FILE is an executable regular file.
  347. as_fn_executable_p ()
  348. {
  349. test -f "$1" && test -x "$1"
  350. } # as_fn_executable_p
  351. # as_fn_append VAR VALUE
  352. # ----------------------
  353. # Append the text in VALUE to the end of the definition contained in VAR. Take
  354. # advantage of any shell optimizations that allow amortized linear growth over
  355. # repeated appends, instead of the typical quadratic growth present in naive
  356. # implementations.
  357. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  358. eval 'as_fn_append ()
  359. {
  360. eval $1+=\$2
  361. }'
  362. else
  363. as_fn_append ()
  364. {
  365. eval $1=\$$1\$2
  366. }
  367. fi # as_fn_append
  368. # as_fn_arith ARG...
  369. # ------------------
  370. # Perform arithmetic evaluation on the ARGs, and store the result in the
  371. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  372. # must be portable across $(()) and expr.
  373. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  374. eval 'as_fn_arith ()
  375. {
  376. as_val=$(( $* ))
  377. }'
  378. else
  379. as_fn_arith ()
  380. {
  381. as_val=`expr "$@" || test $? -eq 1`
  382. }
  383. fi # as_fn_arith
  384. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  385. # ----------------------------------------
  386. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  387. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  388. # script with STATUS, using 1 if that was 0.
  389. as_fn_error ()
  390. {
  391. as_status=$1; test $as_status -eq 0 && as_status=1
  392. if test "$4"; then
  393. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  394. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  395. fi
  396. $as_echo "$as_me: error: $2" >&2
  397. as_fn_exit $as_status
  398. } # as_fn_error
  399. if expr a : '\(a\)' >/dev/null 2>&1 &&
  400. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  401. as_expr=expr
  402. else
  403. as_expr=false
  404. fi
  405. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  406. as_basename=basename
  407. else
  408. as_basename=false
  409. fi
  410. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  411. as_dirname=dirname
  412. else
  413. as_dirname=false
  414. fi
  415. as_me=`$as_basename -- "$0" ||
  416. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  417. X"$0" : 'X\(//\)$' \| \
  418. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  419. $as_echo X/"$0" |
  420. sed '/^.*\/\([^/][^/]*\)\/*$/{
  421. s//\1/
  422. q
  423. }
  424. /^X\/\(\/\/\)$/{
  425. s//\1/
  426. q
  427. }
  428. /^X\/\(\/\).*/{
  429. s//\1/
  430. q
  431. }
  432. s/.*/./; q'`
  433. # Avoid depending upon Character Ranges.
  434. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  435. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  436. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  437. as_cr_digits='0123456789'
  438. as_cr_alnum=$as_cr_Letters$as_cr_digits
  439. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  440. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  441. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  442. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  443. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  444. sed -n '
  445. p
  446. /[$]LINENO/=
  447. ' <$as_myself |
  448. sed '
  449. s/[$]LINENO.*/&-/
  450. t lineno
  451. b
  452. :lineno
  453. N
  454. :loop
  455. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  456. t loop
  457. s/-\n.*//
  458. ' >$as_me.lineno &&
  459. chmod +x "$as_me.lineno" ||
  460. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  461. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  462. # already done that, so ensure we don't try to do so again and fall
  463. # in an infinite loop. This has already happened in practice.
  464. _as_can_reexec=no; export _as_can_reexec
  465. # Don't try to exec as it changes $[0], causing all sort of problems
  466. # (the dirname of $[0] is not the place where we might find the
  467. # original and so on. Autoconf is especially sensitive to this).
  468. . "./$as_me.lineno"
  469. # Exit status is that of the last command.
  470. exit
  471. }
  472. ECHO_C= ECHO_N= ECHO_T=
  473. case `echo -n x` in #(((((
  474. -n*)
  475. case `echo 'xy\c'` in
  476. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  477. xy) ECHO_C='\c';;
  478. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  479. ECHO_T=' ';;
  480. esac;;
  481. *)
  482. ECHO_N='-n';;
  483. esac
  484. rm -f conf$$ conf$$.exe conf$$.file
  485. if test -d conf$$.dir; then
  486. rm -f conf$$.dir/conf$$.file
  487. else
  488. rm -f conf$$.dir
  489. mkdir conf$$.dir 2>/dev/null
  490. fi
  491. if (echo >conf$$.file) 2>/dev/null; then
  492. if ln -s conf$$.file conf$$ 2>/dev/null; then
  493. as_ln_s='ln -s'
  494. # ... but there are two gotchas:
  495. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  496. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  497. # In both cases, we have to default to `cp -pR'.
  498. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  499. as_ln_s='cp -pR'
  500. elif ln conf$$.file conf$$ 2>/dev/null; then
  501. as_ln_s=ln
  502. else
  503. as_ln_s='cp -pR'
  504. fi
  505. else
  506. as_ln_s='cp -pR'
  507. fi
  508. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  509. rmdir conf$$.dir 2>/dev/null
  510. if mkdir -p . 2>/dev/null; then
  511. as_mkdir_p='mkdir -p "$as_dir"'
  512. else
  513. test -d ./-p && rmdir ./-p
  514. as_mkdir_p=false
  515. fi
  516. as_test_x='test -x'
  517. as_executable_p=as_fn_executable_p
  518. # Sed expression to map a string onto a valid CPP name.
  519. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  520. # Sed expression to map a string onto a valid variable name.
  521. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  522. SHELL=${CONFIG_SHELL-/bin/sh}
  523. test -n "$DJDIR" || exec 7<&0 </dev/null
  524. exec 6>&1
  525. # Name of the host.
  526. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  527. # so uname gets run too.
  528. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  529. #
  530. # Initializations.
  531. #
  532. ac_default_prefix=/usr/local
  533. ac_clean_files=
  534. ac_config_libobj_dir=.
  535. LIBOBJS=
  536. cross_compiling=no
  537. subdirs=
  538. MFLAGS=
  539. MAKEFLAGS=
  540. # Identity of this package.
  541. PACKAGE_NAME='dirsrv'
  542. PACKAGE_TARNAME='dirsrv'
  543. PACKAGE_VERSION='1.0'
  544. PACKAGE_STRING='dirsrv 1.0'
  545. PACKAGE_BUGREPORT='http://bugzilla.redhat.com/'
  546. PACKAGE_URL=''
  547. # Factoring default headers for most tests.
  548. ac_includes_default="\
  549. #include <stdio.h>
  550. #ifdef HAVE_SYS_TYPES_H
  551. # include <sys/types.h>
  552. #endif
  553. #ifdef HAVE_SYS_STAT_H
  554. # include <sys/stat.h>
  555. #endif
  556. #ifdef STDC_HEADERS
  557. # include <stdlib.h>
  558. # include <stddef.h>
  559. #else
  560. # ifdef HAVE_STDLIB_H
  561. # include <stdlib.h>
  562. # endif
  563. #endif
  564. #ifdef HAVE_STRING_H
  565. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  566. # include <memory.h>
  567. # endif
  568. # include <string.h>
  569. #endif
  570. #ifdef HAVE_STRINGS_H
  571. # include <strings.h>
  572. #endif
  573. #ifdef HAVE_INTTYPES_H
  574. # include <inttypes.h>
  575. #endif
  576. #ifdef HAVE_STDINT_H
  577. # include <stdint.h>
  578. #endif
  579. #ifdef HAVE_UNISTD_H
  580. # include <unistd.h>
  581. #endif"
  582. ac_header_list=
  583. ac_default_prefix=/opt/$PACKAGE_NAME
  584. ac_subst_vars='am__EXEEXT_FALSE
  585. am__EXEEXT_TRUE
  586. LTLIBOBJS
  587. vendor
  588. capbrand
  589. brand
  590. localrundir
  591. pcre_libdir
  592. pcre_lib
  593. pcre_inc
  594. netsnmp_link
  595. netsnmp_libdir
  596. netsnmp_lib
  597. netsnmp_inc
  598. icu_bin
  599. icu_inc
  600. icu_lib
  601. svrcore_lib
  602. svrcore_inc
  603. sasl_path
  604. sasl_libdir
  605. sasl_lib
  606. sasl_inc
  607. db_libver
  608. db_bindir
  609. db_libdir
  610. db_lib
  611. db_incdir
  612. db_inc
  613. ol_libver
  614. plainldif_opts
  615. ldaptool_opts
  616. ldaptool_bindir
  617. openldap_bindir
  618. openldap_libdir
  619. openldap_lib
  620. openldap_inc
  621. ldapsdk_bindir
  622. ldapsdk_libdir
  623. ldapsdk_lib
  624. ldapsdk_inc
  625. nss_libdir
  626. nss_lib
  627. nss_inc
  628. nspr_libdir
  629. nspr_lib
  630. nspr_inc
  631. SPARC_FALSE
  632. SPARC_TRUE
  633. OPENLDAP_FALSE
  634. OPENLDAP_TRUE
  635. SELINUX_FALSE
  636. SELINUX_TRUE
  637. PACKAGE_BASE_VERSION
  638. with_selinux
  639. kerberos_libdir
  640. kerberos_lib
  641. kerberos_inc
  642. KRB5_CONFIG_BIN
  643. NETSNMP_CONFIG
  644. ICU_CONFIG
  645. ldap_lib_ldif
  646. SYSTEMD_FALSE
  647. SYSTEMD_TRUE
  648. SOLARIS_FALSE
  649. SOLARIS_TRUE
  650. HPUX_FALSE
  651. HPUX_TRUE
  652. initconfigdir
  653. sttyexec
  654. perlexec
  655. initdir
  656. LIBCRUN
  657. LIBCSTD
  658. LIBDL
  659. LIBNSL
  660. LIBSOCKET
  661. LIBCRYPT
  662. THREADLIB
  663. WINNT_FALSE
  664. WINNT_TRUE
  665. instconfigdir
  666. defaultgroup
  667. defaultuser
  668. updatedir
  669. mibdir
  670. infdir
  671. pythondir
  672. perldir
  673. scripttemplatedir
  674. serverplugindir
  675. serverincdir
  676. serverdir
  677. schemadir
  678. propertydir
  679. sampledatadir
  680. configdir
  681. with_systemdgroupname
  682. with_systemdsystemconfdir
  683. with_systemdsystemunitdir
  684. PKG_CONFIG_LIBDIR
  685. PKG_CONFIG_PATH
  686. PKG_CONFIG
  687. with_tmpfiles_d
  688. with_fhs_opt
  689. enable_posix_winsync_FALSE
  690. enable_posix_winsync_TRUE
  691. enable_acctpolicy_FALSE
  692. enable_acctpolicy_TRUE
  693. enable_presence_FALSE
  694. enable_presence_TRUE
  695. enable_bitwise_FALSE
  696. enable_bitwise_TRUE
  697. enable_auto_dn_suffix_FALSE
  698. enable_auto_dn_suffix_TRUE
  699. enable_autobind_FALSE
  700. enable_autobind_TRUE
  701. enable_ldapi_FALSE
  702. enable_ldapi_TRUE
  703. enable_dna_FALSE
  704. enable_dna_TRUE
  705. enable_pam_passthru_FALSE
  706. enable_pam_passthru_TRUE
  707. BUNDLE_FALSE
  708. BUNDLE_TRUE
  709. debug_defs
  710. LIBOBJS
  711. CXXCPP
  712. CPP
  713. OTOOL64
  714. OTOOL
  715. LIPO
  716. NMEDIT
  717. DSYMUTIL
  718. MANIFEST_TOOL
  719. RANLIB
  720. ac_ct_AR
  721. AR
  722. DLLTOOL
  723. OBJDUMP
  724. LN_S
  725. NM
  726. ac_ct_DUMPBIN
  727. DUMPBIN
  728. LD
  729. FGREP
  730. EGREP
  731. GREP
  732. SED
  733. LIBTOOL
  734. am__fastdepCCAS_FALSE
  735. am__fastdepCCAS_TRUE
  736. CCASDEPMODE
  737. CCASFLAGS
  738. CCAS
  739. am__fastdepCC_FALSE
  740. am__fastdepCC_TRUE
  741. CCDEPMODE
  742. ac_ct_CC
  743. CFLAGS
  744. CC
  745. am__fastdepCXX_FALSE
  746. am__fastdepCXX_TRUE
  747. CXXDEPMODE
  748. am__nodep
  749. AMDEPBACKSLASH
  750. AMDEP_FALSE
  751. AMDEP_TRUE
  752. am__quote
  753. am__include
  754. DEPDIR
  755. OBJEXT
  756. EXEEXT
  757. ac_ct_CXX
  758. CPPFLAGS
  759. LDFLAGS
  760. CXXFLAGS
  761. CXX
  762. host_os
  763. host_vendor
  764. host_cpu
  765. host
  766. build_os
  767. build_vendor
  768. build_cpu
  769. build
  770. MAINT
  771. MAINTAINER_MODE_FALSE
  772. MAINTAINER_MODE_TRUE
  773. CONSOLE_VERSION
  774. AM_BACKSLASH
  775. AM_DEFAULT_VERBOSITY
  776. AM_DEFAULT_V
  777. AM_V
  778. am__untar
  779. am__tar
  780. AMTAR
  781. am__leading_dot
  782. SET_MAKE
  783. AWK
  784. mkdir_p
  785. MKDIR_P
  786. INSTALL_STRIP_PROGRAM
  787. STRIP
  788. install_sh
  789. MAKEINFO
  790. AUTOHEADER
  791. AUTOMAKE
  792. AUTOCONF
  793. ACLOCAL
  794. VERSION
  795. PACKAGE
  796. CYGPATH_W
  797. am__isrc
  798. INSTALL_DATA
  799. INSTALL_SCRIPT
  800. INSTALL_PROGRAM
  801. target_alias
  802. host_alias
  803. build_alias
  804. LIBS
  805. ECHO_T
  806. ECHO_N
  807. ECHO_C
  808. DEFS
  809. mandir
  810. localedir
  811. libdir
  812. psdir
  813. pdfdir
  814. dvidir
  815. htmldir
  816. infodir
  817. docdir
  818. oldincludedir
  819. includedir
  820. localstatedir
  821. sharedstatedir
  822. sysconfdir
  823. datadir
  824. datarootdir
  825. libexecdir
  826. sbindir
  827. bindir
  828. program_transform_name
  829. prefix
  830. exec_prefix
  831. PACKAGE_URL
  832. PACKAGE_BUGREPORT
  833. PACKAGE_STRING
  834. PACKAGE_VERSION
  835. PACKAGE_TARNAME
  836. PACKAGE_NAME
  837. PATH_SEPARATOR
  838. SHELL'
  839. ac_subst_files=''
  840. ac_user_opts='
  841. enable_option_checking
  842. enable_silent_rules
  843. enable_maintainer_mode
  844. enable_dependency_tracking
  845. enable_static
  846. enable_shared
  847. with_pic
  848. enable_fast_install
  849. with_gnu_ld
  850. with_sysroot
  851. enable_libtool_lock
  852. enable_debug
  853. enable_bundle
  854. enable_pam_passthru
  855. enable_dna
  856. enable_ldapi
  857. enable_autobind
  858. enable_bitwise
  859. enable_presence
  860. enable_acctpolicy
  861. enable_posix_winsync
  862. with_fhs
  863. with_fhs_opt
  864. with_tmpfiles_d
  865. with_perldir
  866. with_pythondir
  867. with_systemdsystemunitdir
  868. with_systemdsystemconfdir
  869. with_systemdgroupname
  870. with_instconfigdir
  871. with_initddir
  872. with_nspr
  873. with_nspr_inc
  874. with_nspr_lib
  875. with_nss
  876. with_nss_inc
  877. with_nss_lib
  878. with_openldap
  879. with_openldap_inc
  880. with_openldap_lib
  881. with_openldap_bin
  882. with_ldapsdk
  883. with_ldapsdk_inc
  884. with_ldapsdk_lib
  885. with_ldapsdk_bin
  886. with_db
  887. with_db_inc
  888. with_db_lib
  889. with_sasl
  890. with_sasl_inc
  891. with_sasl_lib
  892. with_svrcore
  893. with_svrcore_inc
  894. with_svrcore_lib
  895. with_icu
  896. with_icu_inc
  897. with_icu_lib
  898. with_icu_bin
  899. with_netsnmp
  900. with_netsnmp_inc
  901. with_netsnmp_lib
  902. with_kerberos
  903. with_kerberos_inc
  904. with_kerberos_lib
  905. with_pcre
  906. with_selinux
  907. '
  908. ac_precious_vars='build_alias
  909. host_alias
  910. target_alias
  911. CXX
  912. CXXFLAGS
  913. LDFLAGS
  914. LIBS
  915. CPPFLAGS
  916. CCC
  917. CC
  918. CFLAGS
  919. CCAS
  920. CCASFLAGS
  921. CPP
  922. CXXCPP
  923. PKG_CONFIG
  924. PKG_CONFIG_PATH
  925. PKG_CONFIG_LIBDIR'
  926. # Initialize some variables set by options.
  927. ac_init_help=
  928. ac_init_version=false
  929. ac_unrecognized_opts=
  930. ac_unrecognized_sep=
  931. # The variables have the same names as the options, with
  932. # dashes changed to underlines.
  933. cache_file=/dev/null
  934. exec_prefix=NONE
  935. no_create=
  936. no_recursion=
  937. prefix=NONE
  938. program_prefix=NONE
  939. program_suffix=NONE
  940. program_transform_name=s,x,x,
  941. silent=
  942. site=
  943. srcdir=
  944. verbose=
  945. x_includes=NONE
  946. x_libraries=NONE
  947. # Installation directory options.
  948. # These are left unexpanded so users can "make install exec_prefix=/foo"
  949. # and all the variables that are supposed to be based on exec_prefix
  950. # by default will actually change.
  951. # Use braces instead of parens because sh, perl, etc. also accept them.
  952. # (The list follows the same order as the GNU Coding Standards.)
  953. bindir='${exec_prefix}/bin'
  954. sbindir='${exec_prefix}/sbin'
  955. libexecdir='${exec_prefix}/libexec'
  956. datarootdir='${prefix}/share'
  957. datadir='${datarootdir}'
  958. sysconfdir='${prefix}/etc'
  959. sharedstatedir='${prefix}/com'
  960. localstatedir='${prefix}/var'
  961. includedir='${prefix}/include'
  962. oldincludedir='/usr/include'
  963. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  964. infodir='${datarootdir}/info'
  965. htmldir='${docdir}'
  966. dvidir='${docdir}'
  967. pdfdir='${docdir}'
  968. psdir='${docdir}'
  969. libdir='${exec_prefix}/lib'
  970. localedir='${datarootdir}/locale'
  971. mandir='${datarootdir}/man'
  972. ac_prev=
  973. ac_dashdash=
  974. for ac_option
  975. do
  976. # If the previous option needs an argument, assign it.
  977. if test -n "$ac_prev"; then
  978. eval $ac_prev=\$ac_option
  979. ac_prev=
  980. continue
  981. fi
  982. case $ac_option in
  983. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  984. *=) ac_optarg= ;;
  985. *) ac_optarg=yes ;;
  986. esac
  987. # Accept the important Cygnus configure options, so we can diagnose typos.
  988. case $ac_dashdash$ac_option in
  989. --)
  990. ac_dashdash=yes ;;
  991. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  992. ac_prev=bindir ;;
  993. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  994. bindir=$ac_optarg ;;
  995. -build | --build | --buil | --bui | --bu)
  996. ac_prev=build_alias ;;
  997. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  998. build_alias=$ac_optarg ;;
  999. -cache-file | --cache-file | --cache-fil | --cache-fi \
  1000. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  1001. ac_prev=cache_file ;;
  1002. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  1003. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  1004. cache_file=$ac_optarg ;;
  1005. --config-cache | -C)
  1006. cache_file=config.cache ;;
  1007. -datadir | --datadir | --datadi | --datad)
  1008. ac_prev=datadir ;;
  1009. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  1010. datadir=$ac_optarg ;;
  1011. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  1012. | --dataroo | --dataro | --datar)
  1013. ac_prev=datarootdir ;;
  1014. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  1015. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  1016. datarootdir=$ac_optarg ;;
  1017. -disable-* | --disable-*)
  1018. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  1019. # Reject names that are not valid shell variable names.
  1020. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1021. as_fn_error $? "invalid feature name: $ac_useropt"
  1022. ac_useropt_orig=$ac_useropt
  1023. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1024. case $ac_user_opts in
  1025. *"
  1026. "enable_$ac_useropt"
  1027. "*) ;;
  1028. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  1029. ac_unrecognized_sep=', ';;
  1030. esac
  1031. eval enable_$ac_useropt=no ;;
  1032. -docdir | --docdir | --docdi | --doc | --do)
  1033. ac_prev=docdir ;;
  1034. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  1035. docdir=$ac_optarg ;;
  1036. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  1037. ac_prev=dvidir ;;
  1038. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  1039. dvidir=$ac_optarg ;;
  1040. -enable-* | --enable-*)
  1041. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  1042. # Reject names that are not valid shell variable names.
  1043. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1044. as_fn_error $? "invalid feature name: $ac_useropt"
  1045. ac_useropt_orig=$ac_useropt
  1046. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1047. case $ac_user_opts in
  1048. *"
  1049. "enable_$ac_useropt"
  1050. "*) ;;
  1051. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  1052. ac_unrecognized_sep=', ';;
  1053. esac
  1054. eval enable_$ac_useropt=\$ac_optarg ;;
  1055. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  1056. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  1057. | --exec | --exe | --ex)
  1058. ac_prev=exec_prefix ;;
  1059. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  1060. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  1061. | --exec=* | --exe=* | --ex=*)
  1062. exec_prefix=$ac_optarg ;;
  1063. -gas | --gas | --ga | --g)
  1064. # Obsolete; use --with-gas.
  1065. with_gas=yes ;;
  1066. -help | --help | --hel | --he | -h)
  1067. ac_init_help=long ;;
  1068. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1069. ac_init_help=recursive ;;
  1070. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1071. ac_init_help=short ;;
  1072. -host | --host | --hos | --ho)
  1073. ac_prev=host_alias ;;
  1074. -host=* | --host=* | --hos=* | --ho=*)
  1075. host_alias=$ac_optarg ;;
  1076. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1077. ac_prev=htmldir ;;
  1078. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1079. | --ht=*)
  1080. htmldir=$ac_optarg ;;
  1081. -includedir | --includedir | --includedi | --included | --include \
  1082. | --includ | --inclu | --incl | --inc)
  1083. ac_prev=includedir ;;
  1084. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1085. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1086. includedir=$ac_optarg ;;
  1087. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1088. ac_prev=infodir ;;
  1089. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1090. infodir=$ac_optarg ;;
  1091. -libdir | --libdir | --libdi | --libd)
  1092. ac_prev=libdir ;;
  1093. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1094. libdir=$ac_optarg ;;
  1095. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1096. | --libexe | --libex | --libe)
  1097. ac_prev=libexecdir ;;
  1098. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1099. | --libexe=* | --libex=* | --libe=*)
  1100. libexecdir=$ac_optarg ;;
  1101. -localedir | --localedir | --localedi | --localed | --locale)
  1102. ac_prev=localedir ;;
  1103. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1104. localedir=$ac_optarg ;;
  1105. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1106. | --localstate | --localstat | --localsta | --localst | --locals)
  1107. ac_prev=localstatedir ;;
  1108. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1109. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1110. localstatedir=$ac_optarg ;;
  1111. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1112. ac_prev=mandir ;;
  1113. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1114. mandir=$ac_optarg ;;
  1115. -nfp | --nfp | --nf)
  1116. # Obsolete; use --without-fp.
  1117. with_fp=no ;;
  1118. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1119. | --no-cr | --no-c | -n)
  1120. no_create=yes ;;
  1121. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1122. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1123. no_recursion=yes ;;
  1124. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1125. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1126. | --oldin | --oldi | --old | --ol | --o)
  1127. ac_prev=oldincludedir ;;
  1128. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1129. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1130. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1131. oldincludedir=$ac_optarg ;;
  1132. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1133. ac_prev=prefix ;;
  1134. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1135. prefix=$ac_optarg ;;
  1136. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1137. | --program-pre | --program-pr | --program-p)
  1138. ac_prev=program_prefix ;;
  1139. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1140. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1141. program_prefix=$ac_optarg ;;
  1142. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1143. | --program-suf | --program-su | --program-s)
  1144. ac_prev=program_suffix ;;
  1145. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1146. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1147. program_suffix=$ac_optarg ;;
  1148. -program-transform-name | --program-transform-name \
  1149. | --program-transform-nam | --program-transform-na \
  1150. | --program-transform-n | --program-transform- \
  1151. | --program-transform | --program-transfor \
  1152. | --program-transfo | --program-transf \
  1153. | --program-trans | --program-tran \
  1154. | --progr-tra | --program-tr | --program-t)
  1155. ac_prev=program_transform_name ;;
  1156. -program-transform-name=* | --program-transform-name=* \
  1157. | --program-transform-nam=* | --program-transform-na=* \
  1158. | --program-transform-n=* | --program-transform-=* \
  1159. | --program-transform=* | --program-transfor=* \
  1160. | --program-transfo=* | --program-transf=* \
  1161. | --program-trans=* | --program-tran=* \
  1162. | --progr-tra=* | --program-tr=* | --program-t=*)
  1163. program_transform_name=$ac_optarg ;;
  1164. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1165. ac_prev=pdfdir ;;
  1166. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1167. pdfdir=$ac_optarg ;;
  1168. -psdir | --psdir | --psdi | --psd | --ps)
  1169. ac_prev=psdir ;;
  1170. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1171. psdir=$ac_optarg ;;
  1172. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1173. | -silent | --silent | --silen | --sile | --sil)
  1174. silent=yes ;;
  1175. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1176. ac_prev=sbindir ;;
  1177. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1178. | --sbi=* | --sb=*)
  1179. sbindir=$ac_optarg ;;
  1180. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1181. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1182. | --sharedst | --shareds | --shared | --share | --shar \
  1183. | --sha | --sh)
  1184. ac_prev=sharedstatedir ;;
  1185. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1186. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1187. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1188. | --sha=* | --sh=*)
  1189. sharedstatedir=$ac_optarg ;;
  1190. -site | --site | --sit)
  1191. ac_prev=site ;;
  1192. -site=* | --site=* | --sit=*)
  1193. site=$ac_optarg ;;
  1194. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1195. ac_prev=srcdir ;;
  1196. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1197. srcdir=$ac_optarg ;;
  1198. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1199. | --syscon | --sysco | --sysc | --sys | --sy)
  1200. ac_prev=sysconfdir ;;
  1201. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1202. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1203. sysconfdir=$ac_optarg ;;
  1204. -target | --target | --targe | --targ | --tar | --ta | --t)
  1205. ac_prev=target_alias ;;
  1206. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1207. target_alias=$ac_optarg ;;
  1208. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1209. verbose=yes ;;
  1210. -version | --version | --versio | --versi | --vers | -V)
  1211. ac_init_version=: ;;
  1212. -with-* | --with-*)
  1213. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1214. # Reject names that are not valid shell variable names.
  1215. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1216. as_fn_error $? "invalid package name: $ac_useropt"
  1217. ac_useropt_orig=$ac_useropt
  1218. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1219. case $ac_user_opts in
  1220. *"
  1221. "with_$ac_useropt"
  1222. "*) ;;
  1223. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1224. ac_unrecognized_sep=', ';;
  1225. esac
  1226. eval with_$ac_useropt=\$ac_optarg ;;
  1227. -without-* | --without-*)
  1228. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1229. # Reject names that are not valid shell variable names.
  1230. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1231. as_fn_error $? "invalid package name: $ac_useropt"
  1232. ac_useropt_orig=$ac_useropt
  1233. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1234. case $ac_user_opts in
  1235. *"
  1236. "with_$ac_useropt"
  1237. "*) ;;
  1238. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1239. ac_unrecognized_sep=', ';;
  1240. esac
  1241. eval with_$ac_useropt=no ;;
  1242. --x)
  1243. # Obsolete; use --with-x.
  1244. with_x=yes ;;
  1245. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1246. | --x-incl | --x-inc | --x-in | --x-i)
  1247. ac_prev=x_includes ;;
  1248. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1249. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1250. x_includes=$ac_optarg ;;
  1251. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1252. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1253. ac_prev=x_libraries ;;
  1254. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1255. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1256. x_libraries=$ac_optarg ;;
  1257. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1258. Try \`$0 --help' for more information"
  1259. ;;
  1260. *=*)
  1261. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1262. # Reject names that are not valid shell variable names.
  1263. case $ac_envvar in #(
  1264. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1265. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1266. esac
  1267. eval $ac_envvar=\$ac_optarg
  1268. export $ac_envvar ;;
  1269. *)
  1270. # FIXME: should be removed in autoconf 3.0.
  1271. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1272. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1273. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1274. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1275. ;;
  1276. esac
  1277. done
  1278. if test -n "$ac_prev"; then
  1279. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1280. as_fn_error $? "missing argument to $ac_option"
  1281. fi
  1282. if test -n "$ac_unrecognized_opts"; then
  1283. case $enable_option_checking in
  1284. no) ;;
  1285. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1286. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1287. esac
  1288. fi
  1289. # Check all directory arguments for consistency.
  1290. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1291. datadir sysconfdir sharedstatedir localstatedir includedir \
  1292. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1293. libdir localedir mandir
  1294. do
  1295. eval ac_val=\$$ac_var
  1296. # Remove trailing slashes.
  1297. case $ac_val in
  1298. */ )
  1299. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1300. eval $ac_var=\$ac_val;;
  1301. esac
  1302. # Be sure to have absolute directory names.
  1303. case $ac_val in
  1304. [\\/$]* | ?:[\\/]* ) continue;;
  1305. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1306. esac
  1307. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1308. done
  1309. # There might be people who depend on the old broken behavior: `$host'
  1310. # used to hold the argument of --host etc.
  1311. # FIXME: To remove some day.
  1312. build=$build_alias
  1313. host=$host_alias
  1314. target=$target_alias
  1315. # FIXME: To remove some day.
  1316. if test "x$host_alias" != x; then
  1317. if test "x$build_alias" = x; then
  1318. cross_compiling=maybe
  1319. elif test "x$build_alias" != "x$host_alias"; then
  1320. cross_compiling=yes
  1321. fi
  1322. fi
  1323. ac_tool_prefix=
  1324. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1325. test "$silent" = yes && exec 6>/dev/null
  1326. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1327. ac_ls_di=`ls -di .` &&
  1328. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1329. as_fn_error $? "working directory cannot be determined"
  1330. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1331. as_fn_error $? "pwd does not report name of working directory"
  1332. # Find the source files, if location was not specified.
  1333. if test -z "$srcdir"; then
  1334. ac_srcdir_defaulted=yes
  1335. # Try the directory containing this script, then the parent directory.
  1336. ac_confdir=`$as_dirname -- "$as_myself" ||
  1337. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1338. X"$as_myself" : 'X\(//\)[^/]' \| \
  1339. X"$as_myself" : 'X\(//\)$' \| \
  1340. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1341. $as_echo X"$as_myself" |
  1342. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1343. s//\1/
  1344. q
  1345. }
  1346. /^X\(\/\/\)[^/].*/{
  1347. s//\1/
  1348. q
  1349. }
  1350. /^X\(\/\/\)$/{
  1351. s//\1/
  1352. q
  1353. }
  1354. /^X\(\/\).*/{
  1355. s//\1/
  1356. q
  1357. }
  1358. s/.*/./; q'`
  1359. srcdir=$ac_confdir
  1360. if test ! -r "$srcdir/$ac_unique_file"; then
  1361. srcdir=..
  1362. fi
  1363. else
  1364. ac_srcdir_defaulted=no
  1365. fi
  1366. if test ! -r "$srcdir/$ac_unique_file"; then
  1367. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1368. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1369. fi
  1370. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1371. ac_abs_confdir=`(
  1372. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1373. pwd)`
  1374. # When building in place, set srcdir=.
  1375. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1376. srcdir=.
  1377. fi
  1378. # Remove unnecessary trailing slashes from srcdir.
  1379. # Double slashes in file names in object file debugging info
  1380. # mess up M-x gdb in Emacs.
  1381. case $srcdir in
  1382. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1383. esac
  1384. for ac_var in $ac_precious_vars; do
  1385. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1386. eval ac_env_${ac_var}_value=\$${ac_var}
  1387. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1388. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1389. done
  1390. #
  1391. # Report the --help message.
  1392. #
  1393. if test "$ac_init_help" = "long"; then
  1394. # Omit some internal or obsolete options to make the list less imposing.
  1395. # This message is too long to be a string in the A/UX 3.1 sh.
  1396. cat <<_ACEOF
  1397. \`configure' configures dirsrv 1.0 to adapt to many kinds of systems.
  1398. Usage: $0 [OPTION]... [VAR=VALUE]...
  1399. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1400. VAR=VALUE. See below for descriptions of some of the useful variables.
  1401. Defaults for the options are specified in brackets.
  1402. Configuration:
  1403. -h, --help display this help and exit
  1404. --help=short display options specific to this package
  1405. --help=recursive display the short help of all the included packages
  1406. -V, --version display version information and exit
  1407. -q, --quiet, --silent do not print \`checking ...' messages
  1408. --cache-file=FILE cache test results in FILE [disabled]
  1409. -C, --config-cache alias for \`--cache-file=config.cache'
  1410. -n, --no-create do not create output files
  1411. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1412. Installation directories:
  1413. --prefix=PREFIX install architecture-independent files in PREFIX
  1414. [$ac_default_prefix]
  1415. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1416. [PREFIX]
  1417. By default, \`make install' will install all the files in
  1418. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1419. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1420. for instance \`--prefix=\$HOME'.
  1421. For better control, use the options below.
  1422. Fine tuning of the installation directories:
  1423. --bindir=DIR user executables [EPREFIX/bin]
  1424. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1425. --libexecdir=DIR program executables [EPREFIX/libexec]
  1426. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1427. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1428. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1429. --libdir=DIR object code libraries [EPREFIX/lib]
  1430. --includedir=DIR C header files [PREFIX/include]
  1431. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1432. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1433. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1434. --infodir=DIR info documentation [DATAROOTDIR/info]
  1435. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1436. --mandir=DIR man documentation [DATAROOTDIR/man]
  1437. --docdir=DIR documentation root [DATAROOTDIR/doc/dirsrv]
  1438. --htmldir=DIR html documentation [DOCDIR]
  1439. --dvidir=DIR dvi documentation [DOCDIR]
  1440. --pdfdir=DIR pdf documentation [DOCDIR]
  1441. --psdir=DIR ps documentation [DOCDIR]
  1442. _ACEOF
  1443. cat <<\_ACEOF
  1444. Program names:
  1445. --program-prefix=PREFIX prepend PREFIX to installed program names
  1446. --program-suffix=SUFFIX append SUFFIX to installed program names
  1447. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1448. System types:
  1449. --build=BUILD configure for building on BUILD [guessed]
  1450. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1451. _ACEOF
  1452. fi
  1453. if test -n "$ac_init_help"; then
  1454. case $ac_init_help in
  1455. short | recursive ) echo "Configuration of dirsrv 1.0:";;
  1456. esac
  1457. cat <<\_ACEOF
  1458. Optional Features:
  1459. --disable-option-checking ignore unrecognized --enable/--with options
  1460. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1461. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1462. --enable-silent-rules less verbose build output (undo: "make V=1")
  1463. --disable-silent-rules verbose build output (undo: "make V=0")
  1464. --enable-maintainer-mode
  1465. enable make rules and dependencies not useful (and
  1466. sometimes confusing) to the casual installer
  1467. --enable-dependency-tracking
  1468. do not reject slow dependency extractors
  1469. --disable-dependency-tracking
  1470. speeds up one-time build
  1471. --enable-static[=PKGS] build static libraries [default=no]
  1472. --enable-shared[=PKGS] build shared libraries [default=yes]
  1473. --enable-fast-install[=PKGS]
  1474. optimize for fast installation [default=yes]
  1475. --disable-libtool-lock avoid locking (might break parallel builds)
  1476. --enable-debug Enable debug features (default: no)
  1477. --enable-bundle Enable bundled dependencies (default: no)
  1478. --enable-pam-passthru enable the PAM passthrough auth plugin (default:
  1479. yes)
  1480. --enable-dna enable the Distributed Numeric Assignment (DNA)
  1481. plugin (default: yes)
  1482. --enable-ldapi enable LDAP over unix domain socket (LDAPI) support
  1483. (default: yes)
  1484. --enable-autobind enable auto bind over unix domain socket (LDAPI)
  1485. support (default: no)
  1486. --enable-auto-dn-suffix enable auto bind with auto dn suffix over unix
  1487. domain socket (LDAPI) support (default: no)
  1488. --enable-bitwise enable the bitwise matching rule plugin (default:
  1489. yes)
  1490. --enable-presence enable the presence plugin (default: no)
  1491. --enable-acctpolicy enable the account policy plugin (default: yes)
  1492. --enable-posix-winsync enable support for POSIX user/group attributes in
  1493. winsync (default: yes)
  1494. Optional Packages:
  1495. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1496. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1497. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1498. both]
  1499. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1500. --with-sysroot=DIR Search for dependent libraries within DIR
  1501. (or the compiler's sysroot if not specified).
  1502. --with-fhs Use FHS layout
  1503. --with-fhs-opt Use FHS optional layout
  1504. --with-tmpfiles-d=PATH system uses tmpfiles.d to handle temp files/dirs
  1505. (default: $with_tmpfiles_d)
  1506. --with-perldir=PATH Directory for perl)
  1507. --with-pythondir=PATH Directory for python)
  1508. --with-systemdsystemunitdir=PATH
  1509. Directory for systemd service files (default:
  1510. $with_systemdsystemunitdir)
  1511. --with-systemdsystemconfdir=PATH
  1512. Directory for systemd service files (default:
  1513. $with_systemdsystemconfdir)
  1514. --with-systemdgroupname=NAME
  1515. Name of group target for all instances (default:
  1516. $with_systemdgroupname)
  1517. --with-instconfigdir=/path
  1518. Base directory for instance specific writable
  1519. configuration directories (default
  1520. $sysconfdir/$PACKAGE_NAME)
  1521. --with-initddir=/path Absolute path (not relative like some of the other
  1522. options) that should contain the SysV init scripts
  1523. (default '$(sysconfdir)/rc.d')
  1524. --with-nspr[=PATH] Netscape Portable Runtime (NSPR) directory
  1525. --with-nspr-inc=PATH Netscape Portable Runtime (NSPR) include directory
  1526. --with-nspr-lib=PATH Netscape Portable Runtime (NSPR) library directory
  1527. --with-nss[=PATH] Network Security Services (NSS) directory
  1528. --with-nss-inc=PATH Network Security Services (NSS) include directory
  1529. --with-nss-lib=PATH Network Security Services (NSS) library directory
  1530. --with-openldap[=PATH] Use OpenLDAP - optional PATH is path to OpenLDAP SDK
  1531. --with-openldap-inc=PATH
  1532. OpenLDAP SDK include directory
  1533. --with-openldap-lib=PATH
  1534. OpenLDAP SDK library directory
  1535. --with-openldap-bin=PATH
  1536. OpenLDAP SDK binary directory
  1537. --with-ldapsdk[=PATH] Mozilla LDAP SDK directory
  1538. --with-ldapsdk-inc=PATH Mozilla LDAP SDK include directory
  1539. --with-ldapsdk-lib=PATH Mozilla LDAP SDK library directory
  1540. --with-ldapsdk-bin=PATH Mozilla LDAP SDK binary directory
  1541. --with-db[=PATH] Berkeley DB directory
  1542. --with-db-inc=PATH Berkeley DB include file directory
  1543. --with-db-lib=PATH Berkeley DB library directory
  1544. --with-sasl[=PATH] Use SASL from supplied path
  1545. --with-sasl-inc=PATH SASL include file directory
  1546. --with-sasl-lib=PATH SASL library directory
  1547. --with-svrcore[=PATH] Use system installed SVRCORE - optional path for
  1548. SVRCORE
  1549. --with-svrcore-inc=PATH SVRCORE include file directory
  1550. --with-svrcore-lib=PATH SVRCORE library directory
  1551. --with-icu[=PATH] ICU directory
  1552. --with-icu-inc=PATH ICU include directory
  1553. --with-icu-lib=PATH ICU library directory
  1554. --with-icu-bin=PATH ICU binary directory
  1555. --with-netsnmp[=PATH] Net-SNMP directory
  1556. --with-netsnmp-inc=PATH Net-SNMP include directory
  1557. --with-netsnmp-lib=PATH Net-SNMP library directory
  1558. --with-kerberos[=PATH] Use the kerberos API in the server directly - allows
  1559. the server to authenticate directly with a keytab -
  1560. otherwise, SASL/GSSAPI auth depends on underlying
  1561. SASL libraries and external kinit with a keytab - if
  1562. PATH is not specified, look for kerberos in the
  1563. system locations. This will attempt to use
  1564. krb5-config from the PATH to find the libs and
  1565. include dirs - you can specify KRB5_CONFIG_BIN to
  1566. specify a different filename or absolute path. If
  1567. krb5-config does not work, this will attempt to look
  1568. in various system directories
  1569. --with-kerberos-inc=PATH
  1570. Allows you to explicitly set the directory
  1571. containing the kerberos include files - implies use
  1572. of kerberos
  1573. --with-kerberos-lib=PATH
  1574. Allows you to explicitly set the directory
  1575. containing the kerberos libraries - implies use of
  1576. kerberos
  1577. --with-pcre[=PATH] Perl Compatible Regular Expression directory
  1578. --with-selinux Support SELinux policy
  1579. Some influential environment variables:
  1580. CXX C++ compiler command
  1581. CXXFLAGS C++ compiler flags
  1582. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1583. nonstandard directory <lib dir>
  1584. LIBS libraries to pass to the linker, e.g. -l<library>
  1585. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1586. you have headers in a nonstandard directory <include dir>
  1587. CC C compiler command
  1588. CFLAGS C compiler flags
  1589. CCAS assembler compiler command (defaults to CC)
  1590. CCASFLAGS assembler compiler flags (defaults to CFLAGS)
  1591. CPP C preprocessor
  1592. CXXCPP C++ preprocessor
  1593. PKG_CONFIG path to pkg-config utility
  1594. PKG_CONFIG_PATH
  1595. directories to add to pkg-config's search path
  1596. PKG_CONFIG_LIBDIR
  1597. path overriding pkg-config's built-in search path
  1598. Use these variables to override the choices made by `configure' or to help
  1599. it to find libraries and programs with nonstandard names/locations.
  1600. Report bugs to <http://bugzilla.redhat.com/>.
  1601. _ACEOF
  1602. ac_status=$?
  1603. fi
  1604. if test "$ac_init_help" = "recursive"; then
  1605. # If there are subdirs, report their specific --help.
  1606. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1607. test -d "$ac_dir" ||
  1608. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1609. continue
  1610. ac_builddir=.
  1611. case "$ac_dir" in
  1612. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1613. *)
  1614. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1615. # A ".." for each directory in $ac_dir_suffix.
  1616. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1617. case $ac_top_builddir_sub in
  1618. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1619. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1620. esac ;;
  1621. esac
  1622. ac_abs_top_builddir=$ac_pwd
  1623. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1624. # for backward compatibility:
  1625. ac_top_builddir=$ac_top_build_prefix
  1626. case $srcdir in
  1627. .) # We are building in place.
  1628. ac_srcdir=.
  1629. ac_top_srcdir=$ac_top_builddir_sub
  1630. ac_abs_top_srcdir=$ac_pwd ;;
  1631. [\\/]* | ?:[\\/]* ) # Absolute name.
  1632. ac_srcdir=$srcdir$ac_dir_suffix;
  1633. ac_top_srcdir=$srcdir
  1634. ac_abs_top_srcdir=$srcdir ;;
  1635. *) # Relative name.
  1636. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1637. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1638. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1639. esac
  1640. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1641. cd "$ac_dir" || { ac_status=$?; continue; }
  1642. # Check for guested configure.
  1643. if test -f "$ac_srcdir/configure.gnu"; then
  1644. echo &&
  1645. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1646. elif test -f "$ac_srcdir/configure"; then
  1647. echo &&
  1648. $SHELL "$ac_srcdir/configure" --help=recursive
  1649. else
  1650. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1651. fi || ac_status=$?
  1652. cd "$ac_pwd" || { ac_status=$?; break; }
  1653. done
  1654. fi
  1655. test -n "$ac_init_help" && exit $ac_status
  1656. if $ac_init_version; then
  1657. cat <<\_ACEOF
  1658. dirsrv configure 1.0
  1659. generated by GNU Autoconf 2.69
  1660. Copyright (C) 2012 Free Software Foundation, Inc.
  1661. This configure script is free software; the Free Software Foundation
  1662. gives unlimited permission to copy, distribute and modify it.
  1663. _ACEOF
  1664. exit
  1665. fi
  1666. ## ------------------------ ##
  1667. ## Autoconf initialization. ##
  1668. ## ------------------------ ##
  1669. # ac_fn_cxx_try_compile LINENO
  1670. # ----------------------------
  1671. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1672. ac_fn_cxx_try_compile ()
  1673. {
  1674. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1675. rm -f conftest.$ac_objext
  1676. if { { ac_try="$ac_compile"
  1677. case "(($ac_try" in
  1678. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1679. *) ac_try_echo=$ac_try;;
  1680. esac
  1681. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1682. $as_echo "$ac_try_echo"; } >&5
  1683. (eval "$ac_compile") 2>conftest.err
  1684. ac_status=$?
  1685. if test -s conftest.err; then
  1686. grep -v '^ *+' conftest.err >conftest.er1
  1687. cat conftest.er1 >&5
  1688. mv -f conftest.er1 conftest.err
  1689. fi
  1690. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1691. test $ac_status = 0; } && {
  1692. test -z "$ac_cxx_werror_flag" ||
  1693. test ! -s conftest.err
  1694. } && test -s conftest.$ac_objext; then :
  1695. ac_retval=0
  1696. else
  1697. $as_echo "$as_me: failed program was:" >&5
  1698. sed 's/^/| /' conftest.$ac_ext >&5
  1699. ac_retval=1
  1700. fi
  1701. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1702. as_fn_set_status $ac_retval
  1703. } # ac_fn_cxx_try_compile
  1704. # ac_fn_c_try_compile LINENO
  1705. # --------------------------
  1706. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1707. ac_fn_c_try_compile ()
  1708. {
  1709. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1710. rm -f conftest.$ac_objext
  1711. if { { ac_try="$ac_compile"
  1712. case "(($ac_try" in
  1713. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1714. *) ac_try_echo=$ac_try;;
  1715. esac
  1716. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1717. $as_echo "$ac_try_echo"; } >&5
  1718. (eval "$ac_compile") 2>conftest.err
  1719. ac_status=$?
  1720. if test -s conftest.err; then
  1721. grep -v '^ *+' conftest.err >conftest.er1
  1722. cat conftest.er1 >&5
  1723. mv -f conftest.er1 conftest.err
  1724. fi
  1725. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1726. test $ac_status = 0; } && {
  1727. test -z "$ac_c_werror_flag" ||
  1728. test ! -s conftest.err
  1729. } && test -s conftest.$ac_objext; then :
  1730. ac_retval=0
  1731. else
  1732. $as_echo "$as_me: failed program was:" >&5
  1733. sed 's/^/| /' conftest.$ac_ext >&5
  1734. ac_retval=1
  1735. fi
  1736. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1737. as_fn_set_status $ac_retval
  1738. } # ac_fn_c_try_compile
  1739. # ac_fn_c_try_link LINENO
  1740. # -----------------------
  1741. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1742. ac_fn_c_try_link ()
  1743. {
  1744. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1745. rm -f conftest.$ac_objext conftest$ac_exeext
  1746. if { { ac_try="$ac_link"
  1747. case "(($ac_try" in
  1748. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1749. *) ac_try_echo=$ac_try;;
  1750. esac
  1751. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1752. $as_echo "$ac_try_echo"; } >&5
  1753. (eval "$ac_link") 2>conftest.err
  1754. ac_status=$?
  1755. if test -s conftest.err; then
  1756. grep -v '^ *+' conftest.err >conftest.er1
  1757. cat conftest.er1 >&5
  1758. mv -f conftest.er1 conftest.err
  1759. fi
  1760. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1761. test $ac_status = 0; } && {
  1762. test -z "$ac_c_werror_flag" ||
  1763. test ! -s conftest.err
  1764. } && test -s conftest$ac_exeext && {
  1765. test "$cross_compiling" = yes ||
  1766. test -x conftest$ac_exeext
  1767. }; then :
  1768. ac_retval=0
  1769. else
  1770. $as_echo "$as_me: failed program was:" >&5
  1771. sed 's/^/| /' conftest.$ac_ext >&5
  1772. ac_retval=1
  1773. fi
  1774. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1775. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1776. # interfere with the next link command; also delete a directory that is
  1777. # left behind by Apple's compiler. We do this before executing the actions.
  1778. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1779. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1780. as_fn_set_status $ac_retval
  1781. } # ac_fn_c_try_link
  1782. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1783. # -------------------------------------------------------
  1784. # Tests whether HEADER exists and can be compiled using the include files in
  1785. # INCLUDES, setting the cache variable VAR accordingly.
  1786. ac_fn_c_check_header_compile ()
  1787. {
  1788. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1789. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1790. $as_echo_n "checking for $2... " >&6; }
  1791. if eval \${$3+:} false; then :
  1792. $as_echo_n "(cached) " >&6
  1793. else
  1794. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1795. /* end confdefs.h. */
  1796. $4
  1797. #include <$2>
  1798. _ACEOF
  1799. if ac_fn_c_try_compile "$LINENO"; then :
  1800. eval "$3=yes"
  1801. else
  1802. eval "$3=no"
  1803. fi
  1804. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1805. fi
  1806. eval ac_res=\$$3
  1807. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1808. $as_echo "$ac_res" >&6; }
  1809. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1810. } # ac_fn_c_check_header_compile
  1811. # ac_fn_c_try_cpp LINENO
  1812. # ----------------------
  1813. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1814. ac_fn_c_try_cpp ()
  1815. {
  1816. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1817. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1818. case "(($ac_try" in
  1819. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1820. *) ac_try_echo=$ac_try;;
  1821. esac
  1822. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1823. $as_echo "$ac_try_echo"; } >&5
  1824. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1825. ac_status=$?
  1826. if test -s conftest.err; then
  1827. grep -v '^ *+' conftest.err >conftest.er1
  1828. cat conftest.er1 >&5
  1829. mv -f conftest.er1 conftest.err
  1830. fi
  1831. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1832. test $ac_status = 0; } > conftest.i && {
  1833. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1834. test ! -s conftest.err
  1835. }; then :
  1836. ac_retval=0
  1837. else
  1838. $as_echo "$as_me: failed program was:" >&5
  1839. sed 's/^/| /' conftest.$ac_ext >&5
  1840. ac_retval=1
  1841. fi
  1842. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1843. as_fn_set_status $ac_retval
  1844. } # ac_fn_c_try_cpp
  1845. # ac_fn_c_try_run LINENO
  1846. # ----------------------
  1847. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1848. # that executables *can* be run.
  1849. ac_fn_c_try_run ()
  1850. {
  1851. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1852. if { { ac_try="$ac_link"
  1853. case "(($ac_try" in
  1854. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1855. *) ac_try_echo=$ac_try;;
  1856. esac
  1857. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1858. $as_echo "$ac_try_echo"; } >&5
  1859. (eval "$ac_link") 2>&5
  1860. ac_status=$?
  1861. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1862. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1863. { { case "(($ac_try" in
  1864. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1865. *) ac_try_echo=$ac_try;;
  1866. esac
  1867. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1868. $as_echo "$ac_try_echo"; } >&5
  1869. (eval "$ac_try") 2>&5
  1870. ac_status=$?
  1871. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1872. test $ac_status = 0; }; }; then :
  1873. ac_retval=0
  1874. else
  1875. $as_echo "$as_me: program exited with status $ac_status" >&5
  1876. $as_echo "$as_me: failed program was:" >&5
  1877. sed 's/^/| /' conftest.$ac_ext >&5
  1878. ac_retval=$ac_status
  1879. fi
  1880. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1881. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1882. as_fn_set_status $ac_retval
  1883. } # ac_fn_c_try_run
  1884. # ac_fn_c_check_func LINENO FUNC VAR
  1885. # ----------------------------------
  1886. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1887. ac_fn_c_check_func ()
  1888. {
  1889. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1890. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1891. $as_echo_n "checking for $2... " >&6; }
  1892. if eval \${$3+:} false; then :
  1893. $as_echo_n "(cached) " >&6
  1894. else
  1895. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1896. /* end confdefs.h. */
  1897. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1898. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1899. #define $2 innocuous_$2
  1900. /* System header to define __stub macros and hopefully few prototypes,
  1901. which can conflict with char $2 (); below.
  1902. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1903. <limits.h> exists even on freestanding compilers. */
  1904. #ifdef __STDC__
  1905. # include <limits.h>
  1906. #else
  1907. # include <assert.h>
  1908. #endif
  1909. #undef $2
  1910. /* Override any GCC internal prototype to avoid an error.
  1911. Use char because int might match the return type of a GCC
  1912. builtin and then its argument prototype would still apply. */
  1913. #ifdef __cplusplus
  1914. extern "C"
  1915. #endif
  1916. char $2 ();
  1917. /* The GNU C library defines this for functions which it implements
  1918. to always fail with ENOSYS. Some functions are actually named
  1919. something starting with __ and the normal name is an alias. */
  1920. #if defined __stub_$2 || defined __stub___$2
  1921. choke me
  1922. #endif
  1923. int
  1924. main ()
  1925. {
  1926. return $2 ();
  1927. ;
  1928. return 0;
  1929. }
  1930. _ACEOF
  1931. if ac_fn_c_try_link "$LINENO"; then :
  1932. eval "$3=yes"
  1933. else
  1934. eval "$3=no"
  1935. fi
  1936. rm -f core conftest.err conftest.$ac_objext \
  1937. conftest$ac_exeext conftest.$ac_ext
  1938. fi
  1939. eval ac_res=\$$3
  1940. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1941. $as_echo "$ac_res" >&6; }
  1942. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1943. } # ac_fn_c_check_func
  1944. # ac_fn_cxx_try_cpp LINENO
  1945. # ------------------------
  1946. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1947. ac_fn_cxx_try_cpp ()
  1948. {
  1949. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1950. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1951. case "(($ac_try" in
  1952. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1953. *) ac_try_echo=$ac_try;;
  1954. esac
  1955. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1956. $as_echo "$ac_try_echo"; } >&5
  1957. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1958. ac_status=$?
  1959. if test -s conftest.err; then
  1960. grep -v '^ *+' conftest.err >conftest.er1
  1961. cat conftest.er1 >&5
  1962. mv -f conftest.er1 conftest.err
  1963. fi
  1964. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1965. test $ac_status = 0; } > conftest.i && {
  1966. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1967. test ! -s conftest.err
  1968. }; then :
  1969. ac_retval=0
  1970. else
  1971. $as_echo "$as_me: failed program was:" >&5
  1972. sed 's/^/| /' conftest.$ac_ext >&5
  1973. ac_retval=1
  1974. fi
  1975. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1976. as_fn_set_status $ac_retval
  1977. } # ac_fn_cxx_try_cpp
  1978. # ac_fn_cxx_try_link LINENO
  1979. # -------------------------
  1980. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1981. ac_fn_cxx_try_link ()
  1982. {
  1983. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1984. rm -f conftest.$ac_objext conftest$ac_exeext
  1985. if { { ac_try="$ac_link"
  1986. case "(($ac_try" in
  1987. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1988. *) ac_try_echo=$ac_try;;
  1989. esac
  1990. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1991. $as_echo "$ac_try_echo"; } >&5
  1992. (eval "$ac_link") 2>conftest.err
  1993. ac_status=$?
  1994. if test -s conftest.err; then
  1995. grep -v '^ *+' conftest.err >conftest.er1
  1996. cat conftest.er1 >&5
  1997. mv -f conftest.er1 conftest.err
  1998. fi
  1999. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2000. test $ac_status = 0; } && {
  2001. test -z "$ac_cxx_werror_flag" ||
  2002. test ! -s conftest.err
  2003. } && test -s conftest$ac_exeext && {
  2004. test "$cross_compiling" = yes ||
  2005. test -x conftest$ac_exeext
  2006. }; then :
  2007. ac_retval=0
  2008. else
  2009. $as_echo "$as_me: failed program was:" >&5
  2010. sed 's/^/| /' conftest.$ac_ext >&5
  2011. ac_retval=1
  2012. fi
  2013. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  2014. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  2015. # interfere with the next link command; also delete a directory that is
  2016. # left behind by Apple's compiler. We do this before executing the actions.
  2017. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2018. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2019. as_fn_set_status $ac_retval
  2020. } # ac_fn_cxx_try_link
  2021. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  2022. # -------------------------------------------------------
  2023. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  2024. # the include files in INCLUDES and setting the cache variable VAR
  2025. # accordingly.
  2026. ac_fn_c_check_header_mongrel ()
  2027. {
  2028. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2029. if eval \${$3+:} false; then :
  2030. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2031. $as_echo_n "checking for $2... " >&6; }
  2032. if eval \${$3+:} false; then :
  2033. $as_echo_n "(cached) " >&6
  2034. fi
  2035. eval ac_res=\$$3
  2036. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2037. $as_echo "$ac_res" >&6; }
  2038. else
  2039. # Is the header compilable?
  2040. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  2041. $as_echo_n "checking $2 usability... " >&6; }
  2042. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2043. /* end confdefs.h. */
  2044. $4
  2045. #include <$2>
  2046. _ACEOF
  2047. if ac_fn_c_try_compile "$LINENO"; then :
  2048. ac_header_compiler=yes
  2049. else
  2050. ac_header_compiler=no
  2051. fi
  2052. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2053. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  2054. $as_echo "$ac_header_compiler" >&6; }
  2055. # Is the header present?
  2056. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  2057. $as_echo_n "checking $2 presence... " >&6; }
  2058. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2059. /* end confdefs.h. */
  2060. #include <$2>
  2061. _ACEOF
  2062. if ac_fn_c_try_cpp "$LINENO"; then :
  2063. ac_header_preproc=yes
  2064. else
  2065. ac_header_preproc=no
  2066. fi
  2067. rm -f conftest.err conftest.i conftest.$ac_ext
  2068. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  2069. $as_echo "$ac_header_preproc" >&6; }
  2070. # So? What about this header?
  2071. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  2072. yes:no: )
  2073. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  2074. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  2075. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2076. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2077. ;;
  2078. no:yes:* )
  2079. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  2080. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  2081. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  2082. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  2083. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  2084. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  2085. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  2086. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  2087. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2088. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2089. ( $as_echo "## ------------------------------------------ ##
  2090. ## Report this to http://bugzilla.redhat.com/ ##
  2091. ## ------------------------------------------ ##"
  2092. ) | sed "s/^/$as_me: WARNING: /" >&2
  2093. ;;
  2094. esac
  2095. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2096. $as_echo_n "checking for $2... " >&6; }
  2097. if eval \${$3+:} false; then :
  2098. $as_echo_n "(cached) " >&6
  2099. else
  2100. eval "$3=\$ac_header_compiler"
  2101. fi
  2102. eval ac_res=\$$3
  2103. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2104. $as_echo "$ac_res" >&6; }
  2105. fi
  2106. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2107. } # ac_fn_c_check_header_mongrel
  2108. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  2109. # -------------------------------------------
  2110. # Tests whether TYPE exists after having included INCLUDES, setting cache
  2111. # variable VAR accordingly.
  2112. ac_fn_c_check_type ()
  2113. {
  2114. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2115. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2116. $as_echo_n "checking for $2... " >&6; }
  2117. if eval \${$3+:} false; then :
  2118. $as_echo_n "(cached) " >&6
  2119. else
  2120. eval "$3=no"
  2121. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2122. /* end confdefs.h. */
  2123. $4
  2124. int
  2125. main ()
  2126. {
  2127. if (sizeof ($2))
  2128. return 0;
  2129. ;
  2130. return 0;
  2131. }
  2132. _ACEOF
  2133. if ac_fn_c_try_compile "$LINENO"; then :
  2134. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2135. /* end confdefs.h. */
  2136. $4
  2137. int
  2138. main ()
  2139. {
  2140. if (sizeof (($2)))
  2141. return 0;
  2142. ;
  2143. return 0;
  2144. }
  2145. _ACEOF
  2146. if ac_fn_c_try_compile "$LINENO"; then :
  2147. else
  2148. eval "$3=yes"
  2149. fi
  2150. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2151. fi
  2152. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2153. fi
  2154. eval ac_res=\$$3
  2155. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2156. $as_echo "$ac_res" >&6; }
  2157. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2158. } # ac_fn_c_check_type
  2159. # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
  2160. # ---------------------------------------------
  2161. # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
  2162. # accordingly.
  2163. ac_fn_c_check_decl ()
  2164. {
  2165. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2166. as_decl_name=`echo $2|sed 's/ *(.*//'`
  2167. as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
  2168. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
  2169. $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
  2170. if eval \${$3+:} false; then :
  2171. $as_echo_n "(cached) " >&6
  2172. else
  2173. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2174. /* end confdefs.h. */
  2175. $4
  2176. int
  2177. main ()
  2178. {
  2179. #ifndef $as_decl_name
  2180. #ifdef __cplusplus
  2181. (void) $as_decl_use;
  2182. #else
  2183. (void) $as_decl_name;
  2184. #endif
  2185. #endif
  2186. ;
  2187. return 0;
  2188. }
  2189. _ACEOF
  2190. if ac_fn_c_try_compile "$LINENO"; then :
  2191. eval "$3=yes"
  2192. else
  2193. eval "$3=no"
  2194. fi
  2195. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2196. fi
  2197. eval ac_res=\$$3
  2198. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2199. $as_echo "$ac_res" >&6; }
  2200. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2201. } # ac_fn_c_check_decl
  2202. cat >config.log <<_ACEOF
  2203. This file contains any messages produced by compilers while
  2204. running configure, to aid debugging if configure makes a mistake.
  2205. It was created by dirsrv $as_me 1.0, which was
  2206. generated by GNU Autoconf 2.69. Invocation command line was
  2207. $ $0 $@
  2208. _ACEOF
  2209. exec 5>>config.log
  2210. {
  2211. cat <<_ASUNAME
  2212. ## --------- ##
  2213. ## Platform. ##
  2214. ## --------- ##
  2215. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2216. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2217. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2218. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2219. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2220. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2221. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2222. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2223. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2224. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2225. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2226. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2227. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2228. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2229. _ASUNAME
  2230. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2231. for as_dir in $PATH
  2232. do
  2233. IFS=$as_save_IFS
  2234. test -z "$as_dir" && as_dir=.
  2235. $as_echo "PATH: $as_dir"
  2236. done
  2237. IFS=$as_save_IFS
  2238. } >&5
  2239. cat >&5 <<_ACEOF
  2240. ## ----------- ##
  2241. ## Core tests. ##
  2242. ## ----------- ##
  2243. _ACEOF
  2244. # Keep a trace of the command line.
  2245. # Strip out --no-create and --no-recursion so they do not pile up.
  2246. # Strip out --silent because we don't want to record it for future runs.
  2247. # Also quote any args containing shell meta-characters.
  2248. # Make two passes to allow for proper duplicate-argument suppression.
  2249. ac_configure_args=
  2250. ac_configure_args0=
  2251. ac_configure_args1=
  2252. ac_must_keep_next=false
  2253. for ac_pass in 1 2
  2254. do
  2255. for ac_arg
  2256. do
  2257. case $ac_arg in
  2258. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2259. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2260. | -silent | --silent | --silen | --sile | --sil)
  2261. continue ;;
  2262. *\'*)
  2263. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2264. esac
  2265. case $ac_pass in
  2266. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2267. 2)
  2268. as_fn_append ac_configure_args1 " '$ac_arg'"
  2269. if test $ac_must_keep_next = true; then
  2270. ac_must_keep_next=false # Got value, back to normal.
  2271. else
  2272. case $ac_arg in
  2273. *=* | --config-cache | -C | -disable-* | --disable-* \
  2274. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2275. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2276. | -with-* | --with-* | -without-* | --without-* | --x)
  2277. case "$ac_configure_args0 " in
  2278. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2279. esac
  2280. ;;
  2281. -* ) ac_must_keep_next=true ;;
  2282. esac
  2283. fi
  2284. as_fn_append ac_configure_args " '$ac_arg'"
  2285. ;;
  2286. esac
  2287. done
  2288. done
  2289. { ac_configure_args0=; unset ac_configure_args0;}
  2290. { ac_configure_args1=; unset ac_configure_args1;}
  2291. # When interrupted or exit'd, cleanup temporary files, and complete
  2292. # config.log. We remove comments because anyway the quotes in there
  2293. # would cause problems or look ugly.
  2294. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2295. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2296. trap 'exit_status=$?
  2297. # Save into config.log some information that might help in debugging.
  2298. {
  2299. echo
  2300. $as_echo "## ---------------- ##
  2301. ## Cache variables. ##
  2302. ## ---------------- ##"
  2303. echo
  2304. # The following way of writing the cache mishandles newlines in values,
  2305. (
  2306. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2307. eval ac_val=\$$ac_var
  2308. case $ac_val in #(
  2309. *${as_nl}*)
  2310. case $ac_var in #(
  2311. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2312. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2313. esac
  2314. case $ac_var in #(
  2315. _ | IFS | as_nl) ;; #(
  2316. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2317. *) { eval $ac_var=; unset $ac_var;} ;;
  2318. esac ;;
  2319. esac
  2320. done
  2321. (set) 2>&1 |
  2322. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2323. *${as_nl}ac_space=\ *)
  2324. sed -n \
  2325. "s/'\''/'\''\\\\'\'''\''/g;
  2326. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2327. ;; #(
  2328. *)
  2329. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2330. ;;
  2331. esac |
  2332. sort
  2333. )
  2334. echo
  2335. $as_echo "## ----------------- ##
  2336. ## Output variables. ##
  2337. ## ----------------- ##"
  2338. echo
  2339. for ac_var in $ac_subst_vars
  2340. do
  2341. eval ac_val=\$$ac_var
  2342. case $ac_val in
  2343. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2344. esac
  2345. $as_echo "$ac_var='\''$ac_val'\''"
  2346. done | sort
  2347. echo
  2348. if test -n "$ac_subst_files"; then
  2349. $as_echo "## ------------------- ##
  2350. ## File substitutions. ##
  2351. ## ------------------- ##"
  2352. echo
  2353. for ac_var in $ac_subst_files
  2354. do
  2355. eval ac_val=\$$ac_var
  2356. case $ac_val in
  2357. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2358. esac
  2359. $as_echo "$ac_var='\''$ac_val'\''"
  2360. done | sort
  2361. echo
  2362. fi
  2363. if test -s confdefs.h; then
  2364. $as_echo "## ----------- ##
  2365. ## confdefs.h. ##
  2366. ## ----------- ##"
  2367. echo
  2368. cat confdefs.h
  2369. echo
  2370. fi
  2371. test "$ac_signal" != 0 &&
  2372. $as_echo "$as_me: caught signal $ac_signal"
  2373. $as_echo "$as_me: exit $exit_status"
  2374. } >&5
  2375. rm -f core *.core core.conftest.* &&
  2376. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2377. exit $exit_status
  2378. ' 0
  2379. for ac_signal in 1 2 13 15; do
  2380. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2381. done
  2382. ac_signal=0
  2383. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2384. rm -f -r conftest* confdefs.h
  2385. $as_echo "/* confdefs.h */" > confdefs.h
  2386. # Predefined preprocessor variables.
  2387. cat >>confdefs.h <<_ACEOF
  2388. #define PACKAGE_NAME "$PACKAGE_NAME"
  2389. _ACEOF
  2390. cat >>confdefs.h <<_ACEOF
  2391. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2392. _ACEOF
  2393. cat >>confdefs.h <<_ACEOF
  2394. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2395. _ACEOF
  2396. cat >>confdefs.h <<_ACEOF
  2397. #define PACKAGE_STRING "$PACKAGE_STRING"
  2398. _ACEOF
  2399. cat >>confdefs.h <<_ACEOF
  2400. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2401. _ACEOF
  2402. cat >>confdefs.h <<_ACEOF
  2403. #define PACKAGE_URL "$PACKAGE_URL"
  2404. _ACEOF
  2405. # Let the site file select an alternate cache file if it wants to.
  2406. # Prefer an explicitly selected file to automatically selected ones.
  2407. ac_site_file1=NONE
  2408. ac_site_file2=NONE
  2409. if test -n "$CONFIG_SITE"; then
  2410. # We do not want a PATH search for config.site.
  2411. case $CONFIG_SITE in #((
  2412. -*) ac_site_file1=./$CONFIG_SITE;;
  2413. */*) ac_site_file1=$CONFIG_SITE;;
  2414. *) ac_site_file1=./$CONFIG_SITE;;
  2415. esac
  2416. elif test "x$prefix" != xNONE; then
  2417. ac_site_file1=$prefix/share/config.site
  2418. ac_site_file2=$prefix/etc/config.site
  2419. else
  2420. ac_site_file1=$ac_default_prefix/share/config.site
  2421. ac_site_file2=$ac_default_prefix/etc/config.site
  2422. fi
  2423. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2424. do
  2425. test "x$ac_site_file" = xNONE && continue
  2426. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2427. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2428. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2429. sed 's/^/| /' "$ac_site_file" >&5
  2430. . "$ac_site_file" \
  2431. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2432. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2433. as_fn_error $? "failed to load site script $ac_site_file
  2434. See \`config.log' for more details" "$LINENO" 5; }
  2435. fi
  2436. done
  2437. if test -r "$cache_file"; then
  2438. # Some versions of bash will fail to source /dev/null (special files
  2439. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2440. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2441. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2442. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2443. case $cache_file in
  2444. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2445. *) . "./$cache_file";;
  2446. esac
  2447. fi
  2448. else
  2449. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2450. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2451. >$cache_file
  2452. fi
  2453. as_fn_append ac_header_list " stdlib.h"
  2454. as_fn_append ac_header_list " unistd.h"
  2455. as_fn_append ac_header_list " sys/param.h"
  2456. # Check that the precious variables saved in the cache have kept the same
  2457. # value.
  2458. ac_cache_corrupted=false
  2459. for ac_var in $ac_precious_vars; do
  2460. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2461. eval ac_new_set=\$ac_env_${ac_var}_set
  2462. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2463. eval ac_new_val=\$ac_env_${ac_var}_value
  2464. case $ac_old_set,$ac_new_set in
  2465. set,)
  2466. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2467. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2468. ac_cache_corrupted=: ;;
  2469. ,set)
  2470. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2471. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2472. ac_cache_corrupted=: ;;
  2473. ,);;
  2474. *)
  2475. if test "x$ac_old_val" != "x$ac_new_val"; then
  2476. # differences in whitespace do not lead to failure.
  2477. ac_old_val_w=`echo x $ac_old_val`
  2478. ac_new_val_w=`echo x $ac_new_val`
  2479. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2480. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2481. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2482. ac_cache_corrupted=:
  2483. else
  2484. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2485. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2486. eval $ac_var=\$ac_old_val
  2487. fi
  2488. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2489. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2490. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2491. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2492. fi;;
  2493. esac
  2494. # Pass precious variables to config.status.
  2495. if test "$ac_new_set" = set; then
  2496. case $ac_new_val in
  2497. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2498. *) ac_arg=$ac_var=$ac_new_val ;;
  2499. esac
  2500. case " $ac_configure_args " in
  2501. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2502. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2503. esac
  2504. fi
  2505. done
  2506. if $ac_cache_corrupted; then
  2507. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2508. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2509. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2510. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2511. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2512. fi
  2513. ## -------------------- ##
  2514. ## Main body of script. ##
  2515. ## -------------------- ##
  2516. ac_ext=c
  2517. ac_cpp='$CPP $CPPFLAGS'
  2518. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2519. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2520. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2521. # AC_CONFIG_HEADER must be called right after AC_INIT.
  2522. ac_config_headers="$ac_config_headers config.h"
  2523. # include the version information
  2524. . $srcdir/VERSION.sh
  2525. { $as_echo "$as_me:${as_lineno-$LINENO}: This is configure for $PACKAGE_TARNAME $PACKAGE_VERSION" >&5
  2526. $as_echo "$as_me: This is configure for $PACKAGE_TARNAME $PACKAGE_VERSION" >&6;}
  2527. cat >>confdefs.h <<_ACEOF
  2528. #define DS_PACKAGE_VERSION "$PACKAGE_VERSION"
  2529. _ACEOF
  2530. cat >>confdefs.h <<_ACEOF
  2531. #define DS_PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2532. _ACEOF
  2533. cat >>confdefs.h <<_ACEOF
  2534. #define DS_PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2535. _ACEOF
  2536. cat >>confdefs.h <<_ACEOF
  2537. #define DS_PACKAGE_STRING "$PACKAGE_STRING"
  2538. _ACEOF
  2539. am__api_version='1.13'
  2540. ac_aux_dir=
  2541. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2542. if test -f "$ac_dir/install-sh"; then
  2543. ac_aux_dir=$ac_dir
  2544. ac_install_sh="$ac_aux_dir/install-sh -c"
  2545. break
  2546. elif test -f "$ac_dir/install.sh"; then
  2547. ac_aux_dir=$ac_dir
  2548. ac_install_sh="$ac_aux_dir/install.sh -c"
  2549. break
  2550. elif test -f "$ac_dir/shtool"; then
  2551. ac_aux_dir=$ac_dir
  2552. ac_install_sh="$ac_aux_dir/shtool install -c"
  2553. break
  2554. fi
  2555. done
  2556. if test -z "$ac_aux_dir"; then
  2557. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2558. fi
  2559. # These three variables are undocumented and unsupported,
  2560. # and are intended to be withdrawn in a future Autoconf release.
  2561. # They can cause serious problems if a builder's source tree is in a directory
  2562. # whose full name contains unusual characters.
  2563. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2564. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2565. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2566. # Find a good install program. We prefer a C program (faster),
  2567. # so one script is as good as another. But avoid the broken or
  2568. # incompatible versions:
  2569. # SysV /etc/install, /usr/sbin/install
  2570. # SunOS /usr/etc/install
  2571. # IRIX /sbin/install
  2572. # AIX /bin/install
  2573. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2574. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2575. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2576. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2577. # OS/2's system install, which has a completely different semantic
  2578. # ./install, which can be erroneously created by make from ./install.sh.
  2579. # Reject install programs that cannot install multiple files.
  2580. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2581. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2582. if test -z "$INSTALL"; then
  2583. if ${ac_cv_path_install+:} false; then :
  2584. $as_echo_n "(cached) " >&6
  2585. else
  2586. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2587. for as_dir in $PATH
  2588. do
  2589. IFS=$as_save_IFS
  2590. test -z "$as_dir" && as_dir=.
  2591. # Account for people who put trailing slashes in PATH elements.
  2592. case $as_dir/ in #((
  2593. ./ | .// | /[cC]/* | \
  2594. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2595. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2596. /usr/ucb/* ) ;;
  2597. *)
  2598. # OSF1 and SCO ODT 3.0 have their own names for install.
  2599. # Don't use installbsd from OSF since it installs stuff as root
  2600. # by default.
  2601. for ac_prog in ginstall scoinst install; do
  2602. for ac_exec_ext in '' $ac_executable_extensions; do
  2603. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  2604. if test $ac_prog = install &&
  2605. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2606. # AIX install. It has an incompatible calling convention.
  2607. :
  2608. elif test $ac_prog = install &&
  2609. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2610. # program-specific install script used by HP pwplus--don't use.
  2611. :
  2612. else
  2613. rm -rf conftest.one conftest.two conftest.dir
  2614. echo one > conftest.one
  2615. echo two > conftest.two
  2616. mkdir conftest.dir
  2617. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2618. test -s conftest.one && test -s conftest.two &&
  2619. test -s conftest.dir/conftest.one &&
  2620. test -s conftest.dir/conftest.two
  2621. then
  2622. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2623. break 3
  2624. fi
  2625. fi
  2626. fi
  2627. done
  2628. done
  2629. ;;
  2630. esac
  2631. done
  2632. IFS=$as_save_IFS
  2633. rm -rf conftest.one conftest.two conftest.dir
  2634. fi
  2635. if test "${ac_cv_path_install+set}" = set; then
  2636. INSTALL=$ac_cv_path_install
  2637. else
  2638. # As a last resort, use the slow shell script. Don't cache a
  2639. # value for INSTALL within a source directory, because that will
  2640. # break other packages using the cache if that directory is
  2641. # removed, or if the value is a relative name.
  2642. INSTALL=$ac_install_sh
  2643. fi
  2644. fi
  2645. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2646. $as_echo "$INSTALL" >&6; }
  2647. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2648. # It thinks the first close brace ends the variable substitution.
  2649. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2650. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2651. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2652. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2653. $as_echo_n "checking whether build environment is sane... " >&6; }
  2654. # Reject unsafe characters in $srcdir or the absolute working directory
  2655. # name. Accept space and tab only in the latter.
  2656. am_lf='
  2657. '
  2658. case `pwd` in
  2659. *[\\\"\#\$\&\'\`$am_lf]*)
  2660. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  2661. esac
  2662. case $srcdir in
  2663. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2664. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  2665. esac
  2666. # Do 'set' in a subshell so we don't clobber the current shell's
  2667. # arguments. Must try -L first in case configure is actually a
  2668. # symlink; some systems play weird games with the mod time of symlinks
  2669. # (eg FreeBSD returns the mod time of the symlink's containing
  2670. # directory).
  2671. if (
  2672. am_has_slept=no
  2673. for am_try in 1 2; do
  2674. echo "timestamp, slept: $am_has_slept" > conftest.file
  2675. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2676. if test "$*" = "X"; then
  2677. # -L didn't work.
  2678. set X `ls -t "$srcdir/configure" conftest.file`
  2679. fi
  2680. if test "$*" != "X $srcdir/configure conftest.file" \
  2681. && test "$*" != "X conftest.file $srcdir/configure"; then
  2682. # If neither matched, then we have a broken ls. This can happen
  2683. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2684. # broken ls alias from the environment. This has actually
  2685. # happened. Such a system could not be considered "sane".
  2686. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  2687. alias in your environment" "$LINENO" 5
  2688. fi
  2689. if test "$2" = conftest.file || test $am_try -eq 2; then
  2690. break
  2691. fi
  2692. # Just in case.
  2693. sleep 1
  2694. am_has_slept=yes
  2695. done
  2696. test "$2" = conftest.file
  2697. )
  2698. then
  2699. # Ok.
  2700. :
  2701. else
  2702. as_fn_error $? "newly created file is older than distributed files!
  2703. Check your system clock" "$LINENO" 5
  2704. fi
  2705. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2706. $as_echo "yes" >&6; }
  2707. # If we didn't sleep, we still need to ensure time stamps of config.status and
  2708. # generated files are strictly newer.
  2709. am_sleep_pid=
  2710. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  2711. ( sleep 1 ) &
  2712. am_sleep_pid=$!
  2713. fi
  2714. rm -f conftest.file
  2715. test "$program_prefix" != NONE &&
  2716. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2717. # Use a double $ so make ignores it.
  2718. test "$program_suffix" != NONE &&
  2719. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2720. # Double any \ or $.
  2721. # By default was `s,x,x', remove it if useless.
  2722. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2723. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2724. # expand $ac_aux_dir to an absolute path
  2725. am_aux_dir=`cd $ac_aux_dir && pwd`
  2726. if test x"${MISSING+set}" != xset; then
  2727. case $am_aux_dir in
  2728. *\ * | *\ *)
  2729. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2730. *)
  2731. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2732. esac
  2733. fi
  2734. # Use eval to expand $SHELL
  2735. if eval "$MISSING --is-lightweight"; then
  2736. am_missing_run="$MISSING "
  2737. else
  2738. am_missing_run=
  2739. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  2740. $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  2741. fi
  2742. if test x"${install_sh}" != xset; then
  2743. case $am_aux_dir in
  2744. *\ * | *\ *)
  2745. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2746. *)
  2747. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2748. esac
  2749. fi
  2750. # Installed binaries are usually stripped using 'strip' when the user
  2751. # run "make install-strip". However 'strip' might not be the right
  2752. # tool to use in cross-compilation environments, therefore Automake
  2753. # will honor the 'STRIP' environment variable to overrule this program.
  2754. if test "$cross_compiling" != no; then
  2755. if test -n "$ac_tool_prefix"; then
  2756. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2757. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2758. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2759. $as_echo_n "checking for $ac_word... " >&6; }
  2760. if ${ac_cv_prog_STRIP+:} false; then :
  2761. $as_echo_n "(cached) " >&6
  2762. else
  2763. if test -n "$STRIP"; then
  2764. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2765. else
  2766. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2767. for as_dir in $PATH
  2768. do
  2769. IFS=$as_save_IFS
  2770. test -z "$as_dir" && as_dir=.
  2771. for ac_exec_ext in '' $ac_executable_extensions; do
  2772. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2773. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2774. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2775. break 2
  2776. fi
  2777. done
  2778. done
  2779. IFS=$as_save_IFS
  2780. fi
  2781. fi
  2782. STRIP=$ac_cv_prog_STRIP
  2783. if test -n "$STRIP"; then
  2784. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2785. $as_echo "$STRIP" >&6; }
  2786. else
  2787. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2788. $as_echo "no" >&6; }
  2789. fi
  2790. fi
  2791. if test -z "$ac_cv_prog_STRIP"; then
  2792. ac_ct_STRIP=$STRIP
  2793. # Extract the first word of "strip", so it can be a program name with args.
  2794. set dummy strip; ac_word=$2
  2795. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2796. $as_echo_n "checking for $ac_word... " >&6; }
  2797. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  2798. $as_echo_n "(cached) " >&6
  2799. else
  2800. if test -n "$ac_ct_STRIP"; then
  2801. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2802. else
  2803. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2804. for as_dir in $PATH
  2805. do
  2806. IFS=$as_save_IFS
  2807. test -z "$as_dir" && as_dir=.
  2808. for ac_exec_ext in '' $ac_executable_extensions; do
  2809. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2810. ac_cv_prog_ac_ct_STRIP="strip"
  2811. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2812. break 2
  2813. fi
  2814. done
  2815. done
  2816. IFS=$as_save_IFS
  2817. fi
  2818. fi
  2819. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2820. if test -n "$ac_ct_STRIP"; then
  2821. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2822. $as_echo "$ac_ct_STRIP" >&6; }
  2823. else
  2824. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2825. $as_echo "no" >&6; }
  2826. fi
  2827. if test "x$ac_ct_STRIP" = x; then
  2828. STRIP=":"
  2829. else
  2830. case $cross_compiling:$ac_tool_warned in
  2831. yes:)
  2832. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2833. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2834. ac_tool_warned=yes ;;
  2835. esac
  2836. STRIP=$ac_ct_STRIP
  2837. fi
  2838. else
  2839. STRIP="$ac_cv_prog_STRIP"
  2840. fi
  2841. fi
  2842. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2843. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2844. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2845. if test -z "$MKDIR_P"; then
  2846. if ${ac_cv_path_mkdir+:} false; then :
  2847. $as_echo_n "(cached) " >&6
  2848. else
  2849. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2850. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2851. do
  2852. IFS=$as_save_IFS
  2853. test -z "$as_dir" && as_dir=.
  2854. for ac_prog in mkdir gmkdir; do
  2855. for ac_exec_ext in '' $ac_executable_extensions; do
  2856. as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  2857. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2858. 'mkdir (GNU coreutils) '* | \
  2859. 'mkdir (coreutils) '* | \
  2860. 'mkdir (fileutils) '4.1*)
  2861. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2862. break 3;;
  2863. esac
  2864. done
  2865. done
  2866. done
  2867. IFS=$as_save_IFS
  2868. fi
  2869. test -d ./--version && rmdir ./--version
  2870. if test "${ac_cv_path_mkdir+set}" = set; then
  2871. MKDIR_P="$ac_cv_path_mkdir -p"
  2872. else
  2873. # As a last resort, use the slow shell script. Don't cache a
  2874. # value for MKDIR_P within a source directory, because that will
  2875. # break other packages using the cache if that directory is
  2876. # removed, or if the value is a relative name.
  2877. MKDIR_P="$ac_install_sh -d"
  2878. fi
  2879. fi
  2880. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2881. $as_echo "$MKDIR_P" >&6; }
  2882. for ac_prog in gawk mawk nawk awk
  2883. do
  2884. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2885. set dummy $ac_prog; ac_word=$2
  2886. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2887. $as_echo_n "checking for $ac_word... " >&6; }
  2888. if ${ac_cv_prog_AWK+:} false; then :
  2889. $as_echo_n "(cached) " >&6
  2890. else
  2891. if test -n "$AWK"; then
  2892. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2893. else
  2894. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2895. for as_dir in $PATH
  2896. do
  2897. IFS=$as_save_IFS
  2898. test -z "$as_dir" && as_dir=.
  2899. for ac_exec_ext in '' $ac_executable_extensions; do
  2900. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2901. ac_cv_prog_AWK="$ac_prog"
  2902. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2903. break 2
  2904. fi
  2905. done
  2906. done
  2907. IFS=$as_save_IFS
  2908. fi
  2909. fi
  2910. AWK=$ac_cv_prog_AWK
  2911. if test -n "$AWK"; then
  2912. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2913. $as_echo "$AWK" >&6; }
  2914. else
  2915. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2916. $as_echo "no" >&6; }
  2917. fi
  2918. test -n "$AWK" && break
  2919. done
  2920. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2921. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2922. set x ${MAKE-make}
  2923. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2924. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  2925. $as_echo_n "(cached) " >&6
  2926. else
  2927. cat >conftest.make <<\_ACEOF
  2928. SHELL = /bin/sh
  2929. all:
  2930. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2931. _ACEOF
  2932. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  2933. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2934. *@@@%%%=?*=@@@%%%*)
  2935. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2936. *)
  2937. eval ac_cv_prog_make_${ac_make}_set=no;;
  2938. esac
  2939. rm -f conftest.make
  2940. fi
  2941. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2942. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2943. $as_echo "yes" >&6; }
  2944. SET_MAKE=
  2945. else
  2946. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2947. $as_echo "no" >&6; }
  2948. SET_MAKE="MAKE=${MAKE-make}"
  2949. fi
  2950. rm -rf .tst 2>/dev/null
  2951. mkdir .tst 2>/dev/null
  2952. if test -d .tst; then
  2953. am__leading_dot=.
  2954. else
  2955. am__leading_dot=_
  2956. fi
  2957. rmdir .tst 2>/dev/null
  2958. # Check whether --enable-silent-rules was given.
  2959. if test "${enable_silent_rules+set}" = set; then :
  2960. enableval=$enable_silent_rules;
  2961. fi
  2962. case $enable_silent_rules in # (((
  2963. yes) AM_DEFAULT_VERBOSITY=0;;
  2964. no) AM_DEFAULT_VERBOSITY=1;;
  2965. *) AM_DEFAULT_VERBOSITY=1;;
  2966. esac
  2967. am_make=${MAKE-make}
  2968. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  2969. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  2970. if ${am_cv_make_support_nested_variables+:} false; then :
  2971. $as_echo_n "(cached) " >&6
  2972. else
  2973. if $as_echo 'TRUE=$(BAR$(V))
  2974. BAR0=false
  2975. BAR1=true
  2976. V=1
  2977. am__doit:
  2978. @$(TRUE)
  2979. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  2980. am_cv_make_support_nested_variables=yes
  2981. else
  2982. am_cv_make_support_nested_variables=no
  2983. fi
  2984. fi
  2985. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  2986. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  2987. if test $am_cv_make_support_nested_variables = yes; then
  2988. AM_V='$(V)'
  2989. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  2990. else
  2991. AM_V=$AM_DEFAULT_VERBOSITY
  2992. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  2993. fi
  2994. AM_BACKSLASH='\'
  2995. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2996. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2997. # is not polluted with repeated "-I."
  2998. am__isrc=' -I$(srcdir)'
  2999. # test to see if srcdir already configured
  3000. if test -f $srcdir/config.status; then
  3001. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  3002. fi
  3003. fi
  3004. # test whether we have cygpath
  3005. if test -z "$CYGPATH_W"; then
  3006. if (cygpath --version) >/dev/null 2>/dev/null; then
  3007. CYGPATH_W='cygpath -w'
  3008. else
  3009. CYGPATH_W=echo
  3010. fi
  3011. fi
  3012. # Define the identity of the package.
  3013. PACKAGE='dirsrv'
  3014. VERSION='1.0'
  3015. # Some tools Automake needs.
  3016. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  3017. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  3018. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  3019. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  3020. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  3021. # For better backward compatibility. To be removed once Automake 1.9.x
  3022. # dies out for good. For more background, see:
  3023. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  3024. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  3025. mkdir_p='$(MKDIR_P)'
  3026. # We need awk for the "check" target. The system "awk" is bad on
  3027. # some platforms.
  3028. # Always define AMTAR for backward compatibility. Yes, it's still used
  3029. # in the wild :-( We should find a proper way to deprecate it ...
  3030. AMTAR='$${TAR-tar}'
  3031. # We'll loop over all known methods to create a tar archive until one works.
  3032. _am_tools='gnutar pax cpio none'
  3033. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  3034. # define these for automake distdir
  3035. VERSION=$PACKAGE_VERSION
  3036. PACKAGE=$PACKAGE_TARNAME
  3037. cat >>confdefs.h <<_ACEOF
  3038. #define VERSION "$VERSION"
  3039. _ACEOF
  3040. cat >>confdefs.h <<_ACEOF
  3041. #define PACKAGE "$PACKAGE"
  3042. _ACEOF
  3043. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  3044. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  3045. # Check whether --enable-maintainer-mode was given.
  3046. if test "${enable_maintainer_mode+set}" = set; then :
  3047. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  3048. else
  3049. USE_MAINTAINER_MODE=no
  3050. fi
  3051. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  3052. $as_echo "$USE_MAINTAINER_MODE" >&6; }
  3053. if test $USE_MAINTAINER_MODE = yes; then
  3054. MAINTAINER_MODE_TRUE=
  3055. MAINTAINER_MODE_FALSE='#'
  3056. else
  3057. MAINTAINER_MODE_TRUE='#'
  3058. MAINTAINER_MODE_FALSE=
  3059. fi
  3060. MAINT=$MAINTAINER_MODE_TRUE
  3061. # Make sure we can run config.sub.
  3062. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  3063. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  3064. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  3065. $as_echo_n "checking build system type... " >&6; }
  3066. if ${ac_cv_build+:} false; then :
  3067. $as_echo_n "(cached) " >&6
  3068. else
  3069. ac_build_alias=$build_alias
  3070. test "x$ac_build_alias" = x &&
  3071. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  3072. test "x$ac_build_alias" = x &&
  3073. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  3074. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  3075. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  3076. fi
  3077. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  3078. $as_echo "$ac_cv_build" >&6; }
  3079. case $ac_cv_build in
  3080. *-*-*) ;;
  3081. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  3082. esac
  3083. build=$ac_cv_build
  3084. ac_save_IFS=$IFS; IFS='-'
  3085. set x $ac_cv_build
  3086. shift
  3087. build_cpu=$1
  3088. build_vendor=$2
  3089. shift; shift
  3090. # Remember, the first character of IFS is used to create $*,
  3091. # except with old shells:
  3092. build_os=$*
  3093. IFS=$ac_save_IFS
  3094. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  3095. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  3096. $as_echo_n "checking host system type... " >&6; }
  3097. if ${ac_cv_host+:} false; then :
  3098. $as_echo_n "(cached) " >&6
  3099. else
  3100. if test "x$host_alias" = x; then
  3101. ac_cv_host=$ac_cv_build
  3102. else
  3103. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  3104. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  3105. fi
  3106. fi
  3107. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  3108. $as_echo "$ac_cv_host" >&6; }
  3109. case $ac_cv_host in
  3110. *-*-*) ;;
  3111. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  3112. esac
  3113. host=$ac_cv_host
  3114. ac_save_IFS=$IFS; IFS='-'
  3115. set x $ac_cv_host
  3116. shift
  3117. host_cpu=$1
  3118. host_vendor=$2
  3119. shift; shift
  3120. # Remember, the first character of IFS is used to create $*,
  3121. # except with old shells:
  3122. host_os=$*
  3123. IFS=$ac_save_IFS
  3124. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  3125. # Checks for programs.
  3126. ac_ext=cpp
  3127. ac_cpp='$CXXCPP $CPPFLAGS'
  3128. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3129. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3130. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3131. if test -z "$CXX"; then
  3132. if test -n "$CCC"; then
  3133. CXX=$CCC
  3134. else
  3135. if test -n "$ac_tool_prefix"; then
  3136. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  3137. do
  3138. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3139. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3140. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3141. $as_echo_n "checking for $ac_word... " >&6; }
  3142. if ${ac_cv_prog_CXX+:} false; then :
  3143. $as_echo_n "(cached) " >&6
  3144. else
  3145. if test -n "$CXX"; then
  3146. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  3147. else
  3148. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3149. for as_dir in $PATH
  3150. do
  3151. IFS=$as_save_IFS
  3152. test -z "$as_dir" && as_dir=.
  3153. for ac_exec_ext in '' $ac_executable_extensions; do
  3154. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3155. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  3156. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3157. break 2
  3158. fi
  3159. done
  3160. done
  3161. IFS=$as_save_IFS
  3162. fi
  3163. fi
  3164. CXX=$ac_cv_prog_CXX
  3165. if test -n "$CXX"; then
  3166. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  3167. $as_echo "$CXX" >&6; }
  3168. else
  3169. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3170. $as_echo "no" >&6; }
  3171. fi
  3172. test -n "$CXX" && break
  3173. done
  3174. fi
  3175. if test -z "$CXX"; then
  3176. ac_ct_CXX=$CXX
  3177. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  3178. do
  3179. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3180. set dummy $ac_prog; ac_word=$2
  3181. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3182. $as_echo_n "checking for $ac_word... " >&6; }
  3183. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  3184. $as_echo_n "(cached) " >&6
  3185. else
  3186. if test -n "$ac_ct_CXX"; then
  3187. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  3188. else
  3189. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3190. for as_dir in $PATH
  3191. do
  3192. IFS=$as_save_IFS
  3193. test -z "$as_dir" && as_dir=.
  3194. for ac_exec_ext in '' $ac_executable_extensions; do
  3195. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3196. ac_cv_prog_ac_ct_CXX="$ac_prog"
  3197. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3198. break 2
  3199. fi
  3200. done
  3201. done
  3202. IFS=$as_save_IFS
  3203. fi
  3204. fi
  3205. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  3206. if test -n "$ac_ct_CXX"; then
  3207. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  3208. $as_echo "$ac_ct_CXX" >&6; }
  3209. else
  3210. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3211. $as_echo "no" >&6; }
  3212. fi
  3213. test -n "$ac_ct_CXX" && break
  3214. done
  3215. if test "x$ac_ct_CXX" = x; then
  3216. CXX="g++"
  3217. else
  3218. case $cross_compiling:$ac_tool_warned in
  3219. yes:)
  3220. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3221. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3222. ac_tool_warned=yes ;;
  3223. esac
  3224. CXX=$ac_ct_CXX
  3225. fi
  3226. fi
  3227. fi
  3228. fi
  3229. # Provide some information about the compiler.
  3230. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  3231. set X $ac_compile
  3232. ac_compiler=$2
  3233. for ac_option in --version -v -V -qversion; do
  3234. { { ac_try="$ac_compiler $ac_option >&5"
  3235. case "(($ac_try" in
  3236. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3237. *) ac_try_echo=$ac_try;;
  3238. esac
  3239. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3240. $as_echo "$ac_try_echo"; } >&5
  3241. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3242. ac_status=$?
  3243. if test -s conftest.err; then
  3244. sed '10a\
  3245. ... rest of stderr output deleted ...
  3246. 10q' conftest.err >conftest.er1
  3247. cat conftest.er1 >&5
  3248. fi
  3249. rm -f conftest.er1 conftest.err
  3250. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3251. test $ac_status = 0; }
  3252. done
  3253. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3254. /* end confdefs.h. */
  3255. int
  3256. main ()
  3257. {
  3258. ;
  3259. return 0;
  3260. }
  3261. _ACEOF
  3262. ac_clean_files_save=$ac_clean_files
  3263. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3264. # Try to create an executable without -o first, disregard a.out.
  3265. # It will help us diagnose broken compilers, and finding out an intuition
  3266. # of exeext.
  3267. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
  3268. $as_echo_n "checking whether the C++ compiler works... " >&6; }
  3269. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3270. # The possible output files:
  3271. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3272. ac_rmfiles=
  3273. for ac_file in $ac_files
  3274. do
  3275. case $ac_file in
  3276. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3277. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3278. esac
  3279. done
  3280. rm -f $ac_rmfiles
  3281. if { { ac_try="$ac_link_default"
  3282. case "(($ac_try" in
  3283. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3284. *) ac_try_echo=$ac_try;;
  3285. esac
  3286. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3287. $as_echo "$ac_try_echo"; } >&5
  3288. (eval "$ac_link_default") 2>&5
  3289. ac_status=$?
  3290. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3291. test $ac_status = 0; }; then :
  3292. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3293. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3294. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3295. # so that the user can short-circuit this test for compilers unknown to
  3296. # Autoconf.
  3297. for ac_file in $ac_files ''
  3298. do
  3299. test -f "$ac_file" || continue
  3300. case $ac_file in
  3301. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3302. ;;
  3303. [ab].out )
  3304. # We found the default executable, but exeext='' is most
  3305. # certainly right.
  3306. break;;
  3307. *.* )
  3308. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3309. then :; else
  3310. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3311. fi
  3312. # We set ac_cv_exeext here because the later test for it is not
  3313. # safe: cross compilers may not add the suffix if given an `-o'
  3314. # argument, so we may need to know it at that point already.
  3315. # Even if this section looks crufty: it has the advantage of
  3316. # actually working.
  3317. break;;
  3318. * )
  3319. break;;
  3320. esac
  3321. done
  3322. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3323. else
  3324. ac_file=''
  3325. fi
  3326. if test -z "$ac_file"; then :
  3327. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3328. $as_echo "no" >&6; }
  3329. $as_echo "$as_me: failed program was:" >&5
  3330. sed 's/^/| /' conftest.$ac_ext >&5
  3331. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3332. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3333. as_fn_error 77 "C++ compiler cannot create executables
  3334. See \`config.log' for more details" "$LINENO" 5; }
  3335. else
  3336. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3337. $as_echo "yes" >&6; }
  3338. fi
  3339. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
  3340. $as_echo_n "checking for C++ compiler default output file name... " >&6; }
  3341. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3342. $as_echo "$ac_file" >&6; }
  3343. ac_exeext=$ac_cv_exeext
  3344. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3345. ac_clean_files=$ac_clean_files_save
  3346. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3347. $as_echo_n "checking for suffix of executables... " >&6; }
  3348. if { { ac_try="$ac_link"
  3349. case "(($ac_try" in
  3350. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3351. *) ac_try_echo=$ac_try;;
  3352. esac
  3353. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3354. $as_echo "$ac_try_echo"; } >&5
  3355. (eval "$ac_link") 2>&5
  3356. ac_status=$?
  3357. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3358. test $ac_status = 0; }; then :
  3359. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3360. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3361. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3362. # `rm'.
  3363. for ac_file in conftest.exe conftest conftest.*; do
  3364. test -f "$ac_file" || continue
  3365. case $ac_file in
  3366. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3367. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3368. break;;
  3369. * ) break;;
  3370. esac
  3371. done
  3372. else
  3373. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3374. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3375. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3376. See \`config.log' for more details" "$LINENO" 5; }
  3377. fi
  3378. rm -f conftest conftest$ac_cv_exeext
  3379. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3380. $as_echo "$ac_cv_exeext" >&6; }
  3381. rm -f conftest.$ac_ext
  3382. EXEEXT=$ac_cv_exeext
  3383. ac_exeext=$EXEEXT
  3384. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3385. /* end confdefs.h. */
  3386. #include <stdio.h>
  3387. int
  3388. main ()
  3389. {
  3390. FILE *f = fopen ("conftest.out", "w");
  3391. return ferror (f) || fclose (f) != 0;
  3392. ;
  3393. return 0;
  3394. }
  3395. _ACEOF
  3396. ac_clean_files="$ac_clean_files conftest.out"
  3397. # Check that the compiler produces executables we can run. If not, either
  3398. # the compiler is broken, or we cross compile.
  3399. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3400. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3401. if test "$cross_compiling" != yes; then
  3402. { { ac_try="$ac_link"
  3403. case "(($ac_try" in
  3404. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3405. *) ac_try_echo=$ac_try;;
  3406. esac
  3407. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3408. $as_echo "$ac_try_echo"; } >&5
  3409. (eval "$ac_link") 2>&5
  3410. ac_status=$?
  3411. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3412. test $ac_status = 0; }
  3413. if { ac_try='./conftest$ac_cv_exeext'
  3414. { { case "(($ac_try" in
  3415. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3416. *) ac_try_echo=$ac_try;;
  3417. esac
  3418. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3419. $as_echo "$ac_try_echo"; } >&5
  3420. (eval "$ac_try") 2>&5
  3421. ac_status=$?
  3422. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3423. test $ac_status = 0; }; }; then
  3424. cross_compiling=no
  3425. else
  3426. if test "$cross_compiling" = maybe; then
  3427. cross_compiling=yes
  3428. else
  3429. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3430. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3431. as_fn_error $? "cannot run C++ compiled programs.
  3432. If you meant to cross compile, use \`--host'.
  3433. See \`config.log' for more details" "$LINENO" 5; }
  3434. fi
  3435. fi
  3436. fi
  3437. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3438. $as_echo "$cross_compiling" >&6; }
  3439. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3440. ac_clean_files=$ac_clean_files_save
  3441. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3442. $as_echo_n "checking for suffix of object files... " >&6; }
  3443. if ${ac_cv_objext+:} false; then :
  3444. $as_echo_n "(cached) " >&6
  3445. else
  3446. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3447. /* end confdefs.h. */
  3448. int
  3449. main ()
  3450. {
  3451. ;
  3452. return 0;
  3453. }
  3454. _ACEOF
  3455. rm -f conftest.o conftest.obj
  3456. if { { ac_try="$ac_compile"
  3457. case "(($ac_try" in
  3458. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3459. *) ac_try_echo=$ac_try;;
  3460. esac
  3461. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3462. $as_echo "$ac_try_echo"; } >&5
  3463. (eval "$ac_compile") 2>&5
  3464. ac_status=$?
  3465. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3466. test $ac_status = 0; }; then :
  3467. for ac_file in conftest.o conftest.obj conftest.*; do
  3468. test -f "$ac_file" || continue;
  3469. case $ac_file in
  3470. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3471. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3472. break;;
  3473. esac
  3474. done
  3475. else
  3476. $as_echo "$as_me: failed program was:" >&5
  3477. sed 's/^/| /' conftest.$ac_ext >&5
  3478. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3479. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3480. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3481. See \`config.log' for more details" "$LINENO" 5; }
  3482. fi
  3483. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3484. fi
  3485. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3486. $as_echo "$ac_cv_objext" >&6; }
  3487. OBJEXT=$ac_cv_objext
  3488. ac_objext=$OBJEXT
  3489. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  3490. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  3491. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  3492. $as_echo_n "(cached) " >&6
  3493. else
  3494. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3495. /* end confdefs.h. */
  3496. int
  3497. main ()
  3498. {
  3499. #ifndef __GNUC__
  3500. choke me
  3501. #endif
  3502. ;
  3503. return 0;
  3504. }
  3505. _ACEOF
  3506. if ac_fn_cxx_try_compile "$LINENO"; then :
  3507. ac_compiler_gnu=yes
  3508. else
  3509. ac_compiler_gnu=no
  3510. fi
  3511. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3512. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  3513. fi
  3514. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  3515. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  3516. if test $ac_compiler_gnu = yes; then
  3517. GXX=yes
  3518. else
  3519. GXX=
  3520. fi
  3521. ac_test_CXXFLAGS=${CXXFLAGS+set}
  3522. ac_save_CXXFLAGS=$CXXFLAGS
  3523. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  3524. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  3525. if ${ac_cv_prog_cxx_g+:} false; then :
  3526. $as_echo_n "(cached) " >&6
  3527. else
  3528. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  3529. ac_cxx_werror_flag=yes
  3530. ac_cv_prog_cxx_g=no
  3531. CXXFLAGS="-g"
  3532. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3533. /* end confdefs.h. */
  3534. int
  3535. main ()
  3536. {
  3537. ;
  3538. return 0;
  3539. }
  3540. _ACEOF
  3541. if ac_fn_cxx_try_compile "$LINENO"; then :
  3542. ac_cv_prog_cxx_g=yes
  3543. else
  3544. CXXFLAGS=""
  3545. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3546. /* end confdefs.h. */
  3547. int
  3548. main ()
  3549. {
  3550. ;
  3551. return 0;
  3552. }
  3553. _ACEOF
  3554. if ac_fn_cxx_try_compile "$LINENO"; then :
  3555. else
  3556. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3557. CXXFLAGS="-g"
  3558. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3559. /* end confdefs.h. */
  3560. int
  3561. main ()
  3562. {
  3563. ;
  3564. return 0;
  3565. }
  3566. _ACEOF
  3567. if ac_fn_cxx_try_compile "$LINENO"; then :
  3568. ac_cv_prog_cxx_g=yes
  3569. fi
  3570. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3571. fi
  3572. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3573. fi
  3574. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3575. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3576. fi
  3577. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  3578. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  3579. if test "$ac_test_CXXFLAGS" = set; then
  3580. CXXFLAGS=$ac_save_CXXFLAGS
  3581. elif test $ac_cv_prog_cxx_g = yes; then
  3582. if test "$GXX" = yes; then
  3583. CXXFLAGS="-g -O2"
  3584. else
  3585. CXXFLAGS="-g"
  3586. fi
  3587. else
  3588. if test "$GXX" = yes; then
  3589. CXXFLAGS="-O2"
  3590. else
  3591. CXXFLAGS=
  3592. fi
  3593. fi
  3594. ac_ext=c
  3595. ac_cpp='$CPP $CPPFLAGS'
  3596. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3597. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3598. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3599. DEPDIR="${am__leading_dot}deps"
  3600. ac_config_commands="$ac_config_commands depfiles"
  3601. am_make=${MAKE-make}
  3602. cat > confinc << 'END'
  3603. am__doit:
  3604. @echo this is the am__doit target
  3605. .PHONY: am__doit
  3606. END
  3607. # If we don't find an include directive, just comment out the code.
  3608. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3609. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3610. am__include="#"
  3611. am__quote=
  3612. _am_result=none
  3613. # First try GNU make style include.
  3614. echo "include confinc" > confmf
  3615. # Ignore all kinds of additional output from 'make'.
  3616. case `$am_make -s -f confmf 2> /dev/null` in #(
  3617. *the\ am__doit\ target*)
  3618. am__include=include
  3619. am__quote=
  3620. _am_result=GNU
  3621. ;;
  3622. esac
  3623. # Now try BSD make style include.
  3624. if test "$am__include" = "#"; then
  3625. echo '.include "confinc"' > confmf
  3626. case `$am_make -s -f confmf 2> /dev/null` in #(
  3627. *the\ am__doit\ target*)
  3628. am__include=.include
  3629. am__quote="\""
  3630. _am_result=BSD
  3631. ;;
  3632. esac
  3633. fi
  3634. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3635. $as_echo "$_am_result" >&6; }
  3636. rm -f confinc confmf
  3637. # Check whether --enable-dependency-tracking was given.
  3638. if test "${enable_dependency_tracking+set}" = set; then :
  3639. enableval=$enable_dependency_tracking;
  3640. fi
  3641. if test "x$enable_dependency_tracking" != xno; then
  3642. am_depcomp="$ac_aux_dir/depcomp"
  3643. AMDEPBACKSLASH='\'
  3644. am__nodep='_no'
  3645. fi
  3646. if test "x$enable_dependency_tracking" != xno; then
  3647. AMDEP_TRUE=
  3648. AMDEP_FALSE='#'
  3649. else
  3650. AMDEP_TRUE='#'
  3651. AMDEP_FALSE=
  3652. fi
  3653. depcc="$CXX" am_compiler_list=
  3654. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3655. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3656. if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
  3657. $as_echo_n "(cached) " >&6
  3658. else
  3659. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3660. # We make a subdir and do the tests there. Otherwise we can end up
  3661. # making bogus files that we don't know about and never remove. For
  3662. # instance it was reported that on HP-UX the gcc test will end up
  3663. # making a dummy file named 'D' -- because '-MD' means "put the output
  3664. # in D".
  3665. rm -rf conftest.dir
  3666. mkdir conftest.dir
  3667. # Copy depcomp to subdir because otherwise we won't find it if we're
  3668. # using a relative directory.
  3669. cp "$am_depcomp" conftest.dir
  3670. cd conftest.dir
  3671. # We will build objects and dependencies in a subdirectory because
  3672. # it helps to detect inapplicable dependency modes. For instance
  3673. # both Tru64's cc and ICC support -MD to output dependencies as a
  3674. # side effect of compilation, but ICC will put the dependencies in
  3675. # the current directory while Tru64 will put them in the object
  3676. # directory.
  3677. mkdir sub
  3678. am_cv_CXX_dependencies_compiler_type=none
  3679. if test "$am_compiler_list" = ""; then
  3680. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3681. fi
  3682. am__universal=false
  3683. case " $depcc " in #(
  3684. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3685. esac
  3686. for depmode in $am_compiler_list; do
  3687. # Setup a source with many dependencies, because some compilers
  3688. # like to wrap large dependency lists on column 80 (with \), and
  3689. # we should not choose a depcomp mode which is confused by this.
  3690. #
  3691. # We need to recreate these files for each test, as the compiler may
  3692. # overwrite some of them when testing with obscure command lines.
  3693. # This happens at least with the AIX C compiler.
  3694. : > sub/conftest.c
  3695. for i in 1 2 3 4 5 6; do
  3696. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3697. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  3698. # Solaris 10 /bin/sh.
  3699. echo '/* dummy */' > sub/conftst$i.h
  3700. done
  3701. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3702. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  3703. # mode. It turns out that the SunPro C++ compiler does not properly
  3704. # handle '-M -o', and we need to detect this. Also, some Intel
  3705. # versions had trouble with output in subdirs.
  3706. am__obj=sub/conftest.${OBJEXT-o}
  3707. am__minus_obj="-o $am__obj"
  3708. case $depmode in
  3709. gcc)
  3710. # This depmode causes a compiler race in universal mode.
  3711. test "$am__universal" = false || continue
  3712. ;;
  3713. nosideeffect)
  3714. # After this tag, mechanisms are not by side-effect, so they'll
  3715. # only be used when explicitly requested.
  3716. if test "x$enable_dependency_tracking" = xyes; then
  3717. continue
  3718. else
  3719. break
  3720. fi
  3721. ;;
  3722. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  3723. # This compiler won't grok '-c -o', but also, the minuso test has
  3724. # not run yet. These depmodes are late enough in the game, and
  3725. # so weak that their functioning should not be impacted.
  3726. am__obj=conftest.${OBJEXT-o}
  3727. am__minus_obj=
  3728. ;;
  3729. none) break ;;
  3730. esac
  3731. if depmode=$depmode \
  3732. source=sub/conftest.c object=$am__obj \
  3733. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3734. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3735. >/dev/null 2>conftest.err &&
  3736. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3737. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3738. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3739. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3740. # icc doesn't choke on unknown options, it will just issue warnings
  3741. # or remarks (even with -Werror). So we grep stderr for any message
  3742. # that says an option was ignored or not supported.
  3743. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3744. # icc: Command line warning: ignoring option '-M'; no argument required
  3745. # The diagnosis changed in icc 8.0:
  3746. # icc: Command line remark: option '-MP' not supported
  3747. if (grep 'ignoring option' conftest.err ||
  3748. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3749. am_cv_CXX_dependencies_compiler_type=$depmode
  3750. break
  3751. fi
  3752. fi
  3753. done
  3754. cd ..
  3755. rm -rf conftest.dir
  3756. else
  3757. am_cv_CXX_dependencies_compiler_type=none
  3758. fi
  3759. fi
  3760. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  3761. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  3762. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  3763. if
  3764. test "x$enable_dependency_tracking" != xno \
  3765. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  3766. am__fastdepCXX_TRUE=
  3767. am__fastdepCXX_FALSE='#'
  3768. else
  3769. am__fastdepCXX_TRUE='#'
  3770. am__fastdepCXX_FALSE=
  3771. fi
  3772. ac_ext=c
  3773. ac_cpp='$CPP $CPPFLAGS'
  3774. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3775. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3776. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3777. if test -n "$ac_tool_prefix"; then
  3778. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3779. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3780. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3781. $as_echo_n "checking for $ac_word... " >&6; }
  3782. if ${ac_cv_prog_CC+:} false; then :
  3783. $as_echo_n "(cached) " >&6
  3784. else
  3785. if test -n "$CC"; then
  3786. ac_cv_prog_CC="$CC" # Let the user override the test.
  3787. else
  3788. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3789. for as_dir in $PATH
  3790. do
  3791. IFS=$as_save_IFS
  3792. test -z "$as_dir" && as_dir=.
  3793. for ac_exec_ext in '' $ac_executable_extensions; do
  3794. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3795. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3796. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3797. break 2
  3798. fi
  3799. done
  3800. done
  3801. IFS=$as_save_IFS
  3802. fi
  3803. fi
  3804. CC=$ac_cv_prog_CC
  3805. if test -n "$CC"; then
  3806. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3807. $as_echo "$CC" >&6; }
  3808. else
  3809. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3810. $as_echo "no" >&6; }
  3811. fi
  3812. fi
  3813. if test -z "$ac_cv_prog_CC"; then
  3814. ac_ct_CC=$CC
  3815. # Extract the first word of "gcc", so it can be a program name with args.
  3816. set dummy gcc; ac_word=$2
  3817. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3818. $as_echo_n "checking for $ac_word... " >&6; }
  3819. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3820. $as_echo_n "(cached) " >&6
  3821. else
  3822. if test -n "$ac_ct_CC"; then
  3823. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3824. else
  3825. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3826. for as_dir in $PATH
  3827. do
  3828. IFS=$as_save_IFS
  3829. test -z "$as_dir" && as_dir=.
  3830. for ac_exec_ext in '' $ac_executable_extensions; do
  3831. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3832. ac_cv_prog_ac_ct_CC="gcc"
  3833. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3834. break 2
  3835. fi
  3836. done
  3837. done
  3838. IFS=$as_save_IFS
  3839. fi
  3840. fi
  3841. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3842. if test -n "$ac_ct_CC"; then
  3843. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3844. $as_echo "$ac_ct_CC" >&6; }
  3845. else
  3846. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3847. $as_echo "no" >&6; }
  3848. fi
  3849. if test "x$ac_ct_CC" = x; then
  3850. CC=""
  3851. else
  3852. case $cross_compiling:$ac_tool_warned in
  3853. yes:)
  3854. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3855. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3856. ac_tool_warned=yes ;;
  3857. esac
  3858. CC=$ac_ct_CC
  3859. fi
  3860. else
  3861. CC="$ac_cv_prog_CC"
  3862. fi
  3863. if test -z "$CC"; then
  3864. if test -n "$ac_tool_prefix"; then
  3865. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3866. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3867. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3868. $as_echo_n "checking for $ac_word... " >&6; }
  3869. if ${ac_cv_prog_CC+:} false; then :
  3870. $as_echo_n "(cached) " >&6
  3871. else
  3872. if test -n "$CC"; then
  3873. ac_cv_prog_CC="$CC" # Let the user override the test.
  3874. else
  3875. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3876. for as_dir in $PATH
  3877. do
  3878. IFS=$as_save_IFS
  3879. test -z "$as_dir" && as_dir=.
  3880. for ac_exec_ext in '' $ac_executable_extensions; do
  3881. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3882. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3883. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3884. break 2
  3885. fi
  3886. done
  3887. done
  3888. IFS=$as_save_IFS
  3889. fi
  3890. fi
  3891. CC=$ac_cv_prog_CC
  3892. if test -n "$CC"; then
  3893. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3894. $as_echo "$CC" >&6; }
  3895. else
  3896. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3897. $as_echo "no" >&6; }
  3898. fi
  3899. fi
  3900. fi
  3901. if test -z "$CC"; then
  3902. # Extract the first word of "cc", so it can be a program name with args.
  3903. set dummy cc; ac_word=$2
  3904. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3905. $as_echo_n "checking for $ac_word... " >&6; }
  3906. if ${ac_cv_prog_CC+:} false; then :
  3907. $as_echo_n "(cached) " >&6
  3908. else
  3909. if test -n "$CC"; then
  3910. ac_cv_prog_CC="$CC" # Let the user override the test.
  3911. else
  3912. ac_prog_rejected=no
  3913. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3914. for as_dir in $PATH
  3915. do
  3916. IFS=$as_save_IFS
  3917. test -z "$as_dir" && as_dir=.
  3918. for ac_exec_ext in '' $ac_executable_extensions; do
  3919. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3920. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3921. ac_prog_rejected=yes
  3922. continue
  3923. fi
  3924. ac_cv_prog_CC="cc"
  3925. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3926. break 2
  3927. fi
  3928. done
  3929. done
  3930. IFS=$as_save_IFS
  3931. if test $ac_prog_rejected = yes; then
  3932. # We found a bogon in the path, so make sure we never use it.
  3933. set dummy $ac_cv_prog_CC
  3934. shift
  3935. if test $# != 0; then
  3936. # We chose a different compiler from the bogus one.
  3937. # However, it has the same basename, so the bogon will be chosen
  3938. # first if we set CC to just the basename; use the full file name.
  3939. shift
  3940. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3941. fi
  3942. fi
  3943. fi
  3944. fi
  3945. CC=$ac_cv_prog_CC
  3946. if test -n "$CC"; then
  3947. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3948. $as_echo "$CC" >&6; }
  3949. else
  3950. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3951. $as_echo "no" >&6; }
  3952. fi
  3953. fi
  3954. if test -z "$CC"; then
  3955. if test -n "$ac_tool_prefix"; then
  3956. for ac_prog in cl.exe
  3957. do
  3958. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3959. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3960. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3961. $as_echo_n "checking for $ac_word... " >&6; }
  3962. if ${ac_cv_prog_CC+:} false; then :
  3963. $as_echo_n "(cached) " >&6
  3964. else
  3965. if test -n "$CC"; then
  3966. ac_cv_prog_CC="$CC" # Let the user override the test.
  3967. else
  3968. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3969. for as_dir in $PATH
  3970. do
  3971. IFS=$as_save_IFS
  3972. test -z "$as_dir" && as_dir=.
  3973. for ac_exec_ext in '' $ac_executable_extensions; do
  3974. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3975. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3976. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3977. break 2
  3978. fi
  3979. done
  3980. done
  3981. IFS=$as_save_IFS
  3982. fi
  3983. fi
  3984. CC=$ac_cv_prog_CC
  3985. if test -n "$CC"; then
  3986. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3987. $as_echo "$CC" >&6; }
  3988. else
  3989. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3990. $as_echo "no" >&6; }
  3991. fi
  3992. test -n "$CC" && break
  3993. done
  3994. fi
  3995. if test -z "$CC"; then
  3996. ac_ct_CC=$CC
  3997. for ac_prog in cl.exe
  3998. do
  3999. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4000. set dummy $ac_prog; ac_word=$2
  4001. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4002. $as_echo_n "checking for $ac_word... " >&6; }
  4003. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  4004. $as_echo_n "(cached) " >&6
  4005. else
  4006. if test -n "$ac_ct_CC"; then
  4007. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4008. else
  4009. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4010. for as_dir in $PATH
  4011. do
  4012. IFS=$as_save_IFS
  4013. test -z "$as_dir" && as_dir=.
  4014. for ac_exec_ext in '' $ac_executable_extensions; do
  4015. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4016. ac_cv_prog_ac_ct_CC="$ac_prog"
  4017. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4018. break 2
  4019. fi
  4020. done
  4021. done
  4022. IFS=$as_save_IFS
  4023. fi
  4024. fi
  4025. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4026. if test -n "$ac_ct_CC"; then
  4027. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  4028. $as_echo "$ac_ct_CC" >&6; }
  4029. else
  4030. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4031. $as_echo "no" >&6; }
  4032. fi
  4033. test -n "$ac_ct_CC" && break
  4034. done
  4035. if test "x$ac_ct_CC" = x; then
  4036. CC=""
  4037. else
  4038. case $cross_compiling:$ac_tool_warned in
  4039. yes:)
  4040. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4041. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4042. ac_tool_warned=yes ;;
  4043. esac
  4044. CC=$ac_ct_CC
  4045. fi
  4046. fi
  4047. fi
  4048. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4049. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4050. as_fn_error $? "no acceptable C compiler found in \$PATH
  4051. See \`config.log' for more details" "$LINENO" 5; }
  4052. # Provide some information about the compiler.
  4053. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  4054. set X $ac_compile
  4055. ac_compiler=$2
  4056. for ac_option in --version -v -V -qversion; do
  4057. { { ac_try="$ac_compiler $ac_option >&5"
  4058. case "(($ac_try" in
  4059. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4060. *) ac_try_echo=$ac_try;;
  4061. esac
  4062. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4063. $as_echo "$ac_try_echo"; } >&5
  4064. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  4065. ac_status=$?
  4066. if test -s conftest.err; then
  4067. sed '10a\
  4068. ... rest of stderr output deleted ...
  4069. 10q' conftest.err >conftest.er1
  4070. cat conftest.er1 >&5
  4071. fi
  4072. rm -f conftest.er1 conftest.err
  4073. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4074. test $ac_status = 0; }
  4075. done
  4076. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  4077. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  4078. if ${ac_cv_c_compiler_gnu+:} false; then :
  4079. $as_echo_n "(cached) " >&6
  4080. else
  4081. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4082. /* end confdefs.h. */
  4083. int
  4084. main ()
  4085. {
  4086. #ifndef __GNUC__
  4087. choke me
  4088. #endif
  4089. ;
  4090. return 0;
  4091. }
  4092. _ACEOF
  4093. if ac_fn_c_try_compile "$LINENO"; then :
  4094. ac_compiler_gnu=yes
  4095. else
  4096. ac_compiler_gnu=no
  4097. fi
  4098. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4099. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  4100. fi
  4101. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  4102. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  4103. if test $ac_compiler_gnu = yes; then
  4104. GCC=yes
  4105. else
  4106. GCC=
  4107. fi
  4108. ac_test_CFLAGS=${CFLAGS+set}
  4109. ac_save_CFLAGS=$CFLAGS
  4110. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  4111. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  4112. if ${ac_cv_prog_cc_g+:} false; then :
  4113. $as_echo_n "(cached) " >&6
  4114. else
  4115. ac_save_c_werror_flag=$ac_c_werror_flag
  4116. ac_c_werror_flag=yes
  4117. ac_cv_prog_cc_g=no
  4118. CFLAGS="-g"
  4119. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4120. /* end confdefs.h. */
  4121. int
  4122. main ()
  4123. {
  4124. ;
  4125. return 0;
  4126. }
  4127. _ACEOF
  4128. if ac_fn_c_try_compile "$LINENO"; then :
  4129. ac_cv_prog_cc_g=yes
  4130. else
  4131. CFLAGS=""
  4132. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4133. /* end confdefs.h. */
  4134. int
  4135. main ()
  4136. {
  4137. ;
  4138. return 0;
  4139. }
  4140. _ACEOF
  4141. if ac_fn_c_try_compile "$LINENO"; then :
  4142. else
  4143. ac_c_werror_flag=$ac_save_c_werror_flag
  4144. CFLAGS="-g"
  4145. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4146. /* end confdefs.h. */
  4147. int
  4148. main ()
  4149. {
  4150. ;
  4151. return 0;
  4152. }
  4153. _ACEOF
  4154. if ac_fn_c_try_compile "$LINENO"; then :
  4155. ac_cv_prog_cc_g=yes
  4156. fi
  4157. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4158. fi
  4159. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4160. fi
  4161. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4162. ac_c_werror_flag=$ac_save_c_werror_flag
  4163. fi
  4164. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  4165. $as_echo "$ac_cv_prog_cc_g" >&6; }
  4166. if test "$ac_test_CFLAGS" = set; then
  4167. CFLAGS=$ac_save_CFLAGS
  4168. elif test $ac_cv_prog_cc_g = yes; then
  4169. if test "$GCC" = yes; then
  4170. CFLAGS="-g -O2"
  4171. else
  4172. CFLAGS="-g"
  4173. fi
  4174. else
  4175. if test "$GCC" = yes; then
  4176. CFLAGS="-O2"
  4177. else
  4178. CFLAGS=
  4179. fi
  4180. fi
  4181. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  4182. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  4183. if ${ac_cv_prog_cc_c89+:} false; then :
  4184. $as_echo_n "(cached) " >&6
  4185. else
  4186. ac_cv_prog_cc_c89=no
  4187. ac_save_CC=$CC
  4188. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4189. /* end confdefs.h. */
  4190. #include <stdarg.h>
  4191. #include <stdio.h>
  4192. struct stat;
  4193. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  4194. struct buf { int x; };
  4195. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  4196. static char *e (p, i)
  4197. char **p;
  4198. int i;
  4199. {
  4200. return p[i];
  4201. }
  4202. static char *f (char * (*g) (char **, int), char **p, ...)
  4203. {
  4204. char *s;
  4205. va_list v;
  4206. va_start (v,p);
  4207. s = g (p, va_arg (v,int));
  4208. va_end (v);
  4209. return s;
  4210. }
  4211. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  4212. function prototypes and stuff, but not '\xHH' hex character constants.
  4213. These don't provoke an error unfortunately, instead are silently treated
  4214. as 'x'. The following induces an error, until -std is added to get
  4215. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  4216. array size at least. It's necessary to write '\x00'==0 to get something
  4217. that's true only with -std. */
  4218. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  4219. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  4220. inside strings and character constants. */
  4221. #define FOO(x) 'x'
  4222. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  4223. int test (int i, double x);
  4224. struct s1 {int (*f) (int a);};
  4225. struct s2 {int (*f) (double a);};
  4226. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4227. int argc;
  4228. char **argv;
  4229. int
  4230. main ()
  4231. {
  4232. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  4233. ;
  4234. return 0;
  4235. }
  4236. _ACEOF
  4237. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  4238. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4239. do
  4240. CC="$ac_save_CC $ac_arg"
  4241. if ac_fn_c_try_compile "$LINENO"; then :
  4242. ac_cv_prog_cc_c89=$ac_arg
  4243. fi
  4244. rm -f core conftest.err conftest.$ac_objext
  4245. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4246. done
  4247. rm -f conftest.$ac_ext
  4248. CC=$ac_save_CC
  4249. fi
  4250. # AC_CACHE_VAL
  4251. case "x$ac_cv_prog_cc_c89" in
  4252. x)
  4253. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4254. $as_echo "none needed" >&6; } ;;
  4255. xno)
  4256. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4257. $as_echo "unsupported" >&6; } ;;
  4258. *)
  4259. CC="$CC $ac_cv_prog_cc_c89"
  4260. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4261. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  4262. esac
  4263. if test "x$ac_cv_prog_cc_c89" != xno; then :
  4264. fi
  4265. ac_ext=c
  4266. ac_cpp='$CPP $CPPFLAGS'
  4267. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4268. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4269. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4270. depcc="$CC" am_compiler_list=
  4271. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4272. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4273. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  4274. $as_echo_n "(cached) " >&6
  4275. else
  4276. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4277. # We make a subdir and do the tests there. Otherwise we can end up
  4278. # making bogus files that we don't know about and never remove. For
  4279. # instance it was reported that on HP-UX the gcc test will end up
  4280. # making a dummy file named 'D' -- because '-MD' means "put the output
  4281. # in D".
  4282. rm -rf conftest.dir
  4283. mkdir conftest.dir
  4284. # Copy depcomp to subdir because otherwise we won't find it if we're
  4285. # using a relative directory.
  4286. cp "$am_depcomp" conftest.dir
  4287. cd conftest.dir
  4288. # We will build objects and dependencies in a subdirectory because
  4289. # it helps to detect inapplicable dependency modes. For instance
  4290. # both Tru64's cc and ICC support -MD to output dependencies as a
  4291. # side effect of compilation, but ICC will put the dependencies in
  4292. # the current directory while Tru64 will put them in the object
  4293. # directory.
  4294. mkdir sub
  4295. am_cv_CC_dependencies_compiler_type=none
  4296. if test "$am_compiler_list" = ""; then
  4297. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4298. fi
  4299. am__universal=false
  4300. case " $depcc " in #(
  4301. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  4302. esac
  4303. for depmode in $am_compiler_list; do
  4304. # Setup a source with many dependencies, because some compilers
  4305. # like to wrap large dependency lists on column 80 (with \), and
  4306. # we should not choose a depcomp mode which is confused by this.
  4307. #
  4308. # We need to recreate these files for each test, as the compiler may
  4309. # overwrite some of them when testing with obscure command lines.
  4310. # This happens at least with the AIX C compiler.
  4311. : > sub/conftest.c
  4312. for i in 1 2 3 4 5 6; do
  4313. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4314. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  4315. # Solaris 10 /bin/sh.
  4316. echo '/* dummy */' > sub/conftst$i.h
  4317. done
  4318. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4319. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  4320. # mode. It turns out that the SunPro C++ compiler does not properly
  4321. # handle '-M -o', and we need to detect this. Also, some Intel
  4322. # versions had trouble with output in subdirs.
  4323. am__obj=sub/conftest.${OBJEXT-o}
  4324. am__minus_obj="-o $am__obj"
  4325. case $depmode in
  4326. gcc)
  4327. # This depmode causes a compiler race in universal mode.
  4328. test "$am__universal" = false || continue
  4329. ;;
  4330. nosideeffect)
  4331. # After this tag, mechanisms are not by side-effect, so they'll
  4332. # only be used when explicitly requested.
  4333. if test "x$enable_dependency_tracking" = xyes; then
  4334. continue
  4335. else
  4336. break
  4337. fi
  4338. ;;
  4339. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  4340. # This compiler won't grok '-c -o', but also, the minuso test has
  4341. # not run yet. These depmodes are late enough in the game, and
  4342. # so weak that their functioning should not be impacted.
  4343. am__obj=conftest.${OBJEXT-o}
  4344. am__minus_obj=
  4345. ;;
  4346. none) break ;;
  4347. esac
  4348. if depmode=$depmode \
  4349. source=sub/conftest.c object=$am__obj \
  4350. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4351. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4352. >/dev/null 2>conftest.err &&
  4353. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4354. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4355. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4356. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4357. # icc doesn't choke on unknown options, it will just issue warnings
  4358. # or remarks (even with -Werror). So we grep stderr for any message
  4359. # that says an option was ignored or not supported.
  4360. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4361. # icc: Command line warning: ignoring option '-M'; no argument required
  4362. # The diagnosis changed in icc 8.0:
  4363. # icc: Command line remark: option '-MP' not supported
  4364. if (grep 'ignoring option' conftest.err ||
  4365. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4366. am_cv_CC_dependencies_compiler_type=$depmode
  4367. break
  4368. fi
  4369. fi
  4370. done
  4371. cd ..
  4372. rm -rf conftest.dir
  4373. else
  4374. am_cv_CC_dependencies_compiler_type=none
  4375. fi
  4376. fi
  4377. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  4378. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  4379. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4380. if
  4381. test "x$enable_dependency_tracking" != xno \
  4382. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4383. am__fastdepCC_TRUE=
  4384. am__fastdepCC_FALSE='#'
  4385. else
  4386. am__fastdepCC_TRUE='#'
  4387. am__fastdepCC_FALSE=
  4388. fi
  4389. if test "x$CC" != xcc; then
  4390. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
  4391. $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
  4392. else
  4393. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
  4394. $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
  4395. fi
  4396. set dummy $CC; ac_cc=`$as_echo "$2" |
  4397. sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  4398. if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
  4399. $as_echo_n "(cached) " >&6
  4400. else
  4401. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4402. /* end confdefs.h. */
  4403. int
  4404. main ()
  4405. {
  4406. ;
  4407. return 0;
  4408. }
  4409. _ACEOF
  4410. # Make sure it works both with $CC and with simple cc.
  4411. # We do the test twice because some compilers refuse to overwrite an
  4412. # existing .o file with -o, though they will create one.
  4413. ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  4414. rm -f conftest2.*
  4415. if { { case "(($ac_try" in
  4416. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4417. *) ac_try_echo=$ac_try;;
  4418. esac
  4419. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4420. $as_echo "$ac_try_echo"; } >&5
  4421. (eval "$ac_try") 2>&5
  4422. ac_status=$?
  4423. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4424. test $ac_status = 0; } &&
  4425. test -f conftest2.$ac_objext && { { case "(($ac_try" in
  4426. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4427. *) ac_try_echo=$ac_try;;
  4428. esac
  4429. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4430. $as_echo "$ac_try_echo"; } >&5
  4431. (eval "$ac_try") 2>&5
  4432. ac_status=$?
  4433. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4434. test $ac_status = 0; };
  4435. then
  4436. eval ac_cv_prog_cc_${ac_cc}_c_o=yes
  4437. if test "x$CC" != xcc; then
  4438. # Test first that cc exists at all.
  4439. if { ac_try='cc -c conftest.$ac_ext >&5'
  4440. { { case "(($ac_try" in
  4441. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4442. *) ac_try_echo=$ac_try;;
  4443. esac
  4444. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4445. $as_echo "$ac_try_echo"; } >&5
  4446. (eval "$ac_try") 2>&5
  4447. ac_status=$?
  4448. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4449. test $ac_status = 0; }; }; then
  4450. ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  4451. rm -f conftest2.*
  4452. if { { case "(($ac_try" in
  4453. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4454. *) ac_try_echo=$ac_try;;
  4455. esac
  4456. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4457. $as_echo "$ac_try_echo"; } >&5
  4458. (eval "$ac_try") 2>&5
  4459. ac_status=$?
  4460. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4461. test $ac_status = 0; } &&
  4462. test -f conftest2.$ac_objext && { { case "(($ac_try" in
  4463. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4464. *) ac_try_echo=$ac_try;;
  4465. esac
  4466. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4467. $as_echo "$ac_try_echo"; } >&5
  4468. (eval "$ac_try") 2>&5
  4469. ac_status=$?
  4470. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4471. test $ac_status = 0; };
  4472. then
  4473. # cc works too.
  4474. :
  4475. else
  4476. # cc exists but doesn't like -o.
  4477. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  4478. fi
  4479. fi
  4480. fi
  4481. else
  4482. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  4483. fi
  4484. rm -f core conftest*
  4485. fi
  4486. if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
  4487. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4488. $as_echo "yes" >&6; }
  4489. else
  4490. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4491. $as_echo "no" >&6; }
  4492. $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
  4493. fi
  4494. # FIXME: we rely on the cache variable name because
  4495. # there is no other way.
  4496. set dummy $CC
  4497. am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  4498. eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
  4499. if test "$am_t" != yes; then
  4500. # Losing compiler, so override with the script.
  4501. # FIXME: It is wrong to rewrite CC.
  4502. # But if we don't then we get into trouble of one sort or another.
  4503. # A longer-term fix would be to have automake use am__CC in this case,
  4504. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  4505. CC="$am_aux_dir/compile $CC"
  4506. fi
  4507. # By default we simply use the C compiler to build assembly code.
  4508. test "${CCAS+set}" = set || CCAS=$CC
  4509. test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
  4510. depcc="$CCAS" am_compiler_list=
  4511. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4512. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4513. if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
  4514. $as_echo_n "(cached) " >&6
  4515. else
  4516. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4517. # We make a subdir and do the tests there. Otherwise we can end up
  4518. # making bogus files that we don't know about and never remove. For
  4519. # instance it was reported that on HP-UX the gcc test will end up
  4520. # making a dummy file named 'D' -- because '-MD' means "put the output
  4521. # in D".
  4522. rm -rf conftest.dir
  4523. mkdir conftest.dir
  4524. # Copy depcomp to subdir because otherwise we won't find it if we're
  4525. # using a relative directory.
  4526. cp "$am_depcomp" conftest.dir
  4527. cd conftest.dir
  4528. # We will build objects and dependencies in a subdirectory because
  4529. # it helps to detect inapplicable dependency modes. For instance
  4530. # both Tru64's cc and ICC support -MD to output dependencies as a
  4531. # side effect of compilation, but ICC will put the dependencies in
  4532. # the current directory while Tru64 will put them in the object
  4533. # directory.
  4534. mkdir sub
  4535. am_cv_CCAS_dependencies_compiler_type=none
  4536. if test "$am_compiler_list" = ""; then
  4537. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4538. fi
  4539. am__universal=false
  4540. for depmode in $am_compiler_list; do
  4541. # Setup a source with many dependencies, because some compilers
  4542. # like to wrap large dependency lists on column 80 (with \), and
  4543. # we should not choose a depcomp mode which is confused by this.
  4544. #
  4545. # We need to recreate these files for each test, as the compiler may
  4546. # overwrite some of them when testing with obscure command lines.
  4547. # This happens at least with the AIX C compiler.
  4548. : > sub/conftest.c
  4549. for i in 1 2 3 4 5 6; do
  4550. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4551. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  4552. # Solaris 10 /bin/sh.
  4553. echo '/* dummy */' > sub/conftst$i.h
  4554. done
  4555. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4556. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  4557. # mode. It turns out that the SunPro C++ compiler does not properly
  4558. # handle '-M -o', and we need to detect this. Also, some Intel
  4559. # versions had trouble with output in subdirs.
  4560. am__obj=sub/conftest.${OBJEXT-o}
  4561. am__minus_obj="-o $am__obj"
  4562. case $depmode in
  4563. gcc)
  4564. # This depmode causes a compiler race in universal mode.
  4565. test "$am__universal" = false || continue
  4566. ;;
  4567. nosideeffect)
  4568. # After this tag, mechanisms are not by side-effect, so they'll
  4569. # only be used when explicitly requested.
  4570. if test "x$enable_dependency_tracking" = xyes; then
  4571. continue
  4572. else
  4573. break
  4574. fi
  4575. ;;
  4576. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  4577. # This compiler won't grok '-c -o', but also, the minuso test has
  4578. # not run yet. These depmodes are late enough in the game, and
  4579. # so weak that their functioning should not be impacted.
  4580. am__obj=conftest.${OBJEXT-o}
  4581. am__minus_obj=
  4582. ;;
  4583. none) break ;;
  4584. esac
  4585. if depmode=$depmode \
  4586. source=sub/conftest.c object=$am__obj \
  4587. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4588. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4589. >/dev/null 2>conftest.err &&
  4590. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4591. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4592. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4593. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4594. # icc doesn't choke on unknown options, it will just issue warnings
  4595. # or remarks (even with -Werror). So we grep stderr for any message
  4596. # that says an option was ignored or not supported.
  4597. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4598. # icc: Command line warning: ignoring option '-M'; no argument required
  4599. # The diagnosis changed in icc 8.0:
  4600. # icc: Command line remark: option '-MP' not supported
  4601. if (grep 'ignoring option' conftest.err ||
  4602. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4603. am_cv_CCAS_dependencies_compiler_type=$depmode
  4604. break
  4605. fi
  4606. fi
  4607. done
  4608. cd ..
  4609. rm -rf conftest.dir
  4610. else
  4611. am_cv_CCAS_dependencies_compiler_type=none
  4612. fi
  4613. fi
  4614. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
  4615. $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
  4616. CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
  4617. if
  4618. test "x$enable_dependency_tracking" != xno \
  4619. && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
  4620. am__fastdepCCAS_TRUE=
  4621. am__fastdepCCAS_FALSE='#'
  4622. else
  4623. am__fastdepCCAS_TRUE='#'
  4624. am__fastdepCCAS_FALSE=
  4625. fi
  4626. # disable static libs by default - we only use a couple
  4627. # Check whether --enable-static was given.
  4628. if test "${enable_static+set}" = set; then :
  4629. enableval=$enable_static; p=${PACKAGE-default}
  4630. case $enableval in
  4631. yes) enable_static=yes ;;
  4632. no) enable_static=no ;;
  4633. *)
  4634. enable_static=no
  4635. # Look at the argument we got. We use all the common list separators.
  4636. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  4637. for pkg in $enableval; do
  4638. IFS="$lt_save_ifs"
  4639. if test "X$pkg" = "X$p"; then
  4640. enable_static=yes
  4641. fi
  4642. done
  4643. IFS="$lt_save_ifs"
  4644. ;;
  4645. esac
  4646. else
  4647. enable_static=no
  4648. fi
  4649. case `pwd` in
  4650. *\ * | *\ *)
  4651. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  4652. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  4653. esac
  4654. macro_version='2.4.2'
  4655. macro_revision='1.3337'
  4656. ltmain="$ac_aux_dir/ltmain.sh"
  4657. # Backslashify metacharacters that are still active within
  4658. # double-quoted strings.
  4659. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  4660. # Same as above, but do not quote variable references.
  4661. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  4662. # Sed substitution to delay expansion of an escaped shell variable in a
  4663. # double_quote_subst'ed string.
  4664. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  4665. # Sed substitution to delay expansion of an escaped single quote.
  4666. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  4667. # Sed substitution to avoid accidental globbing in evaled expressions
  4668. no_glob_subst='s/\*/\\\*/g'
  4669. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  4670. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  4671. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  4672. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  4673. $as_echo_n "checking how to print strings... " >&6; }
  4674. # Test print first, because it will be a builtin if present.
  4675. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  4676. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  4677. ECHO='print -r --'
  4678. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  4679. ECHO='printf %s\n'
  4680. else
  4681. # Use this function as a fallback that always works.
  4682. func_fallback_echo ()
  4683. {
  4684. eval 'cat <<_LTECHO_EOF
  4685. $1
  4686. _LTECHO_EOF'
  4687. }
  4688. ECHO='func_fallback_echo'
  4689. fi
  4690. # func_echo_all arg...
  4691. # Invoke $ECHO with all args, space-separated.
  4692. func_echo_all ()
  4693. {
  4694. $ECHO ""
  4695. }
  4696. case "$ECHO" in
  4697. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  4698. $as_echo "printf" >&6; } ;;
  4699. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  4700. $as_echo "print -r" >&6; } ;;
  4701. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  4702. $as_echo "cat" >&6; } ;;
  4703. esac
  4704. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4705. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4706. if ${ac_cv_path_SED+:} false; then :
  4707. $as_echo_n "(cached) " >&6
  4708. else
  4709. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4710. for ac_i in 1 2 3 4 5 6 7; do
  4711. ac_script="$ac_script$as_nl$ac_script"
  4712. done
  4713. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4714. { ac_script=; unset ac_script;}
  4715. if test -z "$SED"; then
  4716. ac_path_SED_found=false
  4717. # Loop through the user's path and test for each of PROGNAME-LIST
  4718. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4719. for as_dir in $PATH
  4720. do
  4721. IFS=$as_save_IFS
  4722. test -z "$as_dir" && as_dir=.
  4723. for ac_prog in sed gsed; do
  4724. for ac_exec_ext in '' $ac_executable_extensions; do
  4725. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4726. as_fn_executable_p "$ac_path_SED" || continue
  4727. # Check for GNU ac_path_SED and select it if it is found.
  4728. # Check for GNU $ac_path_SED
  4729. case `"$ac_path_SED" --version 2>&1` in
  4730. *GNU*)
  4731. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4732. *)
  4733. ac_count=0
  4734. $as_echo_n 0123456789 >"conftest.in"
  4735. while :
  4736. do
  4737. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4738. mv "conftest.tmp" "conftest.in"
  4739. cp "conftest.in" "conftest.nl"
  4740. $as_echo '' >> "conftest.nl"
  4741. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4742. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4743. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4744. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4745. # Best one so far, save it but keep looking for a better one
  4746. ac_cv_path_SED="$ac_path_SED"
  4747. ac_path_SED_max=$ac_count
  4748. fi
  4749. # 10*(2^10) chars as input seems more than enough
  4750. test $ac_count -gt 10 && break
  4751. done
  4752. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4753. esac
  4754. $ac_path_SED_found && break 3
  4755. done
  4756. done
  4757. done
  4758. IFS=$as_save_IFS
  4759. if test -z "$ac_cv_path_SED"; then
  4760. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4761. fi
  4762. else
  4763. ac_cv_path_SED=$SED
  4764. fi
  4765. fi
  4766. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4767. $as_echo "$ac_cv_path_SED" >&6; }
  4768. SED="$ac_cv_path_SED"
  4769. rm -f conftest.sed
  4770. test -z "$SED" && SED=sed
  4771. Xsed="$SED -e 1s/^X//"
  4772. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4773. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4774. if ${ac_cv_path_GREP+:} false; then :
  4775. $as_echo_n "(cached) " >&6
  4776. else
  4777. if test -z "$GREP"; then
  4778. ac_path_GREP_found=false
  4779. # Loop through the user's path and test for each of PROGNAME-LIST
  4780. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4781. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4782. do
  4783. IFS=$as_save_IFS
  4784. test -z "$as_dir" && as_dir=.
  4785. for ac_prog in grep ggrep; do
  4786. for ac_exec_ext in '' $ac_executable_extensions; do
  4787. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4788. as_fn_executable_p "$ac_path_GREP" || continue
  4789. # Check for GNU ac_path_GREP and select it if it is found.
  4790. # Check for GNU $ac_path_GREP
  4791. case `"$ac_path_GREP" --version 2>&1` in
  4792. *GNU*)
  4793. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4794. *)
  4795. ac_count=0
  4796. $as_echo_n 0123456789 >"conftest.in"
  4797. while :
  4798. do
  4799. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4800. mv "conftest.tmp" "conftest.in"
  4801. cp "conftest.in" "conftest.nl"
  4802. $as_echo 'GREP' >> "conftest.nl"
  4803. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4804. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4805. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4806. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4807. # Best one so far, save it but keep looking for a better one
  4808. ac_cv_path_GREP="$ac_path_GREP"
  4809. ac_path_GREP_max=$ac_count
  4810. fi
  4811. # 10*(2^10) chars as input seems more than enough
  4812. test $ac_count -gt 10 && break
  4813. done
  4814. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4815. esac
  4816. $ac_path_GREP_found && break 3
  4817. done
  4818. done
  4819. done
  4820. IFS=$as_save_IFS
  4821. if test -z "$ac_cv_path_GREP"; then
  4822. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4823. fi
  4824. else
  4825. ac_cv_path_GREP=$GREP
  4826. fi
  4827. fi
  4828. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4829. $as_echo "$ac_cv_path_GREP" >&6; }
  4830. GREP="$ac_cv_path_GREP"
  4831. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4832. $as_echo_n "checking for egrep... " >&6; }
  4833. if ${ac_cv_path_EGREP+:} false; then :
  4834. $as_echo_n "(cached) " >&6
  4835. else
  4836. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4837. then ac_cv_path_EGREP="$GREP -E"
  4838. else
  4839. if test -z "$EGREP"; then
  4840. ac_path_EGREP_found=false
  4841. # Loop through the user's path and test for each of PROGNAME-LIST
  4842. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4843. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4844. do
  4845. IFS=$as_save_IFS
  4846. test -z "$as_dir" && as_dir=.
  4847. for ac_prog in egrep; do
  4848. for ac_exec_ext in '' $ac_executable_extensions; do
  4849. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4850. as_fn_executable_p "$ac_path_EGREP" || continue
  4851. # Check for GNU ac_path_EGREP and select it if it is found.
  4852. # Check for GNU $ac_path_EGREP
  4853. case `"$ac_path_EGREP" --version 2>&1` in
  4854. *GNU*)
  4855. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4856. *)
  4857. ac_count=0
  4858. $as_echo_n 0123456789 >"conftest.in"
  4859. while :
  4860. do
  4861. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4862. mv "conftest.tmp" "conftest.in"
  4863. cp "conftest.in" "conftest.nl"
  4864. $as_echo 'EGREP' >> "conftest.nl"
  4865. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4866. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4867. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4868. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4869. # Best one so far, save it but keep looking for a better one
  4870. ac_cv_path_EGREP="$ac_path_EGREP"
  4871. ac_path_EGREP_max=$ac_count
  4872. fi
  4873. # 10*(2^10) chars as input seems more than enough
  4874. test $ac_count -gt 10 && break
  4875. done
  4876. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4877. esac
  4878. $ac_path_EGREP_found && break 3
  4879. done
  4880. done
  4881. done
  4882. IFS=$as_save_IFS
  4883. if test -z "$ac_cv_path_EGREP"; then
  4884. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4885. fi
  4886. else
  4887. ac_cv_path_EGREP=$EGREP
  4888. fi
  4889. fi
  4890. fi
  4891. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4892. $as_echo "$ac_cv_path_EGREP" >&6; }
  4893. EGREP="$ac_cv_path_EGREP"
  4894. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4895. $as_echo_n "checking for fgrep... " >&6; }
  4896. if ${ac_cv_path_FGREP+:} false; then :
  4897. $as_echo_n "(cached) " >&6
  4898. else
  4899. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4900. then ac_cv_path_FGREP="$GREP -F"
  4901. else
  4902. if test -z "$FGREP"; then
  4903. ac_path_FGREP_found=false
  4904. # Loop through the user's path and test for each of PROGNAME-LIST
  4905. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4906. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4907. do
  4908. IFS=$as_save_IFS
  4909. test -z "$as_dir" && as_dir=.
  4910. for ac_prog in fgrep; do
  4911. for ac_exec_ext in '' $ac_executable_extensions; do
  4912. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  4913. as_fn_executable_p "$ac_path_FGREP" || continue
  4914. # Check for GNU ac_path_FGREP and select it if it is found.
  4915. # Check for GNU $ac_path_FGREP
  4916. case `"$ac_path_FGREP" --version 2>&1` in
  4917. *GNU*)
  4918. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4919. *)
  4920. ac_count=0
  4921. $as_echo_n 0123456789 >"conftest.in"
  4922. while :
  4923. do
  4924. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4925. mv "conftest.tmp" "conftest.in"
  4926. cp "conftest.in" "conftest.nl"
  4927. $as_echo 'FGREP' >> "conftest.nl"
  4928. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4929. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4930. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4931. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4932. # Best one so far, save it but keep looking for a better one
  4933. ac_cv_path_FGREP="$ac_path_FGREP"
  4934. ac_path_FGREP_max=$ac_count
  4935. fi
  4936. # 10*(2^10) chars as input seems more than enough
  4937. test $ac_count -gt 10 && break
  4938. done
  4939. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4940. esac
  4941. $ac_path_FGREP_found && break 3
  4942. done
  4943. done
  4944. done
  4945. IFS=$as_save_IFS
  4946. if test -z "$ac_cv_path_FGREP"; then
  4947. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4948. fi
  4949. else
  4950. ac_cv_path_FGREP=$FGREP
  4951. fi
  4952. fi
  4953. fi
  4954. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4955. $as_echo "$ac_cv_path_FGREP" >&6; }
  4956. FGREP="$ac_cv_path_FGREP"
  4957. test -z "$GREP" && GREP=grep
  4958. # Check whether --with-gnu-ld was given.
  4959. if test "${with_gnu_ld+set}" = set; then :
  4960. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  4961. else
  4962. with_gnu_ld=no
  4963. fi
  4964. ac_prog=ld
  4965. if test "$GCC" = yes; then
  4966. # Check if gcc -print-prog-name=ld gives a path.
  4967. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4968. $as_echo_n "checking for ld used by $CC... " >&6; }
  4969. case $host in
  4970. *-*-mingw*)
  4971. # gcc leaves a trailing carriage return which upsets mingw
  4972. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4973. *)
  4974. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4975. esac
  4976. case $ac_prog in
  4977. # Accept absolute paths.
  4978. [\\/]* | ?:[\\/]*)
  4979. re_direlt='/[^/][^/]*/\.\./'
  4980. # Canonicalize the pathname of ld
  4981. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4982. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4983. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4984. done
  4985. test -z "$LD" && LD="$ac_prog"
  4986. ;;
  4987. "")
  4988. # If it fails, then pretend we aren't using GCC.
  4989. ac_prog=ld
  4990. ;;
  4991. *)
  4992. # If it is relative, then search for the first ld in PATH.
  4993. with_gnu_ld=unknown
  4994. ;;
  4995. esac
  4996. elif test "$with_gnu_ld" = yes; then
  4997. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4998. $as_echo_n "checking for GNU ld... " >&6; }
  4999. else
  5000. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  5001. $as_echo_n "checking for non-GNU ld... " >&6; }
  5002. fi
  5003. if ${lt_cv_path_LD+:} false; then :
  5004. $as_echo_n "(cached) " >&6
  5005. else
  5006. if test -z "$LD"; then
  5007. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5008. for ac_dir in $PATH; do
  5009. IFS="$lt_save_ifs"
  5010. test -z "$ac_dir" && ac_dir=.
  5011. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  5012. lt_cv_path_LD="$ac_dir/$ac_prog"
  5013. # Check to see if the program is GNU ld. I'd rather use --version,
  5014. # but apparently some variants of GNU ld only accept -v.
  5015. # Break only if it was the GNU/non-GNU ld that we prefer.
  5016. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  5017. *GNU* | *'with BFD'*)
  5018. test "$with_gnu_ld" != no && break
  5019. ;;
  5020. *)
  5021. test "$with_gnu_ld" != yes && break
  5022. ;;
  5023. esac
  5024. fi
  5025. done
  5026. IFS="$lt_save_ifs"
  5027. else
  5028. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  5029. fi
  5030. fi
  5031. LD="$lt_cv_path_LD"
  5032. if test -n "$LD"; then
  5033. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  5034. $as_echo "$LD" >&6; }
  5035. else
  5036. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5037. $as_echo "no" >&6; }
  5038. fi
  5039. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  5040. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  5041. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  5042. if ${lt_cv_prog_gnu_ld+:} false; then :
  5043. $as_echo_n "(cached) " >&6
  5044. else
  5045. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  5046. case `$LD -v 2>&1 </dev/null` in
  5047. *GNU* | *'with BFD'*)
  5048. lt_cv_prog_gnu_ld=yes
  5049. ;;
  5050. *)
  5051. lt_cv_prog_gnu_ld=no
  5052. ;;
  5053. esac
  5054. fi
  5055. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  5056. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  5057. with_gnu_ld=$lt_cv_prog_gnu_ld
  5058. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  5059. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  5060. if ${lt_cv_path_NM+:} false; then :
  5061. $as_echo_n "(cached) " >&6
  5062. else
  5063. if test -n "$NM"; then
  5064. # Let the user override the test.
  5065. lt_cv_path_NM="$NM"
  5066. else
  5067. lt_nm_to_check="${ac_tool_prefix}nm"
  5068. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  5069. lt_nm_to_check="$lt_nm_to_check nm"
  5070. fi
  5071. for lt_tmp_nm in $lt_nm_to_check; do
  5072. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5073. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  5074. IFS="$lt_save_ifs"
  5075. test -z "$ac_dir" && ac_dir=.
  5076. tmp_nm="$ac_dir/$lt_tmp_nm"
  5077. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  5078. # Check to see if the nm accepts a BSD-compat flag.
  5079. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  5080. # nm: unknown option "B" ignored
  5081. # Tru64's nm complains that /dev/null is an invalid object file
  5082. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  5083. */dev/null* | *'Invalid file or object type'*)
  5084. lt_cv_path_NM="$tmp_nm -B"
  5085. break
  5086. ;;
  5087. *)
  5088. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  5089. */dev/null*)
  5090. lt_cv_path_NM="$tmp_nm -p"
  5091. break
  5092. ;;
  5093. *)
  5094. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  5095. continue # so that we can try to find one that supports BSD flags
  5096. ;;
  5097. esac
  5098. ;;
  5099. esac
  5100. fi
  5101. done
  5102. IFS="$lt_save_ifs"
  5103. done
  5104. : ${lt_cv_path_NM=no}
  5105. fi
  5106. fi
  5107. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  5108. $as_echo "$lt_cv_path_NM" >&6; }
  5109. if test "$lt_cv_path_NM" != "no"; then
  5110. NM="$lt_cv_path_NM"
  5111. else
  5112. # Didn't find any BSD compatible name lister, look for dumpbin.
  5113. if test -n "$DUMPBIN"; then :
  5114. # Let the user override the test.
  5115. else
  5116. if test -n "$ac_tool_prefix"; then
  5117. for ac_prog in dumpbin "link -dump"
  5118. do
  5119. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5120. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5121. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5122. $as_echo_n "checking for $ac_word... " >&6; }
  5123. if ${ac_cv_prog_DUMPBIN+:} false; then :
  5124. $as_echo_n "(cached) " >&6
  5125. else
  5126. if test -n "$DUMPBIN"; then
  5127. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  5128. else
  5129. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5130. for as_dir in $PATH
  5131. do
  5132. IFS=$as_save_IFS
  5133. test -z "$as_dir" && as_dir=.
  5134. for ac_exec_ext in '' $ac_executable_extensions; do
  5135. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5136. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  5137. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5138. break 2
  5139. fi
  5140. done
  5141. done
  5142. IFS=$as_save_IFS
  5143. fi
  5144. fi
  5145. DUMPBIN=$ac_cv_prog_DUMPBIN
  5146. if test -n "$DUMPBIN"; then
  5147. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  5148. $as_echo "$DUMPBIN" >&6; }
  5149. else
  5150. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5151. $as_echo "no" >&6; }
  5152. fi
  5153. test -n "$DUMPBIN" && break
  5154. done
  5155. fi
  5156. if test -z "$DUMPBIN"; then
  5157. ac_ct_DUMPBIN=$DUMPBIN
  5158. for ac_prog in dumpbin "link -dump"
  5159. do
  5160. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5161. set dummy $ac_prog; ac_word=$2
  5162. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5163. $as_echo_n "checking for $ac_word... " >&6; }
  5164. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  5165. $as_echo_n "(cached) " >&6
  5166. else
  5167. if test -n "$ac_ct_DUMPBIN"; then
  5168. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  5169. else
  5170. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5171. for as_dir in $PATH
  5172. do
  5173. IFS=$as_save_IFS
  5174. test -z "$as_dir" && as_dir=.
  5175. for ac_exec_ext in '' $ac_executable_extensions; do
  5176. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5177. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  5178. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5179. break 2
  5180. fi
  5181. done
  5182. done
  5183. IFS=$as_save_IFS
  5184. fi
  5185. fi
  5186. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  5187. if test -n "$ac_ct_DUMPBIN"; then
  5188. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  5189. $as_echo "$ac_ct_DUMPBIN" >&6; }
  5190. else
  5191. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5192. $as_echo "no" >&6; }
  5193. fi
  5194. test -n "$ac_ct_DUMPBIN" && break
  5195. done
  5196. if test "x$ac_ct_DUMPBIN" = x; then
  5197. DUMPBIN=":"
  5198. else
  5199. case $cross_compiling:$ac_tool_warned in
  5200. yes:)
  5201. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5202. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5203. ac_tool_warned=yes ;;
  5204. esac
  5205. DUMPBIN=$ac_ct_DUMPBIN
  5206. fi
  5207. fi
  5208. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  5209. *COFF*)
  5210. DUMPBIN="$DUMPBIN -symbols"
  5211. ;;
  5212. *)
  5213. DUMPBIN=:
  5214. ;;
  5215. esac
  5216. fi
  5217. if test "$DUMPBIN" != ":"; then
  5218. NM="$DUMPBIN"
  5219. fi
  5220. fi
  5221. test -z "$NM" && NM=nm
  5222. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  5223. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  5224. if ${lt_cv_nm_interface+:} false; then :
  5225. $as_echo_n "(cached) " >&6
  5226. else
  5227. lt_cv_nm_interface="BSD nm"
  5228. echo "int some_variable = 0;" > conftest.$ac_ext
  5229. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  5230. (eval "$ac_compile" 2>conftest.err)
  5231. cat conftest.err >&5
  5232. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  5233. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  5234. cat conftest.err >&5
  5235. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  5236. cat conftest.out >&5
  5237. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  5238. lt_cv_nm_interface="MS dumpbin"
  5239. fi
  5240. rm -f conftest*
  5241. fi
  5242. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  5243. $as_echo "$lt_cv_nm_interface" >&6; }
  5244. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  5245. $as_echo_n "checking whether ln -s works... " >&6; }
  5246. LN_S=$as_ln_s
  5247. if test "$LN_S" = "ln -s"; then
  5248. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5249. $as_echo "yes" >&6; }
  5250. else
  5251. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  5252. $as_echo "no, using $LN_S" >&6; }
  5253. fi
  5254. # find the maximum length of command line arguments
  5255. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  5256. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  5257. if ${lt_cv_sys_max_cmd_len+:} false; then :
  5258. $as_echo_n "(cached) " >&6
  5259. else
  5260. i=0
  5261. teststring="ABCD"
  5262. case $build_os in
  5263. msdosdjgpp*)
  5264. # On DJGPP, this test can blow up pretty badly due to problems in libc
  5265. # (any single argument exceeding 2000 bytes causes a buffer overrun
  5266. # during glob expansion). Even if it were fixed, the result of this
  5267. # check would be larger than it should be.
  5268. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  5269. ;;
  5270. gnu*)
  5271. # Under GNU Hurd, this test is not required because there is
  5272. # no limit to the length of command line arguments.
  5273. # Libtool will interpret -1 as no limit whatsoever
  5274. lt_cv_sys_max_cmd_len=-1;
  5275. ;;
  5276. cygwin* | mingw* | cegcc*)
  5277. # On Win9x/ME, this test blows up -- it succeeds, but takes
  5278. # about 5 minutes as the teststring grows exponentially.
  5279. # Worse, since 9x/ME are not pre-emptively multitasking,
  5280. # you end up with a "frozen" computer, even though with patience
  5281. # the test eventually succeeds (with a max line length of 256k).
  5282. # Instead, let's just punt: use the minimum linelength reported by
  5283. # all of the supported platforms: 8192 (on NT/2K/XP).
  5284. lt_cv_sys_max_cmd_len=8192;
  5285. ;;
  5286. mint*)
  5287. # On MiNT this can take a long time and run out of memory.
  5288. lt_cv_sys_max_cmd_len=8192;
  5289. ;;
  5290. amigaos*)
  5291. # On AmigaOS with pdksh, this test takes hours, literally.
  5292. # So we just punt and use a minimum line length of 8192.
  5293. lt_cv_sys_max_cmd_len=8192;
  5294. ;;
  5295. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  5296. # This has been around since 386BSD, at least. Likely further.
  5297. if test -x /sbin/sysctl; then
  5298. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  5299. elif test -x /usr/sbin/sysctl; then
  5300. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  5301. else
  5302. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  5303. fi
  5304. # And add a safety zone
  5305. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5306. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5307. ;;
  5308. interix*)
  5309. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  5310. lt_cv_sys_max_cmd_len=196608
  5311. ;;
  5312. os2*)
  5313. # The test takes a long time on OS/2.
  5314. lt_cv_sys_max_cmd_len=8192
  5315. ;;
  5316. osf*)
  5317. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  5318. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  5319. # nice to cause kernel panics so lets avoid the loop below.
  5320. # First set a reasonable default.
  5321. lt_cv_sys_max_cmd_len=16384
  5322. #
  5323. if test -x /sbin/sysconfig; then
  5324. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  5325. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  5326. esac
  5327. fi
  5328. ;;
  5329. sco3.2v5*)
  5330. lt_cv_sys_max_cmd_len=102400
  5331. ;;
  5332. sysv5* | sco5v6* | sysv4.2uw2*)
  5333. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  5334. if test -n "$kargmax"; then
  5335. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  5336. else
  5337. lt_cv_sys_max_cmd_len=32768
  5338. fi
  5339. ;;
  5340. *)
  5341. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  5342. if test -n "$lt_cv_sys_max_cmd_len"; then
  5343. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5344. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5345. else
  5346. # Make teststring a little bigger before we do anything with it.
  5347. # a 1K string should be a reasonable start.
  5348. for i in 1 2 3 4 5 6 7 8 ; do
  5349. teststring=$teststring$teststring
  5350. done
  5351. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  5352. # If test is not a shell built-in, we'll probably end up computing a
  5353. # maximum length that is only half of the actual maximum length, but
  5354. # we can't tell.
  5355. while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
  5356. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  5357. test $i != 17 # 1/2 MB should be enough
  5358. do
  5359. i=`expr $i + 1`
  5360. teststring=$teststring$teststring
  5361. done
  5362. # Only check the string length outside the loop.
  5363. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  5364. teststring=
  5365. # Add a significant safety factor because C++ compilers can tack on
  5366. # massive amounts of additional arguments before passing them to the
  5367. # linker. It appears as though 1/2 is a usable value.
  5368. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5369. fi
  5370. ;;
  5371. esac
  5372. fi
  5373. if test -n $lt_cv_sys_max_cmd_len ; then
  5374. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  5375. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  5376. else
  5377. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  5378. $as_echo "none" >&6; }
  5379. fi
  5380. max_cmd_len=$lt_cv_sys_max_cmd_len
  5381. : ${CP="cp -f"}
  5382. : ${MV="mv -f"}
  5383. : ${RM="rm -f"}
  5384. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  5385. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  5386. # Try some XSI features
  5387. xsi_shell=no
  5388. ( _lt_dummy="a/b/c"
  5389. test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  5390. = c,a/b,b/c, \
  5391. && eval 'test $(( 1 + 1 )) -eq 2 \
  5392. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  5393. && xsi_shell=yes
  5394. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  5395. $as_echo "$xsi_shell" >&6; }
  5396. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  5397. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  5398. lt_shell_append=no
  5399. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  5400. >/dev/null 2>&1 \
  5401. && lt_shell_append=yes
  5402. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  5403. $as_echo "$lt_shell_append" >&6; }
  5404. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  5405. lt_unset=unset
  5406. else
  5407. lt_unset=false
  5408. fi
  5409. # test EBCDIC or ASCII
  5410. case `echo X|tr X '\101'` in
  5411. A) # ASCII based system
  5412. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  5413. lt_SP2NL='tr \040 \012'
  5414. lt_NL2SP='tr \015\012 \040\040'
  5415. ;;
  5416. *) # EBCDIC based system
  5417. lt_SP2NL='tr \100 \n'
  5418. lt_NL2SP='tr \r\n \100\100'
  5419. ;;
  5420. esac
  5421. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  5422. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  5423. if ${lt_cv_to_host_file_cmd+:} false; then :
  5424. $as_echo_n "(cached) " >&6
  5425. else
  5426. case $host in
  5427. *-*-mingw* )
  5428. case $build in
  5429. *-*-mingw* ) # actually msys
  5430. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  5431. ;;
  5432. *-*-cygwin* )
  5433. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  5434. ;;
  5435. * ) # otherwise, assume *nix
  5436. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  5437. ;;
  5438. esac
  5439. ;;
  5440. *-*-cygwin* )
  5441. case $build in
  5442. *-*-mingw* ) # actually msys
  5443. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  5444. ;;
  5445. *-*-cygwin* )
  5446. lt_cv_to_host_file_cmd=func_convert_file_noop
  5447. ;;
  5448. * ) # otherwise, assume *nix
  5449. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  5450. ;;
  5451. esac
  5452. ;;
  5453. * ) # unhandled hosts (and "normal" native builds)
  5454. lt_cv_to_host_file_cmd=func_convert_file_noop
  5455. ;;
  5456. esac
  5457. fi
  5458. to_host_file_cmd=$lt_cv_to_host_file_cmd
  5459. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  5460. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  5461. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  5462. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  5463. if ${lt_cv_to_tool_file_cmd+:} false; then :
  5464. $as_echo_n "(cached) " >&6
  5465. else
  5466. #assume ordinary cross tools, or native build.
  5467. lt_cv_to_tool_file_cmd=func_convert_file_noop
  5468. case $host in
  5469. *-*-mingw* )
  5470. case $build in
  5471. *-*-mingw* ) # actually msys
  5472. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  5473. ;;
  5474. esac
  5475. ;;
  5476. esac
  5477. fi
  5478. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  5479. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  5480. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  5481. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  5482. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  5483. if ${lt_cv_ld_reload_flag+:} false; then :
  5484. $as_echo_n "(cached) " >&6
  5485. else
  5486. lt_cv_ld_reload_flag='-r'
  5487. fi
  5488. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  5489. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  5490. reload_flag=$lt_cv_ld_reload_flag
  5491. case $reload_flag in
  5492. "" | " "*) ;;
  5493. *) reload_flag=" $reload_flag" ;;
  5494. esac
  5495. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5496. case $host_os in
  5497. cygwin* | mingw* | pw32* | cegcc*)
  5498. if test "$GCC" != yes; then
  5499. reload_cmds=false
  5500. fi
  5501. ;;
  5502. darwin*)
  5503. if test "$GCC" = yes; then
  5504. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  5505. else
  5506. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5507. fi
  5508. ;;
  5509. esac
  5510. if test -n "$ac_tool_prefix"; then
  5511. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5512. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5513. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5514. $as_echo_n "checking for $ac_word... " >&6; }
  5515. if ${ac_cv_prog_OBJDUMP+:} false; then :
  5516. $as_echo_n "(cached) " >&6
  5517. else
  5518. if test -n "$OBJDUMP"; then
  5519. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5520. else
  5521. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5522. for as_dir in $PATH
  5523. do
  5524. IFS=$as_save_IFS
  5525. test -z "$as_dir" && as_dir=.
  5526. for ac_exec_ext in '' $ac_executable_extensions; do
  5527. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5528. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5529. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5530. break 2
  5531. fi
  5532. done
  5533. done
  5534. IFS=$as_save_IFS
  5535. fi
  5536. fi
  5537. OBJDUMP=$ac_cv_prog_OBJDUMP
  5538. if test -n "$OBJDUMP"; then
  5539. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5540. $as_echo "$OBJDUMP" >&6; }
  5541. else
  5542. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5543. $as_echo "no" >&6; }
  5544. fi
  5545. fi
  5546. if test -z "$ac_cv_prog_OBJDUMP"; then
  5547. ac_ct_OBJDUMP=$OBJDUMP
  5548. # Extract the first word of "objdump", so it can be a program name with args.
  5549. set dummy objdump; ac_word=$2
  5550. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5551. $as_echo_n "checking for $ac_word... " >&6; }
  5552. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  5553. $as_echo_n "(cached) " >&6
  5554. else
  5555. if test -n "$ac_ct_OBJDUMP"; then
  5556. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5557. else
  5558. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5559. for as_dir in $PATH
  5560. do
  5561. IFS=$as_save_IFS
  5562. test -z "$as_dir" && as_dir=.
  5563. for ac_exec_ext in '' $ac_executable_extensions; do
  5564. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5565. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5566. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5567. break 2
  5568. fi
  5569. done
  5570. done
  5571. IFS=$as_save_IFS
  5572. fi
  5573. fi
  5574. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5575. if test -n "$ac_ct_OBJDUMP"; then
  5576. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5577. $as_echo "$ac_ct_OBJDUMP" >&6; }
  5578. else
  5579. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5580. $as_echo "no" >&6; }
  5581. fi
  5582. if test "x$ac_ct_OBJDUMP" = x; then
  5583. OBJDUMP="false"
  5584. else
  5585. case $cross_compiling:$ac_tool_warned in
  5586. yes:)
  5587. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5588. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5589. ac_tool_warned=yes ;;
  5590. esac
  5591. OBJDUMP=$ac_ct_OBJDUMP
  5592. fi
  5593. else
  5594. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5595. fi
  5596. test -z "$OBJDUMP" && OBJDUMP=objdump
  5597. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5598. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  5599. if ${lt_cv_deplibs_check_method+:} false; then :
  5600. $as_echo_n "(cached) " >&6
  5601. else
  5602. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5603. lt_cv_file_magic_test_file=
  5604. lt_cv_deplibs_check_method='unknown'
  5605. # Need to set the preceding variable on all platforms that support
  5606. # interlibrary dependencies.
  5607. # 'none' -- dependencies not supported.
  5608. # `unknown' -- same as none, but documents that we really don't know.
  5609. # 'pass_all' -- all dependencies passed with no checks.
  5610. # 'test_compile' -- check by making test program.
  5611. # 'file_magic [[regex]]' -- check by looking for files in library path
  5612. # which responds to the $file_magic_cmd with a given extended regex.
  5613. # If you have `file' or equivalent on your system and you're not sure
  5614. # whether `pass_all' will *always* work, you probably want this one.
  5615. case $host_os in
  5616. aix[4-9]*)
  5617. lt_cv_deplibs_check_method=pass_all
  5618. ;;
  5619. beos*)
  5620. lt_cv_deplibs_check_method=pass_all
  5621. ;;
  5622. bsdi[45]*)
  5623. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5624. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5625. lt_cv_file_magic_test_file=/shlib/libc.so
  5626. ;;
  5627. cygwin*)
  5628. # func_win32_libid is a shell function defined in ltmain.sh
  5629. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5630. lt_cv_file_magic_cmd='func_win32_libid'
  5631. ;;
  5632. mingw* | pw32*)
  5633. # Base MSYS/MinGW do not provide the 'file' command needed by
  5634. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5635. # unless we find 'file', for example because we are cross-compiling.
  5636. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  5637. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  5638. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5639. lt_cv_file_magic_cmd='func_win32_libid'
  5640. else
  5641. # Keep this pattern in sync with the one in func_win32_libid.
  5642. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  5643. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5644. fi
  5645. ;;
  5646. cegcc*)
  5647. # use the weaker test based on 'objdump'. See mingw*.
  5648. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5649. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5650. ;;
  5651. darwin* | rhapsody*)
  5652. lt_cv_deplibs_check_method=pass_all
  5653. ;;
  5654. freebsd* | dragonfly*)
  5655. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5656. case $host_cpu in
  5657. i*86 )
  5658. # Not sure whether the presence of OpenBSD here was a mistake.
  5659. # Let's accept both of them until this is cleared up.
  5660. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5661. lt_cv_file_magic_cmd=/usr/bin/file
  5662. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5663. ;;
  5664. esac
  5665. else
  5666. lt_cv_deplibs_check_method=pass_all
  5667. fi
  5668. ;;
  5669. gnu*)
  5670. lt_cv_deplibs_check_method=pass_all
  5671. ;;
  5672. haiku*)
  5673. lt_cv_deplibs_check_method=pass_all
  5674. ;;
  5675. hpux10.20* | hpux11*)
  5676. lt_cv_file_magic_cmd=/usr/bin/file
  5677. case $host_cpu in
  5678. ia64*)
  5679. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5680. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5681. ;;
  5682. hppa*64*)
  5683. 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]'
  5684. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5685. ;;
  5686. *)
  5687. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  5688. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5689. ;;
  5690. esac
  5691. ;;
  5692. interix[3-9]*)
  5693. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5694. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5695. ;;
  5696. irix5* | irix6* | nonstopux*)
  5697. case $LD in
  5698. *-32|*"-32 ") libmagic=32-bit;;
  5699. *-n32|*"-n32 ") libmagic=N32;;
  5700. *-64|*"-64 ") libmagic=64-bit;;
  5701. *) libmagic=never-match;;
  5702. esac
  5703. lt_cv_deplibs_check_method=pass_all
  5704. ;;
  5705. # This must be glibc/ELF.
  5706. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  5707. lt_cv_deplibs_check_method=pass_all
  5708. ;;
  5709. netbsd*)
  5710. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5711. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5712. else
  5713. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5714. fi
  5715. ;;
  5716. newos6*)
  5717. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5718. lt_cv_file_magic_cmd=/usr/bin/file
  5719. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5720. ;;
  5721. *nto* | *qnx*)
  5722. lt_cv_deplibs_check_method=pass_all
  5723. ;;
  5724. openbsd*)
  5725. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  5726. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5727. else
  5728. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5729. fi
  5730. ;;
  5731. osf3* | osf4* | osf5*)
  5732. lt_cv_deplibs_check_method=pass_all
  5733. ;;
  5734. rdos*)
  5735. lt_cv_deplibs_check_method=pass_all
  5736. ;;
  5737. solaris*)
  5738. lt_cv_deplibs_check_method=pass_all
  5739. ;;
  5740. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5741. lt_cv_deplibs_check_method=pass_all
  5742. ;;
  5743. sysv4 | sysv4.3*)
  5744. case $host_vendor in
  5745. motorola)
  5746. 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]'
  5747. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5748. ;;
  5749. ncr)
  5750. lt_cv_deplibs_check_method=pass_all
  5751. ;;
  5752. sequent)
  5753. lt_cv_file_magic_cmd='/bin/file'
  5754. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5755. ;;
  5756. sni)
  5757. lt_cv_file_magic_cmd='/bin/file'
  5758. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5759. lt_cv_file_magic_test_file=/lib/libc.so
  5760. ;;
  5761. siemens)
  5762. lt_cv_deplibs_check_method=pass_all
  5763. ;;
  5764. pc)
  5765. lt_cv_deplibs_check_method=pass_all
  5766. ;;
  5767. esac
  5768. ;;
  5769. tpf*)
  5770. lt_cv_deplibs_check_method=pass_all
  5771. ;;
  5772. esac
  5773. fi
  5774. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5775. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  5776. file_magic_glob=
  5777. want_nocaseglob=no
  5778. if test "$build" = "$host"; then
  5779. case $host_os in
  5780. mingw* | pw32*)
  5781. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  5782. want_nocaseglob=yes
  5783. else
  5784. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  5785. fi
  5786. ;;
  5787. esac
  5788. fi
  5789. file_magic_cmd=$lt_cv_file_magic_cmd
  5790. deplibs_check_method=$lt_cv_deplibs_check_method
  5791. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5792. if test -n "$ac_tool_prefix"; then
  5793. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  5794. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  5795. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5796. $as_echo_n "checking for $ac_word... " >&6; }
  5797. if ${ac_cv_prog_DLLTOOL+:} false; then :
  5798. $as_echo_n "(cached) " >&6
  5799. else
  5800. if test -n "$DLLTOOL"; then
  5801. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  5802. else
  5803. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5804. for as_dir in $PATH
  5805. do
  5806. IFS=$as_save_IFS
  5807. test -z "$as_dir" && as_dir=.
  5808. for ac_exec_ext in '' $ac_executable_extensions; do
  5809. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5810. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  5811. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5812. break 2
  5813. fi
  5814. done
  5815. done
  5816. IFS=$as_save_IFS
  5817. fi
  5818. fi
  5819. DLLTOOL=$ac_cv_prog_DLLTOOL
  5820. if test -n "$DLLTOOL"; then
  5821. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  5822. $as_echo "$DLLTOOL" >&6; }
  5823. else
  5824. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5825. $as_echo "no" >&6; }
  5826. fi
  5827. fi
  5828. if test -z "$ac_cv_prog_DLLTOOL"; then
  5829. ac_ct_DLLTOOL=$DLLTOOL
  5830. # Extract the first word of "dlltool", so it can be a program name with args.
  5831. set dummy dlltool; ac_word=$2
  5832. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5833. $as_echo_n "checking for $ac_word... " >&6; }
  5834. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  5835. $as_echo_n "(cached) " >&6
  5836. else
  5837. if test -n "$ac_ct_DLLTOOL"; then
  5838. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  5839. else
  5840. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5841. for as_dir in $PATH
  5842. do
  5843. IFS=$as_save_IFS
  5844. test -z "$as_dir" && as_dir=.
  5845. for ac_exec_ext in '' $ac_executable_extensions; do
  5846. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5847. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  5848. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5849. break 2
  5850. fi
  5851. done
  5852. done
  5853. IFS=$as_save_IFS
  5854. fi
  5855. fi
  5856. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  5857. if test -n "$ac_ct_DLLTOOL"; then
  5858. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  5859. $as_echo "$ac_ct_DLLTOOL" >&6; }
  5860. else
  5861. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5862. $as_echo "no" >&6; }
  5863. fi
  5864. if test "x$ac_ct_DLLTOOL" = x; then
  5865. DLLTOOL="false"
  5866. else
  5867. case $cross_compiling:$ac_tool_warned in
  5868. yes:)
  5869. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5870. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5871. ac_tool_warned=yes ;;
  5872. esac
  5873. DLLTOOL=$ac_ct_DLLTOOL
  5874. fi
  5875. else
  5876. DLLTOOL="$ac_cv_prog_DLLTOOL"
  5877. fi
  5878. test -z "$DLLTOOL" && DLLTOOL=dlltool
  5879. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  5880. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  5881. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  5882. $as_echo_n "(cached) " >&6
  5883. else
  5884. lt_cv_sharedlib_from_linklib_cmd='unknown'
  5885. case $host_os in
  5886. cygwin* | mingw* | pw32* | cegcc*)
  5887. # two different shell functions defined in ltmain.sh
  5888. # decide which to use based on capabilities of $DLLTOOL
  5889. case `$DLLTOOL --help 2>&1` in
  5890. *--identify-strict*)
  5891. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  5892. ;;
  5893. *)
  5894. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  5895. ;;
  5896. esac
  5897. ;;
  5898. *)
  5899. # fallback: assume linklib IS sharedlib
  5900. lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  5901. ;;
  5902. esac
  5903. fi
  5904. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  5905. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  5906. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  5907. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  5908. if test -n "$ac_tool_prefix"; then
  5909. for ac_prog in ar
  5910. do
  5911. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5912. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5913. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5914. $as_echo_n "checking for $ac_word... " >&6; }
  5915. if ${ac_cv_prog_AR+:} false; then :
  5916. $as_echo_n "(cached) " >&6
  5917. else
  5918. if test -n "$AR"; then
  5919. ac_cv_prog_AR="$AR" # Let the user override the test.
  5920. else
  5921. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5922. for as_dir in $PATH
  5923. do
  5924. IFS=$as_save_IFS
  5925. test -z "$as_dir" && as_dir=.
  5926. for ac_exec_ext in '' $ac_executable_extensions; do
  5927. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5928. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  5929. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5930. break 2
  5931. fi
  5932. done
  5933. done
  5934. IFS=$as_save_IFS
  5935. fi
  5936. fi
  5937. AR=$ac_cv_prog_AR
  5938. if test -n "$AR"; then
  5939. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5940. $as_echo "$AR" >&6; }
  5941. else
  5942. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5943. $as_echo "no" >&6; }
  5944. fi
  5945. test -n "$AR" && break
  5946. done
  5947. fi
  5948. if test -z "$AR"; then
  5949. ac_ct_AR=$AR
  5950. for ac_prog in ar
  5951. do
  5952. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5953. set dummy $ac_prog; ac_word=$2
  5954. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5955. $as_echo_n "checking for $ac_word... " >&6; }
  5956. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  5957. $as_echo_n "(cached) " >&6
  5958. else
  5959. if test -n "$ac_ct_AR"; then
  5960. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5961. else
  5962. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5963. for as_dir in $PATH
  5964. do
  5965. IFS=$as_save_IFS
  5966. test -z "$as_dir" && as_dir=.
  5967. for ac_exec_ext in '' $ac_executable_extensions; do
  5968. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5969. ac_cv_prog_ac_ct_AR="$ac_prog"
  5970. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5971. break 2
  5972. fi
  5973. done
  5974. done
  5975. IFS=$as_save_IFS
  5976. fi
  5977. fi
  5978. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5979. if test -n "$ac_ct_AR"; then
  5980. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5981. $as_echo "$ac_ct_AR" >&6; }
  5982. else
  5983. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5984. $as_echo "no" >&6; }
  5985. fi
  5986. test -n "$ac_ct_AR" && break
  5987. done
  5988. if test "x$ac_ct_AR" = x; then
  5989. AR="false"
  5990. else
  5991. case $cross_compiling:$ac_tool_warned in
  5992. yes:)
  5993. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5994. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5995. ac_tool_warned=yes ;;
  5996. esac
  5997. AR=$ac_ct_AR
  5998. fi
  5999. fi
  6000. : ${AR=ar}
  6001. : ${AR_FLAGS=cru}
  6002. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  6003. $as_echo_n "checking for archiver @FILE support... " >&6; }
  6004. if ${lt_cv_ar_at_file+:} false; then :
  6005. $as_echo_n "(cached) " >&6
  6006. else
  6007. lt_cv_ar_at_file=no
  6008. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6009. /* end confdefs.h. */
  6010. int
  6011. main ()
  6012. {
  6013. ;
  6014. return 0;
  6015. }
  6016. _ACEOF
  6017. if ac_fn_c_try_compile "$LINENO"; then :
  6018. echo conftest.$ac_objext > conftest.lst
  6019. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  6020. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  6021. (eval $lt_ar_try) 2>&5
  6022. ac_status=$?
  6023. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6024. test $ac_status = 0; }
  6025. if test "$ac_status" -eq 0; then
  6026. # Ensure the archiver fails upon bogus file names.
  6027. rm -f conftest.$ac_objext libconftest.a
  6028. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  6029. (eval $lt_ar_try) 2>&5
  6030. ac_status=$?
  6031. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6032. test $ac_status = 0; }
  6033. if test "$ac_status" -ne 0; then
  6034. lt_cv_ar_at_file=@
  6035. fi
  6036. fi
  6037. rm -f conftest.* libconftest.a
  6038. fi
  6039. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6040. fi
  6041. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  6042. $as_echo "$lt_cv_ar_at_file" >&6; }
  6043. if test "x$lt_cv_ar_at_file" = xno; then
  6044. archiver_list_spec=
  6045. else
  6046. archiver_list_spec=$lt_cv_ar_at_file
  6047. fi
  6048. if test -n "$ac_tool_prefix"; then
  6049. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  6050. set dummy ${ac_tool_prefix}strip; ac_word=$2
  6051. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6052. $as_echo_n "checking for $ac_word... " >&6; }
  6053. if ${ac_cv_prog_STRIP+:} false; then :
  6054. $as_echo_n "(cached) " >&6
  6055. else
  6056. if test -n "$STRIP"; then
  6057. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  6058. else
  6059. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6060. for as_dir in $PATH
  6061. do
  6062. IFS=$as_save_IFS
  6063. test -z "$as_dir" && as_dir=.
  6064. for ac_exec_ext in '' $ac_executable_extensions; do
  6065. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6066. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  6067. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6068. break 2
  6069. fi
  6070. done
  6071. done
  6072. IFS=$as_save_IFS
  6073. fi
  6074. fi
  6075. STRIP=$ac_cv_prog_STRIP
  6076. if test -n "$STRIP"; then
  6077. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  6078. $as_echo "$STRIP" >&6; }
  6079. else
  6080. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6081. $as_echo "no" >&6; }
  6082. fi
  6083. fi
  6084. if test -z "$ac_cv_prog_STRIP"; then
  6085. ac_ct_STRIP=$STRIP
  6086. # Extract the first word of "strip", so it can be a program name with args.
  6087. set dummy strip; ac_word=$2
  6088. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6089. $as_echo_n "checking for $ac_word... " >&6; }
  6090. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  6091. $as_echo_n "(cached) " >&6
  6092. else
  6093. if test -n "$ac_ct_STRIP"; then
  6094. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  6095. else
  6096. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6097. for as_dir in $PATH
  6098. do
  6099. IFS=$as_save_IFS
  6100. test -z "$as_dir" && as_dir=.
  6101. for ac_exec_ext in '' $ac_executable_extensions; do
  6102. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6103. ac_cv_prog_ac_ct_STRIP="strip"
  6104. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6105. break 2
  6106. fi
  6107. done
  6108. done
  6109. IFS=$as_save_IFS
  6110. fi
  6111. fi
  6112. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  6113. if test -n "$ac_ct_STRIP"; then
  6114. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  6115. $as_echo "$ac_ct_STRIP" >&6; }
  6116. else
  6117. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6118. $as_echo "no" >&6; }
  6119. fi
  6120. if test "x$ac_ct_STRIP" = x; then
  6121. STRIP=":"
  6122. else
  6123. case $cross_compiling:$ac_tool_warned in
  6124. yes:)
  6125. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6126. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6127. ac_tool_warned=yes ;;
  6128. esac
  6129. STRIP=$ac_ct_STRIP
  6130. fi
  6131. else
  6132. STRIP="$ac_cv_prog_STRIP"
  6133. fi
  6134. test -z "$STRIP" && STRIP=:
  6135. if test -n "$ac_tool_prefix"; then
  6136. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  6137. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  6138. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6139. $as_echo_n "checking for $ac_word... " >&6; }
  6140. if ${ac_cv_prog_RANLIB+:} false; then :
  6141. $as_echo_n "(cached) " >&6
  6142. else
  6143. if test -n "$RANLIB"; then
  6144. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  6145. else
  6146. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6147. for as_dir in $PATH
  6148. do
  6149. IFS=$as_save_IFS
  6150. test -z "$as_dir" && as_dir=.
  6151. for ac_exec_ext in '' $ac_executable_extensions; do
  6152. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6153. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  6154. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6155. break 2
  6156. fi
  6157. done
  6158. done
  6159. IFS=$as_save_IFS
  6160. fi
  6161. fi
  6162. RANLIB=$ac_cv_prog_RANLIB
  6163. if test -n "$RANLIB"; then
  6164. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  6165. $as_echo "$RANLIB" >&6; }
  6166. else
  6167. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6168. $as_echo "no" >&6; }
  6169. fi
  6170. fi
  6171. if test -z "$ac_cv_prog_RANLIB"; then
  6172. ac_ct_RANLIB=$RANLIB
  6173. # Extract the first word of "ranlib", so it can be a program name with args.
  6174. set dummy ranlib; ac_word=$2
  6175. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6176. $as_echo_n "checking for $ac_word... " >&6; }
  6177. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  6178. $as_echo_n "(cached) " >&6
  6179. else
  6180. if test -n "$ac_ct_RANLIB"; then
  6181. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  6182. else
  6183. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6184. for as_dir in $PATH
  6185. do
  6186. IFS=$as_save_IFS
  6187. test -z "$as_dir" && as_dir=.
  6188. for ac_exec_ext in '' $ac_executable_extensions; do
  6189. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6190. ac_cv_prog_ac_ct_RANLIB="ranlib"
  6191. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6192. break 2
  6193. fi
  6194. done
  6195. done
  6196. IFS=$as_save_IFS
  6197. fi
  6198. fi
  6199. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  6200. if test -n "$ac_ct_RANLIB"; then
  6201. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  6202. $as_echo "$ac_ct_RANLIB" >&6; }
  6203. else
  6204. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6205. $as_echo "no" >&6; }
  6206. fi
  6207. if test "x$ac_ct_RANLIB" = x; then
  6208. RANLIB=":"
  6209. else
  6210. case $cross_compiling:$ac_tool_warned in
  6211. yes:)
  6212. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6213. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6214. ac_tool_warned=yes ;;
  6215. esac
  6216. RANLIB=$ac_ct_RANLIB
  6217. fi
  6218. else
  6219. RANLIB="$ac_cv_prog_RANLIB"
  6220. fi
  6221. test -z "$RANLIB" && RANLIB=:
  6222. # Determine commands to create old-style static archives.
  6223. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  6224. old_postinstall_cmds='chmod 644 $oldlib'
  6225. old_postuninstall_cmds=
  6226. if test -n "$RANLIB"; then
  6227. case $host_os in
  6228. openbsd*)
  6229. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  6230. ;;
  6231. *)
  6232. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  6233. ;;
  6234. esac
  6235. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  6236. fi
  6237. case $host_os in
  6238. darwin*)
  6239. lock_old_archive_extraction=yes ;;
  6240. *)
  6241. lock_old_archive_extraction=no ;;
  6242. esac
  6243. # If no C compiler was specified, use CC.
  6244. LTCC=${LTCC-"$CC"}
  6245. # If no C compiler flags were specified, use CFLAGS.
  6246. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6247. # Allow CC to be a program name with arguments.
  6248. compiler=$CC
  6249. # Check for command to grab the raw symbol name followed by C symbol from nm.
  6250. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  6251. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  6252. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  6253. $as_echo_n "(cached) " >&6
  6254. else
  6255. # These are sane defaults that work on at least a few old systems.
  6256. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  6257. # Character class describing NM global symbol codes.
  6258. symcode='[BCDEGRST]'
  6259. # Regexp to match symbols that can be accessed directly from C.
  6260. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  6261. # Define system-specific variables.
  6262. case $host_os in
  6263. aix*)
  6264. symcode='[BCDT]'
  6265. ;;
  6266. cygwin* | mingw* | pw32* | cegcc*)
  6267. symcode='[ABCDGISTW]'
  6268. ;;
  6269. hpux*)
  6270. if test "$host_cpu" = ia64; then
  6271. symcode='[ABCDEGRST]'
  6272. fi
  6273. ;;
  6274. irix* | nonstopux*)
  6275. symcode='[BCDEGRST]'
  6276. ;;
  6277. osf*)
  6278. symcode='[BCDEGQRST]'
  6279. ;;
  6280. solaris*)
  6281. symcode='[BDRT]'
  6282. ;;
  6283. sco3.2v5*)
  6284. symcode='[DT]'
  6285. ;;
  6286. sysv4.2uw2*)
  6287. symcode='[DT]'
  6288. ;;
  6289. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  6290. symcode='[ABDT]'
  6291. ;;
  6292. sysv4)
  6293. symcode='[DFNSTU]'
  6294. ;;
  6295. esac
  6296. # If we're using GNU nm, then use its standard symbol codes.
  6297. case `$NM -V 2>&1` in
  6298. *GNU* | *'with BFD'*)
  6299. symcode='[ABCDGIRSTW]' ;;
  6300. esac
  6301. # Transform an extracted symbol line into a proper C declaration.
  6302. # Some systems (esp. on ia64) link data and code symbols differently,
  6303. # so use this general approach.
  6304. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  6305. # Transform an extracted symbol line into symbol name and symbol address
  6306. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  6307. 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'"
  6308. # Handle CRLF in mingw tool chain
  6309. opt_cr=
  6310. case $build_os in
  6311. mingw*)
  6312. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  6313. ;;
  6314. esac
  6315. # Try without a prefix underscore, then with it.
  6316. for ac_symprfx in "" "_"; do
  6317. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  6318. symxfrm="\\1 $ac_symprfx\\2 \\2"
  6319. # Write the raw and C identifiers.
  6320. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6321. # Fake it for dumpbin and say T for any non-static function
  6322. # and D for any global variable.
  6323. # Also find C++ and __fastcall symbols from MSVC++,
  6324. # which start with @ or ?.
  6325. lt_cv_sys_global_symbol_pipe="$AWK '"\
  6326. " {last_section=section; section=\$ 3};"\
  6327. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  6328. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  6329. " \$ 0!~/External *\|/{next};"\
  6330. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  6331. " {if(hide[section]) next};"\
  6332. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  6333. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  6334. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  6335. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  6336. " ' prfx=^$ac_symprfx"
  6337. else
  6338. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  6339. fi
  6340. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  6341. # Check to see that the pipe works correctly.
  6342. pipe_works=no
  6343. rm -f conftest*
  6344. cat > conftest.$ac_ext <<_LT_EOF
  6345. #ifdef __cplusplus
  6346. extern "C" {
  6347. #endif
  6348. char nm_test_var;
  6349. void nm_test_func(void);
  6350. void nm_test_func(void){}
  6351. #ifdef __cplusplus
  6352. }
  6353. #endif
  6354. int main(){nm_test_var='a';nm_test_func();return(0);}
  6355. _LT_EOF
  6356. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6357. (eval $ac_compile) 2>&5
  6358. ac_status=$?
  6359. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6360. test $ac_status = 0; }; then
  6361. # Now try to grab the symbols.
  6362. nlist=conftest.nm
  6363. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  6364. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  6365. ac_status=$?
  6366. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6367. test $ac_status = 0; } && test -s "$nlist"; then
  6368. # Try sorting and uniquifying the output.
  6369. if sort "$nlist" | uniq > "$nlist"T; then
  6370. mv -f "$nlist"T "$nlist"
  6371. else
  6372. rm -f "$nlist"T
  6373. fi
  6374. # Make sure that we snagged all the symbols we need.
  6375. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  6376. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  6377. cat <<_LT_EOF > conftest.$ac_ext
  6378. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  6379. #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  6380. /* DATA imports from DLLs on WIN32 con't be const, because runtime
  6381. relocations are performed -- see ld's documentation on pseudo-relocs. */
  6382. # define LT_DLSYM_CONST
  6383. #elif defined(__osf__)
  6384. /* This system does not cope well with relocations in const data. */
  6385. # define LT_DLSYM_CONST
  6386. #else
  6387. # define LT_DLSYM_CONST const
  6388. #endif
  6389. #ifdef __cplusplus
  6390. extern "C" {
  6391. #endif
  6392. _LT_EOF
  6393. # Now generate the symbol file.
  6394. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  6395. cat <<_LT_EOF >> conftest.$ac_ext
  6396. /* The mapping between symbol names and symbols. */
  6397. LT_DLSYM_CONST struct {
  6398. const char *name;
  6399. void *address;
  6400. }
  6401. lt__PROGRAM__LTX_preloaded_symbols[] =
  6402. {
  6403. { "@PROGRAM@", (void *) 0 },
  6404. _LT_EOF
  6405. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  6406. cat <<\_LT_EOF >> conftest.$ac_ext
  6407. {0, (void *) 0}
  6408. };
  6409. /* This works around a problem in FreeBSD linker */
  6410. #ifdef FREEBSD_WORKAROUND
  6411. static const void *lt_preloaded_setup() {
  6412. return lt__PROGRAM__LTX_preloaded_symbols;
  6413. }
  6414. #endif
  6415. #ifdef __cplusplus
  6416. }
  6417. #endif
  6418. _LT_EOF
  6419. # Now try linking the two files.
  6420. mv conftest.$ac_objext conftstm.$ac_objext
  6421. lt_globsym_save_LIBS=$LIBS
  6422. lt_globsym_save_CFLAGS=$CFLAGS
  6423. LIBS="conftstm.$ac_objext"
  6424. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  6425. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  6426. (eval $ac_link) 2>&5
  6427. ac_status=$?
  6428. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6429. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  6430. pipe_works=yes
  6431. fi
  6432. LIBS=$lt_globsym_save_LIBS
  6433. CFLAGS=$lt_globsym_save_CFLAGS
  6434. else
  6435. echo "cannot find nm_test_func in $nlist" >&5
  6436. fi
  6437. else
  6438. echo "cannot find nm_test_var in $nlist" >&5
  6439. fi
  6440. else
  6441. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  6442. fi
  6443. else
  6444. echo "$progname: failed program was:" >&5
  6445. cat conftest.$ac_ext >&5
  6446. fi
  6447. rm -rf conftest* conftst*
  6448. # Do not use the global_symbol_pipe unless it works.
  6449. if test "$pipe_works" = yes; then
  6450. break
  6451. else
  6452. lt_cv_sys_global_symbol_pipe=
  6453. fi
  6454. done
  6455. fi
  6456. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6457. lt_cv_sys_global_symbol_to_cdecl=
  6458. fi
  6459. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6460. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  6461. $as_echo "failed" >&6; }
  6462. else
  6463. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  6464. $as_echo "ok" >&6; }
  6465. fi
  6466. # Response file support.
  6467. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6468. nm_file_list_spec='@'
  6469. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  6470. nm_file_list_spec='@'
  6471. fi
  6472. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  6473. $as_echo_n "checking for sysroot... " >&6; }
  6474. # Check whether --with-sysroot was given.
  6475. if test "${with_sysroot+set}" = set; then :
  6476. withval=$with_sysroot;
  6477. else
  6478. with_sysroot=no
  6479. fi
  6480. lt_sysroot=
  6481. case ${with_sysroot} in #(
  6482. yes)
  6483. if test "$GCC" = yes; then
  6484. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  6485. fi
  6486. ;; #(
  6487. /*)
  6488. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  6489. ;; #(
  6490. no|'')
  6491. ;; #(
  6492. *)
  6493. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
  6494. $as_echo "${with_sysroot}" >&6; }
  6495. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  6496. ;;
  6497. esac
  6498. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  6499. $as_echo "${lt_sysroot:-no}" >&6; }
  6500. # Check whether --enable-libtool-lock was given.
  6501. if test "${enable_libtool_lock+set}" = set; then :
  6502. enableval=$enable_libtool_lock;
  6503. fi
  6504. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  6505. # Some flags need to be propagated to the compiler or linker for good
  6506. # libtool support.
  6507. case $host in
  6508. ia64-*-hpux*)
  6509. # Find out which ABI we are using.
  6510. echo 'int i;' > conftest.$ac_ext
  6511. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6512. (eval $ac_compile) 2>&5
  6513. ac_status=$?
  6514. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6515. test $ac_status = 0; }; then
  6516. case `/usr/bin/file conftest.$ac_objext` in
  6517. *ELF-32*)
  6518. HPUX_IA64_MODE="32"
  6519. ;;
  6520. *ELF-64*)
  6521. HPUX_IA64_MODE="64"
  6522. ;;
  6523. esac
  6524. fi
  6525. rm -rf conftest*
  6526. ;;
  6527. *-*-irix6*)
  6528. # Find out which ABI we are using.
  6529. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6530. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6531. (eval $ac_compile) 2>&5
  6532. ac_status=$?
  6533. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6534. test $ac_status = 0; }; then
  6535. if test "$lt_cv_prog_gnu_ld" = yes; then
  6536. case `/usr/bin/file conftest.$ac_objext` in
  6537. *32-bit*)
  6538. LD="${LD-ld} -melf32bsmip"
  6539. ;;
  6540. *N32*)
  6541. LD="${LD-ld} -melf32bmipn32"
  6542. ;;
  6543. *64-bit*)
  6544. LD="${LD-ld} -melf64bmip"
  6545. ;;
  6546. esac
  6547. else
  6548. case `/usr/bin/file conftest.$ac_objext` in
  6549. *32-bit*)
  6550. LD="${LD-ld} -32"
  6551. ;;
  6552. *N32*)
  6553. LD="${LD-ld} -n32"
  6554. ;;
  6555. *64-bit*)
  6556. LD="${LD-ld} -64"
  6557. ;;
  6558. esac
  6559. fi
  6560. fi
  6561. rm -rf conftest*
  6562. ;;
  6563. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  6564. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  6565. # Find out which ABI we are using.
  6566. echo 'int i;' > conftest.$ac_ext
  6567. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6568. (eval $ac_compile) 2>&5
  6569. ac_status=$?
  6570. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6571. test $ac_status = 0; }; then
  6572. case `/usr/bin/file conftest.o` in
  6573. *32-bit*)
  6574. case $host in
  6575. x86_64-*kfreebsd*-gnu)
  6576. LD="${LD-ld} -m elf_i386_fbsd"
  6577. ;;
  6578. x86_64-*linux*)
  6579. LD="${LD-ld} -m elf_i386"
  6580. ;;
  6581. powerpc64le-*linux*)
  6582. LD="${LD-ld} -m elf32lppclinux"
  6583. ;;
  6584. powerpc64-*linux*)
  6585. LD="${LD-ld} -m elf32ppclinux"
  6586. ;;
  6587. s390x-*linux*)
  6588. LD="${LD-ld} -m elf_s390"
  6589. ;;
  6590. sparc64-*linux*)
  6591. LD="${LD-ld} -m elf32_sparc"
  6592. ;;
  6593. esac
  6594. ;;
  6595. *64-bit*)
  6596. case $host in
  6597. x86_64-*kfreebsd*-gnu)
  6598. LD="${LD-ld} -m elf_x86_64_fbsd"
  6599. ;;
  6600. x86_64-*linux*)
  6601. LD="${LD-ld} -m elf_x86_64"
  6602. ;;
  6603. powerpcle-*linux*)
  6604. LD="${LD-ld} -m elf64lppc"
  6605. ;;
  6606. powerpc-*linux*)
  6607. LD="${LD-ld} -m elf64ppc"
  6608. ;;
  6609. s390*-*linux*|s390*-*tpf*)
  6610. LD="${LD-ld} -m elf64_s390"
  6611. ;;
  6612. sparc*-*linux*)
  6613. LD="${LD-ld} -m elf64_sparc"
  6614. ;;
  6615. esac
  6616. ;;
  6617. esac
  6618. fi
  6619. rm -rf conftest*
  6620. ;;
  6621. *-*-sco3.2v5*)
  6622. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6623. SAVE_CFLAGS="$CFLAGS"
  6624. CFLAGS="$CFLAGS -belf"
  6625. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  6626. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  6627. if ${lt_cv_cc_needs_belf+:} false; then :
  6628. $as_echo_n "(cached) " >&6
  6629. else
  6630. ac_ext=c
  6631. ac_cpp='$CPP $CPPFLAGS'
  6632. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6633. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6634. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6635. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6636. /* end confdefs.h. */
  6637. int
  6638. main ()
  6639. {
  6640. ;
  6641. return 0;
  6642. }
  6643. _ACEOF
  6644. if ac_fn_c_try_link "$LINENO"; then :
  6645. lt_cv_cc_needs_belf=yes
  6646. else
  6647. lt_cv_cc_needs_belf=no
  6648. fi
  6649. rm -f core conftest.err conftest.$ac_objext \
  6650. conftest$ac_exeext conftest.$ac_ext
  6651. ac_ext=c
  6652. ac_cpp='$CPP $CPPFLAGS'
  6653. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6654. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6655. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6656. fi
  6657. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  6658. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  6659. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  6660. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6661. CFLAGS="$SAVE_CFLAGS"
  6662. fi
  6663. ;;
  6664. *-*solaris*)
  6665. # Find out which ABI we are using.
  6666. echo 'int i;' > conftest.$ac_ext
  6667. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6668. (eval $ac_compile) 2>&5
  6669. ac_status=$?
  6670. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6671. test $ac_status = 0; }; then
  6672. case `/usr/bin/file conftest.o` in
  6673. *64-bit*)
  6674. case $lt_cv_prog_gnu_ld in
  6675. yes*)
  6676. case $host in
  6677. i?86-*-solaris*)
  6678. LD="${LD-ld} -m elf_x86_64"
  6679. ;;
  6680. sparc*-*-solaris*)
  6681. LD="${LD-ld} -m elf64_sparc"
  6682. ;;
  6683. esac
  6684. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  6685. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  6686. LD="${LD-ld}_sol2"
  6687. fi
  6688. ;;
  6689. *)
  6690. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6691. LD="${LD-ld} -64"
  6692. fi
  6693. ;;
  6694. esac
  6695. ;;
  6696. esac
  6697. fi
  6698. rm -rf conftest*
  6699. ;;
  6700. esac
  6701. need_locks="$enable_libtool_lock"
  6702. if test -n "$ac_tool_prefix"; then
  6703. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  6704. set dummy ${ac_tool_prefix}mt; ac_word=$2
  6705. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6706. $as_echo_n "checking for $ac_word... " >&6; }
  6707. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  6708. $as_echo_n "(cached) " >&6
  6709. else
  6710. if test -n "$MANIFEST_TOOL"; then
  6711. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  6712. else
  6713. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6714. for as_dir in $PATH
  6715. do
  6716. IFS=$as_save_IFS
  6717. test -z "$as_dir" && as_dir=.
  6718. for ac_exec_ext in '' $ac_executable_extensions; do
  6719. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6720. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  6721. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6722. break 2
  6723. fi
  6724. done
  6725. done
  6726. IFS=$as_save_IFS
  6727. fi
  6728. fi
  6729. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  6730. if test -n "$MANIFEST_TOOL"; then
  6731. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  6732. $as_echo "$MANIFEST_TOOL" >&6; }
  6733. else
  6734. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6735. $as_echo "no" >&6; }
  6736. fi
  6737. fi
  6738. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  6739. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  6740. # Extract the first word of "mt", so it can be a program name with args.
  6741. set dummy mt; ac_word=$2
  6742. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6743. $as_echo_n "checking for $ac_word... " >&6; }
  6744. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  6745. $as_echo_n "(cached) " >&6
  6746. else
  6747. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6748. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  6749. else
  6750. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6751. for as_dir in $PATH
  6752. do
  6753. IFS=$as_save_IFS
  6754. test -z "$as_dir" && as_dir=.
  6755. for ac_exec_ext in '' $ac_executable_extensions; do
  6756. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6757. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  6758. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6759. break 2
  6760. fi
  6761. done
  6762. done
  6763. IFS=$as_save_IFS
  6764. fi
  6765. fi
  6766. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  6767. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6768. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  6769. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  6770. else
  6771. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6772. $as_echo "no" >&6; }
  6773. fi
  6774. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  6775. MANIFEST_TOOL=":"
  6776. else
  6777. case $cross_compiling:$ac_tool_warned in
  6778. yes:)
  6779. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6780. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6781. ac_tool_warned=yes ;;
  6782. esac
  6783. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  6784. fi
  6785. else
  6786. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  6787. fi
  6788. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  6789. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  6790. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  6791. if ${lt_cv_path_mainfest_tool+:} false; then :
  6792. $as_echo_n "(cached) " >&6
  6793. else
  6794. lt_cv_path_mainfest_tool=no
  6795. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  6796. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  6797. cat conftest.err >&5
  6798. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  6799. lt_cv_path_mainfest_tool=yes
  6800. fi
  6801. rm -f conftest*
  6802. fi
  6803. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  6804. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  6805. if test "x$lt_cv_path_mainfest_tool" != xyes; then
  6806. MANIFEST_TOOL=:
  6807. fi
  6808. case $host_os in
  6809. rhapsody* | darwin*)
  6810. if test -n "$ac_tool_prefix"; then
  6811. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6812. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6813. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6814. $as_echo_n "checking for $ac_word... " >&6; }
  6815. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  6816. $as_echo_n "(cached) " >&6
  6817. else
  6818. if test -n "$DSYMUTIL"; then
  6819. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6820. else
  6821. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6822. for as_dir in $PATH
  6823. do
  6824. IFS=$as_save_IFS
  6825. test -z "$as_dir" && as_dir=.
  6826. for ac_exec_ext in '' $ac_executable_extensions; do
  6827. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6828. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6829. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6830. break 2
  6831. fi
  6832. done
  6833. done
  6834. IFS=$as_save_IFS
  6835. fi
  6836. fi
  6837. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6838. if test -n "$DSYMUTIL"; then
  6839. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  6840. $as_echo "$DSYMUTIL" >&6; }
  6841. else
  6842. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6843. $as_echo "no" >&6; }
  6844. fi
  6845. fi
  6846. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6847. ac_ct_DSYMUTIL=$DSYMUTIL
  6848. # Extract the first word of "dsymutil", so it can be a program name with args.
  6849. set dummy dsymutil; ac_word=$2
  6850. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6851. $as_echo_n "checking for $ac_word... " >&6; }
  6852. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  6853. $as_echo_n "(cached) " >&6
  6854. else
  6855. if test -n "$ac_ct_DSYMUTIL"; then
  6856. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6857. else
  6858. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6859. for as_dir in $PATH
  6860. do
  6861. IFS=$as_save_IFS
  6862. test -z "$as_dir" && as_dir=.
  6863. for ac_exec_ext in '' $ac_executable_extensions; do
  6864. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6865. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6866. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6867. break 2
  6868. fi
  6869. done
  6870. done
  6871. IFS=$as_save_IFS
  6872. fi
  6873. fi
  6874. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6875. if test -n "$ac_ct_DSYMUTIL"; then
  6876. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  6877. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  6878. else
  6879. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6880. $as_echo "no" >&6; }
  6881. fi
  6882. if test "x$ac_ct_DSYMUTIL" = x; then
  6883. DSYMUTIL=":"
  6884. else
  6885. case $cross_compiling:$ac_tool_warned in
  6886. yes:)
  6887. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6888. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6889. ac_tool_warned=yes ;;
  6890. esac
  6891. DSYMUTIL=$ac_ct_DSYMUTIL
  6892. fi
  6893. else
  6894. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6895. fi
  6896. if test -n "$ac_tool_prefix"; then
  6897. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6898. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6899. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6900. $as_echo_n "checking for $ac_word... " >&6; }
  6901. if ${ac_cv_prog_NMEDIT+:} false; then :
  6902. $as_echo_n "(cached) " >&6
  6903. else
  6904. if test -n "$NMEDIT"; then
  6905. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6906. else
  6907. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6908. for as_dir in $PATH
  6909. do
  6910. IFS=$as_save_IFS
  6911. test -z "$as_dir" && as_dir=.
  6912. for ac_exec_ext in '' $ac_executable_extensions; do
  6913. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6914. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6915. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6916. break 2
  6917. fi
  6918. done
  6919. done
  6920. IFS=$as_save_IFS
  6921. fi
  6922. fi
  6923. NMEDIT=$ac_cv_prog_NMEDIT
  6924. if test -n "$NMEDIT"; then
  6925. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  6926. $as_echo "$NMEDIT" >&6; }
  6927. else
  6928. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6929. $as_echo "no" >&6; }
  6930. fi
  6931. fi
  6932. if test -z "$ac_cv_prog_NMEDIT"; then
  6933. ac_ct_NMEDIT=$NMEDIT
  6934. # Extract the first word of "nmedit", so it can be a program name with args.
  6935. set dummy nmedit; ac_word=$2
  6936. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6937. $as_echo_n "checking for $ac_word... " >&6; }
  6938. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  6939. $as_echo_n "(cached) " >&6
  6940. else
  6941. if test -n "$ac_ct_NMEDIT"; then
  6942. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6943. else
  6944. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6945. for as_dir in $PATH
  6946. do
  6947. IFS=$as_save_IFS
  6948. test -z "$as_dir" && as_dir=.
  6949. for ac_exec_ext in '' $ac_executable_extensions; do
  6950. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6951. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6952. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6953. break 2
  6954. fi
  6955. done
  6956. done
  6957. IFS=$as_save_IFS
  6958. fi
  6959. fi
  6960. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6961. if test -n "$ac_ct_NMEDIT"; then
  6962. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  6963. $as_echo "$ac_ct_NMEDIT" >&6; }
  6964. else
  6965. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6966. $as_echo "no" >&6; }
  6967. fi
  6968. if test "x$ac_ct_NMEDIT" = x; then
  6969. NMEDIT=":"
  6970. else
  6971. case $cross_compiling:$ac_tool_warned in
  6972. yes:)
  6973. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6974. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6975. ac_tool_warned=yes ;;
  6976. esac
  6977. NMEDIT=$ac_ct_NMEDIT
  6978. fi
  6979. else
  6980. NMEDIT="$ac_cv_prog_NMEDIT"
  6981. fi
  6982. if test -n "$ac_tool_prefix"; then
  6983. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6984. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6985. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6986. $as_echo_n "checking for $ac_word... " >&6; }
  6987. if ${ac_cv_prog_LIPO+:} false; then :
  6988. $as_echo_n "(cached) " >&6
  6989. else
  6990. if test -n "$LIPO"; then
  6991. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6992. else
  6993. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6994. for as_dir in $PATH
  6995. do
  6996. IFS=$as_save_IFS
  6997. test -z "$as_dir" && as_dir=.
  6998. for ac_exec_ext in '' $ac_executable_extensions; do
  6999. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7000. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  7001. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7002. break 2
  7003. fi
  7004. done
  7005. done
  7006. IFS=$as_save_IFS
  7007. fi
  7008. fi
  7009. LIPO=$ac_cv_prog_LIPO
  7010. if test -n "$LIPO"; then
  7011. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  7012. $as_echo "$LIPO" >&6; }
  7013. else
  7014. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7015. $as_echo "no" >&6; }
  7016. fi
  7017. fi
  7018. if test -z "$ac_cv_prog_LIPO"; then
  7019. ac_ct_LIPO=$LIPO
  7020. # Extract the first word of "lipo", so it can be a program name with args.
  7021. set dummy lipo; ac_word=$2
  7022. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7023. $as_echo_n "checking for $ac_word... " >&6; }
  7024. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  7025. $as_echo_n "(cached) " >&6
  7026. else
  7027. if test -n "$ac_ct_LIPO"; then
  7028. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  7029. else
  7030. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7031. for as_dir in $PATH
  7032. do
  7033. IFS=$as_save_IFS
  7034. test -z "$as_dir" && as_dir=.
  7035. for ac_exec_ext in '' $ac_executable_extensions; do
  7036. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7037. ac_cv_prog_ac_ct_LIPO="lipo"
  7038. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7039. break 2
  7040. fi
  7041. done
  7042. done
  7043. IFS=$as_save_IFS
  7044. fi
  7045. fi
  7046. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  7047. if test -n "$ac_ct_LIPO"; then
  7048. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  7049. $as_echo "$ac_ct_LIPO" >&6; }
  7050. else
  7051. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7052. $as_echo "no" >&6; }
  7053. fi
  7054. if test "x$ac_ct_LIPO" = x; then
  7055. LIPO=":"
  7056. else
  7057. case $cross_compiling:$ac_tool_warned in
  7058. yes:)
  7059. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7060. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7061. ac_tool_warned=yes ;;
  7062. esac
  7063. LIPO=$ac_ct_LIPO
  7064. fi
  7065. else
  7066. LIPO="$ac_cv_prog_LIPO"
  7067. fi
  7068. if test -n "$ac_tool_prefix"; then
  7069. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  7070. set dummy ${ac_tool_prefix}otool; ac_word=$2
  7071. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7072. $as_echo_n "checking for $ac_word... " >&6; }
  7073. if ${ac_cv_prog_OTOOL+:} false; then :
  7074. $as_echo_n "(cached) " >&6
  7075. else
  7076. if test -n "$OTOOL"; then
  7077. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  7078. else
  7079. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7080. for as_dir in $PATH
  7081. do
  7082. IFS=$as_save_IFS
  7083. test -z "$as_dir" && as_dir=.
  7084. for ac_exec_ext in '' $ac_executable_extensions; do
  7085. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7086. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  7087. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7088. break 2
  7089. fi
  7090. done
  7091. done
  7092. IFS=$as_save_IFS
  7093. fi
  7094. fi
  7095. OTOOL=$ac_cv_prog_OTOOL
  7096. if test -n "$OTOOL"; then
  7097. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  7098. $as_echo "$OTOOL" >&6; }
  7099. else
  7100. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7101. $as_echo "no" >&6; }
  7102. fi
  7103. fi
  7104. if test -z "$ac_cv_prog_OTOOL"; then
  7105. ac_ct_OTOOL=$OTOOL
  7106. # Extract the first word of "otool", so it can be a program name with args.
  7107. set dummy otool; ac_word=$2
  7108. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7109. $as_echo_n "checking for $ac_word... " >&6; }
  7110. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  7111. $as_echo_n "(cached) " >&6
  7112. else
  7113. if test -n "$ac_ct_OTOOL"; then
  7114. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  7115. else
  7116. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7117. for as_dir in $PATH
  7118. do
  7119. IFS=$as_save_IFS
  7120. test -z "$as_dir" && as_dir=.
  7121. for ac_exec_ext in '' $ac_executable_extensions; do
  7122. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7123. ac_cv_prog_ac_ct_OTOOL="otool"
  7124. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7125. break 2
  7126. fi
  7127. done
  7128. done
  7129. IFS=$as_save_IFS
  7130. fi
  7131. fi
  7132. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  7133. if test -n "$ac_ct_OTOOL"; then
  7134. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  7135. $as_echo "$ac_ct_OTOOL" >&6; }
  7136. else
  7137. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7138. $as_echo "no" >&6; }
  7139. fi
  7140. if test "x$ac_ct_OTOOL" = x; then
  7141. OTOOL=":"
  7142. else
  7143. case $cross_compiling:$ac_tool_warned in
  7144. yes:)
  7145. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7146. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7147. ac_tool_warned=yes ;;
  7148. esac
  7149. OTOOL=$ac_ct_OTOOL
  7150. fi
  7151. else
  7152. OTOOL="$ac_cv_prog_OTOOL"
  7153. fi
  7154. if test -n "$ac_tool_prefix"; then
  7155. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  7156. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  7157. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7158. $as_echo_n "checking for $ac_word... " >&6; }
  7159. if ${ac_cv_prog_OTOOL64+:} false; then :
  7160. $as_echo_n "(cached) " >&6
  7161. else
  7162. if test -n "$OTOOL64"; then
  7163. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  7164. else
  7165. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7166. for as_dir in $PATH
  7167. do
  7168. IFS=$as_save_IFS
  7169. test -z "$as_dir" && as_dir=.
  7170. for ac_exec_ext in '' $ac_executable_extensions; do
  7171. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7172. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  7173. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7174. break 2
  7175. fi
  7176. done
  7177. done
  7178. IFS=$as_save_IFS
  7179. fi
  7180. fi
  7181. OTOOL64=$ac_cv_prog_OTOOL64
  7182. if test -n "$OTOOL64"; then
  7183. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  7184. $as_echo "$OTOOL64" >&6; }
  7185. else
  7186. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7187. $as_echo "no" >&6; }
  7188. fi
  7189. fi
  7190. if test -z "$ac_cv_prog_OTOOL64"; then
  7191. ac_ct_OTOOL64=$OTOOL64
  7192. # Extract the first word of "otool64", so it can be a program name with args.
  7193. set dummy otool64; ac_word=$2
  7194. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7195. $as_echo_n "checking for $ac_word... " >&6; }
  7196. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  7197. $as_echo_n "(cached) " >&6
  7198. else
  7199. if test -n "$ac_ct_OTOOL64"; then
  7200. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  7201. else
  7202. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7203. for as_dir in $PATH
  7204. do
  7205. IFS=$as_save_IFS
  7206. test -z "$as_dir" && as_dir=.
  7207. for ac_exec_ext in '' $ac_executable_extensions; do
  7208. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7209. ac_cv_prog_ac_ct_OTOOL64="otool64"
  7210. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7211. break 2
  7212. fi
  7213. done
  7214. done
  7215. IFS=$as_save_IFS
  7216. fi
  7217. fi
  7218. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  7219. if test -n "$ac_ct_OTOOL64"; then
  7220. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  7221. $as_echo "$ac_ct_OTOOL64" >&6; }
  7222. else
  7223. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7224. $as_echo "no" >&6; }
  7225. fi
  7226. if test "x$ac_ct_OTOOL64" = x; then
  7227. OTOOL64=":"
  7228. else
  7229. case $cross_compiling:$ac_tool_warned in
  7230. yes:)
  7231. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7232. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7233. ac_tool_warned=yes ;;
  7234. esac
  7235. OTOOL64=$ac_ct_OTOOL64
  7236. fi
  7237. else
  7238. OTOOL64="$ac_cv_prog_OTOOL64"
  7239. fi
  7240. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  7241. $as_echo_n "checking for -single_module linker flag... " >&6; }
  7242. if ${lt_cv_apple_cc_single_mod+:} false; then :
  7243. $as_echo_n "(cached) " >&6
  7244. else
  7245. lt_cv_apple_cc_single_mod=no
  7246. if test -z "${LT_MULTI_MODULE}"; then
  7247. # By default we will add the -single_module flag. You can override
  7248. # by either setting the environment variable LT_MULTI_MODULE
  7249. # non-empty at configure time, or by adding -multi_module to the
  7250. # link flags.
  7251. rm -rf libconftest.dylib*
  7252. echo "int foo(void){return 1;}" > conftest.c
  7253. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7254. -dynamiclib -Wl,-single_module conftest.c" >&5
  7255. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7256. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  7257. _lt_result=$?
  7258. # If there is a non-empty error log, and "single_module"
  7259. # appears in it, assume the flag caused a linker warning
  7260. if test -s conftest.err && $GREP single_module conftest.err; then
  7261. cat conftest.err >&5
  7262. # Otherwise, if the output was created with a 0 exit code from
  7263. # the compiler, it worked.
  7264. elif test -f libconftest.dylib && test $_lt_result -eq 0; then
  7265. lt_cv_apple_cc_single_mod=yes
  7266. else
  7267. cat conftest.err >&5
  7268. fi
  7269. rm -rf libconftest.dylib*
  7270. rm -f conftest.*
  7271. fi
  7272. fi
  7273. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  7274. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  7275. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  7276. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  7277. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  7278. $as_echo_n "(cached) " >&6
  7279. else
  7280. lt_cv_ld_exported_symbols_list=no
  7281. save_LDFLAGS=$LDFLAGS
  7282. echo "_main" > conftest.sym
  7283. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  7284. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7285. /* end confdefs.h. */
  7286. int
  7287. main ()
  7288. {
  7289. ;
  7290. return 0;
  7291. }
  7292. _ACEOF
  7293. if ac_fn_c_try_link "$LINENO"; then :
  7294. lt_cv_ld_exported_symbols_list=yes
  7295. else
  7296. lt_cv_ld_exported_symbols_list=no
  7297. fi
  7298. rm -f core conftest.err conftest.$ac_objext \
  7299. conftest$ac_exeext conftest.$ac_ext
  7300. LDFLAGS="$save_LDFLAGS"
  7301. fi
  7302. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  7303. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  7304. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  7305. $as_echo_n "checking for -force_load linker flag... " >&6; }
  7306. if ${lt_cv_ld_force_load+:} false; then :
  7307. $as_echo_n "(cached) " >&6
  7308. else
  7309. lt_cv_ld_force_load=no
  7310. cat > conftest.c << _LT_EOF
  7311. int forced_loaded() { return 2;}
  7312. _LT_EOF
  7313. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  7314. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  7315. echo "$AR cru libconftest.a conftest.o" >&5
  7316. $AR cru libconftest.a conftest.o 2>&5
  7317. echo "$RANLIB libconftest.a" >&5
  7318. $RANLIB libconftest.a 2>&5
  7319. cat > conftest.c << _LT_EOF
  7320. int main() { return 0;}
  7321. _LT_EOF
  7322. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  7323. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  7324. _lt_result=$?
  7325. if test -s conftest.err && $GREP force_load conftest.err; then
  7326. cat conftest.err >&5
  7327. elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
  7328. lt_cv_ld_force_load=yes
  7329. else
  7330. cat conftest.err >&5
  7331. fi
  7332. rm -f conftest.err libconftest.a conftest conftest.c
  7333. rm -rf conftest.dSYM
  7334. fi
  7335. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  7336. $as_echo "$lt_cv_ld_force_load" >&6; }
  7337. case $host_os in
  7338. rhapsody* | darwin1.[012])
  7339. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  7340. darwin1.*)
  7341. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  7342. darwin*) # darwin 5.x on
  7343. # if running on 10.5 or later, the deployment target defaults
  7344. # to the OS version, if on x86, and 10.4, the deployment
  7345. # target defaults to 10.4. Don't you love it?
  7346. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  7347. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  7348. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  7349. 10.[012]*)
  7350. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  7351. 10.*)
  7352. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  7353. esac
  7354. ;;
  7355. esac
  7356. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  7357. _lt_dar_single_mod='$single_module'
  7358. fi
  7359. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  7360. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  7361. else
  7362. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  7363. fi
  7364. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  7365. _lt_dsymutil='~$DSYMUTIL $lib || :'
  7366. else
  7367. _lt_dsymutil=
  7368. fi
  7369. ;;
  7370. esac
  7371. ac_ext=c
  7372. ac_cpp='$CPP $CPPFLAGS'
  7373. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7374. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7375. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7376. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  7377. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  7378. # On Suns, sometimes $CPP names a directory.
  7379. if test -n "$CPP" && test -d "$CPP"; then
  7380. CPP=
  7381. fi
  7382. if test -z "$CPP"; then
  7383. if ${ac_cv_prog_CPP+:} false; then :
  7384. $as_echo_n "(cached) " >&6
  7385. else
  7386. # Double quotes because CPP needs to be expanded
  7387. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  7388. do
  7389. ac_preproc_ok=false
  7390. for ac_c_preproc_warn_flag in '' yes
  7391. do
  7392. # Use a header file that comes with gcc, so configuring glibc
  7393. # with a fresh cross-compiler works.
  7394. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7395. # <limits.h> exists even on freestanding compilers.
  7396. # On the NeXT, cc -E runs the code through the compiler's parser,
  7397. # not just through cpp. "Syntax error" is here to catch this case.
  7398. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7399. /* end confdefs.h. */
  7400. #ifdef __STDC__
  7401. # include <limits.h>
  7402. #else
  7403. # include <assert.h>
  7404. #endif
  7405. Syntax error
  7406. _ACEOF
  7407. if ac_fn_c_try_cpp "$LINENO"; then :
  7408. else
  7409. # Broken: fails on valid input.
  7410. continue
  7411. fi
  7412. rm -f conftest.err conftest.i conftest.$ac_ext
  7413. # OK, works on sane cases. Now check whether nonexistent headers
  7414. # can be detected and how.
  7415. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7416. /* end confdefs.h. */
  7417. #include <ac_nonexistent.h>
  7418. _ACEOF
  7419. if ac_fn_c_try_cpp "$LINENO"; then :
  7420. # Broken: success on invalid input.
  7421. continue
  7422. else
  7423. # Passes both tests.
  7424. ac_preproc_ok=:
  7425. break
  7426. fi
  7427. rm -f conftest.err conftest.i conftest.$ac_ext
  7428. done
  7429. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  7430. rm -f conftest.i conftest.err conftest.$ac_ext
  7431. if $ac_preproc_ok; then :
  7432. break
  7433. fi
  7434. done
  7435. ac_cv_prog_CPP=$CPP
  7436. fi
  7437. CPP=$ac_cv_prog_CPP
  7438. else
  7439. ac_cv_prog_CPP=$CPP
  7440. fi
  7441. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  7442. $as_echo "$CPP" >&6; }
  7443. ac_preproc_ok=false
  7444. for ac_c_preproc_warn_flag in '' yes
  7445. do
  7446. # Use a header file that comes with gcc, so configuring glibc
  7447. # with a fresh cross-compiler works.
  7448. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7449. # <limits.h> exists even on freestanding compilers.
  7450. # On the NeXT, cc -E runs the code through the compiler's parser,
  7451. # not just through cpp. "Syntax error" is here to catch this case.
  7452. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7453. /* end confdefs.h. */
  7454. #ifdef __STDC__
  7455. # include <limits.h>
  7456. #else
  7457. # include <assert.h>
  7458. #endif
  7459. Syntax error
  7460. _ACEOF
  7461. if ac_fn_c_try_cpp "$LINENO"; then :
  7462. else
  7463. # Broken: fails on valid input.
  7464. continue
  7465. fi
  7466. rm -f conftest.err conftest.i conftest.$ac_ext
  7467. # OK, works on sane cases. Now check whether nonexistent headers
  7468. # can be detected and how.
  7469. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7470. /* end confdefs.h. */
  7471. #include <ac_nonexistent.h>
  7472. _ACEOF
  7473. if ac_fn_c_try_cpp "$LINENO"; then :
  7474. # Broken: success on invalid input.
  7475. continue
  7476. else
  7477. # Passes both tests.
  7478. ac_preproc_ok=:
  7479. break
  7480. fi
  7481. rm -f conftest.err conftest.i conftest.$ac_ext
  7482. done
  7483. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  7484. rm -f conftest.i conftest.err conftest.$ac_ext
  7485. if $ac_preproc_ok; then :
  7486. else
  7487. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  7488. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  7489. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  7490. See \`config.log' for more details" "$LINENO" 5; }
  7491. fi
  7492. ac_ext=c
  7493. ac_cpp='$CPP $CPPFLAGS'
  7494. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7495. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7496. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7497. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  7498. $as_echo_n "checking for ANSI C header files... " >&6; }
  7499. if ${ac_cv_header_stdc+:} false; then :
  7500. $as_echo_n "(cached) " >&6
  7501. else
  7502. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7503. /* end confdefs.h. */
  7504. #include <stdlib.h>
  7505. #include <stdarg.h>
  7506. #include <string.h>
  7507. #include <float.h>
  7508. int
  7509. main ()
  7510. {
  7511. ;
  7512. return 0;
  7513. }
  7514. _ACEOF
  7515. if ac_fn_c_try_compile "$LINENO"; then :
  7516. ac_cv_header_stdc=yes
  7517. else
  7518. ac_cv_header_stdc=no
  7519. fi
  7520. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7521. if test $ac_cv_header_stdc = yes; then
  7522. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  7523. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7524. /* end confdefs.h. */
  7525. #include <string.h>
  7526. _ACEOF
  7527. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7528. $EGREP "memchr" >/dev/null 2>&1; then :
  7529. else
  7530. ac_cv_header_stdc=no
  7531. fi
  7532. rm -f conftest*
  7533. fi
  7534. if test $ac_cv_header_stdc = yes; then
  7535. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  7536. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7537. /* end confdefs.h. */
  7538. #include <stdlib.h>
  7539. _ACEOF
  7540. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7541. $EGREP "free" >/dev/null 2>&1; then :
  7542. else
  7543. ac_cv_header_stdc=no
  7544. fi
  7545. rm -f conftest*
  7546. fi
  7547. if test $ac_cv_header_stdc = yes; then
  7548. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  7549. if test "$cross_compiling" = yes; then :
  7550. :
  7551. else
  7552. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7553. /* end confdefs.h. */
  7554. #include <ctype.h>
  7555. #include <stdlib.h>
  7556. #if ((' ' & 0x0FF) == 0x020)
  7557. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  7558. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  7559. #else
  7560. # define ISLOWER(c) \
  7561. (('a' <= (c) && (c) <= 'i') \
  7562. || ('j' <= (c) && (c) <= 'r') \
  7563. || ('s' <= (c) && (c) <= 'z'))
  7564. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  7565. #endif
  7566. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  7567. int
  7568. main ()
  7569. {
  7570. int i;
  7571. for (i = 0; i < 256; i++)
  7572. if (XOR (islower (i), ISLOWER (i))
  7573. || toupper (i) != TOUPPER (i))
  7574. return 2;
  7575. return 0;
  7576. }
  7577. _ACEOF
  7578. if ac_fn_c_try_run "$LINENO"; then :
  7579. else
  7580. ac_cv_header_stdc=no
  7581. fi
  7582. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  7583. conftest.$ac_objext conftest.beam conftest.$ac_ext
  7584. fi
  7585. fi
  7586. fi
  7587. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  7588. $as_echo "$ac_cv_header_stdc" >&6; }
  7589. if test $ac_cv_header_stdc = yes; then
  7590. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  7591. fi
  7592. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  7593. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  7594. inttypes.h stdint.h unistd.h
  7595. do :
  7596. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7597. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  7598. "
  7599. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  7600. cat >>confdefs.h <<_ACEOF
  7601. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7602. _ACEOF
  7603. fi
  7604. done
  7605. for ac_header in dlfcn.h
  7606. do :
  7607. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  7608. "
  7609. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  7610. cat >>confdefs.h <<_ACEOF
  7611. #define HAVE_DLFCN_H 1
  7612. _ACEOF
  7613. fi
  7614. done
  7615. func_stripname_cnf ()
  7616. {
  7617. case ${2} in
  7618. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  7619. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  7620. esac
  7621. } # func_stripname_cnf
  7622. # Set options
  7623. enable_dlopen=no
  7624. enable_win32_dll=no
  7625. # Check whether --enable-shared was given.
  7626. if test "${enable_shared+set}" = set; then :
  7627. enableval=$enable_shared; p=${PACKAGE-default}
  7628. case $enableval in
  7629. yes) enable_shared=yes ;;
  7630. no) enable_shared=no ;;
  7631. *)
  7632. enable_shared=no
  7633. # Look at the argument we got. We use all the common list separators.
  7634. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7635. for pkg in $enableval; do
  7636. IFS="$lt_save_ifs"
  7637. if test "X$pkg" = "X$p"; then
  7638. enable_shared=yes
  7639. fi
  7640. done
  7641. IFS="$lt_save_ifs"
  7642. ;;
  7643. esac
  7644. else
  7645. enable_shared=yes
  7646. fi
  7647. # Check whether --with-pic was given.
  7648. if test "${with_pic+set}" = set; then :
  7649. withval=$with_pic; lt_p=${PACKAGE-default}
  7650. case $withval in
  7651. yes|no) pic_mode=$withval ;;
  7652. *)
  7653. pic_mode=default
  7654. # Look at the argument we got. We use all the common list separators.
  7655. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7656. for lt_pkg in $withval; do
  7657. IFS="$lt_save_ifs"
  7658. if test "X$lt_pkg" = "X$lt_p"; then
  7659. pic_mode=yes
  7660. fi
  7661. done
  7662. IFS="$lt_save_ifs"
  7663. ;;
  7664. esac
  7665. else
  7666. pic_mode=default
  7667. fi
  7668. test -z "$pic_mode" && pic_mode=default
  7669. # Check whether --enable-fast-install was given.
  7670. if test "${enable_fast_install+set}" = set; then :
  7671. enableval=$enable_fast_install; p=${PACKAGE-default}
  7672. case $enableval in
  7673. yes) enable_fast_install=yes ;;
  7674. no) enable_fast_install=no ;;
  7675. *)
  7676. enable_fast_install=no
  7677. # Look at the argument we got. We use all the common list separators.
  7678. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7679. for pkg in $enableval; do
  7680. IFS="$lt_save_ifs"
  7681. if test "X$pkg" = "X$p"; then
  7682. enable_fast_install=yes
  7683. fi
  7684. done
  7685. IFS="$lt_save_ifs"
  7686. ;;
  7687. esac
  7688. else
  7689. enable_fast_install=yes
  7690. fi
  7691. # This can be used to rebuild libtool when needed
  7692. LIBTOOL_DEPS="$ltmain"
  7693. # Always use our own libtool.
  7694. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7695. test -z "$LN_S" && LN_S="ln -s"
  7696. if test -n "${ZSH_VERSION+set}" ; then
  7697. setopt NO_GLOB_SUBST
  7698. fi
  7699. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7700. $as_echo_n "checking for objdir... " >&6; }
  7701. if ${lt_cv_objdir+:} false; then :
  7702. $as_echo_n "(cached) " >&6
  7703. else
  7704. rm -f .libs 2>/dev/null
  7705. mkdir .libs 2>/dev/null
  7706. if test -d .libs; then
  7707. lt_cv_objdir=.libs
  7708. else
  7709. # MS-DOS does not allow filenames that begin with a dot.
  7710. lt_cv_objdir=_libs
  7711. fi
  7712. rmdir .libs 2>/dev/null
  7713. fi
  7714. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7715. $as_echo "$lt_cv_objdir" >&6; }
  7716. objdir=$lt_cv_objdir
  7717. cat >>confdefs.h <<_ACEOF
  7718. #define LT_OBJDIR "$lt_cv_objdir/"
  7719. _ACEOF
  7720. case $host_os in
  7721. aix3*)
  7722. # AIX sometimes has problems with the GCC collect2 program. For some
  7723. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7724. # vanish in a puff of smoke.
  7725. if test "X${COLLECT_NAMES+set}" != Xset; then
  7726. COLLECT_NAMES=
  7727. export COLLECT_NAMES
  7728. fi
  7729. ;;
  7730. esac
  7731. # Global variables:
  7732. ofile=libtool
  7733. can_build_shared=yes
  7734. # All known linkers require a `.a' archive for static linking (except MSVC,
  7735. # which needs '.lib').
  7736. libext=a
  7737. with_gnu_ld="$lt_cv_prog_gnu_ld"
  7738. old_CC="$CC"
  7739. old_CFLAGS="$CFLAGS"
  7740. # Set sane defaults for various variables
  7741. test -z "$CC" && CC=cc
  7742. test -z "$LTCC" && LTCC=$CC
  7743. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7744. test -z "$LD" && LD=ld
  7745. test -z "$ac_objext" && ac_objext=o
  7746. for cc_temp in $compiler""; do
  7747. case $cc_temp in
  7748. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  7749. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  7750. \-*) ;;
  7751. *) break;;
  7752. esac
  7753. done
  7754. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  7755. # Only perform the check for file, if the check method requires it
  7756. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7757. case $deplibs_check_method in
  7758. file_magic*)
  7759. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7760. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7761. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  7762. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7763. $as_echo_n "(cached) " >&6
  7764. else
  7765. case $MAGIC_CMD in
  7766. [\\/*] | ?:[\\/]*)
  7767. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7768. ;;
  7769. *)
  7770. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7771. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7772. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7773. for ac_dir in $ac_dummy; do
  7774. IFS="$lt_save_ifs"
  7775. test -z "$ac_dir" && ac_dir=.
  7776. if test -f $ac_dir/${ac_tool_prefix}file; then
  7777. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  7778. if test -n "$file_magic_test_file"; then
  7779. case $deplibs_check_method in
  7780. "file_magic "*)
  7781. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7782. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7783. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7784. $EGREP "$file_magic_regex" > /dev/null; then
  7785. :
  7786. else
  7787. cat <<_LT_EOF 1>&2
  7788. *** Warning: the command libtool uses to detect shared libraries,
  7789. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7790. *** The result is that libtool may fail to recognize shared libraries
  7791. *** as such. This will affect the creation of libtool libraries that
  7792. *** depend on shared libraries, but programs linked with such libtool
  7793. *** libraries will work regardless of this problem. Nevertheless, you
  7794. *** may want to report the problem to your system manager and/or to
  7795. *** [email protected]
  7796. _LT_EOF
  7797. fi ;;
  7798. esac
  7799. fi
  7800. break
  7801. fi
  7802. done
  7803. IFS="$lt_save_ifs"
  7804. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7805. ;;
  7806. esac
  7807. fi
  7808. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7809. if test -n "$MAGIC_CMD"; then
  7810. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7811. $as_echo "$MAGIC_CMD" >&6; }
  7812. else
  7813. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7814. $as_echo "no" >&6; }
  7815. fi
  7816. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7817. if test -n "$ac_tool_prefix"; then
  7818. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7819. $as_echo_n "checking for file... " >&6; }
  7820. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7821. $as_echo_n "(cached) " >&6
  7822. else
  7823. case $MAGIC_CMD in
  7824. [\\/*] | ?:[\\/]*)
  7825. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7826. ;;
  7827. *)
  7828. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7829. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7830. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7831. for ac_dir in $ac_dummy; do
  7832. IFS="$lt_save_ifs"
  7833. test -z "$ac_dir" && ac_dir=.
  7834. if test -f $ac_dir/file; then
  7835. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  7836. if test -n "$file_magic_test_file"; then
  7837. case $deplibs_check_method in
  7838. "file_magic "*)
  7839. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7840. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7841. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7842. $EGREP "$file_magic_regex" > /dev/null; then
  7843. :
  7844. else
  7845. cat <<_LT_EOF 1>&2
  7846. *** Warning: the command libtool uses to detect shared libraries,
  7847. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7848. *** The result is that libtool may fail to recognize shared libraries
  7849. *** as such. This will affect the creation of libtool libraries that
  7850. *** depend on shared libraries, but programs linked with such libtool
  7851. *** libraries will work regardless of this problem. Nevertheless, you
  7852. *** may want to report the problem to your system manager and/or to
  7853. *** [email protected]
  7854. _LT_EOF
  7855. fi ;;
  7856. esac
  7857. fi
  7858. break
  7859. fi
  7860. done
  7861. IFS="$lt_save_ifs"
  7862. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7863. ;;
  7864. esac
  7865. fi
  7866. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7867. if test -n "$MAGIC_CMD"; then
  7868. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7869. $as_echo "$MAGIC_CMD" >&6; }
  7870. else
  7871. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7872. $as_echo "no" >&6; }
  7873. fi
  7874. else
  7875. MAGIC_CMD=:
  7876. fi
  7877. fi
  7878. fi
  7879. ;;
  7880. esac
  7881. # Use C for the default configuration in the libtool script
  7882. lt_save_CC="$CC"
  7883. ac_ext=c
  7884. ac_cpp='$CPP $CPPFLAGS'
  7885. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7886. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7887. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7888. # Source file extension for C test sources.
  7889. ac_ext=c
  7890. # Object file extension for compiled C test sources.
  7891. objext=o
  7892. objext=$objext
  7893. # Code to be used in simple compile tests
  7894. lt_simple_compile_test_code="int some_variable = 0;"
  7895. # Code to be used in simple link tests
  7896. lt_simple_link_test_code='int main(){return(0);}'
  7897. # If no C compiler was specified, use CC.
  7898. LTCC=${LTCC-"$CC"}
  7899. # If no C compiler flags were specified, use CFLAGS.
  7900. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7901. # Allow CC to be a program name with arguments.
  7902. compiler=$CC
  7903. # Save the default compiler, since it gets overwritten when the other
  7904. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7905. compiler_DEFAULT=$CC
  7906. # save warnings/boilerplate of simple test code
  7907. ac_outfile=conftest.$ac_objext
  7908. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7909. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7910. _lt_compiler_boilerplate=`cat conftest.err`
  7911. $RM conftest*
  7912. ac_outfile=conftest.$ac_objext
  7913. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7914. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7915. _lt_linker_boilerplate=`cat conftest.err`
  7916. $RM -r conftest*
  7917. ## CAVEAT EMPTOR:
  7918. ## There is no encapsulation within the following macros, do not change
  7919. ## the running order or otherwise move them around unless you know exactly
  7920. ## what you are doing...
  7921. if test -n "$compiler"; then
  7922. lt_prog_compiler_no_builtin_flag=
  7923. if test "$GCC" = yes; then
  7924. case $cc_basename in
  7925. nvcc*)
  7926. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7927. *)
  7928. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7929. esac
  7930. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7931. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7932. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  7933. $as_echo_n "(cached) " >&6
  7934. else
  7935. lt_cv_prog_compiler_rtti_exceptions=no
  7936. ac_outfile=conftest.$ac_objext
  7937. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7938. lt_compiler_flag="-fno-rtti -fno-exceptions"
  7939. # Insert the option either (1) after the last *FLAGS variable, or
  7940. # (2) before a word containing "conftest.", or (3) at the end.
  7941. # Note that $ac_compile itself does not contain backslashes and begins
  7942. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7943. # The option is referenced via a variable to avoid confusing sed.
  7944. lt_compile=`echo "$ac_compile" | $SED \
  7945. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7946. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7947. -e 's:$: $lt_compiler_flag:'`
  7948. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7949. (eval "$lt_compile" 2>conftest.err)
  7950. ac_status=$?
  7951. cat conftest.err >&5
  7952. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7953. if (exit $ac_status) && test -s "$ac_outfile"; then
  7954. # The compiler can only warn and ignore the option if not recognized
  7955. # So say no if there are warnings other than the usual output.
  7956. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7957. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7958. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7959. lt_cv_prog_compiler_rtti_exceptions=yes
  7960. fi
  7961. fi
  7962. $RM conftest*
  7963. fi
  7964. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7965. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7966. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  7967. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7968. else
  7969. :
  7970. fi
  7971. fi
  7972. lt_prog_compiler_wl=
  7973. lt_prog_compiler_pic=
  7974. lt_prog_compiler_static=
  7975. if test "$GCC" = yes; then
  7976. lt_prog_compiler_wl='-Wl,'
  7977. lt_prog_compiler_static='-static'
  7978. case $host_os in
  7979. aix*)
  7980. # All AIX code is PIC.
  7981. if test "$host_cpu" = ia64; then
  7982. # AIX 5 now supports IA64 processor
  7983. lt_prog_compiler_static='-Bstatic'
  7984. fi
  7985. ;;
  7986. amigaos*)
  7987. case $host_cpu in
  7988. powerpc)
  7989. # see comment about AmigaOS4 .so support
  7990. lt_prog_compiler_pic='-fPIC'
  7991. ;;
  7992. m68k)
  7993. # FIXME: we need at least 68020 code to build shared libraries, but
  7994. # adding the `-m68020' flag to GCC prevents building anything better,
  7995. # like `-m68040'.
  7996. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7997. ;;
  7998. esac
  7999. ;;
  8000. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  8001. # PIC is the default for these OSes.
  8002. ;;
  8003. mingw* | cygwin* | pw32* | os2* | cegcc*)
  8004. # This hack is so that the source file can tell whether it is being
  8005. # built for inclusion in a dll (and should export symbols for example).
  8006. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  8007. # (--disable-auto-import) libraries
  8008. lt_prog_compiler_pic='-DDLL_EXPORT'
  8009. ;;
  8010. darwin* | rhapsody*)
  8011. # PIC is the default on this platform
  8012. # Common symbols not allowed in MH_DYLIB files
  8013. lt_prog_compiler_pic='-fno-common'
  8014. ;;
  8015. haiku*)
  8016. # PIC is the default for Haiku.
  8017. # The "-static" flag exists, but is broken.
  8018. lt_prog_compiler_static=
  8019. ;;
  8020. hpux*)
  8021. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  8022. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  8023. # sets the default TLS model and affects inlining.
  8024. case $host_cpu in
  8025. hppa*64*)
  8026. # +Z the default
  8027. ;;
  8028. *)
  8029. lt_prog_compiler_pic='-fPIC'
  8030. ;;
  8031. esac
  8032. ;;
  8033. interix[3-9]*)
  8034. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  8035. # Instead, we relocate shared libraries at runtime.
  8036. ;;
  8037. msdosdjgpp*)
  8038. # Just because we use GCC doesn't mean we suddenly get shared libraries
  8039. # on systems that don't support them.
  8040. lt_prog_compiler_can_build_shared=no
  8041. enable_shared=no
  8042. ;;
  8043. *nto* | *qnx*)
  8044. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8045. # it will coredump.
  8046. lt_prog_compiler_pic='-fPIC -shared'
  8047. ;;
  8048. sysv4*MP*)
  8049. if test -d /usr/nec; then
  8050. lt_prog_compiler_pic=-Kconform_pic
  8051. fi
  8052. ;;
  8053. *)
  8054. lt_prog_compiler_pic='-fPIC'
  8055. ;;
  8056. esac
  8057. case $cc_basename in
  8058. nvcc*) # Cuda Compiler Driver 2.2
  8059. lt_prog_compiler_wl='-Xlinker '
  8060. if test -n "$lt_prog_compiler_pic"; then
  8061. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  8062. fi
  8063. ;;
  8064. esac
  8065. else
  8066. # PORTME Check for flag to pass linker flags through the system compiler.
  8067. case $host_os in
  8068. aix*)
  8069. lt_prog_compiler_wl='-Wl,'
  8070. if test "$host_cpu" = ia64; then
  8071. # AIX 5 now supports IA64 processor
  8072. lt_prog_compiler_static='-Bstatic'
  8073. else
  8074. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  8075. fi
  8076. ;;
  8077. mingw* | cygwin* | pw32* | os2* | cegcc*)
  8078. # This hack is so that the source file can tell whether it is being
  8079. # built for inclusion in a dll (and should export symbols for example).
  8080. lt_prog_compiler_pic='-DDLL_EXPORT'
  8081. ;;
  8082. hpux9* | hpux10* | hpux11*)
  8083. lt_prog_compiler_wl='-Wl,'
  8084. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  8085. # not for PA HP-UX.
  8086. case $host_cpu in
  8087. hppa*64*|ia64*)
  8088. # +Z the default
  8089. ;;
  8090. *)
  8091. lt_prog_compiler_pic='+Z'
  8092. ;;
  8093. esac
  8094. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  8095. lt_prog_compiler_static='${wl}-a ${wl}archive'
  8096. ;;
  8097. irix5* | irix6* | nonstopux*)
  8098. lt_prog_compiler_wl='-Wl,'
  8099. # PIC (with -KPIC) is the default.
  8100. lt_prog_compiler_static='-non_shared'
  8101. ;;
  8102. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  8103. case $cc_basename in
  8104. # old Intel for x86_64 which still supported -KPIC.
  8105. ecc*)
  8106. lt_prog_compiler_wl='-Wl,'
  8107. lt_prog_compiler_pic='-KPIC'
  8108. lt_prog_compiler_static='-static'
  8109. ;;
  8110. # icc used to be incompatible with GCC.
  8111. # ICC 10 doesn't accept -KPIC any more.
  8112. icc* | ifort*)
  8113. lt_prog_compiler_wl='-Wl,'
  8114. lt_prog_compiler_pic='-fPIC'
  8115. lt_prog_compiler_static='-static'
  8116. ;;
  8117. # Lahey Fortran 8.1.
  8118. lf95*)
  8119. lt_prog_compiler_wl='-Wl,'
  8120. lt_prog_compiler_pic='--shared'
  8121. lt_prog_compiler_static='--static'
  8122. ;;
  8123. nagfor*)
  8124. # NAG Fortran compiler
  8125. lt_prog_compiler_wl='-Wl,-Wl,,'
  8126. lt_prog_compiler_pic='-PIC'
  8127. lt_prog_compiler_static='-Bstatic'
  8128. ;;
  8129. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  8130. # Portland Group compilers (*not* the Pentium gcc compiler,
  8131. # which looks to be a dead project)
  8132. lt_prog_compiler_wl='-Wl,'
  8133. lt_prog_compiler_pic='-fpic'
  8134. lt_prog_compiler_static='-Bstatic'
  8135. ;;
  8136. ccc*)
  8137. lt_prog_compiler_wl='-Wl,'
  8138. # All Alpha code is PIC.
  8139. lt_prog_compiler_static='-non_shared'
  8140. ;;
  8141. xl* | bgxl* | bgf* | mpixl*)
  8142. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  8143. lt_prog_compiler_wl='-Wl,'
  8144. lt_prog_compiler_pic='-qpic'
  8145. lt_prog_compiler_static='-qstaticlink'
  8146. ;;
  8147. *)
  8148. case `$CC -V 2>&1 | sed 5q` in
  8149. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  8150. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  8151. lt_prog_compiler_pic='-KPIC'
  8152. lt_prog_compiler_static='-Bstatic'
  8153. lt_prog_compiler_wl=''
  8154. ;;
  8155. *Sun\ F* | *Sun*Fortran*)
  8156. lt_prog_compiler_pic='-KPIC'
  8157. lt_prog_compiler_static='-Bstatic'
  8158. lt_prog_compiler_wl='-Qoption ld '
  8159. ;;
  8160. *Sun\ C*)
  8161. # Sun C 5.9
  8162. lt_prog_compiler_pic='-KPIC'
  8163. lt_prog_compiler_static='-Bstatic'
  8164. lt_prog_compiler_wl='-Wl,'
  8165. ;;
  8166. *Intel*\ [CF]*Compiler*)
  8167. lt_prog_compiler_wl='-Wl,'
  8168. lt_prog_compiler_pic='-fPIC'
  8169. lt_prog_compiler_static='-static'
  8170. ;;
  8171. *Portland\ Group*)
  8172. lt_prog_compiler_wl='-Wl,'
  8173. lt_prog_compiler_pic='-fpic'
  8174. lt_prog_compiler_static='-Bstatic'
  8175. ;;
  8176. esac
  8177. ;;
  8178. esac
  8179. ;;
  8180. newsos6)
  8181. lt_prog_compiler_pic='-KPIC'
  8182. lt_prog_compiler_static='-Bstatic'
  8183. ;;
  8184. *nto* | *qnx*)
  8185. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8186. # it will coredump.
  8187. lt_prog_compiler_pic='-fPIC -shared'
  8188. ;;
  8189. osf3* | osf4* | osf5*)
  8190. lt_prog_compiler_wl='-Wl,'
  8191. # All OSF/1 code is PIC.
  8192. lt_prog_compiler_static='-non_shared'
  8193. ;;
  8194. rdos*)
  8195. lt_prog_compiler_static='-non_shared'
  8196. ;;
  8197. solaris*)
  8198. lt_prog_compiler_pic='-KPIC'
  8199. lt_prog_compiler_static='-Bstatic'
  8200. case $cc_basename in
  8201. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  8202. lt_prog_compiler_wl='-Qoption ld ';;
  8203. *)
  8204. lt_prog_compiler_wl='-Wl,';;
  8205. esac
  8206. ;;
  8207. sunos4*)
  8208. lt_prog_compiler_wl='-Qoption ld '
  8209. lt_prog_compiler_pic='-PIC'
  8210. lt_prog_compiler_static='-Bstatic'
  8211. ;;
  8212. sysv4 | sysv4.2uw2* | sysv4.3*)
  8213. lt_prog_compiler_wl='-Wl,'
  8214. lt_prog_compiler_pic='-KPIC'
  8215. lt_prog_compiler_static='-Bstatic'
  8216. ;;
  8217. sysv4*MP*)
  8218. if test -d /usr/nec ;then
  8219. lt_prog_compiler_pic='-Kconform_pic'
  8220. lt_prog_compiler_static='-Bstatic'
  8221. fi
  8222. ;;
  8223. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  8224. lt_prog_compiler_wl='-Wl,'
  8225. lt_prog_compiler_pic='-KPIC'
  8226. lt_prog_compiler_static='-Bstatic'
  8227. ;;
  8228. unicos*)
  8229. lt_prog_compiler_wl='-Wl,'
  8230. lt_prog_compiler_can_build_shared=no
  8231. ;;
  8232. uts4*)
  8233. lt_prog_compiler_pic='-pic'
  8234. lt_prog_compiler_static='-Bstatic'
  8235. ;;
  8236. *)
  8237. lt_prog_compiler_can_build_shared=no
  8238. ;;
  8239. esac
  8240. fi
  8241. case $host_os in
  8242. # For platforms which do not support PIC, -DPIC is meaningless:
  8243. *djgpp*)
  8244. lt_prog_compiler_pic=
  8245. ;;
  8246. *)
  8247. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  8248. ;;
  8249. esac
  8250. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  8251. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  8252. if ${lt_cv_prog_compiler_pic+:} false; then :
  8253. $as_echo_n "(cached) " >&6
  8254. else
  8255. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  8256. fi
  8257. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  8258. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  8259. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  8260. #
  8261. # Check to make sure the PIC flag actually works.
  8262. #
  8263. if test -n "$lt_prog_compiler_pic"; then
  8264. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  8265. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  8266. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  8267. $as_echo_n "(cached) " >&6
  8268. else
  8269. lt_cv_prog_compiler_pic_works=no
  8270. ac_outfile=conftest.$ac_objext
  8271. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8272. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  8273. # Insert the option either (1) after the last *FLAGS variable, or
  8274. # (2) before a word containing "conftest.", or (3) at the end.
  8275. # Note that $ac_compile itself does not contain backslashes and begins
  8276. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8277. # The option is referenced via a variable to avoid confusing sed.
  8278. lt_compile=`echo "$ac_compile" | $SED \
  8279. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8280. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8281. -e 's:$: $lt_compiler_flag:'`
  8282. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8283. (eval "$lt_compile" 2>conftest.err)
  8284. ac_status=$?
  8285. cat conftest.err >&5
  8286. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8287. if (exit $ac_status) && test -s "$ac_outfile"; then
  8288. # The compiler can only warn and ignore the option if not recognized
  8289. # So say no if there are warnings other than the usual output.
  8290. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8291. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8292. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8293. lt_cv_prog_compiler_pic_works=yes
  8294. fi
  8295. fi
  8296. $RM conftest*
  8297. fi
  8298. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  8299. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  8300. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  8301. case $lt_prog_compiler_pic in
  8302. "" | " "*) ;;
  8303. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  8304. esac
  8305. else
  8306. lt_prog_compiler_pic=
  8307. lt_prog_compiler_can_build_shared=no
  8308. fi
  8309. fi
  8310. #
  8311. # Check to make sure the static flag actually works.
  8312. #
  8313. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  8314. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  8315. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  8316. if ${lt_cv_prog_compiler_static_works+:} false; then :
  8317. $as_echo_n "(cached) " >&6
  8318. else
  8319. lt_cv_prog_compiler_static_works=no
  8320. save_LDFLAGS="$LDFLAGS"
  8321. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  8322. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8323. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8324. # The linker can only warn and ignore the option if not recognized
  8325. # So say no if there are warnings
  8326. if test -s conftest.err; then
  8327. # Append any errors to the config.log.
  8328. cat conftest.err 1>&5
  8329. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8330. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8331. if diff conftest.exp conftest.er2 >/dev/null; then
  8332. lt_cv_prog_compiler_static_works=yes
  8333. fi
  8334. else
  8335. lt_cv_prog_compiler_static_works=yes
  8336. fi
  8337. fi
  8338. $RM -r conftest*
  8339. LDFLAGS="$save_LDFLAGS"
  8340. fi
  8341. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  8342. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  8343. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  8344. :
  8345. else
  8346. lt_prog_compiler_static=
  8347. fi
  8348. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8349. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8350. if ${lt_cv_prog_compiler_c_o+:} false; then :
  8351. $as_echo_n "(cached) " >&6
  8352. else
  8353. lt_cv_prog_compiler_c_o=no
  8354. $RM -r conftest 2>/dev/null
  8355. mkdir conftest
  8356. cd conftest
  8357. mkdir out
  8358. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8359. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8360. # Insert the option either (1) after the last *FLAGS variable, or
  8361. # (2) before a word containing "conftest.", or (3) at the end.
  8362. # Note that $ac_compile itself does not contain backslashes and begins
  8363. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8364. lt_compile=`echo "$ac_compile" | $SED \
  8365. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8366. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8367. -e 's:$: $lt_compiler_flag:'`
  8368. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8369. (eval "$lt_compile" 2>out/conftest.err)
  8370. ac_status=$?
  8371. cat out/conftest.err >&5
  8372. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8373. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8374. then
  8375. # The compiler can only warn and ignore the option if not recognized
  8376. # So say no if there are warnings
  8377. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8378. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8379. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8380. lt_cv_prog_compiler_c_o=yes
  8381. fi
  8382. fi
  8383. chmod u+w . 2>&5
  8384. $RM conftest*
  8385. # SGI C++ compiler will create directory out/ii_files/ for
  8386. # template instantiation
  8387. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8388. $RM out/* && rmdir out
  8389. cd ..
  8390. $RM -r conftest
  8391. $RM conftest*
  8392. fi
  8393. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8394. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8395. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8396. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8397. if ${lt_cv_prog_compiler_c_o+:} false; then :
  8398. $as_echo_n "(cached) " >&6
  8399. else
  8400. lt_cv_prog_compiler_c_o=no
  8401. $RM -r conftest 2>/dev/null
  8402. mkdir conftest
  8403. cd conftest
  8404. mkdir out
  8405. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8406. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8407. # Insert the option either (1) after the last *FLAGS variable, or
  8408. # (2) before a word containing "conftest.", or (3) at the end.
  8409. # Note that $ac_compile itself does not contain backslashes and begins
  8410. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8411. lt_compile=`echo "$ac_compile" | $SED \
  8412. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8413. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8414. -e 's:$: $lt_compiler_flag:'`
  8415. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8416. (eval "$lt_compile" 2>out/conftest.err)
  8417. ac_status=$?
  8418. cat out/conftest.err >&5
  8419. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8420. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8421. then
  8422. # The compiler can only warn and ignore the option if not recognized
  8423. # So say no if there are warnings
  8424. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8425. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8426. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8427. lt_cv_prog_compiler_c_o=yes
  8428. fi
  8429. fi
  8430. chmod u+w . 2>&5
  8431. $RM conftest*
  8432. # SGI C++ compiler will create directory out/ii_files/ for
  8433. # template instantiation
  8434. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8435. $RM out/* && rmdir out
  8436. cd ..
  8437. $RM -r conftest
  8438. $RM conftest*
  8439. fi
  8440. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8441. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8442. hard_links="nottested"
  8443. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  8444. # do not overwrite the value of need_locks provided by the user
  8445. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  8446. $as_echo_n "checking if we can lock with hard links... " >&6; }
  8447. hard_links=yes
  8448. $RM conftest*
  8449. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8450. touch conftest.a
  8451. ln conftest.a conftest.b 2>&5 || hard_links=no
  8452. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8453. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  8454. $as_echo "$hard_links" >&6; }
  8455. if test "$hard_links" = no; then
  8456. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  8457. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  8458. need_locks=warn
  8459. fi
  8460. else
  8461. need_locks=no
  8462. fi
  8463. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  8464. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  8465. runpath_var=
  8466. allow_undefined_flag=
  8467. always_export_symbols=no
  8468. archive_cmds=
  8469. archive_expsym_cmds=
  8470. compiler_needs_object=no
  8471. enable_shared_with_static_runtimes=no
  8472. export_dynamic_flag_spec=
  8473. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8474. hardcode_automatic=no
  8475. hardcode_direct=no
  8476. hardcode_direct_absolute=no
  8477. hardcode_libdir_flag_spec=
  8478. hardcode_libdir_separator=
  8479. hardcode_minus_L=no
  8480. hardcode_shlibpath_var=unsupported
  8481. inherit_rpath=no
  8482. link_all_deplibs=unknown
  8483. module_cmds=
  8484. module_expsym_cmds=
  8485. old_archive_from_new_cmds=
  8486. old_archive_from_expsyms_cmds=
  8487. thread_safe_flag_spec=
  8488. whole_archive_flag_spec=
  8489. # include_expsyms should be a list of space-separated symbols to be *always*
  8490. # included in the symbol list
  8491. include_expsyms=
  8492. # exclude_expsyms can be an extended regexp of symbols to exclude
  8493. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  8494. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  8495. # as well as any symbol that contains `d'.
  8496. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  8497. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  8498. # platforms (ab)use it in PIC code, but their linkers get confused if
  8499. # the symbol is explicitly referenced. Since portable code cannot
  8500. # rely on this symbol name, it's probably fine to never include it in
  8501. # preloaded symbol tables.
  8502. # Exclude shared library initialization/finalization symbols.
  8503. extract_expsyms_cmds=
  8504. case $host_os in
  8505. cygwin* | mingw* | pw32* | cegcc*)
  8506. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  8507. # When not using gcc, we currently assume that we are using
  8508. # Microsoft Visual C++.
  8509. if test "$GCC" != yes; then
  8510. with_gnu_ld=no
  8511. fi
  8512. ;;
  8513. interix*)
  8514. # we just hope/assume this is gcc and not c89 (= MSVC++)
  8515. with_gnu_ld=yes
  8516. ;;
  8517. openbsd*)
  8518. with_gnu_ld=no
  8519. ;;
  8520. esac
  8521. ld_shlibs=yes
  8522. # On some targets, GNU ld is compatible enough with the native linker
  8523. # that we're better off using the native interface for both.
  8524. lt_use_gnu_ld_interface=no
  8525. if test "$with_gnu_ld" = yes; then
  8526. case $host_os in
  8527. aix*)
  8528. # The AIX port of GNU ld has always aspired to compatibility
  8529. # with the native linker. However, as the warning in the GNU ld
  8530. # block says, versions before 2.19.5* couldn't really create working
  8531. # shared libraries, regardless of the interface used.
  8532. case `$LD -v 2>&1` in
  8533. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  8534. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  8535. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  8536. *)
  8537. lt_use_gnu_ld_interface=yes
  8538. ;;
  8539. esac
  8540. ;;
  8541. *)
  8542. lt_use_gnu_ld_interface=yes
  8543. ;;
  8544. esac
  8545. fi
  8546. if test "$lt_use_gnu_ld_interface" = yes; then
  8547. # If archive_cmds runs LD, not CC, wlarc should be empty
  8548. wlarc='${wl}'
  8549. # Set some defaults for GNU ld with shared library support. These
  8550. # are reset later if shared libraries are not supported. Putting them
  8551. # here allows them to be overridden if necessary.
  8552. runpath_var=LD_RUN_PATH
  8553. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8554. export_dynamic_flag_spec='${wl}--export-dynamic'
  8555. # ancient GNU ld didn't support --whole-archive et. al.
  8556. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  8557. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  8558. else
  8559. whole_archive_flag_spec=
  8560. fi
  8561. supports_anon_versioning=no
  8562. case `$LD -v 2>&1` in
  8563. *GNU\ gold*) supports_anon_versioning=yes ;;
  8564. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  8565. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  8566. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  8567. *\ 2.11.*) ;; # other 2.11 versions
  8568. *) supports_anon_versioning=yes ;;
  8569. esac
  8570. # See if GNU ld supports shared libraries.
  8571. case $host_os in
  8572. aix[3-9]*)
  8573. # On AIX/PPC, the GNU linker is very broken
  8574. if test "$host_cpu" != ia64; then
  8575. ld_shlibs=no
  8576. cat <<_LT_EOF 1>&2
  8577. *** Warning: the GNU linker, at least up to release 2.19, is reported
  8578. *** to be unable to reliably create shared libraries on AIX.
  8579. *** Therefore, libtool is disabling shared libraries support. If you
  8580. *** really care for shared libraries, you may want to install binutils
  8581. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  8582. *** You will then need to restart the configuration process.
  8583. _LT_EOF
  8584. fi
  8585. ;;
  8586. amigaos*)
  8587. case $host_cpu in
  8588. powerpc)
  8589. # see comment about AmigaOS4 .so support
  8590. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8591. archive_expsym_cmds=''
  8592. ;;
  8593. m68k)
  8594. 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)'
  8595. hardcode_libdir_flag_spec='-L$libdir'
  8596. hardcode_minus_L=yes
  8597. ;;
  8598. esac
  8599. ;;
  8600. beos*)
  8601. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8602. allow_undefined_flag=unsupported
  8603. # Joseph Beckenbach <[email protected]> says some releases of gcc
  8604. # support --undefined. This deserves some investigation. FIXME
  8605. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8606. else
  8607. ld_shlibs=no
  8608. fi
  8609. ;;
  8610. cygwin* | mingw* | pw32* | cegcc*)
  8611. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  8612. # as there is no search path for DLLs.
  8613. hardcode_libdir_flag_spec='-L$libdir'
  8614. export_dynamic_flag_spec='${wl}--export-all-symbols'
  8615. allow_undefined_flag=unsupported
  8616. always_export_symbols=no
  8617. enable_shared_with_static_runtimes=yes
  8618. 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'
  8619. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  8620. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  8621. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8622. # If the export-symbols file already is a .def file (1st line
  8623. # is EXPORTS), use it as is; otherwise, prepend...
  8624. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8625. cp $export_symbols $output_objdir/$soname.def;
  8626. else
  8627. echo EXPORTS > $output_objdir/$soname.def;
  8628. cat $export_symbols >> $output_objdir/$soname.def;
  8629. fi~
  8630. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8631. else
  8632. ld_shlibs=no
  8633. fi
  8634. ;;
  8635. haiku*)
  8636. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8637. link_all_deplibs=yes
  8638. ;;
  8639. interix[3-9]*)
  8640. hardcode_direct=no
  8641. hardcode_shlibpath_var=no
  8642. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8643. export_dynamic_flag_spec='${wl}-E'
  8644. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8645. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8646. # default) and relocated if they conflict, which is a slow very memory
  8647. # consuming and fragmenting process. To avoid this, we pick a random,
  8648. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8649. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8650. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8651. 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'
  8652. ;;
  8653. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  8654. tmp_diet=no
  8655. if test "$host_os" = linux-dietlibc; then
  8656. case $cc_basename in
  8657. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8658. esac
  8659. fi
  8660. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8661. && test "$tmp_diet" = no
  8662. then
  8663. tmp_addflag=' $pic_flag'
  8664. tmp_sharedflag='-shared'
  8665. case $cc_basename,$host_cpu in
  8666. pgcc*) # Portland Group C compiler
  8667. 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'
  8668. tmp_addflag=' $pic_flag'
  8669. ;;
  8670. pgf77* | pgf90* | pgf95* | pgfortran*)
  8671. # Portland Group f77 and f90 compilers
  8672. 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'
  8673. tmp_addflag=' $pic_flag -Mnomain' ;;
  8674. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8675. tmp_addflag=' -i_dynamic' ;;
  8676. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8677. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8678. ifc* | ifort*) # Intel Fortran compiler
  8679. tmp_addflag=' -nofor_main' ;;
  8680. lf95*) # Lahey Fortran 8.1
  8681. whole_archive_flag_spec=
  8682. tmp_sharedflag='--shared' ;;
  8683. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8684. tmp_sharedflag='-qmkshrobj'
  8685. tmp_addflag= ;;
  8686. nvcc*) # Cuda Compiler Driver 2.2
  8687. 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'
  8688. compiler_needs_object=yes
  8689. ;;
  8690. esac
  8691. case `$CC -V 2>&1 | sed 5q` in
  8692. *Sun\ C*) # Sun C 5.9
  8693. 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'
  8694. compiler_needs_object=yes
  8695. tmp_sharedflag='-G' ;;
  8696. *Sun\ F*) # Sun Fortran 8.3
  8697. tmp_sharedflag='-G' ;;
  8698. esac
  8699. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8700. if test "x$supports_anon_versioning" = xyes; then
  8701. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8702. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8703. echo "local: *; };" >> $output_objdir/$libname.ver~
  8704. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  8705. fi
  8706. case $cc_basename in
  8707. xlf* | bgf* | bgxlf* | mpixlf*)
  8708. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8709. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8710. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8711. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  8712. if test "x$supports_anon_versioning" = xyes; then
  8713. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8714. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8715. echo "local: *; };" >> $output_objdir/$libname.ver~
  8716. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8717. fi
  8718. ;;
  8719. esac
  8720. else
  8721. ld_shlibs=no
  8722. fi
  8723. ;;
  8724. netbsd*)
  8725. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8726. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8727. wlarc=
  8728. else
  8729. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8730. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8731. fi
  8732. ;;
  8733. solaris*)
  8734. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8735. ld_shlibs=no
  8736. cat <<_LT_EOF 1>&2
  8737. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8738. *** create shared libraries on Solaris systems. Therefore, libtool
  8739. *** is disabling shared libraries support. We urge you to upgrade GNU
  8740. *** binutils to release 2.9.1 or newer. Another option is to modify
  8741. *** your PATH or compiler configuration so that the native linker is
  8742. *** used, and then restart.
  8743. _LT_EOF
  8744. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8745. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8746. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8747. else
  8748. ld_shlibs=no
  8749. fi
  8750. ;;
  8751. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8752. case `$LD -v 2>&1` in
  8753. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8754. ld_shlibs=no
  8755. cat <<_LT_EOF 1>&2
  8756. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  8757. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8758. *** is disabling shared libraries support. We urge you to upgrade GNU
  8759. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8760. *** your PATH or compiler configuration so that the native linker is
  8761. *** used, and then restart.
  8762. _LT_EOF
  8763. ;;
  8764. *)
  8765. # For security reasons, it is highly recommended that you always
  8766. # use absolute paths for naming shared libraries, and exclude the
  8767. # DT_RUNPATH tag from executables and libraries. But doing so
  8768. # requires that you compile everything twice, which is a pain.
  8769. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8770. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8771. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8772. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8773. else
  8774. ld_shlibs=no
  8775. fi
  8776. ;;
  8777. esac
  8778. ;;
  8779. sunos4*)
  8780. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8781. wlarc=
  8782. hardcode_direct=yes
  8783. hardcode_shlibpath_var=no
  8784. ;;
  8785. *)
  8786. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8787. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8788. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8789. else
  8790. ld_shlibs=no
  8791. fi
  8792. ;;
  8793. esac
  8794. if test "$ld_shlibs" = no; then
  8795. runpath_var=
  8796. hardcode_libdir_flag_spec=
  8797. export_dynamic_flag_spec=
  8798. whole_archive_flag_spec=
  8799. fi
  8800. else
  8801. # PORTME fill in a description of your system's linker (not GNU ld)
  8802. case $host_os in
  8803. aix3*)
  8804. allow_undefined_flag=unsupported
  8805. always_export_symbols=yes
  8806. 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'
  8807. # Note: this linker hardcodes the directories in LIBPATH if there
  8808. # are no directories specified by -L.
  8809. hardcode_minus_L=yes
  8810. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  8811. # Neither direct hardcoding nor static linking is supported with a
  8812. # broken collect2.
  8813. hardcode_direct=unsupported
  8814. fi
  8815. ;;
  8816. aix[4-9]*)
  8817. if test "$host_cpu" = ia64; then
  8818. # On IA64, the linker does run time linking by default, so we don't
  8819. # have to do anything special.
  8820. aix_use_runtimelinking=no
  8821. exp_sym_flag='-Bexport'
  8822. no_entry_flag=""
  8823. else
  8824. # If we're using GNU nm, then we don't want the "-C" option.
  8825. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  8826. # Also, AIX nm treats weak defined symbols like other global
  8827. # defined symbols, whereas GNU nm marks them as "W".
  8828. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8829. 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'
  8830. else
  8831. 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'
  8832. fi
  8833. aix_use_runtimelinking=no
  8834. # Test if we are trying to use run time linking or normal
  8835. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8836. # need to do runtime linking.
  8837. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8838. for ld_flag in $LDFLAGS; do
  8839. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  8840. aix_use_runtimelinking=yes
  8841. break
  8842. fi
  8843. done
  8844. ;;
  8845. esac
  8846. exp_sym_flag='-bexport'
  8847. no_entry_flag='-bnoentry'
  8848. fi
  8849. # When large executables or shared objects are built, AIX ld can
  8850. # have problems creating the table of contents. If linking a library
  8851. # or program results in "error TOC overflow" add -mminimal-toc to
  8852. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8853. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8854. archive_cmds=''
  8855. hardcode_direct=yes
  8856. hardcode_direct_absolute=yes
  8857. hardcode_libdir_separator=':'
  8858. link_all_deplibs=yes
  8859. file_list_spec='${wl}-f,'
  8860. if test "$GCC" = yes; then
  8861. case $host_os in aix4.[012]|aix4.[012].*)
  8862. # We only want to do this on AIX 4.2 and lower, the check
  8863. # below for broken collect2 doesn't work under 4.3+
  8864. collect2name=`${CC} -print-prog-name=collect2`
  8865. if test -f "$collect2name" &&
  8866. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8867. then
  8868. # We have reworked collect2
  8869. :
  8870. else
  8871. # We have old collect2
  8872. hardcode_direct=unsupported
  8873. # It fails to find uninstalled libraries when the uninstalled
  8874. # path is not listed in the libpath. Setting hardcode_minus_L
  8875. # to unsupported forces relinking
  8876. hardcode_minus_L=yes
  8877. hardcode_libdir_flag_spec='-L$libdir'
  8878. hardcode_libdir_separator=
  8879. fi
  8880. ;;
  8881. esac
  8882. shared_flag='-shared'
  8883. if test "$aix_use_runtimelinking" = yes; then
  8884. shared_flag="$shared_flag "'${wl}-G'
  8885. fi
  8886. else
  8887. # not using gcc
  8888. if test "$host_cpu" = ia64; then
  8889. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8890. # chokes on -Wl,-G. The following line is correct:
  8891. shared_flag='-G'
  8892. else
  8893. if test "$aix_use_runtimelinking" = yes; then
  8894. shared_flag='${wl}-G'
  8895. else
  8896. shared_flag='${wl}-bM:SRE'
  8897. fi
  8898. fi
  8899. fi
  8900. export_dynamic_flag_spec='${wl}-bexpall'
  8901. # It seems that -bexpall does not export symbols beginning with
  8902. # underscore (_), so it is better to generate a list of symbols to export.
  8903. always_export_symbols=yes
  8904. if test "$aix_use_runtimelinking" = yes; then
  8905. # Warning - without using the other runtime loading flags (-brtl),
  8906. # -berok will link without error, but may produce a broken library.
  8907. allow_undefined_flag='-berok'
  8908. # Determine the default libpath from the value encoded in an
  8909. # empty executable.
  8910. if test "${lt_cv_aix_libpath+set}" = set; then
  8911. aix_libpath=$lt_cv_aix_libpath
  8912. else
  8913. if ${lt_cv_aix_libpath_+:} false; then :
  8914. $as_echo_n "(cached) " >&6
  8915. else
  8916. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8917. /* end confdefs.h. */
  8918. int
  8919. main ()
  8920. {
  8921. ;
  8922. return 0;
  8923. }
  8924. _ACEOF
  8925. if ac_fn_c_try_link "$LINENO"; then :
  8926. lt_aix_libpath_sed='
  8927. /Import File Strings/,/^$/ {
  8928. /^0/ {
  8929. s/^0 *\([^ ]*\) *$/\1/
  8930. p
  8931. }
  8932. }'
  8933. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8934. # Check for a 64-bit object if we didn't find anything.
  8935. if test -z "$lt_cv_aix_libpath_"; then
  8936. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8937. fi
  8938. fi
  8939. rm -f core conftest.err conftest.$ac_objext \
  8940. conftest$ac_exeext conftest.$ac_ext
  8941. if test -z "$lt_cv_aix_libpath_"; then
  8942. lt_cv_aix_libpath_="/usr/lib:/lib"
  8943. fi
  8944. fi
  8945. aix_libpath=$lt_cv_aix_libpath_
  8946. fi
  8947. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8948. 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"
  8949. else
  8950. if test "$host_cpu" = ia64; then
  8951. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  8952. allow_undefined_flag="-z nodefs"
  8953. 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"
  8954. else
  8955. # Determine the default libpath from the value encoded in an
  8956. # empty executable.
  8957. if test "${lt_cv_aix_libpath+set}" = set; then
  8958. aix_libpath=$lt_cv_aix_libpath
  8959. else
  8960. if ${lt_cv_aix_libpath_+:} false; then :
  8961. $as_echo_n "(cached) " >&6
  8962. else
  8963. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8964. /* end confdefs.h. */
  8965. int
  8966. main ()
  8967. {
  8968. ;
  8969. return 0;
  8970. }
  8971. _ACEOF
  8972. if ac_fn_c_try_link "$LINENO"; then :
  8973. lt_aix_libpath_sed='
  8974. /Import File Strings/,/^$/ {
  8975. /^0/ {
  8976. s/^0 *\([^ ]*\) *$/\1/
  8977. p
  8978. }
  8979. }'
  8980. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8981. # Check for a 64-bit object if we didn't find anything.
  8982. if test -z "$lt_cv_aix_libpath_"; then
  8983. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8984. fi
  8985. fi
  8986. rm -f core conftest.err conftest.$ac_objext \
  8987. conftest$ac_exeext conftest.$ac_ext
  8988. if test -z "$lt_cv_aix_libpath_"; then
  8989. lt_cv_aix_libpath_="/usr/lib:/lib"
  8990. fi
  8991. fi
  8992. aix_libpath=$lt_cv_aix_libpath_
  8993. fi
  8994. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8995. # Warning - without using the other run time loading flags,
  8996. # -berok will link without error, but may produce a broken library.
  8997. no_undefined_flag=' ${wl}-bernotok'
  8998. allow_undefined_flag=' ${wl}-berok'
  8999. if test "$with_gnu_ld" = yes; then
  9000. # We only use this code for GNU lds that support --whole-archive.
  9001. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  9002. else
  9003. # Exported symbols can be pulled into shared objects from archives
  9004. whole_archive_flag_spec='$convenience'
  9005. fi
  9006. archive_cmds_need_lc=yes
  9007. # This is similar to how AIX traditionally builds its shared libraries.
  9008. 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'
  9009. fi
  9010. fi
  9011. ;;
  9012. amigaos*)
  9013. case $host_cpu in
  9014. powerpc)
  9015. # see comment about AmigaOS4 .so support
  9016. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9017. archive_expsym_cmds=''
  9018. ;;
  9019. m68k)
  9020. 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)'
  9021. hardcode_libdir_flag_spec='-L$libdir'
  9022. hardcode_minus_L=yes
  9023. ;;
  9024. esac
  9025. ;;
  9026. bsdi[45]*)
  9027. export_dynamic_flag_spec=-rdynamic
  9028. ;;
  9029. cygwin* | mingw* | pw32* | cegcc*)
  9030. # When not using gcc, we currently assume that we are using
  9031. # Microsoft Visual C++.
  9032. # hardcode_libdir_flag_spec is actually meaningless, as there is
  9033. # no search path for DLLs.
  9034. case $cc_basename in
  9035. cl*)
  9036. # Native MSVC
  9037. hardcode_libdir_flag_spec=' '
  9038. allow_undefined_flag=unsupported
  9039. always_export_symbols=yes
  9040. file_list_spec='@'
  9041. # Tell ltmain to make .lib files, not .a files.
  9042. libext=lib
  9043. # Tell ltmain to make .dll files, not .so files.
  9044. shrext_cmds=".dll"
  9045. # FIXME: Setting linknames here is a bad hack.
  9046. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  9047. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  9048. sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  9049. else
  9050. sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  9051. fi~
  9052. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  9053. linknames='
  9054. # The linker will not automatically build a static lib if we build a DLL.
  9055. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  9056. enable_shared_with_static_runtimes=yes
  9057. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  9058. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  9059. # Don't use ranlib
  9060. old_postinstall_cmds='chmod 644 $oldlib'
  9061. postlink_cmds='lt_outputfile="@OUTPUT@"~
  9062. lt_tool_outputfile="@TOOL_OUTPUT@"~
  9063. case $lt_outputfile in
  9064. *.exe|*.EXE) ;;
  9065. *)
  9066. lt_outputfile="$lt_outputfile.exe"
  9067. lt_tool_outputfile="$lt_tool_outputfile.exe"
  9068. ;;
  9069. esac~
  9070. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  9071. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  9072. $RM "$lt_outputfile.manifest";
  9073. fi'
  9074. ;;
  9075. *)
  9076. # Assume MSVC wrapper
  9077. hardcode_libdir_flag_spec=' '
  9078. allow_undefined_flag=unsupported
  9079. # Tell ltmain to make .lib files, not .a files.
  9080. libext=lib
  9081. # Tell ltmain to make .dll files, not .so files.
  9082. shrext_cmds=".dll"
  9083. # FIXME: Setting linknames here is a bad hack.
  9084. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  9085. # The linker will automatically build a .lib file if we build a DLL.
  9086. old_archive_from_new_cmds='true'
  9087. # FIXME: Should let the user specify the lib program.
  9088. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  9089. enable_shared_with_static_runtimes=yes
  9090. ;;
  9091. esac
  9092. ;;
  9093. darwin* | rhapsody*)
  9094. archive_cmds_need_lc=no
  9095. hardcode_direct=no
  9096. hardcode_automatic=yes
  9097. hardcode_shlibpath_var=unsupported
  9098. if test "$lt_cv_ld_force_load" = "yes"; then
  9099. 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\"`'
  9100. else
  9101. whole_archive_flag_spec=''
  9102. fi
  9103. link_all_deplibs=yes
  9104. allow_undefined_flag="$_lt_dar_allow_undefined"
  9105. case $cc_basename in
  9106. ifort*) _lt_dar_can_shared=yes ;;
  9107. *) _lt_dar_can_shared=$GCC ;;
  9108. esac
  9109. if test "$_lt_dar_can_shared" = "yes"; then
  9110. output_verbose_link_cmd=func_echo_all
  9111. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  9112. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  9113. 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}"
  9114. 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}"
  9115. else
  9116. ld_shlibs=no
  9117. fi
  9118. ;;
  9119. dgux*)
  9120. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9121. hardcode_libdir_flag_spec='-L$libdir'
  9122. hardcode_shlibpath_var=no
  9123. ;;
  9124. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  9125. # support. Future versions do this automatically, but an explicit c++rt0.o
  9126. # does not break anything, and helps significantly (at the cost of a little
  9127. # extra space).
  9128. freebsd2.2*)
  9129. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  9130. hardcode_libdir_flag_spec='-R$libdir'
  9131. hardcode_direct=yes
  9132. hardcode_shlibpath_var=no
  9133. ;;
  9134. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  9135. freebsd2.*)
  9136. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9137. hardcode_direct=yes
  9138. hardcode_minus_L=yes
  9139. hardcode_shlibpath_var=no
  9140. ;;
  9141. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  9142. freebsd* | dragonfly*)
  9143. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9144. hardcode_libdir_flag_spec='-R$libdir'
  9145. hardcode_direct=yes
  9146. hardcode_shlibpath_var=no
  9147. ;;
  9148. hpux9*)
  9149. if test "$GCC" = yes; then
  9150. 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'
  9151. else
  9152. 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'
  9153. fi
  9154. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  9155. hardcode_libdir_separator=:
  9156. hardcode_direct=yes
  9157. # hardcode_minus_L: Not really in the search PATH,
  9158. # but as the default location of the library.
  9159. hardcode_minus_L=yes
  9160. export_dynamic_flag_spec='${wl}-E'
  9161. ;;
  9162. hpux10*)
  9163. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  9164. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9165. else
  9166. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9167. fi
  9168. if test "$with_gnu_ld" = no; then
  9169. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  9170. hardcode_libdir_separator=:
  9171. hardcode_direct=yes
  9172. hardcode_direct_absolute=yes
  9173. export_dynamic_flag_spec='${wl}-E'
  9174. # hardcode_minus_L: Not really in the search PATH,
  9175. # but as the default location of the library.
  9176. hardcode_minus_L=yes
  9177. fi
  9178. ;;
  9179. hpux11*)
  9180. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  9181. case $host_cpu in
  9182. hppa*64*)
  9183. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9184. ;;
  9185. ia64*)
  9186. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9187. ;;
  9188. *)
  9189. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9190. ;;
  9191. esac
  9192. else
  9193. case $host_cpu in
  9194. hppa*64*)
  9195. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9196. ;;
  9197. ia64*)
  9198. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9199. ;;
  9200. *)
  9201. # Older versions of the 11.00 compiler do not understand -b yet
  9202. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  9203. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  9204. $as_echo_n "checking if $CC understands -b... " >&6; }
  9205. if ${lt_cv_prog_compiler__b+:} false; then :
  9206. $as_echo_n "(cached) " >&6
  9207. else
  9208. lt_cv_prog_compiler__b=no
  9209. save_LDFLAGS="$LDFLAGS"
  9210. LDFLAGS="$LDFLAGS -b"
  9211. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  9212. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  9213. # The linker can only warn and ignore the option if not recognized
  9214. # So say no if there are warnings
  9215. if test -s conftest.err; then
  9216. # Append any errors to the config.log.
  9217. cat conftest.err 1>&5
  9218. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  9219. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9220. if diff conftest.exp conftest.er2 >/dev/null; then
  9221. lt_cv_prog_compiler__b=yes
  9222. fi
  9223. else
  9224. lt_cv_prog_compiler__b=yes
  9225. fi
  9226. fi
  9227. $RM -r conftest*
  9228. LDFLAGS="$save_LDFLAGS"
  9229. fi
  9230. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  9231. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  9232. if test x"$lt_cv_prog_compiler__b" = xyes; then
  9233. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9234. else
  9235. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9236. fi
  9237. ;;
  9238. esac
  9239. fi
  9240. if test "$with_gnu_ld" = no; then
  9241. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  9242. hardcode_libdir_separator=:
  9243. case $host_cpu in
  9244. hppa*64*|ia64*)
  9245. hardcode_direct=no
  9246. hardcode_shlibpath_var=no
  9247. ;;
  9248. *)
  9249. hardcode_direct=yes
  9250. hardcode_direct_absolute=yes
  9251. export_dynamic_flag_spec='${wl}-E'
  9252. # hardcode_minus_L: Not really in the search PATH,
  9253. # but as the default location of the library.
  9254. hardcode_minus_L=yes
  9255. ;;
  9256. esac
  9257. fi
  9258. ;;
  9259. irix5* | irix6* | nonstopux*)
  9260. if test "$GCC" = yes; then
  9261. 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'
  9262. # Try to use the -exported_symbol ld option, if it does not
  9263. # work, assume that -exports_file does not work either and
  9264. # implicitly export all symbols.
  9265. # This should be the same for all languages, so no per-tag cache variable.
  9266. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  9267. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  9268. if ${lt_cv_irix_exported_symbol+:} false; then :
  9269. $as_echo_n "(cached) " >&6
  9270. else
  9271. save_LDFLAGS="$LDFLAGS"
  9272. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  9273. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9274. /* end confdefs.h. */
  9275. int foo (void) { return 0; }
  9276. _ACEOF
  9277. if ac_fn_c_try_link "$LINENO"; then :
  9278. lt_cv_irix_exported_symbol=yes
  9279. else
  9280. lt_cv_irix_exported_symbol=no
  9281. fi
  9282. rm -f core conftest.err conftest.$ac_objext \
  9283. conftest$ac_exeext conftest.$ac_ext
  9284. LDFLAGS="$save_LDFLAGS"
  9285. fi
  9286. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  9287. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  9288. if test "$lt_cv_irix_exported_symbol" = yes; then
  9289. 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'
  9290. fi
  9291. else
  9292. 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'
  9293. 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'
  9294. fi
  9295. archive_cmds_need_lc='no'
  9296. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9297. hardcode_libdir_separator=:
  9298. inherit_rpath=yes
  9299. link_all_deplibs=yes
  9300. ;;
  9301. netbsd*)
  9302. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9303. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  9304. else
  9305. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  9306. fi
  9307. hardcode_libdir_flag_spec='-R$libdir'
  9308. hardcode_direct=yes
  9309. hardcode_shlibpath_var=no
  9310. ;;
  9311. newsos6)
  9312. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9313. hardcode_direct=yes
  9314. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9315. hardcode_libdir_separator=:
  9316. hardcode_shlibpath_var=no
  9317. ;;
  9318. *nto* | *qnx*)
  9319. ;;
  9320. openbsd*)
  9321. if test -f /usr/libexec/ld.so; then
  9322. hardcode_direct=yes
  9323. hardcode_shlibpath_var=no
  9324. hardcode_direct_absolute=yes
  9325. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9326. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9327. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  9328. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  9329. export_dynamic_flag_spec='${wl}-E'
  9330. else
  9331. case $host_os in
  9332. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  9333. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9334. hardcode_libdir_flag_spec='-R$libdir'
  9335. ;;
  9336. *)
  9337. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9338. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  9339. ;;
  9340. esac
  9341. fi
  9342. else
  9343. ld_shlibs=no
  9344. fi
  9345. ;;
  9346. os2*)
  9347. hardcode_libdir_flag_spec='-L$libdir'
  9348. hardcode_minus_L=yes
  9349. allow_undefined_flag=unsupported
  9350. 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'
  9351. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  9352. ;;
  9353. osf3*)
  9354. if test "$GCC" = yes; then
  9355. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  9356. 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'
  9357. else
  9358. allow_undefined_flag=' -expect_unresolved \*'
  9359. 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'
  9360. fi
  9361. archive_cmds_need_lc='no'
  9362. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9363. hardcode_libdir_separator=:
  9364. ;;
  9365. osf4* | osf5*) # as osf3* with the addition of -msym flag
  9366. if test "$GCC" = yes; then
  9367. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  9368. 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'
  9369. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9370. else
  9371. allow_undefined_flag=' -expect_unresolved \*'
  9372. 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'
  9373. 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~
  9374. $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'
  9375. # Both c and cxx compiler support -rpath directly
  9376. hardcode_libdir_flag_spec='-rpath $libdir'
  9377. fi
  9378. archive_cmds_need_lc='no'
  9379. hardcode_libdir_separator=:
  9380. ;;
  9381. solaris*)
  9382. no_undefined_flag=' -z defs'
  9383. if test "$GCC" = yes; then
  9384. wlarc='${wl}'
  9385. archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9386. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9387. $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'
  9388. else
  9389. case `$CC -V 2>&1` in
  9390. *"Compilers 5.0"*)
  9391. wlarc=''
  9392. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9393. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9394. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  9395. ;;
  9396. *)
  9397. wlarc='${wl}'
  9398. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9399. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9400. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9401. ;;
  9402. esac
  9403. fi
  9404. hardcode_libdir_flag_spec='-R$libdir'
  9405. hardcode_shlibpath_var=no
  9406. case $host_os in
  9407. solaris2.[0-5] | solaris2.[0-5].*) ;;
  9408. *)
  9409. # The compiler driver will combine and reorder linker options,
  9410. # but understands `-z linker_flag'. GCC discards it without `$wl',
  9411. # but is careful enough not to reorder.
  9412. # Supported since Solaris 2.6 (maybe 2.5.1?)
  9413. if test "$GCC" = yes; then
  9414. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  9415. else
  9416. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  9417. fi
  9418. ;;
  9419. esac
  9420. link_all_deplibs=yes
  9421. ;;
  9422. sunos4*)
  9423. if test "x$host_vendor" = xsequent; then
  9424. # Use $CC to link under sequent, because it throws in some extra .o
  9425. # files that make .init and .fini sections work.
  9426. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9427. else
  9428. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  9429. fi
  9430. hardcode_libdir_flag_spec='-L$libdir'
  9431. hardcode_direct=yes
  9432. hardcode_minus_L=yes
  9433. hardcode_shlibpath_var=no
  9434. ;;
  9435. sysv4)
  9436. case $host_vendor in
  9437. sni)
  9438. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9439. hardcode_direct=yes # is this really true???
  9440. ;;
  9441. siemens)
  9442. ## LD is ld it makes a PLAMLIB
  9443. ## CC just makes a GrossModule.
  9444. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  9445. reload_cmds='$CC -r -o $output$reload_objs'
  9446. hardcode_direct=no
  9447. ;;
  9448. motorola)
  9449. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9450. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  9451. ;;
  9452. esac
  9453. runpath_var='LD_RUN_PATH'
  9454. hardcode_shlibpath_var=no
  9455. ;;
  9456. sysv4.3*)
  9457. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9458. hardcode_shlibpath_var=no
  9459. export_dynamic_flag_spec='-Bexport'
  9460. ;;
  9461. sysv4*MP*)
  9462. if test -d /usr/nec; then
  9463. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9464. hardcode_shlibpath_var=no
  9465. runpath_var=LD_RUN_PATH
  9466. hardcode_runpath_var=yes
  9467. ld_shlibs=yes
  9468. fi
  9469. ;;
  9470. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  9471. no_undefined_flag='${wl}-z,text'
  9472. archive_cmds_need_lc=no
  9473. hardcode_shlibpath_var=no
  9474. runpath_var='LD_RUN_PATH'
  9475. if test "$GCC" = yes; then
  9476. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9477. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9478. else
  9479. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9480. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9481. fi
  9482. ;;
  9483. sysv5* | sco3.2v5* | sco5v6*)
  9484. # Note: We can NOT use -z defs as we might desire, because we do not
  9485. # link with -lc, and that would cause any symbols used from libc to
  9486. # always be unresolved, which means just about no library would
  9487. # ever link correctly. If we're not using GNU ld we use -z text
  9488. # though, which does catch some bad symbols but isn't as heavy-handed
  9489. # as -z defs.
  9490. no_undefined_flag='${wl}-z,text'
  9491. allow_undefined_flag='${wl}-z,nodefs'
  9492. archive_cmds_need_lc=no
  9493. hardcode_shlibpath_var=no
  9494. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  9495. hardcode_libdir_separator=':'
  9496. link_all_deplibs=yes
  9497. export_dynamic_flag_spec='${wl}-Bexport'
  9498. runpath_var='LD_RUN_PATH'
  9499. if test "$GCC" = yes; then
  9500. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9501. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9502. else
  9503. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9504. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9505. fi
  9506. ;;
  9507. uts4*)
  9508. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9509. hardcode_libdir_flag_spec='-L$libdir'
  9510. hardcode_shlibpath_var=no
  9511. ;;
  9512. *)
  9513. ld_shlibs=no
  9514. ;;
  9515. esac
  9516. if test x$host_vendor = xsni; then
  9517. case $host in
  9518. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  9519. export_dynamic_flag_spec='${wl}-Blargedynsym'
  9520. ;;
  9521. esac
  9522. fi
  9523. fi
  9524. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  9525. $as_echo "$ld_shlibs" >&6; }
  9526. test "$ld_shlibs" = no && can_build_shared=no
  9527. with_gnu_ld=$with_gnu_ld
  9528. #
  9529. # Do we need to explicitly link libc?
  9530. #
  9531. case "x$archive_cmds_need_lc" in
  9532. x|xyes)
  9533. # Assume -lc should be added
  9534. archive_cmds_need_lc=yes
  9535. if test "$enable_shared" = yes && test "$GCC" = yes; then
  9536. case $archive_cmds in
  9537. *'~'*)
  9538. # FIXME: we may have to deal with multi-command sequences.
  9539. ;;
  9540. '$CC '*)
  9541. # Test whether the compiler implicitly links with -lc since on some
  9542. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  9543. # to ld, don't add -lc before -lgcc.
  9544. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  9545. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  9546. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  9547. $as_echo_n "(cached) " >&6
  9548. else
  9549. $RM conftest*
  9550. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9551. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9552. (eval $ac_compile) 2>&5
  9553. ac_status=$?
  9554. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9555. test $ac_status = 0; } 2>conftest.err; then
  9556. soname=conftest
  9557. lib=conftest
  9558. libobjs=conftest.$ac_objext
  9559. deplibs=
  9560. wl=$lt_prog_compiler_wl
  9561. pic_flag=$lt_prog_compiler_pic
  9562. compiler_flags=-v
  9563. linker_flags=-v
  9564. verstring=
  9565. output_objdir=.
  9566. libname=conftest
  9567. lt_save_allow_undefined_flag=$allow_undefined_flag
  9568. allow_undefined_flag=
  9569. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  9570. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9571. ac_status=$?
  9572. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9573. test $ac_status = 0; }
  9574. then
  9575. lt_cv_archive_cmds_need_lc=no
  9576. else
  9577. lt_cv_archive_cmds_need_lc=yes
  9578. fi
  9579. allow_undefined_flag=$lt_save_allow_undefined_flag
  9580. else
  9581. cat conftest.err 1>&5
  9582. fi
  9583. $RM conftest*
  9584. fi
  9585. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  9586. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  9587. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  9588. ;;
  9589. esac
  9590. fi
  9591. ;;
  9592. esac
  9593. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  9594. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  9595. if test "$GCC" = yes; then
  9596. case $host_os in
  9597. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  9598. *) lt_awk_arg="/^libraries:/" ;;
  9599. esac
  9600. case $host_os in
  9601. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  9602. *) lt_sed_strip_eq="s,=/,/,g" ;;
  9603. esac
  9604. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  9605. case $lt_search_path_spec in
  9606. *\;*)
  9607. # if the path contains ";" then we assume it to be the separator
  9608. # otherwise default to the standard path separator (i.e. ":") - it is
  9609. # assumed that no part of a normal pathname contains ";" but that should
  9610. # okay in the real world where ";" in dirpaths is itself problematic.
  9611. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  9612. ;;
  9613. *)
  9614. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  9615. ;;
  9616. esac
  9617. # Ok, now we have the path, separated by spaces, we can step through it
  9618. # and add multilib dir if necessary.
  9619. lt_tmp_lt_search_path_spec=
  9620. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9621. for lt_sys_path in $lt_search_path_spec; do
  9622. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  9623. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  9624. else
  9625. test -d "$lt_sys_path" && \
  9626. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  9627. fi
  9628. done
  9629. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  9630. BEGIN {RS=" "; FS="/|\n";} {
  9631. lt_foo="";
  9632. lt_count=0;
  9633. for (lt_i = NF; lt_i > 0; lt_i--) {
  9634. if ($lt_i != "" && $lt_i != ".") {
  9635. if ($lt_i == "..") {
  9636. lt_count++;
  9637. } else {
  9638. if (lt_count == 0) {
  9639. lt_foo="/" $lt_i lt_foo;
  9640. } else {
  9641. lt_count--;
  9642. }
  9643. }
  9644. }
  9645. }
  9646. if (lt_foo != "") { lt_freq[lt_foo]++; }
  9647. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9648. }'`
  9649. # AWK program above erroneously prepends '/' to C:/dos/paths
  9650. # for these hosts.
  9651. case $host_os in
  9652. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  9653. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  9654. esac
  9655. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  9656. else
  9657. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9658. fi
  9659. library_names_spec=
  9660. libname_spec='lib$name'
  9661. soname_spec=
  9662. shrext_cmds=".so"
  9663. postinstall_cmds=
  9664. postuninstall_cmds=
  9665. finish_cmds=
  9666. finish_eval=
  9667. shlibpath_var=
  9668. shlibpath_overrides_runpath=unknown
  9669. version_type=none
  9670. dynamic_linker="$host_os ld.so"
  9671. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9672. need_lib_prefix=unknown
  9673. hardcode_into_libs=no
  9674. # when you set need_version to no, make sure it does not cause -set_version
  9675. # flags to be left without arguments
  9676. need_version=unknown
  9677. case $host_os in
  9678. aix3*)
  9679. version_type=linux # correct to gnu/linux during the next big refactor
  9680. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  9681. shlibpath_var=LIBPATH
  9682. # AIX 3 has no versioning support, so we append a major version to the name.
  9683. soname_spec='${libname}${release}${shared_ext}$major'
  9684. ;;
  9685. aix[4-9]*)
  9686. version_type=linux # correct to gnu/linux during the next big refactor
  9687. need_lib_prefix=no
  9688. need_version=no
  9689. hardcode_into_libs=yes
  9690. if test "$host_cpu" = ia64; then
  9691. # AIX 5 supports IA64
  9692. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  9693. shlibpath_var=LD_LIBRARY_PATH
  9694. else
  9695. # With GCC up to 2.95.x, collect2 would create an import file
  9696. # for dependence libraries. The import file would start with
  9697. # the line `#! .'. This would cause the generated library to
  9698. # depend on `.', always an invalid library. This was fixed in
  9699. # development snapshots of GCC prior to 3.0.
  9700. case $host_os in
  9701. aix4 | aix4.[01] | aix4.[01].*)
  9702. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9703. echo ' yes '
  9704. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  9705. :
  9706. else
  9707. can_build_shared=no
  9708. fi
  9709. ;;
  9710. esac
  9711. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  9712. # soname into executable. Probably we can add versioning support to
  9713. # collect2, so additional links can be useful in future.
  9714. if test "$aix_use_runtimelinking" = yes; then
  9715. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9716. # instead of lib<name>.a to let people know that these are not
  9717. # typical AIX shared libraries.
  9718. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9719. else
  9720. # We preserve .a as extension for shared libraries through AIX4.2
  9721. # and later when we are not doing run time linking.
  9722. library_names_spec='${libname}${release}.a $libname.a'
  9723. soname_spec='${libname}${release}${shared_ext}$major'
  9724. fi
  9725. shlibpath_var=LIBPATH
  9726. fi
  9727. ;;
  9728. amigaos*)
  9729. case $host_cpu in
  9730. powerpc)
  9731. # Since July 2007 AmigaOS4 officially supports .so libraries.
  9732. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  9733. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9734. ;;
  9735. m68k)
  9736. library_names_spec='$libname.ixlibrary $libname.a'
  9737. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9738. 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'
  9739. ;;
  9740. esac
  9741. ;;
  9742. beos*)
  9743. library_names_spec='${libname}${shared_ext}'
  9744. dynamic_linker="$host_os ld.so"
  9745. shlibpath_var=LIBRARY_PATH
  9746. ;;
  9747. bsdi[45]*)
  9748. version_type=linux # correct to gnu/linux during the next big refactor
  9749. need_version=no
  9750. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9751. soname_spec='${libname}${release}${shared_ext}$major'
  9752. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9753. shlibpath_var=LD_LIBRARY_PATH
  9754. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9755. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9756. # the default ld.so.conf also contains /usr/contrib/lib and
  9757. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9758. # libtool to hard-code these into programs
  9759. ;;
  9760. cygwin* | mingw* | pw32* | cegcc*)
  9761. version_type=windows
  9762. shrext_cmds=".dll"
  9763. need_version=no
  9764. need_lib_prefix=no
  9765. case $GCC,$cc_basename in
  9766. yes,*)
  9767. # gcc
  9768. library_names_spec='$libname.dll.a'
  9769. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9770. postinstall_cmds='base_file=`basename \${file}`~
  9771. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  9772. dldir=$destdir/`dirname \$dlpath`~
  9773. test -d \$dldir || mkdir -p \$dldir~
  9774. $install_prog $dir/$dlname \$dldir/$dlname~
  9775. chmod a+x \$dldir/$dlname~
  9776. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9777. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9778. fi'
  9779. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9780. dlpath=$dir/\$dldll~
  9781. $RM \$dlpath'
  9782. shlibpath_overrides_runpath=yes
  9783. case $host_os in
  9784. cygwin*)
  9785. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  9786. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9787. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  9788. ;;
  9789. mingw* | cegcc*)
  9790. # MinGW DLLs use traditional 'lib' prefix
  9791. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9792. ;;
  9793. pw32*)
  9794. # pw32 DLLs use 'pw' prefix rather than 'lib'
  9795. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9796. ;;
  9797. esac
  9798. dynamic_linker='Win32 ld.exe'
  9799. ;;
  9800. *,cl*)
  9801. # Native MSVC
  9802. libname_spec='$name'
  9803. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9804. library_names_spec='${libname}.dll.lib'
  9805. case $build_os in
  9806. mingw*)
  9807. sys_lib_search_path_spec=
  9808. lt_save_ifs=$IFS
  9809. IFS=';'
  9810. for lt_path in $LIB
  9811. do
  9812. IFS=$lt_save_ifs
  9813. # Let DOS variable expansion print the short 8.3 style file name.
  9814. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  9815. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  9816. done
  9817. IFS=$lt_save_ifs
  9818. # Convert to MSYS style.
  9819. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  9820. ;;
  9821. cygwin*)
  9822. # Convert to unix form, then to dos form, then back to unix form
  9823. # but this time dos style (no spaces!) so that the unix form looks
  9824. # like /cygdrive/c/PROGRA~1:/cygdr...
  9825. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  9826. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  9827. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9828. ;;
  9829. *)
  9830. sys_lib_search_path_spec="$LIB"
  9831. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  9832. # It is most probably a Windows format PATH.
  9833. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  9834. else
  9835. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9836. fi
  9837. # FIXME: find the short name or the path components, as spaces are
  9838. # common. (e.g. "Program Files" -> "PROGRA~1")
  9839. ;;
  9840. esac
  9841. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9842. postinstall_cmds='base_file=`basename \${file}`~
  9843. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  9844. dldir=$destdir/`dirname \$dlpath`~
  9845. test -d \$dldir || mkdir -p \$dldir~
  9846. $install_prog $dir/$dlname \$dldir/$dlname'
  9847. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9848. dlpath=$dir/\$dldll~
  9849. $RM \$dlpath'
  9850. shlibpath_overrides_runpath=yes
  9851. dynamic_linker='Win32 link.exe'
  9852. ;;
  9853. *)
  9854. # Assume MSVC wrapper
  9855. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  9856. dynamic_linker='Win32 ld.exe'
  9857. ;;
  9858. esac
  9859. # FIXME: first we should search . and the directory the executable is in
  9860. shlibpath_var=PATH
  9861. ;;
  9862. darwin* | rhapsody*)
  9863. dynamic_linker="$host_os dyld"
  9864. version_type=darwin
  9865. need_lib_prefix=no
  9866. need_version=no
  9867. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  9868. soname_spec='${libname}${release}${major}$shared_ext'
  9869. shlibpath_overrides_runpath=yes
  9870. shlibpath_var=DYLD_LIBRARY_PATH
  9871. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  9872. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  9873. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  9874. ;;
  9875. dgux*)
  9876. version_type=linux # correct to gnu/linux during the next big refactor
  9877. need_lib_prefix=no
  9878. need_version=no
  9879. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  9880. soname_spec='${libname}${release}${shared_ext}$major'
  9881. shlibpath_var=LD_LIBRARY_PATH
  9882. ;;
  9883. freebsd* | dragonfly*)
  9884. # DragonFly does not have aout. When/if they implement a new
  9885. # versioning mechanism, adjust this.
  9886. if test -x /usr/bin/objformat; then
  9887. objformat=`/usr/bin/objformat`
  9888. else
  9889. case $host_os in
  9890. freebsd[23].*) objformat=aout ;;
  9891. *) objformat=elf ;;
  9892. esac
  9893. fi
  9894. version_type=freebsd-$objformat
  9895. case $version_type in
  9896. freebsd-elf*)
  9897. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9898. need_version=no
  9899. need_lib_prefix=no
  9900. ;;
  9901. freebsd-*)
  9902. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  9903. need_version=yes
  9904. ;;
  9905. esac
  9906. shlibpath_var=LD_LIBRARY_PATH
  9907. case $host_os in
  9908. freebsd2.*)
  9909. shlibpath_overrides_runpath=yes
  9910. ;;
  9911. freebsd3.[01]* | freebsdelf3.[01]*)
  9912. shlibpath_overrides_runpath=yes
  9913. hardcode_into_libs=yes
  9914. ;;
  9915. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  9916. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  9917. shlibpath_overrides_runpath=no
  9918. hardcode_into_libs=yes
  9919. ;;
  9920. *) # from 4.6 on, and DragonFly
  9921. shlibpath_overrides_runpath=yes
  9922. hardcode_into_libs=yes
  9923. ;;
  9924. esac
  9925. ;;
  9926. gnu*)
  9927. version_type=linux # correct to gnu/linux during the next big refactor
  9928. need_lib_prefix=no
  9929. need_version=no
  9930. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9931. soname_spec='${libname}${release}${shared_ext}$major'
  9932. shlibpath_var=LD_LIBRARY_PATH
  9933. shlibpath_overrides_runpath=no
  9934. hardcode_into_libs=yes
  9935. ;;
  9936. haiku*)
  9937. version_type=linux # correct to gnu/linux during the next big refactor
  9938. need_lib_prefix=no
  9939. need_version=no
  9940. dynamic_linker="$host_os runtime_loader"
  9941. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9942. soname_spec='${libname}${release}${shared_ext}$major'
  9943. shlibpath_var=LIBRARY_PATH
  9944. shlibpath_overrides_runpath=yes
  9945. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  9946. hardcode_into_libs=yes
  9947. ;;
  9948. hpux9* | hpux10* | hpux11*)
  9949. # Give a soname corresponding to the major version so that dld.sl refuses to
  9950. # link against other versions.
  9951. version_type=sunos
  9952. need_lib_prefix=no
  9953. need_version=no
  9954. case $host_cpu in
  9955. ia64*)
  9956. shrext_cmds='.so'
  9957. hardcode_into_libs=yes
  9958. dynamic_linker="$host_os dld.so"
  9959. shlibpath_var=LD_LIBRARY_PATH
  9960. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9961. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9962. soname_spec='${libname}${release}${shared_ext}$major'
  9963. if test "X$HPUX_IA64_MODE" = X32; then
  9964. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9965. else
  9966. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9967. fi
  9968. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9969. ;;
  9970. hppa*64*)
  9971. shrext_cmds='.sl'
  9972. hardcode_into_libs=yes
  9973. dynamic_linker="$host_os dld.sl"
  9974. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9975. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9976. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9977. soname_spec='${libname}${release}${shared_ext}$major'
  9978. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9979. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9980. ;;
  9981. *)
  9982. shrext_cmds='.sl'
  9983. dynamic_linker="$host_os dld.sl"
  9984. shlibpath_var=SHLIB_PATH
  9985. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9986. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9987. soname_spec='${libname}${release}${shared_ext}$major'
  9988. ;;
  9989. esac
  9990. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  9991. postinstall_cmds='chmod 555 $lib'
  9992. # or fails outright, so override atomically:
  9993. install_override_mode=555
  9994. ;;
  9995. interix[3-9]*)
  9996. version_type=linux # correct to gnu/linux during the next big refactor
  9997. need_lib_prefix=no
  9998. need_version=no
  9999. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  10000. soname_spec='${libname}${release}${shared_ext}$major'
  10001. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  10002. shlibpath_var=LD_LIBRARY_PATH
  10003. shlibpath_overrides_runpath=no
  10004. hardcode_into_libs=yes
  10005. ;;
  10006. irix5* | irix6* | nonstopux*)
  10007. case $host_os in
  10008. nonstopux*) version_type=nonstopux ;;
  10009. *)
  10010. if test "$lt_cv_prog_gnu_ld" = yes; then
  10011. version_type=linux # correct to gnu/linux during the next big refactor
  10012. else
  10013. version_type=irix
  10014. fi ;;
  10015. esac
  10016. need_lib_prefix=no
  10017. need_version=no
  10018. soname_spec='${libname}${release}${shared_ext}$major'
  10019. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  10020. case $host_os in
  10021. irix5* | nonstopux*)
  10022. libsuff= shlibsuff=
  10023. ;;
  10024. *)
  10025. case $LD in # libtool.m4 will add one of these switches to LD
  10026. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  10027. libsuff= shlibsuff= libmagic=32-bit;;
  10028. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  10029. libsuff=32 shlibsuff=N32 libmagic=N32;;
  10030. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  10031. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  10032. *) libsuff= shlibsuff= libmagic=never-match;;
  10033. esac
  10034. ;;
  10035. esac
  10036. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  10037. shlibpath_overrides_runpath=no
  10038. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  10039. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  10040. hardcode_into_libs=yes
  10041. ;;
  10042. # No shared lib support for Linux oldld, aout, or coff.
  10043. linux*oldld* | linux*aout* | linux*coff*)
  10044. dynamic_linker=no
  10045. ;;
  10046. # This must be glibc/ELF.
  10047. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  10048. version_type=linux # correct to gnu/linux during the next big refactor
  10049. need_lib_prefix=no
  10050. need_version=no
  10051. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10052. soname_spec='${libname}${release}${shared_ext}$major'
  10053. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  10054. shlibpath_var=LD_LIBRARY_PATH
  10055. shlibpath_overrides_runpath=no
  10056. # Some binutils ld are patched to set DT_RUNPATH
  10057. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  10058. $as_echo_n "(cached) " >&6
  10059. else
  10060. lt_cv_shlibpath_overrides_runpath=no
  10061. save_LDFLAGS=$LDFLAGS
  10062. save_libdir=$libdir
  10063. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  10064. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  10065. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10066. /* end confdefs.h. */
  10067. int
  10068. main ()
  10069. {
  10070. ;
  10071. return 0;
  10072. }
  10073. _ACEOF
  10074. if ac_fn_c_try_link "$LINENO"; then :
  10075. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  10076. lt_cv_shlibpath_overrides_runpath=yes
  10077. fi
  10078. fi
  10079. rm -f core conftest.err conftest.$ac_objext \
  10080. conftest$ac_exeext conftest.$ac_ext
  10081. LDFLAGS=$save_LDFLAGS
  10082. libdir=$save_libdir
  10083. fi
  10084. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  10085. # This implies no fast_install, which is unacceptable.
  10086. # Some rework will be needed to allow for fast_install
  10087. # before this can be enabled.
  10088. hardcode_into_libs=yes
  10089. # Add ABI-specific directories to the system library path.
  10090. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  10091. # Append ld.so.conf contents to the search path
  10092. if test -f /etc/ld.so.conf; then
  10093. 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' ' '`
  10094. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  10095. fi
  10096. # We used to test for /lib/ld.so.1 and disable shared libraries on
  10097. # powerpc, because MkLinux only supported shared libraries with the
  10098. # GNU dynamic linker. Since this was broken with cross compilers,
  10099. # most powerpc-linux boxes support dynamic linking these days and
  10100. # people can always --disable-shared, the test was removed, and we
  10101. # assume the GNU/Linux dynamic linker is in use.
  10102. dynamic_linker='GNU/Linux ld.so'
  10103. ;;
  10104. netbsd*)
  10105. version_type=sunos
  10106. need_lib_prefix=no
  10107. need_version=no
  10108. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10109. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  10110. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10111. dynamic_linker='NetBSD (a.out) ld.so'
  10112. else
  10113. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  10114. soname_spec='${libname}${release}${shared_ext}$major'
  10115. dynamic_linker='NetBSD ld.elf_so'
  10116. fi
  10117. shlibpath_var=LD_LIBRARY_PATH
  10118. shlibpath_overrides_runpath=yes
  10119. hardcode_into_libs=yes
  10120. ;;
  10121. newsos6)
  10122. version_type=linux # correct to gnu/linux during the next big refactor
  10123. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10124. shlibpath_var=LD_LIBRARY_PATH
  10125. shlibpath_overrides_runpath=yes
  10126. ;;
  10127. *nto* | *qnx*)
  10128. version_type=qnx
  10129. need_lib_prefix=no
  10130. need_version=no
  10131. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10132. soname_spec='${libname}${release}${shared_ext}$major'
  10133. shlibpath_var=LD_LIBRARY_PATH
  10134. shlibpath_overrides_runpath=no
  10135. hardcode_into_libs=yes
  10136. dynamic_linker='ldqnx.so'
  10137. ;;
  10138. openbsd*)
  10139. version_type=sunos
  10140. sys_lib_dlsearch_path_spec="/usr/lib"
  10141. need_lib_prefix=no
  10142. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  10143. case $host_os in
  10144. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  10145. *) need_version=no ;;
  10146. esac
  10147. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  10148. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10149. shlibpath_var=LD_LIBRARY_PATH
  10150. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  10151. case $host_os in
  10152. openbsd2.[89] | openbsd2.[89].*)
  10153. shlibpath_overrides_runpath=no
  10154. ;;
  10155. *)
  10156. shlibpath_overrides_runpath=yes
  10157. ;;
  10158. esac
  10159. else
  10160. shlibpath_overrides_runpath=yes
  10161. fi
  10162. ;;
  10163. os2*)
  10164. libname_spec='$name'
  10165. shrext_cmds=".dll"
  10166. need_lib_prefix=no
  10167. library_names_spec='$libname${shared_ext} $libname.a'
  10168. dynamic_linker='OS/2 ld.exe'
  10169. shlibpath_var=LIBPATH
  10170. ;;
  10171. osf3* | osf4* | osf5*)
  10172. version_type=osf
  10173. need_lib_prefix=no
  10174. need_version=no
  10175. soname_spec='${libname}${release}${shared_ext}$major'
  10176. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10177. shlibpath_var=LD_LIBRARY_PATH
  10178. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  10179. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  10180. ;;
  10181. rdos*)
  10182. dynamic_linker=no
  10183. ;;
  10184. solaris*)
  10185. version_type=linux # correct to gnu/linux during the next big refactor
  10186. need_lib_prefix=no
  10187. need_version=no
  10188. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10189. soname_spec='${libname}${release}${shared_ext}$major'
  10190. shlibpath_var=LD_LIBRARY_PATH
  10191. shlibpath_overrides_runpath=yes
  10192. hardcode_into_libs=yes
  10193. # ldd complains unless libraries are executable
  10194. postinstall_cmds='chmod +x $lib'
  10195. ;;
  10196. sunos4*)
  10197. version_type=sunos
  10198. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  10199. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  10200. shlibpath_var=LD_LIBRARY_PATH
  10201. shlibpath_overrides_runpath=yes
  10202. if test "$with_gnu_ld" = yes; then
  10203. need_lib_prefix=no
  10204. fi
  10205. need_version=yes
  10206. ;;
  10207. sysv4 | sysv4.3*)
  10208. version_type=linux # correct to gnu/linux during the next big refactor
  10209. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10210. soname_spec='${libname}${release}${shared_ext}$major'
  10211. shlibpath_var=LD_LIBRARY_PATH
  10212. case $host_vendor in
  10213. sni)
  10214. shlibpath_overrides_runpath=no
  10215. need_lib_prefix=no
  10216. runpath_var=LD_RUN_PATH
  10217. ;;
  10218. siemens)
  10219. need_lib_prefix=no
  10220. ;;
  10221. motorola)
  10222. need_lib_prefix=no
  10223. need_version=no
  10224. shlibpath_overrides_runpath=no
  10225. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  10226. ;;
  10227. esac
  10228. ;;
  10229. sysv4*MP*)
  10230. if test -d /usr/nec ;then
  10231. version_type=linux # correct to gnu/linux during the next big refactor
  10232. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  10233. soname_spec='$libname${shared_ext}.$major'
  10234. shlibpath_var=LD_LIBRARY_PATH
  10235. fi
  10236. ;;
  10237. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  10238. version_type=freebsd-elf
  10239. need_lib_prefix=no
  10240. need_version=no
  10241. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  10242. soname_spec='${libname}${release}${shared_ext}$major'
  10243. shlibpath_var=LD_LIBRARY_PATH
  10244. shlibpath_overrides_runpath=yes
  10245. hardcode_into_libs=yes
  10246. if test "$with_gnu_ld" = yes; then
  10247. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  10248. else
  10249. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  10250. case $host_os in
  10251. sco3.2v5*)
  10252. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  10253. ;;
  10254. esac
  10255. fi
  10256. sys_lib_dlsearch_path_spec='/usr/lib'
  10257. ;;
  10258. tpf*)
  10259. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  10260. version_type=linux # correct to gnu/linux during the next big refactor
  10261. need_lib_prefix=no
  10262. need_version=no
  10263. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10264. shlibpath_var=LD_LIBRARY_PATH
  10265. shlibpath_overrides_runpath=no
  10266. hardcode_into_libs=yes
  10267. ;;
  10268. uts4*)
  10269. version_type=linux # correct to gnu/linux during the next big refactor
  10270. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10271. soname_spec='${libname}${release}${shared_ext}$major'
  10272. shlibpath_var=LD_LIBRARY_PATH
  10273. ;;
  10274. *)
  10275. dynamic_linker=no
  10276. ;;
  10277. esac
  10278. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  10279. $as_echo "$dynamic_linker" >&6; }
  10280. test "$dynamic_linker" = no && can_build_shared=no
  10281. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  10282. if test "$GCC" = yes; then
  10283. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  10284. fi
  10285. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  10286. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  10287. fi
  10288. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  10289. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  10290. fi
  10291. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  10292. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  10293. hardcode_action=
  10294. if test -n "$hardcode_libdir_flag_spec" ||
  10295. test -n "$runpath_var" ||
  10296. test "X$hardcode_automatic" = "Xyes" ; then
  10297. # We can hardcode non-existent directories.
  10298. if test "$hardcode_direct" != no &&
  10299. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  10300. # have to relink, otherwise we might link with an installed library
  10301. # when we should be linking with a yet-to-be-installed one
  10302. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  10303. test "$hardcode_minus_L" != no; then
  10304. # Linking always hardcodes the temporary library directory.
  10305. hardcode_action=relink
  10306. else
  10307. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  10308. hardcode_action=immediate
  10309. fi
  10310. else
  10311. # We cannot hardcode anything, or else we can only hardcode existing
  10312. # directories.
  10313. hardcode_action=unsupported
  10314. fi
  10315. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  10316. $as_echo "$hardcode_action" >&6; }
  10317. if test "$hardcode_action" = relink ||
  10318. test "$inherit_rpath" = yes; then
  10319. # Fast installation is not supported
  10320. enable_fast_install=no
  10321. elif test "$shlibpath_overrides_runpath" = yes ||
  10322. test "$enable_shared" = no; then
  10323. # Fast installation is not necessary
  10324. enable_fast_install=needless
  10325. fi
  10326. if test "x$enable_dlopen" != xyes; then
  10327. enable_dlopen=unknown
  10328. enable_dlopen_self=unknown
  10329. enable_dlopen_self_static=unknown
  10330. else
  10331. lt_cv_dlopen=no
  10332. lt_cv_dlopen_libs=
  10333. case $host_os in
  10334. beos*)
  10335. lt_cv_dlopen="load_add_on"
  10336. lt_cv_dlopen_libs=
  10337. lt_cv_dlopen_self=yes
  10338. ;;
  10339. mingw* | pw32* | cegcc*)
  10340. lt_cv_dlopen="LoadLibrary"
  10341. lt_cv_dlopen_libs=
  10342. ;;
  10343. cygwin*)
  10344. lt_cv_dlopen="dlopen"
  10345. lt_cv_dlopen_libs=
  10346. ;;
  10347. darwin*)
  10348. # if libdl is installed we need to link against it
  10349. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10350. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10351. if ${ac_cv_lib_dl_dlopen+:} false; then :
  10352. $as_echo_n "(cached) " >&6
  10353. else
  10354. ac_check_lib_save_LIBS=$LIBS
  10355. LIBS="-ldl $LIBS"
  10356. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10357. /* end confdefs.h. */
  10358. /* Override any GCC internal prototype to avoid an error.
  10359. Use char because int might match the return type of a GCC
  10360. builtin and then its argument prototype would still apply. */
  10361. #ifdef __cplusplus
  10362. extern "C"
  10363. #endif
  10364. char dlopen ();
  10365. int
  10366. main ()
  10367. {
  10368. return dlopen ();
  10369. ;
  10370. return 0;
  10371. }
  10372. _ACEOF
  10373. if ac_fn_c_try_link "$LINENO"; then :
  10374. ac_cv_lib_dl_dlopen=yes
  10375. else
  10376. ac_cv_lib_dl_dlopen=no
  10377. fi
  10378. rm -f core conftest.err conftest.$ac_objext \
  10379. conftest$ac_exeext conftest.$ac_ext
  10380. LIBS=$ac_check_lib_save_LIBS
  10381. fi
  10382. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10383. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10384. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10385. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  10386. else
  10387. lt_cv_dlopen="dyld"
  10388. lt_cv_dlopen_libs=
  10389. lt_cv_dlopen_self=yes
  10390. fi
  10391. ;;
  10392. *)
  10393. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  10394. if test "x$ac_cv_func_shl_load" = xyes; then :
  10395. lt_cv_dlopen="shl_load"
  10396. else
  10397. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  10398. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  10399. if ${ac_cv_lib_dld_shl_load+:} false; then :
  10400. $as_echo_n "(cached) " >&6
  10401. else
  10402. ac_check_lib_save_LIBS=$LIBS
  10403. LIBS="-ldld $LIBS"
  10404. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10405. /* end confdefs.h. */
  10406. /* Override any GCC internal prototype to avoid an error.
  10407. Use char because int might match the return type of a GCC
  10408. builtin and then its argument prototype would still apply. */
  10409. #ifdef __cplusplus
  10410. extern "C"
  10411. #endif
  10412. char shl_load ();
  10413. int
  10414. main ()
  10415. {
  10416. return shl_load ();
  10417. ;
  10418. return 0;
  10419. }
  10420. _ACEOF
  10421. if ac_fn_c_try_link "$LINENO"; then :
  10422. ac_cv_lib_dld_shl_load=yes
  10423. else
  10424. ac_cv_lib_dld_shl_load=no
  10425. fi
  10426. rm -f core conftest.err conftest.$ac_objext \
  10427. conftest$ac_exeext conftest.$ac_ext
  10428. LIBS=$ac_check_lib_save_LIBS
  10429. fi
  10430. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  10431. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  10432. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  10433. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  10434. else
  10435. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  10436. if test "x$ac_cv_func_dlopen" = xyes; then :
  10437. lt_cv_dlopen="dlopen"
  10438. else
  10439. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10440. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10441. if ${ac_cv_lib_dl_dlopen+:} false; then :
  10442. $as_echo_n "(cached) " >&6
  10443. else
  10444. ac_check_lib_save_LIBS=$LIBS
  10445. LIBS="-ldl $LIBS"
  10446. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10447. /* end confdefs.h. */
  10448. /* Override any GCC internal prototype to avoid an error.
  10449. Use char because int might match the return type of a GCC
  10450. builtin and then its argument prototype would still apply. */
  10451. #ifdef __cplusplus
  10452. extern "C"
  10453. #endif
  10454. char dlopen ();
  10455. int
  10456. main ()
  10457. {
  10458. return dlopen ();
  10459. ;
  10460. return 0;
  10461. }
  10462. _ACEOF
  10463. if ac_fn_c_try_link "$LINENO"; then :
  10464. ac_cv_lib_dl_dlopen=yes
  10465. else
  10466. ac_cv_lib_dl_dlopen=no
  10467. fi
  10468. rm -f core conftest.err conftest.$ac_objext \
  10469. conftest$ac_exeext conftest.$ac_ext
  10470. LIBS=$ac_check_lib_save_LIBS
  10471. fi
  10472. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10473. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10474. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10475. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  10476. else
  10477. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  10478. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  10479. if ${ac_cv_lib_svld_dlopen+:} false; then :
  10480. $as_echo_n "(cached) " >&6
  10481. else
  10482. ac_check_lib_save_LIBS=$LIBS
  10483. LIBS="-lsvld $LIBS"
  10484. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10485. /* end confdefs.h. */
  10486. /* Override any GCC internal prototype to avoid an error.
  10487. Use char because int might match the return type of a GCC
  10488. builtin and then its argument prototype would still apply. */
  10489. #ifdef __cplusplus
  10490. extern "C"
  10491. #endif
  10492. char dlopen ();
  10493. int
  10494. main ()
  10495. {
  10496. return dlopen ();
  10497. ;
  10498. return 0;
  10499. }
  10500. _ACEOF
  10501. if ac_fn_c_try_link "$LINENO"; then :
  10502. ac_cv_lib_svld_dlopen=yes
  10503. else
  10504. ac_cv_lib_svld_dlopen=no
  10505. fi
  10506. rm -f core conftest.err conftest.$ac_objext \
  10507. conftest$ac_exeext conftest.$ac_ext
  10508. LIBS=$ac_check_lib_save_LIBS
  10509. fi
  10510. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  10511. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  10512. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  10513. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  10514. else
  10515. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  10516. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  10517. if ${ac_cv_lib_dld_dld_link+:} false; then :
  10518. $as_echo_n "(cached) " >&6
  10519. else
  10520. ac_check_lib_save_LIBS=$LIBS
  10521. LIBS="-ldld $LIBS"
  10522. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10523. /* end confdefs.h. */
  10524. /* Override any GCC internal prototype to avoid an error.
  10525. Use char because int might match the return type of a GCC
  10526. builtin and then its argument prototype would still apply. */
  10527. #ifdef __cplusplus
  10528. extern "C"
  10529. #endif
  10530. char dld_link ();
  10531. int
  10532. main ()
  10533. {
  10534. return dld_link ();
  10535. ;
  10536. return 0;
  10537. }
  10538. _ACEOF
  10539. if ac_fn_c_try_link "$LINENO"; then :
  10540. ac_cv_lib_dld_dld_link=yes
  10541. else
  10542. ac_cv_lib_dld_dld_link=no
  10543. fi
  10544. rm -f core conftest.err conftest.$ac_objext \
  10545. conftest$ac_exeext conftest.$ac_ext
  10546. LIBS=$ac_check_lib_save_LIBS
  10547. fi
  10548. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  10549. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  10550. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  10551. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  10552. fi
  10553. fi
  10554. fi
  10555. fi
  10556. fi
  10557. fi
  10558. ;;
  10559. esac
  10560. if test "x$lt_cv_dlopen" != xno; then
  10561. enable_dlopen=yes
  10562. else
  10563. enable_dlopen=no
  10564. fi
  10565. case $lt_cv_dlopen in
  10566. dlopen)
  10567. save_CPPFLAGS="$CPPFLAGS"
  10568. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  10569. save_LDFLAGS="$LDFLAGS"
  10570. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  10571. save_LIBS="$LIBS"
  10572. LIBS="$lt_cv_dlopen_libs $LIBS"
  10573. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  10574. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  10575. if ${lt_cv_dlopen_self+:} false; then :
  10576. $as_echo_n "(cached) " >&6
  10577. else
  10578. if test "$cross_compiling" = yes; then :
  10579. lt_cv_dlopen_self=cross
  10580. else
  10581. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10582. lt_status=$lt_dlunknown
  10583. cat > conftest.$ac_ext <<_LT_EOF
  10584. #line $LINENO "configure"
  10585. #include "confdefs.h"
  10586. #if HAVE_DLFCN_H
  10587. #include <dlfcn.h>
  10588. #endif
  10589. #include <stdio.h>
  10590. #ifdef RTLD_GLOBAL
  10591. # define LT_DLGLOBAL RTLD_GLOBAL
  10592. #else
  10593. # ifdef DL_GLOBAL
  10594. # define LT_DLGLOBAL DL_GLOBAL
  10595. # else
  10596. # define LT_DLGLOBAL 0
  10597. # endif
  10598. #endif
  10599. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10600. find out it does not work in some platform. */
  10601. #ifndef LT_DLLAZY_OR_NOW
  10602. # ifdef RTLD_LAZY
  10603. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10604. # else
  10605. # ifdef DL_LAZY
  10606. # define LT_DLLAZY_OR_NOW DL_LAZY
  10607. # else
  10608. # ifdef RTLD_NOW
  10609. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10610. # else
  10611. # ifdef DL_NOW
  10612. # define LT_DLLAZY_OR_NOW DL_NOW
  10613. # else
  10614. # define LT_DLLAZY_OR_NOW 0
  10615. # endif
  10616. # endif
  10617. # endif
  10618. # endif
  10619. #endif
  10620. /* When -fvisbility=hidden is used, assume the code has been annotated
  10621. correspondingly for the symbols needed. */
  10622. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10623. int fnord () __attribute__((visibility("default")));
  10624. #endif
  10625. int fnord () { return 42; }
  10626. int main ()
  10627. {
  10628. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10629. int status = $lt_dlunknown;
  10630. if (self)
  10631. {
  10632. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10633. else
  10634. {
  10635. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10636. else puts (dlerror ());
  10637. }
  10638. /* dlclose (self); */
  10639. }
  10640. else
  10641. puts (dlerror ());
  10642. return status;
  10643. }
  10644. _LT_EOF
  10645. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10646. (eval $ac_link) 2>&5
  10647. ac_status=$?
  10648. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10649. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10650. (./conftest; exit; ) >&5 2>/dev/null
  10651. lt_status=$?
  10652. case x$lt_status in
  10653. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  10654. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  10655. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  10656. esac
  10657. else :
  10658. # compilation failed
  10659. lt_cv_dlopen_self=no
  10660. fi
  10661. fi
  10662. rm -fr conftest*
  10663. fi
  10664. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  10665. $as_echo "$lt_cv_dlopen_self" >&6; }
  10666. if test "x$lt_cv_dlopen_self" = xyes; then
  10667. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  10668. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  10669. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  10670. if ${lt_cv_dlopen_self_static+:} false; then :
  10671. $as_echo_n "(cached) " >&6
  10672. else
  10673. if test "$cross_compiling" = yes; then :
  10674. lt_cv_dlopen_self_static=cross
  10675. else
  10676. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10677. lt_status=$lt_dlunknown
  10678. cat > conftest.$ac_ext <<_LT_EOF
  10679. #line $LINENO "configure"
  10680. #include "confdefs.h"
  10681. #if HAVE_DLFCN_H
  10682. #include <dlfcn.h>
  10683. #endif
  10684. #include <stdio.h>
  10685. #ifdef RTLD_GLOBAL
  10686. # define LT_DLGLOBAL RTLD_GLOBAL
  10687. #else
  10688. # ifdef DL_GLOBAL
  10689. # define LT_DLGLOBAL DL_GLOBAL
  10690. # else
  10691. # define LT_DLGLOBAL 0
  10692. # endif
  10693. #endif
  10694. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10695. find out it does not work in some platform. */
  10696. #ifndef LT_DLLAZY_OR_NOW
  10697. # ifdef RTLD_LAZY
  10698. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10699. # else
  10700. # ifdef DL_LAZY
  10701. # define LT_DLLAZY_OR_NOW DL_LAZY
  10702. # else
  10703. # ifdef RTLD_NOW
  10704. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10705. # else
  10706. # ifdef DL_NOW
  10707. # define LT_DLLAZY_OR_NOW DL_NOW
  10708. # else
  10709. # define LT_DLLAZY_OR_NOW 0
  10710. # endif
  10711. # endif
  10712. # endif
  10713. # endif
  10714. #endif
  10715. /* When -fvisbility=hidden is used, assume the code has been annotated
  10716. correspondingly for the symbols needed. */
  10717. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10718. int fnord () __attribute__((visibility("default")));
  10719. #endif
  10720. int fnord () { return 42; }
  10721. int main ()
  10722. {
  10723. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10724. int status = $lt_dlunknown;
  10725. if (self)
  10726. {
  10727. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10728. else
  10729. {
  10730. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10731. else puts (dlerror ());
  10732. }
  10733. /* dlclose (self); */
  10734. }
  10735. else
  10736. puts (dlerror ());
  10737. return status;
  10738. }
  10739. _LT_EOF
  10740. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10741. (eval $ac_link) 2>&5
  10742. ac_status=$?
  10743. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10744. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10745. (./conftest; exit; ) >&5 2>/dev/null
  10746. lt_status=$?
  10747. case x$lt_status in
  10748. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  10749. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  10750. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  10751. esac
  10752. else :
  10753. # compilation failed
  10754. lt_cv_dlopen_self_static=no
  10755. fi
  10756. fi
  10757. rm -fr conftest*
  10758. fi
  10759. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  10760. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  10761. fi
  10762. CPPFLAGS="$save_CPPFLAGS"
  10763. LDFLAGS="$save_LDFLAGS"
  10764. LIBS="$save_LIBS"
  10765. ;;
  10766. esac
  10767. case $lt_cv_dlopen_self in
  10768. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  10769. *) enable_dlopen_self=unknown ;;
  10770. esac
  10771. case $lt_cv_dlopen_self_static in
  10772. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  10773. *) enable_dlopen_self_static=unknown ;;
  10774. esac
  10775. fi
  10776. striplib=
  10777. old_striplib=
  10778. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  10779. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  10780. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  10781. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  10782. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  10783. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10784. $as_echo "yes" >&6; }
  10785. else
  10786. # FIXME - insert some real tests, host_os isn't really good enough
  10787. case $host_os in
  10788. darwin*)
  10789. if test -n "$STRIP" ; then
  10790. striplib="$STRIP -x"
  10791. old_striplib="$STRIP -S"
  10792. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10793. $as_echo "yes" >&6; }
  10794. else
  10795. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10796. $as_echo "no" >&6; }
  10797. fi
  10798. ;;
  10799. *)
  10800. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10801. $as_echo "no" >&6; }
  10802. ;;
  10803. esac
  10804. fi
  10805. # Report which library types will actually be built
  10806. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  10807. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  10808. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  10809. $as_echo "$can_build_shared" >&6; }
  10810. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  10811. $as_echo_n "checking whether to build shared libraries... " >&6; }
  10812. test "$can_build_shared" = "no" && enable_shared=no
  10813. # On AIX, shared libraries and static libraries use the same namespace, and
  10814. # are all built from PIC.
  10815. case $host_os in
  10816. aix3*)
  10817. test "$enable_shared" = yes && enable_static=no
  10818. if test -n "$RANLIB"; then
  10819. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  10820. postinstall_cmds='$RANLIB $lib'
  10821. fi
  10822. ;;
  10823. aix[4-9]*)
  10824. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  10825. test "$enable_shared" = yes && enable_static=no
  10826. fi
  10827. ;;
  10828. esac
  10829. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  10830. $as_echo "$enable_shared" >&6; }
  10831. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  10832. $as_echo_n "checking whether to build static libraries... " >&6; }
  10833. # Make sure either enable_shared or enable_static is yes.
  10834. test "$enable_shared" = yes || enable_static=yes
  10835. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  10836. $as_echo "$enable_static" >&6; }
  10837. fi
  10838. ac_ext=c
  10839. ac_cpp='$CPP $CPPFLAGS'
  10840. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10841. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10842. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10843. CC="$lt_save_CC"
  10844. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  10845. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  10846. (test "X$CXX" != "Xg++"))) ; then
  10847. ac_ext=cpp
  10848. ac_cpp='$CXXCPP $CPPFLAGS'
  10849. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10850. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10851. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10852. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  10853. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  10854. if test -z "$CXXCPP"; then
  10855. if ${ac_cv_prog_CXXCPP+:} false; then :
  10856. $as_echo_n "(cached) " >&6
  10857. else
  10858. # Double quotes because CXXCPP needs to be expanded
  10859. for CXXCPP in "$CXX -E" "/lib/cpp"
  10860. do
  10861. ac_preproc_ok=false
  10862. for ac_cxx_preproc_warn_flag in '' yes
  10863. do
  10864. # Use a header file that comes with gcc, so configuring glibc
  10865. # with a fresh cross-compiler works.
  10866. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10867. # <limits.h> exists even on freestanding compilers.
  10868. # On the NeXT, cc -E runs the code through the compiler's parser,
  10869. # not just through cpp. "Syntax error" is here to catch this case.
  10870. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10871. /* end confdefs.h. */
  10872. #ifdef __STDC__
  10873. # include <limits.h>
  10874. #else
  10875. # include <assert.h>
  10876. #endif
  10877. Syntax error
  10878. _ACEOF
  10879. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10880. else
  10881. # Broken: fails on valid input.
  10882. continue
  10883. fi
  10884. rm -f conftest.err conftest.i conftest.$ac_ext
  10885. # OK, works on sane cases. Now check whether nonexistent headers
  10886. # can be detected and how.
  10887. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10888. /* end confdefs.h. */
  10889. #include <ac_nonexistent.h>
  10890. _ACEOF
  10891. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10892. # Broken: success on invalid input.
  10893. continue
  10894. else
  10895. # Passes both tests.
  10896. ac_preproc_ok=:
  10897. break
  10898. fi
  10899. rm -f conftest.err conftest.i conftest.$ac_ext
  10900. done
  10901. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10902. rm -f conftest.i conftest.err conftest.$ac_ext
  10903. if $ac_preproc_ok; then :
  10904. break
  10905. fi
  10906. done
  10907. ac_cv_prog_CXXCPP=$CXXCPP
  10908. fi
  10909. CXXCPP=$ac_cv_prog_CXXCPP
  10910. else
  10911. ac_cv_prog_CXXCPP=$CXXCPP
  10912. fi
  10913. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  10914. $as_echo "$CXXCPP" >&6; }
  10915. ac_preproc_ok=false
  10916. for ac_cxx_preproc_warn_flag in '' yes
  10917. do
  10918. # Use a header file that comes with gcc, so configuring glibc
  10919. # with a fresh cross-compiler works.
  10920. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10921. # <limits.h> exists even on freestanding compilers.
  10922. # On the NeXT, cc -E runs the code through the compiler's parser,
  10923. # not just through cpp. "Syntax error" is here to catch this case.
  10924. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10925. /* end confdefs.h. */
  10926. #ifdef __STDC__
  10927. # include <limits.h>
  10928. #else
  10929. # include <assert.h>
  10930. #endif
  10931. Syntax error
  10932. _ACEOF
  10933. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10934. else
  10935. # Broken: fails on valid input.
  10936. continue
  10937. fi
  10938. rm -f conftest.err conftest.i conftest.$ac_ext
  10939. # OK, works on sane cases. Now check whether nonexistent headers
  10940. # can be detected and how.
  10941. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10942. /* end confdefs.h. */
  10943. #include <ac_nonexistent.h>
  10944. _ACEOF
  10945. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10946. # Broken: success on invalid input.
  10947. continue
  10948. else
  10949. # Passes both tests.
  10950. ac_preproc_ok=:
  10951. break
  10952. fi
  10953. rm -f conftest.err conftest.i conftest.$ac_ext
  10954. done
  10955. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10956. rm -f conftest.i conftest.err conftest.$ac_ext
  10957. if $ac_preproc_ok; then :
  10958. else
  10959. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10960. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10961. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  10962. See \`config.log' for more details" "$LINENO" 5; }
  10963. fi
  10964. ac_ext=c
  10965. ac_cpp='$CPP $CPPFLAGS'
  10966. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10967. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10968. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10969. else
  10970. _lt_caught_CXX_error=yes
  10971. fi
  10972. ac_ext=cpp
  10973. ac_cpp='$CXXCPP $CPPFLAGS'
  10974. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10975. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10976. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10977. archive_cmds_need_lc_CXX=no
  10978. allow_undefined_flag_CXX=
  10979. always_export_symbols_CXX=no
  10980. archive_expsym_cmds_CXX=
  10981. compiler_needs_object_CXX=no
  10982. export_dynamic_flag_spec_CXX=
  10983. hardcode_direct_CXX=no
  10984. hardcode_direct_absolute_CXX=no
  10985. hardcode_libdir_flag_spec_CXX=
  10986. hardcode_libdir_separator_CXX=
  10987. hardcode_minus_L_CXX=no
  10988. hardcode_shlibpath_var_CXX=unsupported
  10989. hardcode_automatic_CXX=no
  10990. inherit_rpath_CXX=no
  10991. module_cmds_CXX=
  10992. module_expsym_cmds_CXX=
  10993. link_all_deplibs_CXX=unknown
  10994. old_archive_cmds_CXX=$old_archive_cmds
  10995. reload_flag_CXX=$reload_flag
  10996. reload_cmds_CXX=$reload_cmds
  10997. no_undefined_flag_CXX=
  10998. whole_archive_flag_spec_CXX=
  10999. enable_shared_with_static_runtimes_CXX=no
  11000. # Source file extension for C++ test sources.
  11001. ac_ext=cpp
  11002. # Object file extension for compiled C++ test sources.
  11003. objext=o
  11004. objext_CXX=$objext
  11005. # No sense in running all these tests if we already determined that
  11006. # the CXX compiler isn't working. Some variables (like enable_shared)
  11007. # are currently assumed to apply to all compilers on this platform,
  11008. # and will be corrupted by setting them based on a non-working compiler.
  11009. if test "$_lt_caught_CXX_error" != yes; then
  11010. # Code to be used in simple compile tests
  11011. lt_simple_compile_test_code="int some_variable = 0;"
  11012. # Code to be used in simple link tests
  11013. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  11014. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  11015. # If no C compiler was specified, use CC.
  11016. LTCC=${LTCC-"$CC"}
  11017. # If no C compiler flags were specified, use CFLAGS.
  11018. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  11019. # Allow CC to be a program name with arguments.
  11020. compiler=$CC
  11021. # save warnings/boilerplate of simple test code
  11022. ac_outfile=conftest.$ac_objext
  11023. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  11024. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11025. _lt_compiler_boilerplate=`cat conftest.err`
  11026. $RM conftest*
  11027. ac_outfile=conftest.$ac_objext
  11028. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  11029. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11030. _lt_linker_boilerplate=`cat conftest.err`
  11031. $RM -r conftest*
  11032. # Allow CC to be a program name with arguments.
  11033. lt_save_CC=$CC
  11034. lt_save_CFLAGS=$CFLAGS
  11035. lt_save_LD=$LD
  11036. lt_save_GCC=$GCC
  11037. GCC=$GXX
  11038. lt_save_with_gnu_ld=$with_gnu_ld
  11039. lt_save_path_LD=$lt_cv_path_LD
  11040. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  11041. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  11042. else
  11043. $as_unset lt_cv_prog_gnu_ld
  11044. fi
  11045. if test -n "${lt_cv_path_LDCXX+set}"; then
  11046. lt_cv_path_LD=$lt_cv_path_LDCXX
  11047. else
  11048. $as_unset lt_cv_path_LD
  11049. fi
  11050. test -z "${LDCXX+set}" || LD=$LDCXX
  11051. CC=${CXX-"c++"}
  11052. CFLAGS=$CXXFLAGS
  11053. compiler=$CC
  11054. compiler_CXX=$CC
  11055. for cc_temp in $compiler""; do
  11056. case $cc_temp in
  11057. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  11058. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  11059. \-*) ;;
  11060. *) break;;
  11061. esac
  11062. done
  11063. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  11064. if test -n "$compiler"; then
  11065. # We don't want -fno-exception when compiling C++ code, so set the
  11066. # no_builtin_flag separately
  11067. if test "$GXX" = yes; then
  11068. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  11069. else
  11070. lt_prog_compiler_no_builtin_flag_CXX=
  11071. fi
  11072. if test "$GXX" = yes; then
  11073. # Set up default GNU C++ configuration
  11074. # Check whether --with-gnu-ld was given.
  11075. if test "${with_gnu_ld+set}" = set; then :
  11076. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  11077. else
  11078. with_gnu_ld=no
  11079. fi
  11080. ac_prog=ld
  11081. if test "$GCC" = yes; then
  11082. # Check if gcc -print-prog-name=ld gives a path.
  11083. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  11084. $as_echo_n "checking for ld used by $CC... " >&6; }
  11085. case $host in
  11086. *-*-mingw*)
  11087. # gcc leaves a trailing carriage return which upsets mingw
  11088. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  11089. *)
  11090. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  11091. esac
  11092. case $ac_prog in
  11093. # Accept absolute paths.
  11094. [\\/]* | ?:[\\/]*)
  11095. re_direlt='/[^/][^/]*/\.\./'
  11096. # Canonicalize the pathname of ld
  11097. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  11098. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  11099. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  11100. done
  11101. test -z "$LD" && LD="$ac_prog"
  11102. ;;
  11103. "")
  11104. # If it fails, then pretend we aren't using GCC.
  11105. ac_prog=ld
  11106. ;;
  11107. *)
  11108. # If it is relative, then search for the first ld in PATH.
  11109. with_gnu_ld=unknown
  11110. ;;
  11111. esac
  11112. elif test "$with_gnu_ld" = yes; then
  11113. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  11114. $as_echo_n "checking for GNU ld... " >&6; }
  11115. else
  11116. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  11117. $as_echo_n "checking for non-GNU ld... " >&6; }
  11118. fi
  11119. if ${lt_cv_path_LD+:} false; then :
  11120. $as_echo_n "(cached) " >&6
  11121. else
  11122. if test -z "$LD"; then
  11123. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  11124. for ac_dir in $PATH; do
  11125. IFS="$lt_save_ifs"
  11126. test -z "$ac_dir" && ac_dir=.
  11127. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  11128. lt_cv_path_LD="$ac_dir/$ac_prog"
  11129. # Check to see if the program is GNU ld. I'd rather use --version,
  11130. # but apparently some variants of GNU ld only accept -v.
  11131. # Break only if it was the GNU/non-GNU ld that we prefer.
  11132. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  11133. *GNU* | *'with BFD'*)
  11134. test "$with_gnu_ld" != no && break
  11135. ;;
  11136. *)
  11137. test "$with_gnu_ld" != yes && break
  11138. ;;
  11139. esac
  11140. fi
  11141. done
  11142. IFS="$lt_save_ifs"
  11143. else
  11144. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  11145. fi
  11146. fi
  11147. LD="$lt_cv_path_LD"
  11148. if test -n "$LD"; then
  11149. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  11150. $as_echo "$LD" >&6; }
  11151. else
  11152. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11153. $as_echo "no" >&6; }
  11154. fi
  11155. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  11156. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  11157. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  11158. if ${lt_cv_prog_gnu_ld+:} false; then :
  11159. $as_echo_n "(cached) " >&6
  11160. else
  11161. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  11162. case `$LD -v 2>&1 </dev/null` in
  11163. *GNU* | *'with BFD'*)
  11164. lt_cv_prog_gnu_ld=yes
  11165. ;;
  11166. *)
  11167. lt_cv_prog_gnu_ld=no
  11168. ;;
  11169. esac
  11170. fi
  11171. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  11172. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  11173. with_gnu_ld=$lt_cv_prog_gnu_ld
  11174. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  11175. # archiving commands below assume that GNU ld is being used.
  11176. if test "$with_gnu_ld" = yes; then
  11177. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11178. 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'
  11179. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11180. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11181. # If archive_cmds runs LD, not CC, wlarc should be empty
  11182. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  11183. # investigate it a little bit more. (MM)
  11184. wlarc='${wl}'
  11185. # ancient GNU ld didn't support --whole-archive et. al.
  11186. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  11187. $GREP 'no-whole-archive' > /dev/null; then
  11188. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11189. else
  11190. whole_archive_flag_spec_CXX=
  11191. fi
  11192. else
  11193. with_gnu_ld=no
  11194. wlarc=
  11195. # A generic and very simple default shared library creation
  11196. # command for GNU C++ for the case where it uses the native
  11197. # linker, instead of GNU ld. If possible, this setting should
  11198. # overridden to take advantage of the native linker features on
  11199. # the platform it is being used on.
  11200. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11201. fi
  11202. # Commands to make compiler produce verbose output that lists
  11203. # what "hidden" libraries, object files and flags are used when
  11204. # linking a shared library.
  11205. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11206. else
  11207. GXX=no
  11208. with_gnu_ld=no
  11209. wlarc=
  11210. fi
  11211. # PORTME: fill in a description of your system's C++ link characteristics
  11212. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  11213. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  11214. ld_shlibs_CXX=yes
  11215. case $host_os in
  11216. aix3*)
  11217. # FIXME: insert proper C++ library support
  11218. ld_shlibs_CXX=no
  11219. ;;
  11220. aix[4-9]*)
  11221. if test "$host_cpu" = ia64; then
  11222. # On IA64, the linker does run time linking by default, so we don't
  11223. # have to do anything special.
  11224. aix_use_runtimelinking=no
  11225. exp_sym_flag='-Bexport'
  11226. no_entry_flag=""
  11227. else
  11228. aix_use_runtimelinking=no
  11229. # Test if we are trying to use run time linking or normal
  11230. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  11231. # need to do runtime linking.
  11232. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  11233. for ld_flag in $LDFLAGS; do
  11234. case $ld_flag in
  11235. *-brtl*)
  11236. aix_use_runtimelinking=yes
  11237. break
  11238. ;;
  11239. esac
  11240. done
  11241. ;;
  11242. esac
  11243. exp_sym_flag='-bexport'
  11244. no_entry_flag='-bnoentry'
  11245. fi
  11246. # When large executables or shared objects are built, AIX ld can
  11247. # have problems creating the table of contents. If linking a library
  11248. # or program results in "error TOC overflow" add -mminimal-toc to
  11249. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  11250. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  11251. archive_cmds_CXX=''
  11252. hardcode_direct_CXX=yes
  11253. hardcode_direct_absolute_CXX=yes
  11254. hardcode_libdir_separator_CXX=':'
  11255. link_all_deplibs_CXX=yes
  11256. file_list_spec_CXX='${wl}-f,'
  11257. if test "$GXX" = yes; then
  11258. case $host_os in aix4.[012]|aix4.[012].*)
  11259. # We only want to do this on AIX 4.2 and lower, the check
  11260. # below for broken collect2 doesn't work under 4.3+
  11261. collect2name=`${CC} -print-prog-name=collect2`
  11262. if test -f "$collect2name" &&
  11263. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  11264. then
  11265. # We have reworked collect2
  11266. :
  11267. else
  11268. # We have old collect2
  11269. hardcode_direct_CXX=unsupported
  11270. # It fails to find uninstalled libraries when the uninstalled
  11271. # path is not listed in the libpath. Setting hardcode_minus_L
  11272. # to unsupported forces relinking
  11273. hardcode_minus_L_CXX=yes
  11274. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11275. hardcode_libdir_separator_CXX=
  11276. fi
  11277. esac
  11278. shared_flag='-shared'
  11279. if test "$aix_use_runtimelinking" = yes; then
  11280. shared_flag="$shared_flag "'${wl}-G'
  11281. fi
  11282. else
  11283. # not using gcc
  11284. if test "$host_cpu" = ia64; then
  11285. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  11286. # chokes on -Wl,-G. The following line is correct:
  11287. shared_flag='-G'
  11288. else
  11289. if test "$aix_use_runtimelinking" = yes; then
  11290. shared_flag='${wl}-G'
  11291. else
  11292. shared_flag='${wl}-bM:SRE'
  11293. fi
  11294. fi
  11295. fi
  11296. export_dynamic_flag_spec_CXX='${wl}-bexpall'
  11297. # It seems that -bexpall does not export symbols beginning with
  11298. # underscore (_), so it is better to generate a list of symbols to
  11299. # export.
  11300. always_export_symbols_CXX=yes
  11301. if test "$aix_use_runtimelinking" = yes; then
  11302. # Warning - without using the other runtime loading flags (-brtl),
  11303. # -berok will link without error, but may produce a broken library.
  11304. allow_undefined_flag_CXX='-berok'
  11305. # Determine the default libpath from the value encoded in an empty
  11306. # executable.
  11307. if test "${lt_cv_aix_libpath+set}" = set; then
  11308. aix_libpath=$lt_cv_aix_libpath
  11309. else
  11310. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11311. $as_echo_n "(cached) " >&6
  11312. else
  11313. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11314. /* end confdefs.h. */
  11315. int
  11316. main ()
  11317. {
  11318. ;
  11319. return 0;
  11320. }
  11321. _ACEOF
  11322. if ac_fn_cxx_try_link "$LINENO"; then :
  11323. lt_aix_libpath_sed='
  11324. /Import File Strings/,/^$/ {
  11325. /^0/ {
  11326. s/^0 *\([^ ]*\) *$/\1/
  11327. p
  11328. }
  11329. }'
  11330. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11331. # Check for a 64-bit object if we didn't find anything.
  11332. if test -z "$lt_cv_aix_libpath__CXX"; then
  11333. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11334. fi
  11335. fi
  11336. rm -f core conftest.err conftest.$ac_objext \
  11337. conftest$ac_exeext conftest.$ac_ext
  11338. if test -z "$lt_cv_aix_libpath__CXX"; then
  11339. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  11340. fi
  11341. fi
  11342. aix_libpath=$lt_cv_aix_libpath__CXX
  11343. fi
  11344. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11345. 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"
  11346. else
  11347. if test "$host_cpu" = ia64; then
  11348. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  11349. allow_undefined_flag_CXX="-z nodefs"
  11350. 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"
  11351. else
  11352. # Determine the default libpath from the value encoded in an
  11353. # empty executable.
  11354. if test "${lt_cv_aix_libpath+set}" = set; then
  11355. aix_libpath=$lt_cv_aix_libpath
  11356. else
  11357. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11358. $as_echo_n "(cached) " >&6
  11359. else
  11360. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11361. /* end confdefs.h. */
  11362. int
  11363. main ()
  11364. {
  11365. ;
  11366. return 0;
  11367. }
  11368. _ACEOF
  11369. if ac_fn_cxx_try_link "$LINENO"; then :
  11370. lt_aix_libpath_sed='
  11371. /Import File Strings/,/^$/ {
  11372. /^0/ {
  11373. s/^0 *\([^ ]*\) *$/\1/
  11374. p
  11375. }
  11376. }'
  11377. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11378. # Check for a 64-bit object if we didn't find anything.
  11379. if test -z "$lt_cv_aix_libpath__CXX"; then
  11380. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11381. fi
  11382. fi
  11383. rm -f core conftest.err conftest.$ac_objext \
  11384. conftest$ac_exeext conftest.$ac_ext
  11385. if test -z "$lt_cv_aix_libpath__CXX"; then
  11386. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  11387. fi
  11388. fi
  11389. aix_libpath=$lt_cv_aix_libpath__CXX
  11390. fi
  11391. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11392. # Warning - without using the other run time loading flags,
  11393. # -berok will link without error, but may produce a broken library.
  11394. no_undefined_flag_CXX=' ${wl}-bernotok'
  11395. allow_undefined_flag_CXX=' ${wl}-berok'
  11396. if test "$with_gnu_ld" = yes; then
  11397. # We only use this code for GNU lds that support --whole-archive.
  11398. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11399. else
  11400. # Exported symbols can be pulled into shared objects from archives
  11401. whole_archive_flag_spec_CXX='$convenience'
  11402. fi
  11403. archive_cmds_need_lc_CXX=yes
  11404. # This is similar to how AIX traditionally builds its shared
  11405. # libraries.
  11406. 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'
  11407. fi
  11408. fi
  11409. ;;
  11410. beos*)
  11411. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11412. allow_undefined_flag_CXX=unsupported
  11413. # Joseph Beckenbach <[email protected]> says some releases of gcc
  11414. # support --undefined. This deserves some investigation. FIXME
  11415. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11416. else
  11417. ld_shlibs_CXX=no
  11418. fi
  11419. ;;
  11420. chorus*)
  11421. case $cc_basename in
  11422. *)
  11423. # FIXME: insert proper C++ library support
  11424. ld_shlibs_CXX=no
  11425. ;;
  11426. esac
  11427. ;;
  11428. cygwin* | mingw* | pw32* | cegcc*)
  11429. case $GXX,$cc_basename in
  11430. ,cl* | no,cl*)
  11431. # Native MSVC
  11432. # hardcode_libdir_flag_spec is actually meaningless, as there is
  11433. # no search path for DLLs.
  11434. hardcode_libdir_flag_spec_CXX=' '
  11435. allow_undefined_flag_CXX=unsupported
  11436. always_export_symbols_CXX=yes
  11437. file_list_spec_CXX='@'
  11438. # Tell ltmain to make .lib files, not .a files.
  11439. libext=lib
  11440. # Tell ltmain to make .dll files, not .so files.
  11441. shrext_cmds=".dll"
  11442. # FIXME: Setting linknames here is a bad hack.
  11443. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  11444. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11445. $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  11446. else
  11447. $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  11448. fi~
  11449. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  11450. linknames='
  11451. # The linker will not automatically build a static lib if we build a DLL.
  11452. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  11453. enable_shared_with_static_runtimes_CXX=yes
  11454. # Don't use ranlib
  11455. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  11456. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  11457. lt_tool_outputfile="@TOOL_OUTPUT@"~
  11458. case $lt_outputfile in
  11459. *.exe|*.EXE) ;;
  11460. *)
  11461. lt_outputfile="$lt_outputfile.exe"
  11462. lt_tool_outputfile="$lt_tool_outputfile.exe"
  11463. ;;
  11464. esac~
  11465. func_to_tool_file "$lt_outputfile"~
  11466. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  11467. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  11468. $RM "$lt_outputfile.manifest";
  11469. fi'
  11470. ;;
  11471. *)
  11472. # g++
  11473. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  11474. # as there is no search path for DLLs.
  11475. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11476. export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
  11477. allow_undefined_flag_CXX=unsupported
  11478. always_export_symbols_CXX=no
  11479. enable_shared_with_static_runtimes_CXX=yes
  11480. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  11481. 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'
  11482. # If the export-symbols file already is a .def file (1st line
  11483. # is EXPORTS), use it as is; otherwise, prepend...
  11484. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11485. cp $export_symbols $output_objdir/$soname.def;
  11486. else
  11487. echo EXPORTS > $output_objdir/$soname.def;
  11488. cat $export_symbols >> $output_objdir/$soname.def;
  11489. fi~
  11490. $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'
  11491. else
  11492. ld_shlibs_CXX=no
  11493. fi
  11494. ;;
  11495. esac
  11496. ;;
  11497. darwin* | rhapsody*)
  11498. archive_cmds_need_lc_CXX=no
  11499. hardcode_direct_CXX=no
  11500. hardcode_automatic_CXX=yes
  11501. hardcode_shlibpath_var_CXX=unsupported
  11502. if test "$lt_cv_ld_force_load" = "yes"; then
  11503. 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\"`'
  11504. else
  11505. whole_archive_flag_spec_CXX=''
  11506. fi
  11507. link_all_deplibs_CXX=yes
  11508. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  11509. case $cc_basename in
  11510. ifort*) _lt_dar_can_shared=yes ;;
  11511. *) _lt_dar_can_shared=$GCC ;;
  11512. esac
  11513. if test "$_lt_dar_can_shared" = "yes"; then
  11514. output_verbose_link_cmd=func_echo_all
  11515. 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}"
  11516. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  11517. 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}"
  11518. 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}"
  11519. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  11520. 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}"
  11521. 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}"
  11522. fi
  11523. else
  11524. ld_shlibs_CXX=no
  11525. fi
  11526. ;;
  11527. dgux*)
  11528. case $cc_basename in
  11529. ec++*)
  11530. # FIXME: insert proper C++ library support
  11531. ld_shlibs_CXX=no
  11532. ;;
  11533. ghcx*)
  11534. # Green Hills C++ Compiler
  11535. # FIXME: insert proper C++ library support
  11536. ld_shlibs_CXX=no
  11537. ;;
  11538. *)
  11539. # FIXME: insert proper C++ library support
  11540. ld_shlibs_CXX=no
  11541. ;;
  11542. esac
  11543. ;;
  11544. freebsd2.*)
  11545. # C++ shared libraries reported to be fairly broken before
  11546. # switch to ELF
  11547. ld_shlibs_CXX=no
  11548. ;;
  11549. freebsd-elf*)
  11550. archive_cmds_need_lc_CXX=no
  11551. ;;
  11552. freebsd* | dragonfly*)
  11553. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  11554. # conventions
  11555. ld_shlibs_CXX=yes
  11556. ;;
  11557. gnu*)
  11558. ;;
  11559. haiku*)
  11560. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11561. link_all_deplibs_CXX=yes
  11562. ;;
  11563. hpux9*)
  11564. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11565. hardcode_libdir_separator_CXX=:
  11566. export_dynamic_flag_spec_CXX='${wl}-E'
  11567. hardcode_direct_CXX=yes
  11568. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11569. # but as the default
  11570. # location of the library.
  11571. case $cc_basename in
  11572. CC*)
  11573. # FIXME: insert proper C++ library support
  11574. ld_shlibs_CXX=no
  11575. ;;
  11576. aCC*)
  11577. 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'
  11578. # Commands to make compiler produce verbose output that lists
  11579. # what "hidden" libraries, object files and flags are used when
  11580. # linking a shared library.
  11581. #
  11582. # There doesn't appear to be a way to prevent this compiler from
  11583. # explicitly linking system object files so we need to strip them
  11584. # from the output so that they don't get included in the library
  11585. # dependencies.
  11586. 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"'
  11587. ;;
  11588. *)
  11589. if test "$GXX" = yes; then
  11590. 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'
  11591. else
  11592. # FIXME: insert proper C++ library support
  11593. ld_shlibs_CXX=no
  11594. fi
  11595. ;;
  11596. esac
  11597. ;;
  11598. hpux10*|hpux11*)
  11599. if test $with_gnu_ld = no; then
  11600. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11601. hardcode_libdir_separator_CXX=:
  11602. case $host_cpu in
  11603. hppa*64*|ia64*)
  11604. ;;
  11605. *)
  11606. export_dynamic_flag_spec_CXX='${wl}-E'
  11607. ;;
  11608. esac
  11609. fi
  11610. case $host_cpu in
  11611. hppa*64*|ia64*)
  11612. hardcode_direct_CXX=no
  11613. hardcode_shlibpath_var_CXX=no
  11614. ;;
  11615. *)
  11616. hardcode_direct_CXX=yes
  11617. hardcode_direct_absolute_CXX=yes
  11618. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11619. # but as the default
  11620. # location of the library.
  11621. ;;
  11622. esac
  11623. case $cc_basename in
  11624. CC*)
  11625. # FIXME: insert proper C++ library support
  11626. ld_shlibs_CXX=no
  11627. ;;
  11628. aCC*)
  11629. case $host_cpu in
  11630. hppa*64*)
  11631. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11632. ;;
  11633. ia64*)
  11634. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11635. ;;
  11636. *)
  11637. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11638. ;;
  11639. esac
  11640. # Commands to make compiler produce verbose output that lists
  11641. # what "hidden" libraries, object files and flags are used when
  11642. # linking a shared library.
  11643. #
  11644. # There doesn't appear to be a way to prevent this compiler from
  11645. # explicitly linking system object files so we need to strip them
  11646. # from the output so that they don't get included in the library
  11647. # dependencies.
  11648. 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"'
  11649. ;;
  11650. *)
  11651. if test "$GXX" = yes; then
  11652. if test $with_gnu_ld = no; then
  11653. case $host_cpu in
  11654. hppa*64*)
  11655. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11656. ;;
  11657. ia64*)
  11658. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11659. ;;
  11660. *)
  11661. 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'
  11662. ;;
  11663. esac
  11664. fi
  11665. else
  11666. # FIXME: insert proper C++ library support
  11667. ld_shlibs_CXX=no
  11668. fi
  11669. ;;
  11670. esac
  11671. ;;
  11672. interix[3-9]*)
  11673. hardcode_direct_CXX=no
  11674. hardcode_shlibpath_var_CXX=no
  11675. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11676. export_dynamic_flag_spec_CXX='${wl}-E'
  11677. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  11678. # Instead, shared libraries are loaded at an image base (0x10000000 by
  11679. # default) and relocated if they conflict, which is a slow very memory
  11680. # consuming and fragmenting process. To avoid this, we pick a random,
  11681. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  11682. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  11683. 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'
  11684. 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'
  11685. ;;
  11686. irix5* | irix6*)
  11687. case $cc_basename in
  11688. CC*)
  11689. # SGI C++
  11690. 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'
  11691. # Archives containing C++ object files must be created using
  11692. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  11693. # necessary to make sure instantiated templates are included
  11694. # in the archive.
  11695. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  11696. ;;
  11697. *)
  11698. if test "$GXX" = yes; then
  11699. if test "$with_gnu_ld" = no; then
  11700. 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'
  11701. else
  11702. 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'
  11703. fi
  11704. fi
  11705. link_all_deplibs_CXX=yes
  11706. ;;
  11707. esac
  11708. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11709. hardcode_libdir_separator_CXX=:
  11710. inherit_rpath_CXX=yes
  11711. ;;
  11712. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  11713. case $cc_basename in
  11714. KCC*)
  11715. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11716. # KCC will only create a shared library if the output file
  11717. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11718. # to its proper name (with version) after linking.
  11719. 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'
  11720. 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'
  11721. # Commands to make compiler produce verbose output that lists
  11722. # what "hidden" libraries, object files and flags are used when
  11723. # linking a shared library.
  11724. #
  11725. # There doesn't appear to be a way to prevent this compiler from
  11726. # explicitly linking system object files so we need to strip them
  11727. # from the output so that they don't get included in the library
  11728. # dependencies.
  11729. 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"'
  11730. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11731. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11732. # Archives containing C++ object files must be created using
  11733. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  11734. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  11735. ;;
  11736. icpc* | ecpc* )
  11737. # Intel C++
  11738. with_gnu_ld=yes
  11739. # version 8.0 and above of icpc choke on multiply defined symbols
  11740. # if we add $predep_objects and $postdep_objects, however 7.1 and
  11741. # earlier do not add the objects themselves.
  11742. case `$CC -V 2>&1` in
  11743. *"Version 7."*)
  11744. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11745. 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'
  11746. ;;
  11747. *) # Version 8.0 or newer
  11748. tmp_idyn=
  11749. case $host_cpu in
  11750. ia64*) tmp_idyn=' -i_dynamic';;
  11751. esac
  11752. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11753. 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'
  11754. ;;
  11755. esac
  11756. archive_cmds_need_lc_CXX=no
  11757. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11758. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11759. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11760. ;;
  11761. pgCC* | pgcpp*)
  11762. # Portland Group C++ compiler
  11763. case `$CC -V` in
  11764. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  11765. prelink_cmds_CXX='tpldir=Template.dir~
  11766. rm -rf $tpldir~
  11767. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  11768. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  11769. old_archive_cmds_CXX='tpldir=Template.dir~
  11770. rm -rf $tpldir~
  11771. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  11772. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  11773. $RANLIB $oldlib'
  11774. archive_cmds_CXX='tpldir=Template.dir~
  11775. rm -rf $tpldir~
  11776. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11777. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11778. archive_expsym_cmds_CXX='tpldir=Template.dir~
  11779. rm -rf $tpldir~
  11780. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11781. $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'
  11782. ;;
  11783. *) # Version 6 and above use weak symbols
  11784. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11785. 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'
  11786. ;;
  11787. esac
  11788. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  11789. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11790. 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'
  11791. ;;
  11792. cxx*)
  11793. # Compaq C++
  11794. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11795. 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'
  11796. runpath_var=LD_RUN_PATH
  11797. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11798. hardcode_libdir_separator_CXX=:
  11799. # Commands to make compiler produce verbose output that lists
  11800. # what "hidden" libraries, object files and flags are used when
  11801. # linking a shared library.
  11802. #
  11803. # There doesn't appear to be a way to prevent this compiler from
  11804. # explicitly linking system object files so we need to strip them
  11805. # from the output so that they don't get included in the library
  11806. # dependencies.
  11807. 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'
  11808. ;;
  11809. xl* | mpixl* | bgxl*)
  11810. # IBM XL 8.0 on PPC, with GNU ld
  11811. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11812. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11813. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11814. if test "x$supports_anon_versioning" = xyes; then
  11815. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  11816. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  11817. echo "local: *; };" >> $output_objdir/$libname.ver~
  11818. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  11819. fi
  11820. ;;
  11821. *)
  11822. case `$CC -V 2>&1 | sed 5q` in
  11823. *Sun\ C*)
  11824. # Sun C++ 5.9
  11825. no_undefined_flag_CXX=' -zdefs'
  11826. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11827. 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'
  11828. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11829. 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'
  11830. compiler_needs_object_CXX=yes
  11831. # Not sure whether something based on
  11832. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  11833. # would be better.
  11834. output_verbose_link_cmd='func_echo_all'
  11835. # Archives containing C++ object files must be created using
  11836. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11837. # necessary to make sure instantiated templates are included
  11838. # in the archive.
  11839. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11840. ;;
  11841. esac
  11842. ;;
  11843. esac
  11844. ;;
  11845. lynxos*)
  11846. # FIXME: insert proper C++ library support
  11847. ld_shlibs_CXX=no
  11848. ;;
  11849. m88k*)
  11850. # FIXME: insert proper C++ library support
  11851. ld_shlibs_CXX=no
  11852. ;;
  11853. mvs*)
  11854. case $cc_basename in
  11855. cxx*)
  11856. # FIXME: insert proper C++ library support
  11857. ld_shlibs_CXX=no
  11858. ;;
  11859. *)
  11860. # FIXME: insert proper C++ library support
  11861. ld_shlibs_CXX=no
  11862. ;;
  11863. esac
  11864. ;;
  11865. netbsd*)
  11866. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11867. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  11868. wlarc=
  11869. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11870. hardcode_direct_CXX=yes
  11871. hardcode_shlibpath_var_CXX=no
  11872. fi
  11873. # Workaround some broken pre-1.5 toolchains
  11874. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  11875. ;;
  11876. *nto* | *qnx*)
  11877. ld_shlibs_CXX=yes
  11878. ;;
  11879. openbsd2*)
  11880. # C++ shared libraries are fairly broken
  11881. ld_shlibs_CXX=no
  11882. ;;
  11883. openbsd*)
  11884. if test -f /usr/libexec/ld.so; then
  11885. hardcode_direct_CXX=yes
  11886. hardcode_shlibpath_var_CXX=no
  11887. hardcode_direct_absolute_CXX=yes
  11888. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11889. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11890. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11891. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  11892. export_dynamic_flag_spec_CXX='${wl}-E'
  11893. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11894. fi
  11895. output_verbose_link_cmd=func_echo_all
  11896. else
  11897. ld_shlibs_CXX=no
  11898. fi
  11899. ;;
  11900. osf3* | osf4* | osf5*)
  11901. case $cc_basename in
  11902. KCC*)
  11903. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11904. # KCC will only create a shared library if the output file
  11905. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11906. # to its proper name (with version) after linking.
  11907. 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'
  11908. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11909. hardcode_libdir_separator_CXX=:
  11910. # Archives containing C++ object files must be created using
  11911. # the KAI C++ compiler.
  11912. case $host in
  11913. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  11914. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  11915. esac
  11916. ;;
  11917. RCC*)
  11918. # Rational C++ 2.4.1
  11919. # FIXME: insert proper C++ library support
  11920. ld_shlibs_CXX=no
  11921. ;;
  11922. cxx*)
  11923. case $host in
  11924. osf3*)
  11925. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11926. 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'
  11927. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11928. ;;
  11929. *)
  11930. allow_undefined_flag_CXX=' -expect_unresolved \*'
  11931. 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'
  11932. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  11933. echo "-hidden">> $lib.exp~
  11934. $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~
  11935. $RM $lib.exp'
  11936. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11937. ;;
  11938. esac
  11939. hardcode_libdir_separator_CXX=:
  11940. # Commands to make compiler produce verbose output that lists
  11941. # what "hidden" libraries, object files and flags are used when
  11942. # linking a shared library.
  11943. #
  11944. # There doesn't appear to be a way to prevent this compiler from
  11945. # explicitly linking system object files so we need to strip them
  11946. # from the output so that they don't get included in the library
  11947. # dependencies.
  11948. 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"'
  11949. ;;
  11950. *)
  11951. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11952. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11953. case $host in
  11954. osf3*)
  11955. 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'
  11956. ;;
  11957. *)
  11958. 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'
  11959. ;;
  11960. esac
  11961. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11962. hardcode_libdir_separator_CXX=:
  11963. # Commands to make compiler produce verbose output that lists
  11964. # what "hidden" libraries, object files and flags are used when
  11965. # linking a shared library.
  11966. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11967. else
  11968. # FIXME: insert proper C++ library support
  11969. ld_shlibs_CXX=no
  11970. fi
  11971. ;;
  11972. esac
  11973. ;;
  11974. psos*)
  11975. # FIXME: insert proper C++ library support
  11976. ld_shlibs_CXX=no
  11977. ;;
  11978. sunos4*)
  11979. case $cc_basename in
  11980. CC*)
  11981. # Sun C++ 4.x
  11982. # FIXME: insert proper C++ library support
  11983. ld_shlibs_CXX=no
  11984. ;;
  11985. lcc*)
  11986. # Lucid
  11987. # FIXME: insert proper C++ library support
  11988. ld_shlibs_CXX=no
  11989. ;;
  11990. *)
  11991. # FIXME: insert proper C++ library support
  11992. ld_shlibs_CXX=no
  11993. ;;
  11994. esac
  11995. ;;
  11996. solaris*)
  11997. case $cc_basename in
  11998. CC* | sunCC*)
  11999. # Sun C++ 4.2, 5.x and Centerline C++
  12000. archive_cmds_need_lc_CXX=yes
  12001. no_undefined_flag_CXX=' -zdefs'
  12002. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12003. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12004. $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'
  12005. hardcode_libdir_flag_spec_CXX='-R$libdir'
  12006. hardcode_shlibpath_var_CXX=no
  12007. case $host_os in
  12008. solaris2.[0-5] | solaris2.[0-5].*) ;;
  12009. *)
  12010. # The compiler driver will combine and reorder linker options,
  12011. # but understands `-z linker_flag'.
  12012. # Supported since Solaris 2.6 (maybe 2.5.1?)
  12013. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  12014. ;;
  12015. esac
  12016. link_all_deplibs_CXX=yes
  12017. output_verbose_link_cmd='func_echo_all'
  12018. # Archives containing C++ object files must be created using
  12019. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  12020. # necessary to make sure instantiated templates are included
  12021. # in the archive.
  12022. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  12023. ;;
  12024. gcx*)
  12025. # Green Hills C++ Compiler
  12026. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  12027. # The C++ compiler must be used to create the archive.
  12028. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  12029. ;;
  12030. *)
  12031. # GNU C++ compiler with Solaris linker
  12032. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  12033. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  12034. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  12035. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  12036. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12037. $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  12038. # Commands to make compiler produce verbose output that lists
  12039. # what "hidden" libraries, object files and flags are used when
  12040. # linking a shared library.
  12041. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  12042. else
  12043. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  12044. # platform.
  12045. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  12046. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12047. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  12048. # Commands to make compiler produce verbose output that lists
  12049. # what "hidden" libraries, object files and flags are used when
  12050. # linking a shared library.
  12051. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  12052. fi
  12053. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  12054. case $host_os in
  12055. solaris2.[0-5] | solaris2.[0-5].*) ;;
  12056. *)
  12057. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  12058. ;;
  12059. esac
  12060. fi
  12061. ;;
  12062. esac
  12063. ;;
  12064. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  12065. no_undefined_flag_CXX='${wl}-z,text'
  12066. archive_cmds_need_lc_CXX=no
  12067. hardcode_shlibpath_var_CXX=no
  12068. runpath_var='LD_RUN_PATH'
  12069. case $cc_basename in
  12070. CC*)
  12071. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12072. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12073. ;;
  12074. *)
  12075. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12076. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12077. ;;
  12078. esac
  12079. ;;
  12080. sysv5* | sco3.2v5* | sco5v6*)
  12081. # Note: We can NOT use -z defs as we might desire, because we do not
  12082. # link with -lc, and that would cause any symbols used from libc to
  12083. # always be unresolved, which means just about no library would
  12084. # ever link correctly. If we're not using GNU ld we use -z text
  12085. # though, which does catch some bad symbols but isn't as heavy-handed
  12086. # as -z defs.
  12087. no_undefined_flag_CXX='${wl}-z,text'
  12088. allow_undefined_flag_CXX='${wl}-z,nodefs'
  12089. archive_cmds_need_lc_CXX=no
  12090. hardcode_shlibpath_var_CXX=no
  12091. hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  12092. hardcode_libdir_separator_CXX=':'
  12093. link_all_deplibs_CXX=yes
  12094. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  12095. runpath_var='LD_RUN_PATH'
  12096. case $cc_basename in
  12097. CC*)
  12098. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12099. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12100. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  12101. '"$old_archive_cmds_CXX"
  12102. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  12103. '"$reload_cmds_CXX"
  12104. ;;
  12105. *)
  12106. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12107. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12108. ;;
  12109. esac
  12110. ;;
  12111. tandem*)
  12112. case $cc_basename in
  12113. NCC*)
  12114. # NonStop-UX NCC 3.20
  12115. # FIXME: insert proper C++ library support
  12116. ld_shlibs_CXX=no
  12117. ;;
  12118. *)
  12119. # FIXME: insert proper C++ library support
  12120. ld_shlibs_CXX=no
  12121. ;;
  12122. esac
  12123. ;;
  12124. vxworks*)
  12125. # FIXME: insert proper C++ library support
  12126. ld_shlibs_CXX=no
  12127. ;;
  12128. *)
  12129. # FIXME: insert proper C++ library support
  12130. ld_shlibs_CXX=no
  12131. ;;
  12132. esac
  12133. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12134. $as_echo "$ld_shlibs_CXX" >&6; }
  12135. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12136. GCC_CXX="$GXX"
  12137. LD_CXX="$LD"
  12138. ## CAVEAT EMPTOR:
  12139. ## There is no encapsulation within the following macros, do not change
  12140. ## the running order or otherwise move them around unless you know exactly
  12141. ## what you are doing...
  12142. # Dependencies to place before and after the object being linked:
  12143. predep_objects_CXX=
  12144. postdep_objects_CXX=
  12145. predeps_CXX=
  12146. postdeps_CXX=
  12147. compiler_lib_search_path_CXX=
  12148. cat > conftest.$ac_ext <<_LT_EOF
  12149. class Foo
  12150. {
  12151. public:
  12152. Foo (void) { a = 0; }
  12153. private:
  12154. int a;
  12155. };
  12156. _LT_EOF
  12157. _lt_libdeps_save_CFLAGS=$CFLAGS
  12158. case "$CC $CFLAGS " in #(
  12159. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  12160. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  12161. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  12162. esac
  12163. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12164. (eval $ac_compile) 2>&5
  12165. ac_status=$?
  12166. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12167. test $ac_status = 0; }; then
  12168. # Parse the compiler output and extract the necessary
  12169. # objects, libraries and library flags.
  12170. # Sentinel used to keep track of whether or not we are before
  12171. # the conftest object file.
  12172. pre_test_object_deps_done=no
  12173. for p in `eval "$output_verbose_link_cmd"`; do
  12174. case ${prev}${p} in
  12175. -L* | -R* | -l*)
  12176. # Some compilers place space between "-{L,R}" and the path.
  12177. # Remove the space.
  12178. if test $p = "-L" ||
  12179. test $p = "-R"; then
  12180. prev=$p
  12181. continue
  12182. fi
  12183. # Expand the sysroot to ease extracting the directories later.
  12184. if test -z "$prev"; then
  12185. case $p in
  12186. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  12187. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  12188. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  12189. esac
  12190. fi
  12191. case $p in
  12192. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  12193. esac
  12194. if test "$pre_test_object_deps_done" = no; then
  12195. case ${prev} in
  12196. -L | -R)
  12197. # Internal compiler library paths should come after those
  12198. # provided the user. The postdeps already come after the
  12199. # user supplied libs so there is no need to process them.
  12200. if test -z "$compiler_lib_search_path_CXX"; then
  12201. compiler_lib_search_path_CXX="${prev}${p}"
  12202. else
  12203. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  12204. fi
  12205. ;;
  12206. # The "-l" case would never come before the object being
  12207. # linked, so don't bother handling this case.
  12208. esac
  12209. else
  12210. if test -z "$postdeps_CXX"; then
  12211. postdeps_CXX="${prev}${p}"
  12212. else
  12213. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  12214. fi
  12215. fi
  12216. prev=
  12217. ;;
  12218. *.lto.$objext) ;; # Ignore GCC LTO objects
  12219. *.$objext)
  12220. # This assumes that the test object file only shows up
  12221. # once in the compiler output.
  12222. if test "$p" = "conftest.$objext"; then
  12223. pre_test_object_deps_done=yes
  12224. continue
  12225. fi
  12226. if test "$pre_test_object_deps_done" = no; then
  12227. if test -z "$predep_objects_CXX"; then
  12228. predep_objects_CXX="$p"
  12229. else
  12230. predep_objects_CXX="$predep_objects_CXX $p"
  12231. fi
  12232. else
  12233. if test -z "$postdep_objects_CXX"; then
  12234. postdep_objects_CXX="$p"
  12235. else
  12236. postdep_objects_CXX="$postdep_objects_CXX $p"
  12237. fi
  12238. fi
  12239. ;;
  12240. *) ;; # Ignore the rest.
  12241. esac
  12242. done
  12243. # Clean up.
  12244. rm -f a.out a.exe
  12245. else
  12246. echo "libtool.m4: error: problem compiling CXX test program"
  12247. fi
  12248. $RM -f confest.$objext
  12249. CFLAGS=$_lt_libdeps_save_CFLAGS
  12250. # PORTME: override above test on systems where it is broken
  12251. case $host_os in
  12252. interix[3-9]*)
  12253. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  12254. # hack all around it, let's just trust "g++" to DTRT.
  12255. predep_objects_CXX=
  12256. postdep_objects_CXX=
  12257. postdeps_CXX=
  12258. ;;
  12259. linux*)
  12260. case `$CC -V 2>&1 | sed 5q` in
  12261. *Sun\ C*)
  12262. # Sun C++ 5.9
  12263. # The more standards-conforming stlport4 library is
  12264. # incompatible with the Cstd library. Avoid specifying
  12265. # it if it's in CXXFLAGS. Ignore libCrun as
  12266. # -library=stlport4 depends on it.
  12267. case " $CXX $CXXFLAGS " in
  12268. *" -library=stlport4 "*)
  12269. solaris_use_stlport4=yes
  12270. ;;
  12271. esac
  12272. if test "$solaris_use_stlport4" != yes; then
  12273. postdeps_CXX='-library=Cstd -library=Crun'
  12274. fi
  12275. ;;
  12276. esac
  12277. ;;
  12278. solaris*)
  12279. case $cc_basename in
  12280. CC* | sunCC*)
  12281. # The more standards-conforming stlport4 library is
  12282. # incompatible with the Cstd library. Avoid specifying
  12283. # it if it's in CXXFLAGS. Ignore libCrun as
  12284. # -library=stlport4 depends on it.
  12285. case " $CXX $CXXFLAGS " in
  12286. *" -library=stlport4 "*)
  12287. solaris_use_stlport4=yes
  12288. ;;
  12289. esac
  12290. # Adding this requires a known-good setup of shared libraries for
  12291. # Sun compiler versions before 5.6, else PIC objects from an old
  12292. # archive will be linked into the output, leading to subtle bugs.
  12293. if test "$solaris_use_stlport4" != yes; then
  12294. postdeps_CXX='-library=Cstd -library=Crun'
  12295. fi
  12296. ;;
  12297. esac
  12298. ;;
  12299. esac
  12300. case " $postdeps_CXX " in
  12301. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  12302. esac
  12303. compiler_lib_search_dirs_CXX=
  12304. if test -n "${compiler_lib_search_path_CXX}"; then
  12305. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  12306. fi
  12307. lt_prog_compiler_wl_CXX=
  12308. lt_prog_compiler_pic_CXX=
  12309. lt_prog_compiler_static_CXX=
  12310. # C++ specific cases for pic, static, wl, etc.
  12311. if test "$GXX" = yes; then
  12312. lt_prog_compiler_wl_CXX='-Wl,'
  12313. lt_prog_compiler_static_CXX='-static'
  12314. case $host_os in
  12315. aix*)
  12316. # All AIX code is PIC.
  12317. if test "$host_cpu" = ia64; then
  12318. # AIX 5 now supports IA64 processor
  12319. lt_prog_compiler_static_CXX='-Bstatic'
  12320. fi
  12321. ;;
  12322. amigaos*)
  12323. case $host_cpu in
  12324. powerpc)
  12325. # see comment about AmigaOS4 .so support
  12326. lt_prog_compiler_pic_CXX='-fPIC'
  12327. ;;
  12328. m68k)
  12329. # FIXME: we need at least 68020 code to build shared libraries, but
  12330. # adding the `-m68020' flag to GCC prevents building anything better,
  12331. # like `-m68040'.
  12332. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  12333. ;;
  12334. esac
  12335. ;;
  12336. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  12337. # PIC is the default for these OSes.
  12338. ;;
  12339. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12340. # This hack is so that the source file can tell whether it is being
  12341. # built for inclusion in a dll (and should export symbols for example).
  12342. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  12343. # (--disable-auto-import) libraries
  12344. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12345. ;;
  12346. darwin* | rhapsody*)
  12347. # PIC is the default on this platform
  12348. # Common symbols not allowed in MH_DYLIB files
  12349. lt_prog_compiler_pic_CXX='-fno-common'
  12350. ;;
  12351. *djgpp*)
  12352. # DJGPP does not support shared libraries at all
  12353. lt_prog_compiler_pic_CXX=
  12354. ;;
  12355. haiku*)
  12356. # PIC is the default for Haiku.
  12357. # The "-static" flag exists, but is broken.
  12358. lt_prog_compiler_static_CXX=
  12359. ;;
  12360. interix[3-9]*)
  12361. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  12362. # Instead, we relocate shared libraries at runtime.
  12363. ;;
  12364. sysv4*MP*)
  12365. if test -d /usr/nec; then
  12366. lt_prog_compiler_pic_CXX=-Kconform_pic
  12367. fi
  12368. ;;
  12369. hpux*)
  12370. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  12371. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  12372. # sets the default TLS model and affects inlining.
  12373. case $host_cpu in
  12374. hppa*64*)
  12375. ;;
  12376. *)
  12377. lt_prog_compiler_pic_CXX='-fPIC'
  12378. ;;
  12379. esac
  12380. ;;
  12381. *qnx* | *nto*)
  12382. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12383. # it will coredump.
  12384. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12385. ;;
  12386. *)
  12387. lt_prog_compiler_pic_CXX='-fPIC'
  12388. ;;
  12389. esac
  12390. else
  12391. case $host_os in
  12392. aix[4-9]*)
  12393. # All AIX code is PIC.
  12394. if test "$host_cpu" = ia64; then
  12395. # AIX 5 now supports IA64 processor
  12396. lt_prog_compiler_static_CXX='-Bstatic'
  12397. else
  12398. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  12399. fi
  12400. ;;
  12401. chorus*)
  12402. case $cc_basename in
  12403. cxch68*)
  12404. # Green Hills C++ Compiler
  12405. # _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"
  12406. ;;
  12407. esac
  12408. ;;
  12409. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12410. # This hack is so that the source file can tell whether it is being
  12411. # built for inclusion in a dll (and should export symbols for example).
  12412. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12413. ;;
  12414. dgux*)
  12415. case $cc_basename in
  12416. ec++*)
  12417. lt_prog_compiler_pic_CXX='-KPIC'
  12418. ;;
  12419. ghcx*)
  12420. # Green Hills C++ Compiler
  12421. lt_prog_compiler_pic_CXX='-pic'
  12422. ;;
  12423. *)
  12424. ;;
  12425. esac
  12426. ;;
  12427. freebsd* | dragonfly*)
  12428. # FreeBSD uses GNU C++
  12429. ;;
  12430. hpux9* | hpux10* | hpux11*)
  12431. case $cc_basename in
  12432. CC*)
  12433. lt_prog_compiler_wl_CXX='-Wl,'
  12434. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12435. if test "$host_cpu" != ia64; then
  12436. lt_prog_compiler_pic_CXX='+Z'
  12437. fi
  12438. ;;
  12439. aCC*)
  12440. lt_prog_compiler_wl_CXX='-Wl,'
  12441. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12442. case $host_cpu in
  12443. hppa*64*|ia64*)
  12444. # +Z the default
  12445. ;;
  12446. *)
  12447. lt_prog_compiler_pic_CXX='+Z'
  12448. ;;
  12449. esac
  12450. ;;
  12451. *)
  12452. ;;
  12453. esac
  12454. ;;
  12455. interix*)
  12456. # This is c89, which is MS Visual C++ (no shared libs)
  12457. # Anyone wants to do a port?
  12458. ;;
  12459. irix5* | irix6* | nonstopux*)
  12460. case $cc_basename in
  12461. CC*)
  12462. lt_prog_compiler_wl_CXX='-Wl,'
  12463. lt_prog_compiler_static_CXX='-non_shared'
  12464. # CC pic flag -KPIC is the default.
  12465. ;;
  12466. *)
  12467. ;;
  12468. esac
  12469. ;;
  12470. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  12471. case $cc_basename in
  12472. KCC*)
  12473. # KAI C++ Compiler
  12474. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12475. lt_prog_compiler_pic_CXX='-fPIC'
  12476. ;;
  12477. ecpc* )
  12478. # old Intel C++ for x86_64 which still supported -KPIC.
  12479. lt_prog_compiler_wl_CXX='-Wl,'
  12480. lt_prog_compiler_pic_CXX='-KPIC'
  12481. lt_prog_compiler_static_CXX='-static'
  12482. ;;
  12483. icpc* )
  12484. # Intel C++, used to be incompatible with GCC.
  12485. # ICC 10 doesn't accept -KPIC any more.
  12486. lt_prog_compiler_wl_CXX='-Wl,'
  12487. lt_prog_compiler_pic_CXX='-fPIC'
  12488. lt_prog_compiler_static_CXX='-static'
  12489. ;;
  12490. pgCC* | pgcpp*)
  12491. # Portland Group C++ compiler
  12492. lt_prog_compiler_wl_CXX='-Wl,'
  12493. lt_prog_compiler_pic_CXX='-fpic'
  12494. lt_prog_compiler_static_CXX='-Bstatic'
  12495. ;;
  12496. cxx*)
  12497. # Compaq C++
  12498. # Make sure the PIC flag is empty. It appears that all Alpha
  12499. # Linux and Compaq Tru64 Unix objects are PIC.
  12500. lt_prog_compiler_pic_CXX=
  12501. lt_prog_compiler_static_CXX='-non_shared'
  12502. ;;
  12503. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  12504. # IBM XL 8.0, 9.0 on PPC and BlueGene
  12505. lt_prog_compiler_wl_CXX='-Wl,'
  12506. lt_prog_compiler_pic_CXX='-qpic'
  12507. lt_prog_compiler_static_CXX='-qstaticlink'
  12508. ;;
  12509. *)
  12510. case `$CC -V 2>&1 | sed 5q` in
  12511. *Sun\ C*)
  12512. # Sun C++ 5.9
  12513. lt_prog_compiler_pic_CXX='-KPIC'
  12514. lt_prog_compiler_static_CXX='-Bstatic'
  12515. lt_prog_compiler_wl_CXX='-Qoption ld '
  12516. ;;
  12517. esac
  12518. ;;
  12519. esac
  12520. ;;
  12521. lynxos*)
  12522. ;;
  12523. m88k*)
  12524. ;;
  12525. mvs*)
  12526. case $cc_basename in
  12527. cxx*)
  12528. lt_prog_compiler_pic_CXX='-W c,exportall'
  12529. ;;
  12530. *)
  12531. ;;
  12532. esac
  12533. ;;
  12534. netbsd*)
  12535. ;;
  12536. *qnx* | *nto*)
  12537. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12538. # it will coredump.
  12539. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12540. ;;
  12541. osf3* | osf4* | osf5*)
  12542. case $cc_basename in
  12543. KCC*)
  12544. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12545. ;;
  12546. RCC*)
  12547. # Rational C++ 2.4.1
  12548. lt_prog_compiler_pic_CXX='-pic'
  12549. ;;
  12550. cxx*)
  12551. # Digital/Compaq C++
  12552. lt_prog_compiler_wl_CXX='-Wl,'
  12553. # Make sure the PIC flag is empty. It appears that all Alpha
  12554. # Linux and Compaq Tru64 Unix objects are PIC.
  12555. lt_prog_compiler_pic_CXX=
  12556. lt_prog_compiler_static_CXX='-non_shared'
  12557. ;;
  12558. *)
  12559. ;;
  12560. esac
  12561. ;;
  12562. psos*)
  12563. ;;
  12564. solaris*)
  12565. case $cc_basename in
  12566. CC* | sunCC*)
  12567. # Sun C++ 4.2, 5.x and Centerline C++
  12568. lt_prog_compiler_pic_CXX='-KPIC'
  12569. lt_prog_compiler_static_CXX='-Bstatic'
  12570. lt_prog_compiler_wl_CXX='-Qoption ld '
  12571. ;;
  12572. gcx*)
  12573. # Green Hills C++ Compiler
  12574. lt_prog_compiler_pic_CXX='-PIC'
  12575. ;;
  12576. *)
  12577. ;;
  12578. esac
  12579. ;;
  12580. sunos4*)
  12581. case $cc_basename in
  12582. CC*)
  12583. # Sun C++ 4.x
  12584. lt_prog_compiler_pic_CXX='-pic'
  12585. lt_prog_compiler_static_CXX='-Bstatic'
  12586. ;;
  12587. lcc*)
  12588. # Lucid
  12589. lt_prog_compiler_pic_CXX='-pic'
  12590. ;;
  12591. *)
  12592. ;;
  12593. esac
  12594. ;;
  12595. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  12596. case $cc_basename in
  12597. CC*)
  12598. lt_prog_compiler_wl_CXX='-Wl,'
  12599. lt_prog_compiler_pic_CXX='-KPIC'
  12600. lt_prog_compiler_static_CXX='-Bstatic'
  12601. ;;
  12602. esac
  12603. ;;
  12604. tandem*)
  12605. case $cc_basename in
  12606. NCC*)
  12607. # NonStop-UX NCC 3.20
  12608. lt_prog_compiler_pic_CXX='-KPIC'
  12609. ;;
  12610. *)
  12611. ;;
  12612. esac
  12613. ;;
  12614. vxworks*)
  12615. ;;
  12616. *)
  12617. lt_prog_compiler_can_build_shared_CXX=no
  12618. ;;
  12619. esac
  12620. fi
  12621. case $host_os in
  12622. # For platforms which do not support PIC, -DPIC is meaningless:
  12623. *djgpp*)
  12624. lt_prog_compiler_pic_CXX=
  12625. ;;
  12626. *)
  12627. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  12628. ;;
  12629. esac
  12630. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  12631. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  12632. if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
  12633. $as_echo_n "(cached) " >&6
  12634. else
  12635. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  12636. fi
  12637. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  12638. $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
  12639. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  12640. #
  12641. # Check to make sure the PIC flag actually works.
  12642. #
  12643. if test -n "$lt_prog_compiler_pic_CXX"; then
  12644. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  12645. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  12646. if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  12647. $as_echo_n "(cached) " >&6
  12648. else
  12649. lt_cv_prog_compiler_pic_works_CXX=no
  12650. ac_outfile=conftest.$ac_objext
  12651. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12652. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  12653. # Insert the option either (1) after the last *FLAGS variable, or
  12654. # (2) before a word containing "conftest.", or (3) at the end.
  12655. # Note that $ac_compile itself does not contain backslashes and begins
  12656. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12657. # The option is referenced via a variable to avoid confusing sed.
  12658. lt_compile=`echo "$ac_compile" | $SED \
  12659. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12660. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12661. -e 's:$: $lt_compiler_flag:'`
  12662. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12663. (eval "$lt_compile" 2>conftest.err)
  12664. ac_status=$?
  12665. cat conftest.err >&5
  12666. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12667. if (exit $ac_status) && test -s "$ac_outfile"; then
  12668. # The compiler can only warn and ignore the option if not recognized
  12669. # So say no if there are warnings other than the usual output.
  12670. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  12671. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12672. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  12673. lt_cv_prog_compiler_pic_works_CXX=yes
  12674. fi
  12675. fi
  12676. $RM conftest*
  12677. fi
  12678. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  12679. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  12680. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  12681. case $lt_prog_compiler_pic_CXX in
  12682. "" | " "*) ;;
  12683. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  12684. esac
  12685. else
  12686. lt_prog_compiler_pic_CXX=
  12687. lt_prog_compiler_can_build_shared_CXX=no
  12688. fi
  12689. fi
  12690. #
  12691. # Check to make sure the static flag actually works.
  12692. #
  12693. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  12694. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  12695. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  12696. if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  12697. $as_echo_n "(cached) " >&6
  12698. else
  12699. lt_cv_prog_compiler_static_works_CXX=no
  12700. save_LDFLAGS="$LDFLAGS"
  12701. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  12702. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  12703. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  12704. # The linker can only warn and ignore the option if not recognized
  12705. # So say no if there are warnings
  12706. if test -s conftest.err; then
  12707. # Append any errors to the config.log.
  12708. cat conftest.err 1>&5
  12709. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  12710. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12711. if diff conftest.exp conftest.er2 >/dev/null; then
  12712. lt_cv_prog_compiler_static_works_CXX=yes
  12713. fi
  12714. else
  12715. lt_cv_prog_compiler_static_works_CXX=yes
  12716. fi
  12717. fi
  12718. $RM -r conftest*
  12719. LDFLAGS="$save_LDFLAGS"
  12720. fi
  12721. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  12722. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  12723. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  12724. :
  12725. else
  12726. lt_prog_compiler_static_CXX=
  12727. fi
  12728. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12729. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12730. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12731. $as_echo_n "(cached) " >&6
  12732. else
  12733. lt_cv_prog_compiler_c_o_CXX=no
  12734. $RM -r conftest 2>/dev/null
  12735. mkdir conftest
  12736. cd conftest
  12737. mkdir out
  12738. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12739. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12740. # Insert the option either (1) after the last *FLAGS variable, or
  12741. # (2) before a word containing "conftest.", or (3) at the end.
  12742. # Note that $ac_compile itself does not contain backslashes and begins
  12743. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12744. lt_compile=`echo "$ac_compile" | $SED \
  12745. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12746. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12747. -e 's:$: $lt_compiler_flag:'`
  12748. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12749. (eval "$lt_compile" 2>out/conftest.err)
  12750. ac_status=$?
  12751. cat out/conftest.err >&5
  12752. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12753. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12754. then
  12755. # The compiler can only warn and ignore the option if not recognized
  12756. # So say no if there are warnings
  12757. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12758. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12759. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12760. lt_cv_prog_compiler_c_o_CXX=yes
  12761. fi
  12762. fi
  12763. chmod u+w . 2>&5
  12764. $RM conftest*
  12765. # SGI C++ compiler will create directory out/ii_files/ for
  12766. # template instantiation
  12767. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12768. $RM out/* && rmdir out
  12769. cd ..
  12770. $RM -r conftest
  12771. $RM conftest*
  12772. fi
  12773. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12774. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12775. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12776. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12777. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12778. $as_echo_n "(cached) " >&6
  12779. else
  12780. lt_cv_prog_compiler_c_o_CXX=no
  12781. $RM -r conftest 2>/dev/null
  12782. mkdir conftest
  12783. cd conftest
  12784. mkdir out
  12785. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12786. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12787. # Insert the option either (1) after the last *FLAGS variable, or
  12788. # (2) before a word containing "conftest.", or (3) at the end.
  12789. # Note that $ac_compile itself does not contain backslashes and begins
  12790. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12791. lt_compile=`echo "$ac_compile" | $SED \
  12792. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12793. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12794. -e 's:$: $lt_compiler_flag:'`
  12795. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12796. (eval "$lt_compile" 2>out/conftest.err)
  12797. ac_status=$?
  12798. cat out/conftest.err >&5
  12799. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12800. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12801. then
  12802. # The compiler can only warn and ignore the option if not recognized
  12803. # So say no if there are warnings
  12804. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12805. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12806. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12807. lt_cv_prog_compiler_c_o_CXX=yes
  12808. fi
  12809. fi
  12810. chmod u+w . 2>&5
  12811. $RM conftest*
  12812. # SGI C++ compiler will create directory out/ii_files/ for
  12813. # template instantiation
  12814. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12815. $RM out/* && rmdir out
  12816. cd ..
  12817. $RM -r conftest
  12818. $RM conftest*
  12819. fi
  12820. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12821. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12822. hard_links="nottested"
  12823. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  12824. # do not overwrite the value of need_locks provided by the user
  12825. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  12826. $as_echo_n "checking if we can lock with hard links... " >&6; }
  12827. hard_links=yes
  12828. $RM conftest*
  12829. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12830. touch conftest.a
  12831. ln conftest.a conftest.b 2>&5 || hard_links=no
  12832. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12833. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  12834. $as_echo "$hard_links" >&6; }
  12835. if test "$hard_links" = no; then
  12836. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  12837. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  12838. need_locks=warn
  12839. fi
  12840. else
  12841. need_locks=no
  12842. fi
  12843. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12844. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12845. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12846. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  12847. case $host_os in
  12848. aix[4-9]*)
  12849. # If we're using GNU nm, then we don't want the "-C" option.
  12850. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  12851. # Also, AIX nm treats weak defined symbols like other global defined
  12852. # symbols, whereas GNU nm marks them as "W".
  12853. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  12854. 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'
  12855. else
  12856. 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'
  12857. fi
  12858. ;;
  12859. pw32*)
  12860. export_symbols_cmds_CXX="$ltdll_cmds"
  12861. ;;
  12862. cygwin* | mingw* | cegcc*)
  12863. case $cc_basename in
  12864. cl*)
  12865. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  12866. ;;
  12867. *)
  12868. 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'
  12869. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  12870. ;;
  12871. esac
  12872. ;;
  12873. *)
  12874. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12875. ;;
  12876. esac
  12877. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12878. $as_echo "$ld_shlibs_CXX" >&6; }
  12879. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12880. with_gnu_ld_CXX=$with_gnu_ld
  12881. #
  12882. # Do we need to explicitly link libc?
  12883. #
  12884. case "x$archive_cmds_need_lc_CXX" in
  12885. x|xyes)
  12886. # Assume -lc should be added
  12887. archive_cmds_need_lc_CXX=yes
  12888. if test "$enable_shared" = yes && test "$GCC" = yes; then
  12889. case $archive_cmds_CXX in
  12890. *'~'*)
  12891. # FIXME: we may have to deal with multi-command sequences.
  12892. ;;
  12893. '$CC '*)
  12894. # Test whether the compiler implicitly links with -lc since on some
  12895. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  12896. # to ld, don't add -lc before -lgcc.
  12897. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  12898. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  12899. if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  12900. $as_echo_n "(cached) " >&6
  12901. else
  12902. $RM conftest*
  12903. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12904. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12905. (eval $ac_compile) 2>&5
  12906. ac_status=$?
  12907. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12908. test $ac_status = 0; } 2>conftest.err; then
  12909. soname=conftest
  12910. lib=conftest
  12911. libobjs=conftest.$ac_objext
  12912. deplibs=
  12913. wl=$lt_prog_compiler_wl_CXX
  12914. pic_flag=$lt_prog_compiler_pic_CXX
  12915. compiler_flags=-v
  12916. linker_flags=-v
  12917. verstring=
  12918. output_objdir=.
  12919. libname=conftest
  12920. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  12921. allow_undefined_flag_CXX=
  12922. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  12923. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  12924. ac_status=$?
  12925. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12926. test $ac_status = 0; }
  12927. then
  12928. lt_cv_archive_cmds_need_lc_CXX=no
  12929. else
  12930. lt_cv_archive_cmds_need_lc_CXX=yes
  12931. fi
  12932. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  12933. else
  12934. cat conftest.err 1>&5
  12935. fi
  12936. $RM conftest*
  12937. fi
  12938. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  12939. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  12940. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  12941. ;;
  12942. esac
  12943. fi
  12944. ;;
  12945. esac
  12946. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  12947. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  12948. library_names_spec=
  12949. libname_spec='lib$name'
  12950. soname_spec=
  12951. shrext_cmds=".so"
  12952. postinstall_cmds=
  12953. postuninstall_cmds=
  12954. finish_cmds=
  12955. finish_eval=
  12956. shlibpath_var=
  12957. shlibpath_overrides_runpath=unknown
  12958. version_type=none
  12959. dynamic_linker="$host_os ld.so"
  12960. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  12961. need_lib_prefix=unknown
  12962. hardcode_into_libs=no
  12963. # when you set need_version to no, make sure it does not cause -set_version
  12964. # flags to be left without arguments
  12965. need_version=unknown
  12966. case $host_os in
  12967. aix3*)
  12968. version_type=linux # correct to gnu/linux during the next big refactor
  12969. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  12970. shlibpath_var=LIBPATH
  12971. # AIX 3 has no versioning support, so we append a major version to the name.
  12972. soname_spec='${libname}${release}${shared_ext}$major'
  12973. ;;
  12974. aix[4-9]*)
  12975. version_type=linux # correct to gnu/linux during the next big refactor
  12976. need_lib_prefix=no
  12977. need_version=no
  12978. hardcode_into_libs=yes
  12979. if test "$host_cpu" = ia64; then
  12980. # AIX 5 supports IA64
  12981. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  12982. shlibpath_var=LD_LIBRARY_PATH
  12983. else
  12984. # With GCC up to 2.95.x, collect2 would create an import file
  12985. # for dependence libraries. The import file would start with
  12986. # the line `#! .'. This would cause the generated library to
  12987. # depend on `.', always an invalid library. This was fixed in
  12988. # development snapshots of GCC prior to 3.0.
  12989. case $host_os in
  12990. aix4 | aix4.[01] | aix4.[01].*)
  12991. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  12992. echo ' yes '
  12993. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  12994. :
  12995. else
  12996. can_build_shared=no
  12997. fi
  12998. ;;
  12999. esac
  13000. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  13001. # soname into executable. Probably we can add versioning support to
  13002. # collect2, so additional links can be useful in future.
  13003. if test "$aix_use_runtimelinking" = yes; then
  13004. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  13005. # instead of lib<name>.a to let people know that these are not
  13006. # typical AIX shared libraries.
  13007. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13008. else
  13009. # We preserve .a as extension for shared libraries through AIX4.2
  13010. # and later when we are not doing run time linking.
  13011. library_names_spec='${libname}${release}.a $libname.a'
  13012. soname_spec='${libname}${release}${shared_ext}$major'
  13013. fi
  13014. shlibpath_var=LIBPATH
  13015. fi
  13016. ;;
  13017. amigaos*)
  13018. case $host_cpu in
  13019. powerpc)
  13020. # Since July 2007 AmigaOS4 officially supports .so libraries.
  13021. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  13022. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13023. ;;
  13024. m68k)
  13025. library_names_spec='$libname.ixlibrary $libname.a'
  13026. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  13027. 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'
  13028. ;;
  13029. esac
  13030. ;;
  13031. beos*)
  13032. library_names_spec='${libname}${shared_ext}'
  13033. dynamic_linker="$host_os ld.so"
  13034. shlibpath_var=LIBRARY_PATH
  13035. ;;
  13036. bsdi[45]*)
  13037. version_type=linux # correct to gnu/linux during the next big refactor
  13038. need_version=no
  13039. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13040. soname_spec='${libname}${release}${shared_ext}$major'
  13041. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  13042. shlibpath_var=LD_LIBRARY_PATH
  13043. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  13044. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  13045. # the default ld.so.conf also contains /usr/contrib/lib and
  13046. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  13047. # libtool to hard-code these into programs
  13048. ;;
  13049. cygwin* | mingw* | pw32* | cegcc*)
  13050. version_type=windows
  13051. shrext_cmds=".dll"
  13052. need_version=no
  13053. need_lib_prefix=no
  13054. case $GCC,$cc_basename in
  13055. yes,*)
  13056. # gcc
  13057. library_names_spec='$libname.dll.a'
  13058. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  13059. postinstall_cmds='base_file=`basename \${file}`~
  13060. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  13061. dldir=$destdir/`dirname \$dlpath`~
  13062. test -d \$dldir || mkdir -p \$dldir~
  13063. $install_prog $dir/$dlname \$dldir/$dlname~
  13064. chmod a+x \$dldir/$dlname~
  13065. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  13066. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  13067. fi'
  13068. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  13069. dlpath=$dir/\$dldll~
  13070. $RM \$dlpath'
  13071. shlibpath_overrides_runpath=yes
  13072. case $host_os in
  13073. cygwin*)
  13074. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  13075. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13076. ;;
  13077. mingw* | cegcc*)
  13078. # MinGW DLLs use traditional 'lib' prefix
  13079. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13080. ;;
  13081. pw32*)
  13082. # pw32 DLLs use 'pw' prefix rather than 'lib'
  13083. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13084. ;;
  13085. esac
  13086. dynamic_linker='Win32 ld.exe'
  13087. ;;
  13088. *,cl*)
  13089. # Native MSVC
  13090. libname_spec='$name'
  13091. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13092. library_names_spec='${libname}.dll.lib'
  13093. case $build_os in
  13094. mingw*)
  13095. sys_lib_search_path_spec=
  13096. lt_save_ifs=$IFS
  13097. IFS=';'
  13098. for lt_path in $LIB
  13099. do
  13100. IFS=$lt_save_ifs
  13101. # Let DOS variable expansion print the short 8.3 style file name.
  13102. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  13103. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  13104. done
  13105. IFS=$lt_save_ifs
  13106. # Convert to MSYS style.
  13107. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  13108. ;;
  13109. cygwin*)
  13110. # Convert to unix form, then to dos form, then back to unix form
  13111. # but this time dos style (no spaces!) so that the unix form looks
  13112. # like /cygdrive/c/PROGRA~1:/cygdr...
  13113. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  13114. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  13115. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13116. ;;
  13117. *)
  13118. sys_lib_search_path_spec="$LIB"
  13119. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  13120. # It is most probably a Windows format PATH.
  13121. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  13122. else
  13123. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13124. fi
  13125. # FIXME: find the short name or the path components, as spaces are
  13126. # common. (e.g. "Program Files" -> "PROGRA~1")
  13127. ;;
  13128. esac
  13129. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  13130. postinstall_cmds='base_file=`basename \${file}`~
  13131. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  13132. dldir=$destdir/`dirname \$dlpath`~
  13133. test -d \$dldir || mkdir -p \$dldir~
  13134. $install_prog $dir/$dlname \$dldir/$dlname'
  13135. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  13136. dlpath=$dir/\$dldll~
  13137. $RM \$dlpath'
  13138. shlibpath_overrides_runpath=yes
  13139. dynamic_linker='Win32 link.exe'
  13140. ;;
  13141. *)
  13142. # Assume MSVC wrapper
  13143. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  13144. dynamic_linker='Win32 ld.exe'
  13145. ;;
  13146. esac
  13147. # FIXME: first we should search . and the directory the executable is in
  13148. shlibpath_var=PATH
  13149. ;;
  13150. darwin* | rhapsody*)
  13151. dynamic_linker="$host_os dyld"
  13152. version_type=darwin
  13153. need_lib_prefix=no
  13154. need_version=no
  13155. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  13156. soname_spec='${libname}${release}${major}$shared_ext'
  13157. shlibpath_overrides_runpath=yes
  13158. shlibpath_var=DYLD_LIBRARY_PATH
  13159. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  13160. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  13161. ;;
  13162. dgux*)
  13163. version_type=linux # correct to gnu/linux during the next big refactor
  13164. need_lib_prefix=no
  13165. need_version=no
  13166. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  13167. soname_spec='${libname}${release}${shared_ext}$major'
  13168. shlibpath_var=LD_LIBRARY_PATH
  13169. ;;
  13170. freebsd* | dragonfly*)
  13171. # DragonFly does not have aout. When/if they implement a new
  13172. # versioning mechanism, adjust this.
  13173. if test -x /usr/bin/objformat; then
  13174. objformat=`/usr/bin/objformat`
  13175. else
  13176. case $host_os in
  13177. freebsd[23].*) objformat=aout ;;
  13178. *) objformat=elf ;;
  13179. esac
  13180. fi
  13181. version_type=freebsd-$objformat
  13182. case $version_type in
  13183. freebsd-elf*)
  13184. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13185. need_version=no
  13186. need_lib_prefix=no
  13187. ;;
  13188. freebsd-*)
  13189. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  13190. need_version=yes
  13191. ;;
  13192. esac
  13193. shlibpath_var=LD_LIBRARY_PATH
  13194. case $host_os in
  13195. freebsd2.*)
  13196. shlibpath_overrides_runpath=yes
  13197. ;;
  13198. freebsd3.[01]* | freebsdelf3.[01]*)
  13199. shlibpath_overrides_runpath=yes
  13200. hardcode_into_libs=yes
  13201. ;;
  13202. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  13203. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  13204. shlibpath_overrides_runpath=no
  13205. hardcode_into_libs=yes
  13206. ;;
  13207. *) # from 4.6 on, and DragonFly
  13208. shlibpath_overrides_runpath=yes
  13209. hardcode_into_libs=yes
  13210. ;;
  13211. esac
  13212. ;;
  13213. gnu*)
  13214. version_type=linux # correct to gnu/linux during the next big refactor
  13215. need_lib_prefix=no
  13216. need_version=no
  13217. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  13218. soname_spec='${libname}${release}${shared_ext}$major'
  13219. shlibpath_var=LD_LIBRARY_PATH
  13220. shlibpath_overrides_runpath=no
  13221. hardcode_into_libs=yes
  13222. ;;
  13223. haiku*)
  13224. version_type=linux # correct to gnu/linux during the next big refactor
  13225. need_lib_prefix=no
  13226. need_version=no
  13227. dynamic_linker="$host_os runtime_loader"
  13228. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  13229. soname_spec='${libname}${release}${shared_ext}$major'
  13230. shlibpath_var=LIBRARY_PATH
  13231. shlibpath_overrides_runpath=yes
  13232. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  13233. hardcode_into_libs=yes
  13234. ;;
  13235. hpux9* | hpux10* | hpux11*)
  13236. # Give a soname corresponding to the major version so that dld.sl refuses to
  13237. # link against other versions.
  13238. version_type=sunos
  13239. need_lib_prefix=no
  13240. need_version=no
  13241. case $host_cpu in
  13242. ia64*)
  13243. shrext_cmds='.so'
  13244. hardcode_into_libs=yes
  13245. dynamic_linker="$host_os dld.so"
  13246. shlibpath_var=LD_LIBRARY_PATH
  13247. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13248. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13249. soname_spec='${libname}${release}${shared_ext}$major'
  13250. if test "X$HPUX_IA64_MODE" = X32; then
  13251. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  13252. else
  13253. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  13254. fi
  13255. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13256. ;;
  13257. hppa*64*)
  13258. shrext_cmds='.sl'
  13259. hardcode_into_libs=yes
  13260. dynamic_linker="$host_os dld.sl"
  13261. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  13262. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13263. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13264. soname_spec='${libname}${release}${shared_ext}$major'
  13265. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  13266. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13267. ;;
  13268. *)
  13269. shrext_cmds='.sl'
  13270. dynamic_linker="$host_os dld.sl"
  13271. shlibpath_var=SHLIB_PATH
  13272. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  13273. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13274. soname_spec='${libname}${release}${shared_ext}$major'
  13275. ;;
  13276. esac
  13277. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  13278. postinstall_cmds='chmod 555 $lib'
  13279. # or fails outright, so override atomically:
  13280. install_override_mode=555
  13281. ;;
  13282. interix[3-9]*)
  13283. version_type=linux # correct to gnu/linux during the next big refactor
  13284. need_lib_prefix=no
  13285. need_version=no
  13286. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13287. soname_spec='${libname}${release}${shared_ext}$major'
  13288. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  13289. shlibpath_var=LD_LIBRARY_PATH
  13290. shlibpath_overrides_runpath=no
  13291. hardcode_into_libs=yes
  13292. ;;
  13293. irix5* | irix6* | nonstopux*)
  13294. case $host_os in
  13295. nonstopux*) version_type=nonstopux ;;
  13296. *)
  13297. if test "$lt_cv_prog_gnu_ld" = yes; then
  13298. version_type=linux # correct to gnu/linux during the next big refactor
  13299. else
  13300. version_type=irix
  13301. fi ;;
  13302. esac
  13303. need_lib_prefix=no
  13304. need_version=no
  13305. soname_spec='${libname}${release}${shared_ext}$major'
  13306. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  13307. case $host_os in
  13308. irix5* | nonstopux*)
  13309. libsuff= shlibsuff=
  13310. ;;
  13311. *)
  13312. case $LD in # libtool.m4 will add one of these switches to LD
  13313. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  13314. libsuff= shlibsuff= libmagic=32-bit;;
  13315. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  13316. libsuff=32 shlibsuff=N32 libmagic=N32;;
  13317. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  13318. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  13319. *) libsuff= shlibsuff= libmagic=never-match;;
  13320. esac
  13321. ;;
  13322. esac
  13323. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  13324. shlibpath_overrides_runpath=no
  13325. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  13326. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  13327. hardcode_into_libs=yes
  13328. ;;
  13329. # No shared lib support for Linux oldld, aout, or coff.
  13330. linux*oldld* | linux*aout* | linux*coff*)
  13331. dynamic_linker=no
  13332. ;;
  13333. # This must be glibc/ELF.
  13334. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  13335. version_type=linux # correct to gnu/linux during the next big refactor
  13336. need_lib_prefix=no
  13337. need_version=no
  13338. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13339. soname_spec='${libname}${release}${shared_ext}$major'
  13340. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  13341. shlibpath_var=LD_LIBRARY_PATH
  13342. shlibpath_overrides_runpath=no
  13343. # Some binutils ld are patched to set DT_RUNPATH
  13344. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  13345. $as_echo_n "(cached) " >&6
  13346. else
  13347. lt_cv_shlibpath_overrides_runpath=no
  13348. save_LDFLAGS=$LDFLAGS
  13349. save_libdir=$libdir
  13350. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  13351. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  13352. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13353. /* end confdefs.h. */
  13354. int
  13355. main ()
  13356. {
  13357. ;
  13358. return 0;
  13359. }
  13360. _ACEOF
  13361. if ac_fn_cxx_try_link "$LINENO"; then :
  13362. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  13363. lt_cv_shlibpath_overrides_runpath=yes
  13364. fi
  13365. fi
  13366. rm -f core conftest.err conftest.$ac_objext \
  13367. conftest$ac_exeext conftest.$ac_ext
  13368. LDFLAGS=$save_LDFLAGS
  13369. libdir=$save_libdir
  13370. fi
  13371. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  13372. # This implies no fast_install, which is unacceptable.
  13373. # Some rework will be needed to allow for fast_install
  13374. # before this can be enabled.
  13375. hardcode_into_libs=yes
  13376. # Add ABI-specific directories to the system library path.
  13377. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  13378. # Append ld.so.conf contents to the search path
  13379. if test -f /etc/ld.so.conf; then
  13380. 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' ' '`
  13381. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  13382. fi
  13383. # We used to test for /lib/ld.so.1 and disable shared libraries on
  13384. # powerpc, because MkLinux only supported shared libraries with the
  13385. # GNU dynamic linker. Since this was broken with cross compilers,
  13386. # most powerpc-linux boxes support dynamic linking these days and
  13387. # people can always --disable-shared, the test was removed, and we
  13388. # assume the GNU/Linux dynamic linker is in use.
  13389. dynamic_linker='GNU/Linux ld.so'
  13390. ;;
  13391. netbsd*)
  13392. version_type=sunos
  13393. need_lib_prefix=no
  13394. need_version=no
  13395. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13396. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13397. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13398. dynamic_linker='NetBSD (a.out) ld.so'
  13399. else
  13400. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13401. soname_spec='${libname}${release}${shared_ext}$major'
  13402. dynamic_linker='NetBSD ld.elf_so'
  13403. fi
  13404. shlibpath_var=LD_LIBRARY_PATH
  13405. shlibpath_overrides_runpath=yes
  13406. hardcode_into_libs=yes
  13407. ;;
  13408. newsos6)
  13409. version_type=linux # correct to gnu/linux during the next big refactor
  13410. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13411. shlibpath_var=LD_LIBRARY_PATH
  13412. shlibpath_overrides_runpath=yes
  13413. ;;
  13414. *nto* | *qnx*)
  13415. version_type=qnx
  13416. need_lib_prefix=no
  13417. need_version=no
  13418. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13419. soname_spec='${libname}${release}${shared_ext}$major'
  13420. shlibpath_var=LD_LIBRARY_PATH
  13421. shlibpath_overrides_runpath=no
  13422. hardcode_into_libs=yes
  13423. dynamic_linker='ldqnx.so'
  13424. ;;
  13425. openbsd*)
  13426. version_type=sunos
  13427. sys_lib_dlsearch_path_spec="/usr/lib"
  13428. need_lib_prefix=no
  13429. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  13430. case $host_os in
  13431. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  13432. *) need_version=no ;;
  13433. esac
  13434. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13435. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13436. shlibpath_var=LD_LIBRARY_PATH
  13437. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  13438. case $host_os in
  13439. openbsd2.[89] | openbsd2.[89].*)
  13440. shlibpath_overrides_runpath=no
  13441. ;;
  13442. *)
  13443. shlibpath_overrides_runpath=yes
  13444. ;;
  13445. esac
  13446. else
  13447. shlibpath_overrides_runpath=yes
  13448. fi
  13449. ;;
  13450. os2*)
  13451. libname_spec='$name'
  13452. shrext_cmds=".dll"
  13453. need_lib_prefix=no
  13454. library_names_spec='$libname${shared_ext} $libname.a'
  13455. dynamic_linker='OS/2 ld.exe'
  13456. shlibpath_var=LIBPATH
  13457. ;;
  13458. osf3* | osf4* | osf5*)
  13459. version_type=osf
  13460. need_lib_prefix=no
  13461. need_version=no
  13462. soname_spec='${libname}${release}${shared_ext}$major'
  13463. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13464. shlibpath_var=LD_LIBRARY_PATH
  13465. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  13466. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  13467. ;;
  13468. rdos*)
  13469. dynamic_linker=no
  13470. ;;
  13471. solaris*)
  13472. version_type=linux # correct to gnu/linux during the next big refactor
  13473. need_lib_prefix=no
  13474. need_version=no
  13475. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13476. soname_spec='${libname}${release}${shared_ext}$major'
  13477. shlibpath_var=LD_LIBRARY_PATH
  13478. shlibpath_overrides_runpath=yes
  13479. hardcode_into_libs=yes
  13480. # ldd complains unless libraries are executable
  13481. postinstall_cmds='chmod +x $lib'
  13482. ;;
  13483. sunos4*)
  13484. version_type=sunos
  13485. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13486. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  13487. shlibpath_var=LD_LIBRARY_PATH
  13488. shlibpath_overrides_runpath=yes
  13489. if test "$with_gnu_ld" = yes; then
  13490. need_lib_prefix=no
  13491. fi
  13492. need_version=yes
  13493. ;;
  13494. sysv4 | sysv4.3*)
  13495. version_type=linux # correct to gnu/linux during the next big refactor
  13496. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13497. soname_spec='${libname}${release}${shared_ext}$major'
  13498. shlibpath_var=LD_LIBRARY_PATH
  13499. case $host_vendor in
  13500. sni)
  13501. shlibpath_overrides_runpath=no
  13502. need_lib_prefix=no
  13503. runpath_var=LD_RUN_PATH
  13504. ;;
  13505. siemens)
  13506. need_lib_prefix=no
  13507. ;;
  13508. motorola)
  13509. need_lib_prefix=no
  13510. need_version=no
  13511. shlibpath_overrides_runpath=no
  13512. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  13513. ;;
  13514. esac
  13515. ;;
  13516. sysv4*MP*)
  13517. if test -d /usr/nec ;then
  13518. version_type=linux # correct to gnu/linux during the next big refactor
  13519. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  13520. soname_spec='$libname${shared_ext}.$major'
  13521. shlibpath_var=LD_LIBRARY_PATH
  13522. fi
  13523. ;;
  13524. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  13525. version_type=freebsd-elf
  13526. need_lib_prefix=no
  13527. need_version=no
  13528. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13529. soname_spec='${libname}${release}${shared_ext}$major'
  13530. shlibpath_var=LD_LIBRARY_PATH
  13531. shlibpath_overrides_runpath=yes
  13532. hardcode_into_libs=yes
  13533. if test "$with_gnu_ld" = yes; then
  13534. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  13535. else
  13536. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  13537. case $host_os in
  13538. sco3.2v5*)
  13539. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  13540. ;;
  13541. esac
  13542. fi
  13543. sys_lib_dlsearch_path_spec='/usr/lib'
  13544. ;;
  13545. tpf*)
  13546. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  13547. version_type=linux # correct to gnu/linux during the next big refactor
  13548. need_lib_prefix=no
  13549. need_version=no
  13550. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13551. shlibpath_var=LD_LIBRARY_PATH
  13552. shlibpath_overrides_runpath=no
  13553. hardcode_into_libs=yes
  13554. ;;
  13555. uts4*)
  13556. version_type=linux # correct to gnu/linux during the next big refactor
  13557. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13558. soname_spec='${libname}${release}${shared_ext}$major'
  13559. shlibpath_var=LD_LIBRARY_PATH
  13560. ;;
  13561. *)
  13562. dynamic_linker=no
  13563. ;;
  13564. esac
  13565. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  13566. $as_echo "$dynamic_linker" >&6; }
  13567. test "$dynamic_linker" = no && can_build_shared=no
  13568. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  13569. if test "$GCC" = yes; then
  13570. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  13571. fi
  13572. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  13573. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  13574. fi
  13575. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  13576. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  13577. fi
  13578. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  13579. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  13580. hardcode_action_CXX=
  13581. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  13582. test -n "$runpath_var_CXX" ||
  13583. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  13584. # We can hardcode non-existent directories.
  13585. if test "$hardcode_direct_CXX" != no &&
  13586. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  13587. # have to relink, otherwise we might link with an installed library
  13588. # when we should be linking with a yet-to-be-installed one
  13589. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  13590. test "$hardcode_minus_L_CXX" != no; then
  13591. # Linking always hardcodes the temporary library directory.
  13592. hardcode_action_CXX=relink
  13593. else
  13594. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  13595. hardcode_action_CXX=immediate
  13596. fi
  13597. else
  13598. # We cannot hardcode anything, or else we can only hardcode existing
  13599. # directories.
  13600. hardcode_action_CXX=unsupported
  13601. fi
  13602. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  13603. $as_echo "$hardcode_action_CXX" >&6; }
  13604. if test "$hardcode_action_CXX" = relink ||
  13605. test "$inherit_rpath_CXX" = yes; then
  13606. # Fast installation is not supported
  13607. enable_fast_install=no
  13608. elif test "$shlibpath_overrides_runpath" = yes ||
  13609. test "$enable_shared" = no; then
  13610. # Fast installation is not necessary
  13611. enable_fast_install=needless
  13612. fi
  13613. fi # test -n "$compiler"
  13614. CC=$lt_save_CC
  13615. CFLAGS=$lt_save_CFLAGS
  13616. LDCXX=$LD
  13617. LD=$lt_save_LD
  13618. GCC=$lt_save_GCC
  13619. with_gnu_ld=$lt_save_with_gnu_ld
  13620. lt_cv_path_LDCXX=$lt_cv_path_LD
  13621. lt_cv_path_LD=$lt_save_path_LD
  13622. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  13623. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  13624. fi # test "$_lt_caught_CXX_error" != yes
  13625. ac_ext=c
  13626. ac_cpp='$CPP $CPPFLAGS'
  13627. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13628. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13629. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13630. ac_config_commands="$ac_config_commands libtool"
  13631. # Only expand once:
  13632. # Checks for header files.
  13633. ac_header_dirent=no
  13634. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  13635. as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  13636. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
  13637. $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
  13638. if eval \${$as_ac_Header+:} false; then :
  13639. $as_echo_n "(cached) " >&6
  13640. else
  13641. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13642. /* end confdefs.h. */
  13643. #include <sys/types.h>
  13644. #include <$ac_hdr>
  13645. int
  13646. main ()
  13647. {
  13648. if ((DIR *) 0)
  13649. return 0;
  13650. ;
  13651. return 0;
  13652. }
  13653. _ACEOF
  13654. if ac_fn_c_try_compile "$LINENO"; then :
  13655. eval "$as_ac_Header=yes"
  13656. else
  13657. eval "$as_ac_Header=no"
  13658. fi
  13659. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13660. fi
  13661. eval ac_res=\$$as_ac_Header
  13662. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  13663. $as_echo "$ac_res" >&6; }
  13664. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  13665. cat >>confdefs.h <<_ACEOF
  13666. #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  13667. _ACEOF
  13668. ac_header_dirent=$ac_hdr; break
  13669. fi
  13670. done
  13671. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  13672. if test $ac_header_dirent = dirent.h; then
  13673. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
  13674. $as_echo_n "checking for library containing opendir... " >&6; }
  13675. if ${ac_cv_search_opendir+:} false; then :
  13676. $as_echo_n "(cached) " >&6
  13677. else
  13678. ac_func_search_save_LIBS=$LIBS
  13679. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13680. /* end confdefs.h. */
  13681. /* Override any GCC internal prototype to avoid an error.
  13682. Use char because int might match the return type of a GCC
  13683. builtin and then its argument prototype would still apply. */
  13684. #ifdef __cplusplus
  13685. extern "C"
  13686. #endif
  13687. char opendir ();
  13688. int
  13689. main ()
  13690. {
  13691. return opendir ();
  13692. ;
  13693. return 0;
  13694. }
  13695. _ACEOF
  13696. for ac_lib in '' dir; do
  13697. if test -z "$ac_lib"; then
  13698. ac_res="none required"
  13699. else
  13700. ac_res=-l$ac_lib
  13701. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  13702. fi
  13703. if ac_fn_c_try_link "$LINENO"; then :
  13704. ac_cv_search_opendir=$ac_res
  13705. fi
  13706. rm -f core conftest.err conftest.$ac_objext \
  13707. conftest$ac_exeext
  13708. if ${ac_cv_search_opendir+:} false; then :
  13709. break
  13710. fi
  13711. done
  13712. if ${ac_cv_search_opendir+:} false; then :
  13713. else
  13714. ac_cv_search_opendir=no
  13715. fi
  13716. rm conftest.$ac_ext
  13717. LIBS=$ac_func_search_save_LIBS
  13718. fi
  13719. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
  13720. $as_echo "$ac_cv_search_opendir" >&6; }
  13721. ac_res=$ac_cv_search_opendir
  13722. if test "$ac_res" != no; then :
  13723. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  13724. fi
  13725. else
  13726. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
  13727. $as_echo_n "checking for library containing opendir... " >&6; }
  13728. if ${ac_cv_search_opendir+:} false; then :
  13729. $as_echo_n "(cached) " >&6
  13730. else
  13731. ac_func_search_save_LIBS=$LIBS
  13732. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13733. /* end confdefs.h. */
  13734. /* Override any GCC internal prototype to avoid an error.
  13735. Use char because int might match the return type of a GCC
  13736. builtin and then its argument prototype would still apply. */
  13737. #ifdef __cplusplus
  13738. extern "C"
  13739. #endif
  13740. char opendir ();
  13741. int
  13742. main ()
  13743. {
  13744. return opendir ();
  13745. ;
  13746. return 0;
  13747. }
  13748. _ACEOF
  13749. for ac_lib in '' x; do
  13750. if test -z "$ac_lib"; then
  13751. ac_res="none required"
  13752. else
  13753. ac_res=-l$ac_lib
  13754. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  13755. fi
  13756. if ac_fn_c_try_link "$LINENO"; then :
  13757. ac_cv_search_opendir=$ac_res
  13758. fi
  13759. rm -f core conftest.err conftest.$ac_objext \
  13760. conftest$ac_exeext
  13761. if ${ac_cv_search_opendir+:} false; then :
  13762. break
  13763. fi
  13764. done
  13765. if ${ac_cv_search_opendir+:} false; then :
  13766. else
  13767. ac_cv_search_opendir=no
  13768. fi
  13769. rm conftest.$ac_ext
  13770. LIBS=$ac_func_search_save_LIBS
  13771. fi
  13772. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
  13773. $as_echo "$ac_cv_search_opendir" >&6; }
  13774. ac_res=$ac_cv_search_opendir
  13775. if test "$ac_res" != no; then :
  13776. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  13777. fi
  13778. fi
  13779. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  13780. $as_echo_n "checking for ANSI C header files... " >&6; }
  13781. if ${ac_cv_header_stdc+:} false; then :
  13782. $as_echo_n "(cached) " >&6
  13783. else
  13784. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13785. /* end confdefs.h. */
  13786. #include <stdlib.h>
  13787. #include <stdarg.h>
  13788. #include <string.h>
  13789. #include <float.h>
  13790. int
  13791. main ()
  13792. {
  13793. ;
  13794. return 0;
  13795. }
  13796. _ACEOF
  13797. if ac_fn_c_try_compile "$LINENO"; then :
  13798. ac_cv_header_stdc=yes
  13799. else
  13800. ac_cv_header_stdc=no
  13801. fi
  13802. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13803. if test $ac_cv_header_stdc = yes; then
  13804. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  13805. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13806. /* end confdefs.h. */
  13807. #include <string.h>
  13808. _ACEOF
  13809. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13810. $EGREP "memchr" >/dev/null 2>&1; then :
  13811. else
  13812. ac_cv_header_stdc=no
  13813. fi
  13814. rm -f conftest*
  13815. fi
  13816. if test $ac_cv_header_stdc = yes; then
  13817. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  13818. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13819. /* end confdefs.h. */
  13820. #include <stdlib.h>
  13821. _ACEOF
  13822. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13823. $EGREP "free" >/dev/null 2>&1; then :
  13824. else
  13825. ac_cv_header_stdc=no
  13826. fi
  13827. rm -f conftest*
  13828. fi
  13829. if test $ac_cv_header_stdc = yes; then
  13830. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  13831. if test "$cross_compiling" = yes; then :
  13832. :
  13833. else
  13834. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13835. /* end confdefs.h. */
  13836. #include <ctype.h>
  13837. #include <stdlib.h>
  13838. #if ((' ' & 0x0FF) == 0x020)
  13839. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  13840. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  13841. #else
  13842. # define ISLOWER(c) \
  13843. (('a' <= (c) && (c) <= 'i') \
  13844. || ('j' <= (c) && (c) <= 'r') \
  13845. || ('s' <= (c) && (c) <= 'z'))
  13846. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  13847. #endif
  13848. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  13849. int
  13850. main ()
  13851. {
  13852. int i;
  13853. for (i = 0; i < 256; i++)
  13854. if (XOR (islower (i), ISLOWER (i))
  13855. || toupper (i) != TOUPPER (i))
  13856. return 2;
  13857. return 0;
  13858. }
  13859. _ACEOF
  13860. if ac_fn_c_try_run "$LINENO"; then :
  13861. else
  13862. ac_cv_header_stdc=no
  13863. fi
  13864. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13865. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13866. fi
  13867. fi
  13868. fi
  13869. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  13870. $as_echo "$ac_cv_header_stdc" >&6; }
  13871. if test $ac_cv_header_stdc = yes; then
  13872. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  13873. fi
  13874. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
  13875. $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
  13876. if ${ac_cv_header_sys_wait_h+:} false; then :
  13877. $as_echo_n "(cached) " >&6
  13878. else
  13879. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13880. /* end confdefs.h. */
  13881. #include <sys/types.h>
  13882. #include <sys/wait.h>
  13883. #ifndef WEXITSTATUS
  13884. # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
  13885. #endif
  13886. #ifndef WIFEXITED
  13887. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  13888. #endif
  13889. int
  13890. main ()
  13891. {
  13892. int s;
  13893. wait (&s);
  13894. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  13895. ;
  13896. return 0;
  13897. }
  13898. _ACEOF
  13899. if ac_fn_c_try_compile "$LINENO"; then :
  13900. ac_cv_header_sys_wait_h=yes
  13901. else
  13902. ac_cv_header_sys_wait_h=no
  13903. fi
  13904. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13905. fi
  13906. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
  13907. $as_echo "$ac_cv_header_sys_wait_h" >&6; }
  13908. if test $ac_cv_header_sys_wait_h = yes; then
  13909. $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
  13910. fi
  13911. 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
  13912. do :
  13913. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  13914. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  13915. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  13916. cat >>confdefs.h <<_ACEOF
  13917. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  13918. _ACEOF
  13919. fi
  13920. done
  13921. # Checks for typedefs, structures, and compiler characteristics.
  13922. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
  13923. $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
  13924. if ${ac_cv_header_stat_broken+:} false; then :
  13925. $as_echo_n "(cached) " >&6
  13926. else
  13927. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13928. /* end confdefs.h. */
  13929. #include <sys/types.h>
  13930. #include <sys/stat.h>
  13931. #if defined S_ISBLK && defined S_IFDIR
  13932. extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
  13933. #endif
  13934. #if defined S_ISBLK && defined S_IFCHR
  13935. extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
  13936. #endif
  13937. #if defined S_ISLNK && defined S_IFREG
  13938. extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
  13939. #endif
  13940. #if defined S_ISSOCK && defined S_IFREG
  13941. extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
  13942. #endif
  13943. _ACEOF
  13944. if ac_fn_c_try_compile "$LINENO"; then :
  13945. ac_cv_header_stat_broken=no
  13946. else
  13947. ac_cv_header_stat_broken=yes
  13948. fi
  13949. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13950. fi
  13951. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
  13952. $as_echo "$ac_cv_header_stat_broken" >&6; }
  13953. if test $ac_cv_header_stat_broken = yes; then
  13954. $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
  13955. fi
  13956. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  13957. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  13958. if ${ac_cv_c_const+:} false; then :
  13959. $as_echo_n "(cached) " >&6
  13960. else
  13961. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13962. /* end confdefs.h. */
  13963. int
  13964. main ()
  13965. {
  13966. #ifndef __cplusplus
  13967. /* Ultrix mips cc rejects this sort of thing. */
  13968. typedef int charset[2];
  13969. const charset cs = { 0, 0 };
  13970. /* SunOS 4.1.1 cc rejects this. */
  13971. char const *const *pcpcc;
  13972. char **ppc;
  13973. /* NEC SVR4.0.2 mips cc rejects this. */
  13974. struct point {int x, y;};
  13975. static struct point const zero = {0,0};
  13976. /* AIX XL C 1.02.0.0 rejects this.
  13977. It does not let you subtract one const X* pointer from another in
  13978. an arm of an if-expression whose if-part is not a constant
  13979. expression */
  13980. const char *g = "string";
  13981. pcpcc = &g + (g ? g-g : 0);
  13982. /* HPUX 7.0 cc rejects these. */
  13983. ++pcpcc;
  13984. ppc = (char**) pcpcc;
  13985. pcpcc = (char const *const *) ppc;
  13986. { /* SCO 3.2v4 cc rejects this sort of thing. */
  13987. char tx;
  13988. char *t = &tx;
  13989. char const *s = 0 ? (char *) 0 : (char const *) 0;
  13990. *t++ = 0;
  13991. if (s) return 0;
  13992. }
  13993. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  13994. int x[] = {25, 17};
  13995. const int *foo = &x[0];
  13996. ++foo;
  13997. }
  13998. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  13999. typedef const int *iptr;
  14000. iptr p = 0;
  14001. ++p;
  14002. }
  14003. { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
  14004. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  14005. struct s { int j; const int *ap[3]; } bx;
  14006. struct s *b = &bx; b->j = 5;
  14007. }
  14008. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  14009. const int foo = 10;
  14010. if (!foo) return 0;
  14011. }
  14012. return !cs[0] && !zero.x;
  14013. #endif
  14014. ;
  14015. return 0;
  14016. }
  14017. _ACEOF
  14018. if ac_fn_c_try_compile "$LINENO"; then :
  14019. ac_cv_c_const=yes
  14020. else
  14021. ac_cv_c_const=no
  14022. fi
  14023. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14024. fi
  14025. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  14026. $as_echo "$ac_cv_c_const" >&6; }
  14027. if test $ac_cv_c_const = no; then
  14028. $as_echo "#define const /**/" >>confdefs.h
  14029. fi
  14030. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
  14031. $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
  14032. if ${ac_cv_header_stdbool_h+:} false; then :
  14033. $as_echo_n "(cached) " >&6
  14034. else
  14035. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14036. /* end confdefs.h. */
  14037. #include <stdbool.h>
  14038. #ifndef bool
  14039. "error: bool is not defined"
  14040. #endif
  14041. #ifndef false
  14042. "error: false is not defined"
  14043. #endif
  14044. #if false
  14045. "error: false is not 0"
  14046. #endif
  14047. #ifndef true
  14048. "error: true is not defined"
  14049. #endif
  14050. #if true != 1
  14051. "error: true is not 1"
  14052. #endif
  14053. #ifndef __bool_true_false_are_defined
  14054. "error: __bool_true_false_are_defined is not defined"
  14055. #endif
  14056. struct s { _Bool s: 1; _Bool t; } s;
  14057. char a[true == 1 ? 1 : -1];
  14058. char b[false == 0 ? 1 : -1];
  14059. char c[__bool_true_false_are_defined == 1 ? 1 : -1];
  14060. char d[(bool) 0.5 == true ? 1 : -1];
  14061. /* See body of main program for 'e'. */
  14062. char f[(_Bool) 0.0 == false ? 1 : -1];
  14063. char g[true];
  14064. char h[sizeof (_Bool)];
  14065. char i[sizeof s.t];
  14066. enum { j = false, k = true, l = false * true, m = true * 256 };
  14067. /* The following fails for
  14068. HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
  14069. _Bool n[m];
  14070. char o[sizeof n == m * sizeof n[0] ? 1 : -1];
  14071. char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
  14072. /* Catch a bug in an HP-UX C compiler. See
  14073. http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
  14074. http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
  14075. */
  14076. _Bool q = true;
  14077. _Bool *pq = &q;
  14078. int
  14079. main ()
  14080. {
  14081. bool e = &s;
  14082. *pq |= q;
  14083. *pq |= ! q;
  14084. /* Refer to every declared value, to avoid compiler optimizations. */
  14085. return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
  14086. + !m + !n + !o + !p + !q + !pq);
  14087. ;
  14088. return 0;
  14089. }
  14090. _ACEOF
  14091. if ac_fn_c_try_compile "$LINENO"; then :
  14092. ac_cv_header_stdbool_h=yes
  14093. else
  14094. ac_cv_header_stdbool_h=no
  14095. fi
  14096. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14097. fi
  14098. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
  14099. $as_echo "$ac_cv_header_stdbool_h" >&6; }
  14100. ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
  14101. if test "x$ac_cv_type__Bool" = xyes; then :
  14102. cat >>confdefs.h <<_ACEOF
  14103. #define HAVE__BOOL 1
  14104. _ACEOF
  14105. fi
  14106. if test $ac_cv_header_stdbool_h = yes; then
  14107. $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
  14108. fi
  14109. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
  14110. $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
  14111. if ${ac_cv_type_uid_t+:} false; then :
  14112. $as_echo_n "(cached) " >&6
  14113. else
  14114. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14115. /* end confdefs.h. */
  14116. #include <sys/types.h>
  14117. _ACEOF
  14118. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14119. $EGREP "uid_t" >/dev/null 2>&1; then :
  14120. ac_cv_type_uid_t=yes
  14121. else
  14122. ac_cv_type_uid_t=no
  14123. fi
  14124. rm -f conftest*
  14125. fi
  14126. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
  14127. $as_echo "$ac_cv_type_uid_t" >&6; }
  14128. if test $ac_cv_type_uid_t = no; then
  14129. $as_echo "#define uid_t int" >>confdefs.h
  14130. $as_echo "#define gid_t int" >>confdefs.h
  14131. fi
  14132. ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
  14133. if test "x$ac_cv_type_pid_t" = xyes; then :
  14134. else
  14135. cat >>confdefs.h <<_ACEOF
  14136. #define pid_t int
  14137. _ACEOF
  14138. fi
  14139. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  14140. if test "x$ac_cv_type_size_t" = xyes; then :
  14141. else
  14142. cat >>confdefs.h <<_ACEOF
  14143. #define size_t unsigned int
  14144. _ACEOF
  14145. fi
  14146. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
  14147. $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
  14148. if ${ac_cv_header_time+:} false; then :
  14149. $as_echo_n "(cached) " >&6
  14150. else
  14151. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14152. /* end confdefs.h. */
  14153. #include <sys/types.h>
  14154. #include <sys/time.h>
  14155. #include <time.h>
  14156. int
  14157. main ()
  14158. {
  14159. if ((struct tm *) 0)
  14160. return 0;
  14161. ;
  14162. return 0;
  14163. }
  14164. _ACEOF
  14165. if ac_fn_c_try_compile "$LINENO"; then :
  14166. ac_cv_header_time=yes
  14167. else
  14168. ac_cv_header_time=no
  14169. fi
  14170. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14171. fi
  14172. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
  14173. $as_echo "$ac_cv_header_time" >&6; }
  14174. if test $ac_cv_header_time = yes; then
  14175. $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
  14176. fi
  14177. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
  14178. $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
  14179. if ${ac_cv_struct_tm+:} false; then :
  14180. $as_echo_n "(cached) " >&6
  14181. else
  14182. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14183. /* end confdefs.h. */
  14184. #include <sys/types.h>
  14185. #include <time.h>
  14186. int
  14187. main ()
  14188. {
  14189. struct tm tm;
  14190. int *p = &tm.tm_sec;
  14191. return !p;
  14192. ;
  14193. return 0;
  14194. }
  14195. _ACEOF
  14196. if ac_fn_c_try_compile "$LINENO"; then :
  14197. ac_cv_struct_tm=time.h
  14198. else
  14199. ac_cv_struct_tm=sys/time.h
  14200. fi
  14201. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14202. fi
  14203. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
  14204. $as_echo "$ac_cv_struct_tm" >&6; }
  14205. if test $ac_cv_struct_tm = sys/time.h; then
  14206. $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
  14207. fi
  14208. # Checks for library functions.
  14209. for ac_header in unistd.h
  14210. do :
  14211. ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
  14212. if test "x$ac_cv_header_unistd_h" = xyes; then :
  14213. cat >>confdefs.h <<_ACEOF
  14214. #define HAVE_UNISTD_H 1
  14215. _ACEOF
  14216. fi
  14217. done
  14218. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5
  14219. $as_echo_n "checking for working chown... " >&6; }
  14220. if ${ac_cv_func_chown_works+:} false; then :
  14221. $as_echo_n "(cached) " >&6
  14222. else
  14223. if test "$cross_compiling" = yes; then :
  14224. ac_cv_func_chown_works=no
  14225. else
  14226. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14227. /* end confdefs.h. */
  14228. $ac_includes_default
  14229. #include <fcntl.h>
  14230. int
  14231. main ()
  14232. {
  14233. char *f = "conftest.chown";
  14234. struct stat before, after;
  14235. if (creat (f, 0600) < 0)
  14236. return 1;
  14237. if (stat (f, &before) < 0)
  14238. return 1;
  14239. if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
  14240. return 1;
  14241. if (stat (f, &after) < 0)
  14242. return 1;
  14243. return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
  14244. ;
  14245. return 0;
  14246. }
  14247. _ACEOF
  14248. if ac_fn_c_try_run "$LINENO"; then :
  14249. ac_cv_func_chown_works=yes
  14250. else
  14251. ac_cv_func_chown_works=no
  14252. fi
  14253. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14254. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14255. fi
  14256. rm -f conftest.chown
  14257. fi
  14258. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5
  14259. $as_echo "$ac_cv_func_chown_works" >&6; }
  14260. if test $ac_cv_func_chown_works = yes; then
  14261. $as_echo "#define HAVE_CHOWN 1" >>confdefs.h
  14262. fi
  14263. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
  14264. $as_echo_n "checking whether closedir returns void... " >&6; }
  14265. if ${ac_cv_func_closedir_void+:} false; then :
  14266. $as_echo_n "(cached) " >&6
  14267. else
  14268. if test "$cross_compiling" = yes; then :
  14269. ac_cv_func_closedir_void=yes
  14270. else
  14271. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14272. /* end confdefs.h. */
  14273. $ac_includes_default
  14274. #include <$ac_header_dirent>
  14275. #ifndef __cplusplus
  14276. int closedir ();
  14277. #endif
  14278. int
  14279. main ()
  14280. {
  14281. return closedir (opendir (".")) != 0;
  14282. ;
  14283. return 0;
  14284. }
  14285. _ACEOF
  14286. if ac_fn_c_try_run "$LINENO"; then :
  14287. ac_cv_func_closedir_void=no
  14288. else
  14289. ac_cv_func_closedir_void=yes
  14290. fi
  14291. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14292. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14293. fi
  14294. fi
  14295. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
  14296. $as_echo "$ac_cv_func_closedir_void" >&6; }
  14297. if test $ac_cv_func_closedir_void = yes; then
  14298. $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
  14299. fi
  14300. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
  14301. $as_echo_n "checking for error_at_line... " >&6; }
  14302. if ${ac_cv_lib_error_at_line+:} false; then :
  14303. $as_echo_n "(cached) " >&6
  14304. else
  14305. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14306. /* end confdefs.h. */
  14307. #include <error.h>
  14308. int
  14309. main ()
  14310. {
  14311. error_at_line (0, 0, "", 0, "an error occurred");
  14312. ;
  14313. return 0;
  14314. }
  14315. _ACEOF
  14316. if ac_fn_c_try_link "$LINENO"; then :
  14317. ac_cv_lib_error_at_line=yes
  14318. else
  14319. ac_cv_lib_error_at_line=no
  14320. fi
  14321. rm -f core conftest.err conftest.$ac_objext \
  14322. conftest$ac_exeext conftest.$ac_ext
  14323. fi
  14324. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
  14325. $as_echo "$ac_cv_lib_error_at_line" >&6; }
  14326. if test $ac_cv_lib_error_at_line = no; then
  14327. case " $LIBOBJS " in
  14328. *" error.$ac_objext "* ) ;;
  14329. *) LIBOBJS="$LIBOBJS error.$ac_objext"
  14330. ;;
  14331. esac
  14332. fi
  14333. for ac_header in vfork.h
  14334. do :
  14335. ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
  14336. if test "x$ac_cv_header_vfork_h" = xyes; then :
  14337. cat >>confdefs.h <<_ACEOF
  14338. #define HAVE_VFORK_H 1
  14339. _ACEOF
  14340. fi
  14341. done
  14342. for ac_func in fork vfork
  14343. do :
  14344. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14345. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14346. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14347. cat >>confdefs.h <<_ACEOF
  14348. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14349. _ACEOF
  14350. fi
  14351. done
  14352. if test "x$ac_cv_func_fork" = xyes; then
  14353. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
  14354. $as_echo_n "checking for working fork... " >&6; }
  14355. if ${ac_cv_func_fork_works+:} false; then :
  14356. $as_echo_n "(cached) " >&6
  14357. else
  14358. if test "$cross_compiling" = yes; then :
  14359. ac_cv_func_fork_works=cross
  14360. else
  14361. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14362. /* end confdefs.h. */
  14363. $ac_includes_default
  14364. int
  14365. main ()
  14366. {
  14367. /* By Ruediger Kuhlmann. */
  14368. return fork () < 0;
  14369. ;
  14370. return 0;
  14371. }
  14372. _ACEOF
  14373. if ac_fn_c_try_run "$LINENO"; then :
  14374. ac_cv_func_fork_works=yes
  14375. else
  14376. ac_cv_func_fork_works=no
  14377. fi
  14378. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14379. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14380. fi
  14381. fi
  14382. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
  14383. $as_echo "$ac_cv_func_fork_works" >&6; }
  14384. else
  14385. ac_cv_func_fork_works=$ac_cv_func_fork
  14386. fi
  14387. if test "x$ac_cv_func_fork_works" = xcross; then
  14388. case $host in
  14389. *-*-amigaos* | *-*-msdosdjgpp*)
  14390. # Override, as these systems have only a dummy fork() stub
  14391. ac_cv_func_fork_works=no
  14392. ;;
  14393. *)
  14394. ac_cv_func_fork_works=yes
  14395. ;;
  14396. esac
  14397. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  14398. $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  14399. fi
  14400. ac_cv_func_vfork_works=$ac_cv_func_vfork
  14401. if test "x$ac_cv_func_vfork" = xyes; then
  14402. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
  14403. $as_echo_n "checking for working vfork... " >&6; }
  14404. if ${ac_cv_func_vfork_works+:} false; then :
  14405. $as_echo_n "(cached) " >&6
  14406. else
  14407. if test "$cross_compiling" = yes; then :
  14408. ac_cv_func_vfork_works=cross
  14409. else
  14410. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14411. /* end confdefs.h. */
  14412. /* Thanks to Paul Eggert for this test. */
  14413. $ac_includes_default
  14414. #include <sys/wait.h>
  14415. #ifdef HAVE_VFORK_H
  14416. # include <vfork.h>
  14417. #endif
  14418. /* On some sparc systems, changes by the child to local and incoming
  14419. argument registers are propagated back to the parent. The compiler
  14420. is told about this with #include <vfork.h>, but some compilers
  14421. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  14422. static variable whose address is put into a register that is
  14423. clobbered by the vfork. */
  14424. static void
  14425. #ifdef __cplusplus
  14426. sparc_address_test (int arg)
  14427. # else
  14428. sparc_address_test (arg) int arg;
  14429. #endif
  14430. {
  14431. static pid_t child;
  14432. if (!child) {
  14433. child = vfork ();
  14434. if (child < 0) {
  14435. perror ("vfork");
  14436. _exit(2);
  14437. }
  14438. if (!child) {
  14439. arg = getpid();
  14440. write(-1, "", 0);
  14441. _exit (arg);
  14442. }
  14443. }
  14444. }
  14445. int
  14446. main ()
  14447. {
  14448. pid_t parent = getpid ();
  14449. pid_t child;
  14450. sparc_address_test (0);
  14451. child = vfork ();
  14452. if (child == 0) {
  14453. /* Here is another test for sparc vfork register problems. This
  14454. test uses lots of local variables, at least as many local
  14455. variables as main has allocated so far including compiler
  14456. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  14457. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  14458. reuse the register of parent for one of the local variables,
  14459. since it will think that parent can't possibly be used any more
  14460. in this routine. Assigning to the local variable will thus
  14461. munge parent in the parent process. */
  14462. pid_t
  14463. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  14464. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  14465. /* Convince the compiler that p..p7 are live; otherwise, it might
  14466. use the same hardware register for all 8 local variables. */
  14467. if (p != p1 || p != p2 || p != p3 || p != p4
  14468. || p != p5 || p != p6 || p != p7)
  14469. _exit(1);
  14470. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  14471. from child file descriptors. If the child closes a descriptor
  14472. before it execs or exits, this munges the parent's descriptor
  14473. as well. Test for this by closing stdout in the child. */
  14474. _exit(close(fileno(stdout)) != 0);
  14475. } else {
  14476. int status;
  14477. struct stat st;
  14478. while (wait(&status) != child)
  14479. ;
  14480. return (
  14481. /* Was there some problem with vforking? */
  14482. child < 0
  14483. /* Did the child fail? (This shouldn't happen.) */
  14484. || status
  14485. /* Did the vfork/compiler bug occur? */
  14486. || parent != getpid()
  14487. /* Did the file descriptor bug occur? */
  14488. || fstat(fileno(stdout), &st) != 0
  14489. );
  14490. }
  14491. }
  14492. _ACEOF
  14493. if ac_fn_c_try_run "$LINENO"; then :
  14494. ac_cv_func_vfork_works=yes
  14495. else
  14496. ac_cv_func_vfork_works=no
  14497. fi
  14498. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14499. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14500. fi
  14501. fi
  14502. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
  14503. $as_echo "$ac_cv_func_vfork_works" >&6; }
  14504. fi;
  14505. if test "x$ac_cv_func_fork_works" = xcross; then
  14506. ac_cv_func_vfork_works=$ac_cv_func_vfork
  14507. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  14508. $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  14509. fi
  14510. if test "x$ac_cv_func_vfork_works" = xyes; then
  14511. $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
  14512. else
  14513. $as_echo "#define vfork fork" >>confdefs.h
  14514. fi
  14515. if test "x$ac_cv_func_fork_works" = xyes; then
  14516. $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
  14517. fi
  14518. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
  14519. $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
  14520. if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
  14521. $as_echo_n "(cached) " >&6
  14522. else
  14523. rm -f conftest.sym conftest.file
  14524. echo >conftest.file
  14525. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  14526. if test "$cross_compiling" = yes; then :
  14527. ac_cv_func_lstat_dereferences_slashed_symlink=no
  14528. else
  14529. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14530. /* end confdefs.h. */
  14531. $ac_includes_default
  14532. int
  14533. main ()
  14534. {
  14535. struct stat sbuf;
  14536. /* Linux will dereference the symlink and fail, as required by POSIX.
  14537. That is better in the sense that it means we will not
  14538. have to compile and use the lstat wrapper. */
  14539. return lstat ("conftest.sym/", &sbuf) == 0;
  14540. ;
  14541. return 0;
  14542. }
  14543. _ACEOF
  14544. if ac_fn_c_try_run "$LINENO"; then :
  14545. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  14546. else
  14547. ac_cv_func_lstat_dereferences_slashed_symlink=no
  14548. fi
  14549. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14550. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14551. fi
  14552. else
  14553. # If the `ln -s' command failed, then we probably don't even
  14554. # have an lstat function.
  14555. ac_cv_func_lstat_dereferences_slashed_symlink=no
  14556. fi
  14557. rm -f conftest.sym conftest.file
  14558. fi
  14559. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  14560. $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  14561. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  14562. cat >>confdefs.h <<_ACEOF
  14563. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  14564. _ACEOF
  14565. if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
  14566. case " $LIBOBJS " in
  14567. *" lstat.$ac_objext "* ) ;;
  14568. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  14569. ;;
  14570. esac
  14571. fi
  14572. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat accepts an empty string" >&5
  14573. $as_echo_n "checking whether lstat accepts an empty string... " >&6; }
  14574. if ${ac_cv_func_lstat_empty_string_bug+:} false; then :
  14575. $as_echo_n "(cached) " >&6
  14576. else
  14577. if test "$cross_compiling" = yes; then :
  14578. ac_cv_func_lstat_empty_string_bug=yes
  14579. else
  14580. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14581. /* end confdefs.h. */
  14582. $ac_includes_default
  14583. int
  14584. main ()
  14585. {
  14586. struct stat sbuf;
  14587. return lstat ("", &sbuf) == 0;
  14588. ;
  14589. return 0;
  14590. }
  14591. _ACEOF
  14592. if ac_fn_c_try_run "$LINENO"; then :
  14593. ac_cv_func_lstat_empty_string_bug=no
  14594. else
  14595. ac_cv_func_lstat_empty_string_bug=yes
  14596. fi
  14597. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14598. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14599. fi
  14600. fi
  14601. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_empty_string_bug" >&5
  14602. $as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
  14603. if test $ac_cv_func_lstat_empty_string_bug = yes; then
  14604. case " $LIBOBJS " in
  14605. *" lstat.$ac_objext "* ) ;;
  14606. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  14607. ;;
  14608. esac
  14609. cat >>confdefs.h <<_ACEOF
  14610. #define HAVE_LSTAT_EMPTY_STRING_BUG 1
  14611. _ACEOF
  14612. fi
  14613. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
  14614. $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
  14615. if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
  14616. $as_echo_n "(cached) " >&6
  14617. else
  14618. rm -f conftest.sym conftest.file
  14619. echo >conftest.file
  14620. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  14621. if test "$cross_compiling" = yes; then :
  14622. ac_cv_func_lstat_dereferences_slashed_symlink=no
  14623. else
  14624. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14625. /* end confdefs.h. */
  14626. $ac_includes_default
  14627. int
  14628. main ()
  14629. {
  14630. struct stat sbuf;
  14631. /* Linux will dereference the symlink and fail, as required by POSIX.
  14632. That is better in the sense that it means we will not
  14633. have to compile and use the lstat wrapper. */
  14634. return lstat ("conftest.sym/", &sbuf) == 0;
  14635. ;
  14636. return 0;
  14637. }
  14638. _ACEOF
  14639. if ac_fn_c_try_run "$LINENO"; then :
  14640. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  14641. else
  14642. ac_cv_func_lstat_dereferences_slashed_symlink=no
  14643. fi
  14644. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14645. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14646. fi
  14647. else
  14648. # If the `ln -s' command failed, then we probably don't even
  14649. # have an lstat function.
  14650. ac_cv_func_lstat_dereferences_slashed_symlink=no
  14651. fi
  14652. rm -f conftest.sym conftest.file
  14653. fi
  14654. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  14655. $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  14656. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  14657. cat >>confdefs.h <<_ACEOF
  14658. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  14659. _ACEOF
  14660. if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
  14661. case " $LIBOBJS " in
  14662. *" lstat.$ac_objext "* ) ;;
  14663. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  14664. ;;
  14665. esac
  14666. fi
  14667. for ac_header in stdlib.h
  14668. do :
  14669. ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
  14670. if test "x$ac_cv_header_stdlib_h" = xyes; then :
  14671. cat >>confdefs.h <<_ACEOF
  14672. #define HAVE_STDLIB_H 1
  14673. _ACEOF
  14674. fi
  14675. done
  14676. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
  14677. $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
  14678. if ${ac_cv_func_malloc_0_nonnull+:} false; then :
  14679. $as_echo_n "(cached) " >&6
  14680. else
  14681. if test "$cross_compiling" = yes; then :
  14682. ac_cv_func_malloc_0_nonnull=no
  14683. else
  14684. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14685. /* end confdefs.h. */
  14686. #if defined STDC_HEADERS || defined HAVE_STDLIB_H
  14687. # include <stdlib.h>
  14688. #else
  14689. char *malloc ();
  14690. #endif
  14691. int
  14692. main ()
  14693. {
  14694. return ! malloc (0);
  14695. ;
  14696. return 0;
  14697. }
  14698. _ACEOF
  14699. if ac_fn_c_try_run "$LINENO"; then :
  14700. ac_cv_func_malloc_0_nonnull=yes
  14701. else
  14702. ac_cv_func_malloc_0_nonnull=no
  14703. fi
  14704. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14705. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14706. fi
  14707. fi
  14708. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
  14709. $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
  14710. if test $ac_cv_func_malloc_0_nonnull = yes; then :
  14711. $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
  14712. else
  14713. $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
  14714. case " $LIBOBJS " in
  14715. *" malloc.$ac_objext "* ) ;;
  14716. *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
  14717. ;;
  14718. esac
  14719. $as_echo "#define malloc rpl_malloc" >>confdefs.h
  14720. fi
  14721. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
  14722. $as_echo_n "checking for working memcmp... " >&6; }
  14723. if ${ac_cv_func_memcmp_working+:} false; then :
  14724. $as_echo_n "(cached) " >&6
  14725. else
  14726. if test "$cross_compiling" = yes; then :
  14727. ac_cv_func_memcmp_working=no
  14728. else
  14729. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14730. /* end confdefs.h. */
  14731. $ac_includes_default
  14732. int
  14733. main ()
  14734. {
  14735. /* Some versions of memcmp are not 8-bit clean. */
  14736. char c0 = '\100', c1 = '\200', c2 = '\201';
  14737. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  14738. return 1;
  14739. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  14740. or more and with at least one buffer not starting on a 4-byte boundary.
  14741. William Lewis provided this test program. */
  14742. {
  14743. char foo[21];
  14744. char bar[21];
  14745. int i;
  14746. for (i = 0; i < 4; i++)
  14747. {
  14748. char *a = foo + i;
  14749. char *b = bar + i;
  14750. strcpy (a, "--------01111111");
  14751. strcpy (b, "--------10000000");
  14752. if (memcmp (a, b, 16) >= 0)
  14753. return 1;
  14754. }
  14755. return 0;
  14756. }
  14757. ;
  14758. return 0;
  14759. }
  14760. _ACEOF
  14761. if ac_fn_c_try_run "$LINENO"; then :
  14762. ac_cv_func_memcmp_working=yes
  14763. else
  14764. ac_cv_func_memcmp_working=no
  14765. fi
  14766. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14767. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14768. fi
  14769. fi
  14770. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
  14771. $as_echo "$ac_cv_func_memcmp_working" >&6; }
  14772. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  14773. *" memcmp.$ac_objext "* ) ;;
  14774. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  14775. ;;
  14776. esac
  14777. for ac_header in $ac_header_list
  14778. do :
  14779. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  14780. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  14781. "
  14782. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  14783. cat >>confdefs.h <<_ACEOF
  14784. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  14785. _ACEOF
  14786. fi
  14787. done
  14788. for ac_func in getpagesize
  14789. do :
  14790. ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
  14791. if test "x$ac_cv_func_getpagesize" = xyes; then :
  14792. cat >>confdefs.h <<_ACEOF
  14793. #define HAVE_GETPAGESIZE 1
  14794. _ACEOF
  14795. fi
  14796. done
  14797. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
  14798. $as_echo_n "checking for working mmap... " >&6; }
  14799. if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
  14800. $as_echo_n "(cached) " >&6
  14801. else
  14802. if test "$cross_compiling" = yes; then :
  14803. ac_cv_func_mmap_fixed_mapped=no
  14804. else
  14805. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14806. /* end confdefs.h. */
  14807. $ac_includes_default
  14808. /* malloc might have been renamed as rpl_malloc. */
  14809. #undef malloc
  14810. /* Thanks to Mike Haertel and Jim Avera for this test.
  14811. Here is a matrix of mmap possibilities:
  14812. mmap private not fixed
  14813. mmap private fixed at somewhere currently unmapped
  14814. mmap private fixed at somewhere already mapped
  14815. mmap shared not fixed
  14816. mmap shared fixed at somewhere currently unmapped
  14817. mmap shared fixed at somewhere already mapped
  14818. For private mappings, we should verify that changes cannot be read()
  14819. back from the file, nor mmap's back from the file at a different
  14820. address. (There have been systems where private was not correctly
  14821. implemented like the infamous i386 svr4.0, and systems where the
  14822. VM page cache was not coherent with the file system buffer cache
  14823. like early versions of FreeBSD and possibly contemporary NetBSD.)
  14824. For shared mappings, we should conversely verify that changes get
  14825. propagated back to all the places they're supposed to be.
  14826. Grep wants private fixed already mapped.
  14827. The main things grep needs to know about mmap are:
  14828. * does it exist and is it safe to write into the mmap'd area
  14829. * how to use it (BSD variants) */
  14830. #include <fcntl.h>
  14831. #include <sys/mman.h>
  14832. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  14833. char *malloc ();
  14834. #endif
  14835. /* This mess was copied from the GNU getpagesize.h. */
  14836. #ifndef HAVE_GETPAGESIZE
  14837. # ifdef _SC_PAGESIZE
  14838. # define getpagesize() sysconf(_SC_PAGESIZE)
  14839. # else /* no _SC_PAGESIZE */
  14840. # ifdef HAVE_SYS_PARAM_H
  14841. # include <sys/param.h>
  14842. # ifdef EXEC_PAGESIZE
  14843. # define getpagesize() EXEC_PAGESIZE
  14844. # else /* no EXEC_PAGESIZE */
  14845. # ifdef NBPG
  14846. # define getpagesize() NBPG * CLSIZE
  14847. # ifndef CLSIZE
  14848. # define CLSIZE 1
  14849. # endif /* no CLSIZE */
  14850. # else /* no NBPG */
  14851. # ifdef NBPC
  14852. # define getpagesize() NBPC
  14853. # else /* no NBPC */
  14854. # ifdef PAGESIZE
  14855. # define getpagesize() PAGESIZE
  14856. # endif /* PAGESIZE */
  14857. # endif /* no NBPC */
  14858. # endif /* no NBPG */
  14859. # endif /* no EXEC_PAGESIZE */
  14860. # else /* no HAVE_SYS_PARAM_H */
  14861. # define getpagesize() 8192 /* punt totally */
  14862. # endif /* no HAVE_SYS_PARAM_H */
  14863. # endif /* no _SC_PAGESIZE */
  14864. #endif /* no HAVE_GETPAGESIZE */
  14865. int
  14866. main ()
  14867. {
  14868. char *data, *data2, *data3;
  14869. const char *cdata2;
  14870. int i, pagesize;
  14871. int fd, fd2;
  14872. pagesize = getpagesize ();
  14873. /* First, make a file with some known garbage in it. */
  14874. data = (char *) malloc (pagesize);
  14875. if (!data)
  14876. return 1;
  14877. for (i = 0; i < pagesize; ++i)
  14878. *(data + i) = rand ();
  14879. umask (0);
  14880. fd = creat ("conftest.mmap", 0600);
  14881. if (fd < 0)
  14882. return 2;
  14883. if (write (fd, data, pagesize) != pagesize)
  14884. return 3;
  14885. close (fd);
  14886. /* Next, check that the tail of a page is zero-filled. File must have
  14887. non-zero length, otherwise we risk SIGBUS for entire page. */
  14888. fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
  14889. if (fd2 < 0)
  14890. return 4;
  14891. cdata2 = "";
  14892. if (write (fd2, cdata2, 1) != 1)
  14893. return 5;
  14894. data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
  14895. if (data2 == MAP_FAILED)
  14896. return 6;
  14897. for (i = 0; i < pagesize; ++i)
  14898. if (*(data2 + i))
  14899. return 7;
  14900. close (fd2);
  14901. if (munmap (data2, pagesize))
  14902. return 8;
  14903. /* Next, try to mmap the file at a fixed address which already has
  14904. something else allocated at it. If we can, also make sure that
  14905. we see the same garbage. */
  14906. fd = open ("conftest.mmap", O_RDWR);
  14907. if (fd < 0)
  14908. return 9;
  14909. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  14910. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  14911. return 10;
  14912. for (i = 0; i < pagesize; ++i)
  14913. if (*(data + i) != *(data2 + i))
  14914. return 11;
  14915. /* Finally, make sure that changes to the mapped area do not
  14916. percolate back to the file as seen by read(). (This is a bug on
  14917. some variants of i386 svr4.0.) */
  14918. for (i = 0; i < pagesize; ++i)
  14919. *(data2 + i) = *(data2 + i) + 1;
  14920. data3 = (char *) malloc (pagesize);
  14921. if (!data3)
  14922. return 12;
  14923. if (read (fd, data3, pagesize) != pagesize)
  14924. return 13;
  14925. for (i = 0; i < pagesize; ++i)
  14926. if (*(data + i) != *(data3 + i))
  14927. return 14;
  14928. close (fd);
  14929. return 0;
  14930. }
  14931. _ACEOF
  14932. if ac_fn_c_try_run "$LINENO"; then :
  14933. ac_cv_func_mmap_fixed_mapped=yes
  14934. else
  14935. ac_cv_func_mmap_fixed_mapped=no
  14936. fi
  14937. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14938. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14939. fi
  14940. fi
  14941. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
  14942. $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
  14943. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  14944. $as_echo "#define HAVE_MMAP 1" >>confdefs.h
  14945. fi
  14946. rm -f conftest.mmap conftest.txt
  14947. { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
  14948. $as_echo_n "checking return type of signal handlers... " >&6; }
  14949. if ${ac_cv_type_signal+:} false; then :
  14950. $as_echo_n "(cached) " >&6
  14951. else
  14952. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14953. /* end confdefs.h. */
  14954. #include <sys/types.h>
  14955. #include <signal.h>
  14956. int
  14957. main ()
  14958. {
  14959. return *(signal (0, 0)) (0) == 1;
  14960. ;
  14961. return 0;
  14962. }
  14963. _ACEOF
  14964. if ac_fn_c_try_compile "$LINENO"; then :
  14965. ac_cv_type_signal=int
  14966. else
  14967. ac_cv_type_signal=void
  14968. fi
  14969. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14970. fi
  14971. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
  14972. $as_echo "$ac_cv_type_signal" >&6; }
  14973. cat >>confdefs.h <<_ACEOF
  14974. #define RETSIGTYPE $ac_cv_type_signal
  14975. _ACEOF
  14976. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
  14977. $as_echo_n "checking whether stat accepts an empty string... " >&6; }
  14978. if ${ac_cv_func_stat_empty_string_bug+:} false; then :
  14979. $as_echo_n "(cached) " >&6
  14980. else
  14981. if test "$cross_compiling" = yes; then :
  14982. ac_cv_func_stat_empty_string_bug=yes
  14983. else
  14984. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14985. /* end confdefs.h. */
  14986. $ac_includes_default
  14987. int
  14988. main ()
  14989. {
  14990. struct stat sbuf;
  14991. return stat ("", &sbuf) == 0;
  14992. ;
  14993. return 0;
  14994. }
  14995. _ACEOF
  14996. if ac_fn_c_try_run "$LINENO"; then :
  14997. ac_cv_func_stat_empty_string_bug=no
  14998. else
  14999. ac_cv_func_stat_empty_string_bug=yes
  15000. fi
  15001. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15002. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15003. fi
  15004. fi
  15005. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
  15006. $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
  15007. if test $ac_cv_func_stat_empty_string_bug = yes; then
  15008. case " $LIBOBJS " in
  15009. *" stat.$ac_objext "* ) ;;
  15010. *) LIBOBJS="$LIBOBJS stat.$ac_objext"
  15011. ;;
  15012. esac
  15013. cat >>confdefs.h <<_ACEOF
  15014. #define HAVE_STAT_EMPTY_STRING_BUG 1
  15015. _ACEOF
  15016. fi
  15017. ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
  15018. if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
  15019. ac_have_decl=1
  15020. else
  15021. ac_have_decl=0
  15022. fi
  15023. cat >>confdefs.h <<_ACEOF
  15024. #define HAVE_DECL_STRERROR_R $ac_have_decl
  15025. _ACEOF
  15026. for ac_func in strerror_r
  15027. do :
  15028. ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
  15029. if test "x$ac_cv_func_strerror_r" = xyes; then :
  15030. cat >>confdefs.h <<_ACEOF
  15031. #define HAVE_STRERROR_R 1
  15032. _ACEOF
  15033. fi
  15034. done
  15035. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
  15036. $as_echo_n "checking whether strerror_r returns char *... " >&6; }
  15037. if ${ac_cv_func_strerror_r_char_p+:} false; then :
  15038. $as_echo_n "(cached) " >&6
  15039. else
  15040. ac_cv_func_strerror_r_char_p=no
  15041. if test $ac_cv_have_decl_strerror_r = yes; then
  15042. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15043. /* end confdefs.h. */
  15044. $ac_includes_default
  15045. int
  15046. main ()
  15047. {
  15048. char buf[100];
  15049. char x = *strerror_r (0, buf, sizeof buf);
  15050. char *p = strerror_r (0, buf, sizeof buf);
  15051. return !p || x;
  15052. ;
  15053. return 0;
  15054. }
  15055. _ACEOF
  15056. if ac_fn_c_try_compile "$LINENO"; then :
  15057. ac_cv_func_strerror_r_char_p=yes
  15058. fi
  15059. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15060. else
  15061. # strerror_r is not declared. Choose between
  15062. # systems that have relatively inaccessible declarations for the
  15063. # function. BeOS and DEC UNIX 4.0 fall in this category, but the
  15064. # former has a strerror_r that returns char*, while the latter
  15065. # has a strerror_r that returns `int'.
  15066. # This test should segfault on the DEC system.
  15067. if test "$cross_compiling" = yes; then :
  15068. :
  15069. else
  15070. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15071. /* end confdefs.h. */
  15072. $ac_includes_default
  15073. extern char *strerror_r ();
  15074. int
  15075. main ()
  15076. {
  15077. char buf[100];
  15078. char x = *strerror_r (0, buf, sizeof buf);
  15079. return ! isalpha (x);
  15080. ;
  15081. return 0;
  15082. }
  15083. _ACEOF
  15084. if ac_fn_c_try_run "$LINENO"; then :
  15085. ac_cv_func_strerror_r_char_p=yes
  15086. fi
  15087. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15088. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15089. fi
  15090. fi
  15091. fi
  15092. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
  15093. $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
  15094. if test $ac_cv_func_strerror_r_char_p = yes; then
  15095. $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
  15096. fi
  15097. for ac_func in strftime
  15098. do :
  15099. ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
  15100. if test "x$ac_cv_func_strftime" = xyes; then :
  15101. cat >>confdefs.h <<_ACEOF
  15102. #define HAVE_STRFTIME 1
  15103. _ACEOF
  15104. else
  15105. # strftime is in -lintl on SCO UNIX.
  15106. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
  15107. $as_echo_n "checking for strftime in -lintl... " >&6; }
  15108. if ${ac_cv_lib_intl_strftime+:} false; then :
  15109. $as_echo_n "(cached) " >&6
  15110. else
  15111. ac_check_lib_save_LIBS=$LIBS
  15112. LIBS="-lintl $LIBS"
  15113. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15114. /* end confdefs.h. */
  15115. /* Override any GCC internal prototype to avoid an error.
  15116. Use char because int might match the return type of a GCC
  15117. builtin and then its argument prototype would still apply. */
  15118. #ifdef __cplusplus
  15119. extern "C"
  15120. #endif
  15121. char strftime ();
  15122. int
  15123. main ()
  15124. {
  15125. return strftime ();
  15126. ;
  15127. return 0;
  15128. }
  15129. _ACEOF
  15130. if ac_fn_c_try_link "$LINENO"; then :
  15131. ac_cv_lib_intl_strftime=yes
  15132. else
  15133. ac_cv_lib_intl_strftime=no
  15134. fi
  15135. rm -f core conftest.err conftest.$ac_objext \
  15136. conftest$ac_exeext conftest.$ac_ext
  15137. LIBS=$ac_check_lib_save_LIBS
  15138. fi
  15139. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
  15140. $as_echo "$ac_cv_lib_intl_strftime" >&6; }
  15141. if test "x$ac_cv_lib_intl_strftime" = xyes; then :
  15142. $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
  15143. LIBS="-lintl $LIBS"
  15144. fi
  15145. fi
  15146. done
  15147. for ac_func in vprintf
  15148. do :
  15149. ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
  15150. if test "x$ac_cv_func_vprintf" = xyes; then :
  15151. cat >>confdefs.h <<_ACEOF
  15152. #define HAVE_VPRINTF 1
  15153. _ACEOF
  15154. ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
  15155. if test "x$ac_cv_func__doprnt" = xyes; then :
  15156. $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
  15157. fi
  15158. fi
  15159. done
  15160. 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
  15161. do :
  15162. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  15163. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  15164. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  15165. cat >>confdefs.h <<_ACEOF
  15166. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  15167. _ACEOF
  15168. fi
  15169. done
  15170. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-debug" >&5
  15171. $as_echo_n "checking for --enable-debug... " >&6; }
  15172. # Check whether --enable-debug was given.
  15173. if test "${enable_debug+set}" = set; then :
  15174. enableval=$enable_debug;
  15175. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15176. $as_echo "yes" >&6; }
  15177. debug_defs="-DDEBUG -DMCC_DEBUG"
  15178. else
  15179. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15180. $as_echo "no" >&6; }
  15181. debug_defs=""
  15182. fi
  15183. # Used for legacy style packaging where we bundle all of the dependencies.
  15184. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-bundle" >&5
  15185. $as_echo_n "checking for --enable-bundle... " >&6; }
  15186. # Check whether --enable-bundle was given.
  15187. if test "${enable_bundle+set}" = set; then :
  15188. enableval=$enable_bundle;
  15189. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15190. $as_echo "yes" >&6; }
  15191. bundle="1";
  15192. else
  15193. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15194. $as_echo "no" >&6; }
  15195. bundle="";
  15196. fi
  15197. if test "$bundle" = "1"; then
  15198. BUNDLE_TRUE=
  15199. BUNDLE_FALSE='#'
  15200. else
  15201. BUNDLE_TRUE='#'
  15202. BUNDLE_FALSE=
  15203. fi
  15204. # these enables are for optional or experimental features
  15205. if test -z "$enable_pam_passthru" ; then
  15206. enable_pam_passthru=yes # if not set on cmdline, set default
  15207. fi
  15208. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-pam-passthru" >&5
  15209. $as_echo_n "checking for --enable-pam-passthru... " >&6; }
  15210. # Check whether --enable-pam-passthru was given.
  15211. if test "${enable_pam_passthru+set}" = set; then :
  15212. enableval=$enable_pam_passthru;
  15213. fi
  15214. if test "$enable_pam_passthru" = yes ; then
  15215. # check for pam header file used by plugins/pass_passthru/pam_ptimpl.c
  15216. ac_fn_c_check_header_mongrel "$LINENO" "security/pam_appl.h" "ac_cv_header_security_pam_appl_h" "$ac_includes_default"
  15217. if test "x$ac_cv_header_security_pam_appl_h" = xyes; then :
  15218. else
  15219. as_fn_error $? "Missing header file security/pam_appl.h" "$LINENO" 5
  15220. fi
  15221. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15222. $as_echo "yes" >&6; }
  15223. $as_echo "#define ENABLE_PAM_PASSTHRU 1" >>confdefs.h
  15224. else
  15225. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15226. $as_echo "no" >&6; }
  15227. fi
  15228. if test "$enable_pam_passthru" = "yes"; then
  15229. enable_pam_passthru_TRUE=
  15230. enable_pam_passthru_FALSE='#'
  15231. else
  15232. enable_pam_passthru_TRUE='#'
  15233. enable_pam_passthru_FALSE=
  15234. fi
  15235. if test -z "$enable_dna" ; then
  15236. enable_dna=yes # if not set on cmdline, set default
  15237. fi
  15238. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-dna" >&5
  15239. $as_echo_n "checking for --enable-dna... " >&6; }
  15240. # Check whether --enable-dna was given.
  15241. if test "${enable_dna+set}" = set; then :
  15242. enableval=$enable_dna;
  15243. fi
  15244. if test "$enable_dna" = yes ; then
  15245. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15246. $as_echo "yes" >&6; }
  15247. $as_echo "#define ENABLE_DNA 1" >>confdefs.h
  15248. else
  15249. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15250. $as_echo "no" >&6; }
  15251. fi
  15252. if test "$enable_dna" = "yes"; then
  15253. enable_dna_TRUE=
  15254. enable_dna_FALSE='#'
  15255. else
  15256. enable_dna_TRUE='#'
  15257. enable_dna_FALSE=
  15258. fi
  15259. if test -z "$enable_ldapi" ; then
  15260. enable_ldapi=yes # if not set on cmdline, set default
  15261. fi
  15262. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-ldapi" >&5
  15263. $as_echo_n "checking for --enable-ldapi... " >&6; }
  15264. # Check whether --enable-ldapi was given.
  15265. if test "${enable_ldapi+set}" = set; then :
  15266. enableval=$enable_ldapi;
  15267. fi
  15268. if test "$enable_ldapi" = yes ; then
  15269. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15270. $as_echo "yes" >&6; }
  15271. $as_echo "#define ENABLE_LDAPI 1" >>confdefs.h
  15272. else
  15273. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15274. $as_echo "no" >&6; }
  15275. fi
  15276. if test "$enable_ldapi" = "yes"; then
  15277. enable_ldapi_TRUE=
  15278. enable_ldapi_FALSE='#'
  15279. else
  15280. enable_ldapi_TRUE='#'
  15281. enable_ldapi_FALSE=
  15282. fi
  15283. if test -z "$enable_autobind" ; then
  15284. enable_autobind=no # if not set on cmdline, set default
  15285. fi
  15286. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-autobind" >&5
  15287. $as_echo_n "checking for --enable-autobind... " >&6; }
  15288. # Check whether --enable-autobind was given.
  15289. if test "${enable_autobind+set}" = set; then :
  15290. enableval=$enable_autobind;
  15291. fi
  15292. if test "$enable_ldapi" = yes -a "$enable_autobind" = yes ; then
  15293. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15294. $as_echo "yes" >&6; }
  15295. $as_echo "#define ENABLE_AUTOBIND 1" >>confdefs.h
  15296. else
  15297. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15298. $as_echo "no" >&6; }
  15299. fi
  15300. if test "$enable_autobind" = "yes"; then
  15301. enable_autobind_TRUE=
  15302. enable_autobind_FALSE='#'
  15303. else
  15304. enable_autobind_TRUE='#'
  15305. enable_autobind_FALSE=
  15306. fi
  15307. if test -z "$enable_auto_dn_suffix" ; then
  15308. enable_auto_dn_suffix=no # if not set on cmdline, set default
  15309. fi
  15310. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-auto-dn-suffix" >&5
  15311. $as_echo_n "checking for --enable-auto-dn-suffix... " >&6; }
  15312. # Check whether --enable-autobind was given.
  15313. if test "${enable_autobind+set}" = set; then :
  15314. enableval=$enable_autobind;
  15315. fi
  15316. if test "$enable_ldapi" = yes -a "$enable_autobind" = yes -a "$enable_auto_dn_suffix" = "yes"; then
  15317. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15318. $as_echo "yes" >&6; }
  15319. $as_echo "#define ENABLE_AUTO_DN_SUFFIX 1" >>confdefs.h
  15320. else
  15321. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15322. $as_echo "no" >&6; }
  15323. fi
  15324. if test "$enable_auto_dn_suffix" = "yes"; then
  15325. enable_auto_dn_suffix_TRUE=
  15326. enable_auto_dn_suffix_FALSE='#'
  15327. else
  15328. enable_auto_dn_suffix_TRUE='#'
  15329. enable_auto_dn_suffix_FALSE=
  15330. fi
  15331. if test -z "$enable_bitwise" ; then
  15332. enable_bitwise=yes # if not set on cmdline, set default
  15333. fi
  15334. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-bitwise" >&5
  15335. $as_echo_n "checking for --enable-bitwise... " >&6; }
  15336. # Check whether --enable-bitwise was given.
  15337. if test "${enable_bitwise+set}" = set; then :
  15338. enableval=$enable_bitwise;
  15339. fi
  15340. if test "$enable_bitwise" = yes ; then
  15341. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15342. $as_echo "yes" >&6; }
  15343. $as_echo "#define ENABLE_BITWISE 1" >>confdefs.h
  15344. else
  15345. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15346. $as_echo "no" >&6; }
  15347. fi
  15348. if test "$enable_bitwise" = "yes"; then
  15349. enable_bitwise_TRUE=
  15350. enable_bitwise_FALSE='#'
  15351. else
  15352. enable_bitwise_TRUE='#'
  15353. enable_bitwise_FALSE=
  15354. fi
  15355. if test -z "$enable_presence" ; then
  15356. enable_presence=no # if not set on cmdline, set default
  15357. fi
  15358. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-presence" >&5
  15359. $as_echo_n "checking for --enable-presence... " >&6; }
  15360. # Check whether --enable-presence was given.
  15361. if test "${enable_presence+set}" = set; then :
  15362. enableval=$enable_presence;
  15363. fi
  15364. if test "$enable_presence" = yes ; then
  15365. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15366. $as_echo "yes" >&6; }
  15367. $as_echo "#define ENABLE_PRESENCE 1" >>confdefs.h
  15368. else
  15369. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15370. $as_echo "no" >&6; }
  15371. fi
  15372. if test "$enable_presence" = "yes"; then
  15373. enable_presence_TRUE=
  15374. enable_presence_FALSE='#'
  15375. else
  15376. enable_presence_TRUE='#'
  15377. enable_presence_FALSE=
  15378. fi
  15379. if test -z "$enable_acctpolicy" ; then
  15380. enable_acctpolicy=yes # if not set on cmdline, set default
  15381. fi
  15382. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-acctpolicy" >&5
  15383. $as_echo_n "checking for --enable-acctpolicy... " >&6; }
  15384. # Check whether --enable-acctpolicy was given.
  15385. if test "${enable_acctpolicy+set}" = set; then :
  15386. enableval=$enable_acctpolicy;
  15387. fi
  15388. if test "$enable_acctpolicy" = yes ; then
  15389. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15390. $as_echo "yes" >&6; }
  15391. $as_echo "#define ENABLE_ACCTPOLICY 1" >>confdefs.h
  15392. else
  15393. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15394. $as_echo "no" >&6; }
  15395. fi
  15396. if test "$enable_acctpolicy" = "yes"; then
  15397. enable_acctpolicy_TRUE=
  15398. enable_acctpolicy_FALSE='#'
  15399. else
  15400. enable_acctpolicy_TRUE='#'
  15401. enable_acctpolicy_FALSE=
  15402. fi
  15403. if test -z "$enable_posix_winsync" ; then
  15404. enable_posix_winsync=yes # if not set on cmdline, set default
  15405. fi
  15406. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-posix-winsync" >&5
  15407. $as_echo_n "checking for --enable-posix-winsync... " >&6; }
  15408. # Check whether --enable-posix_winsync was given.
  15409. if test "${enable_posix_winsync+set}" = set; then :
  15410. enableval=$enable_posix_winsync;
  15411. fi
  15412. if test "$enable_posix_winsync" = yes ; then
  15413. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15414. $as_echo "yes" >&6; }
  15415. $as_echo "#define ENABLE_POSIX_WINSYNC 1" >>confdefs.h
  15416. else
  15417. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15418. $as_echo "no" >&6; }
  15419. fi
  15420. if test "$enable_posix_winsync" = "yes"; then
  15421. enable_posix_winsync_TRUE=
  15422. enable_posix_winsync_FALSE='#'
  15423. else
  15424. enable_posix_winsync_TRUE='#'
  15425. enable_posix_winsync_FALSE=
  15426. fi
  15427. # the default prefix - override with --prefix or --with-fhs
  15428. # BEGIN COPYRIGHT BLOCK
  15429. # Copyright (C) 2006 Red Hat, Inc.
  15430. # All rights reserved.
  15431. #
  15432. # This program is free software; you can redistribute it and/or
  15433. # modify it under the terms of the GNU General Public License
  15434. # as published by the Free Software Foundation; either version 2
  15435. # of the License, or (at your option) any later version.
  15436. #
  15437. # This program is distributed in the hope that it will be useful,
  15438. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  15439. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15440. # GNU General Public License for more details.
  15441. #
  15442. # You should have received a copy of the GNU General Public License
  15443. # along with this program; if not, write to the Free Software
  15444. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  15445. #
  15446. # END COPYRIGHT BLOCK
  15447. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FHS..." >&5
  15448. $as_echo "$as_me: checking for FHS..." >&6;}
  15449. # check for --with-fhs
  15450. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-fhs" >&5
  15451. $as_echo_n "checking for --with-fhs... " >&6; }
  15452. # Check whether --with-fhs was given.
  15453. if test "${with_fhs+set}" = set; then :
  15454. withval=$with_fhs;
  15455. with_fhs=yes
  15456. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15457. $as_echo "yes" >&6; }
  15458. else
  15459. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15460. $as_echo "no" >&6; }
  15461. fi
  15462. if test "$with_fhs" = "yes"; then
  15463. $as_echo "#define IS_FHS 1" >>confdefs.h
  15464. fi
  15465. # check for --with-fhs-opt
  15466. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-fhs-opt" >&5
  15467. $as_echo_n "checking for --with-fhs-opt... " >&6; }
  15468. # Check whether --with-fhs-opt was given.
  15469. if test "${with_fhs_opt+set}" = set; then :
  15470. withval=$with_fhs_opt;
  15471. with_fhs_opt=yes
  15472. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15473. $as_echo "yes" >&6; }
  15474. else
  15475. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15476. $as_echo "no" >&6; }
  15477. fi
  15478. if test "$with_fhs_opt" = "yes"; then
  15479. $as_echo "#define IS_FHS_OPT 1" >>confdefs.h
  15480. fi
  15481. if test "$with_fhs" = "yes" -a "$with_fhs_opt" = "yes"; then
  15482. as_fn_error $? "Can't set both --with-fhs and --with-fhs-opt. Please only use one of these options." "$LINENO" 5
  15483. fi
  15484. localrundir='/run'
  15485. # installation paths - by default, we store everything
  15486. # under the prefix. The with-fhs option will use /usr,
  15487. # /etc, and /var. The with-fhs-opt option will use the
  15488. # prefix, but it's sysconfdir and localstatedir will be
  15489. # /etc/opt, and /var/opt.
  15490. if test "$with_fhs_opt" = "yes"; then
  15491. # Override sysconfdir and localstatedir if FHS optional
  15492. # package was requested.
  15493. sysconfdir='/etc/opt'
  15494. localstatedir='/var/opt'
  15495. localrundir='/var/opt/run'
  15496. # relative to datadir
  15497. sampledatadir=/data
  15498. # relative to datadir
  15499. scripttemplatedir=/script-templates
  15500. # relative to datadir
  15501. updatedir=/updates
  15502. # relative to libdir
  15503. serverdir=
  15504. # relative to includedir
  15505. serverincdir=
  15506. # relative to libdir
  15507. serverplugindir=/plugins
  15508. # relative to datadir
  15509. infdir=/inf
  15510. # relative to datadir
  15511. mibdir=/mibs
  15512. # location of property/resource files, relative to datadir
  15513. propertydir=/properties
  15514. # relative to libdir
  15515. perldir=/perl
  15516. # relative to libdir
  15517. pythondir=/python
  15518. else
  15519. if test "$with_fhs" = "yes"; then
  15520. ac_default_prefix=/usr
  15521. prefix=$ac_default_prefix
  15522. exec_prefix=$prefix
  15523. sysconfdir='/etc'
  15524. localstatedir='/var'
  15525. localrundir='/run'
  15526. fi
  15527. # relative to datadir
  15528. sampledatadir=/$PACKAGE_NAME/data
  15529. # relative to datadir
  15530. scripttemplatedir=/$PACKAGE_NAME/script-templates
  15531. # relative to datadir
  15532. updatedir=/$PACKAGE_NAME/updates
  15533. # relative to libdir
  15534. serverdir=/$PACKAGE_NAME
  15535. # relative to includedir
  15536. serverincdir=/$PACKAGE_NAME
  15537. # relative to libdir
  15538. serverplugindir=/$PACKAGE_NAME/plugins
  15539. # relative to datadir
  15540. infdir=/$PACKAGE_NAME/inf
  15541. # relative to datadir
  15542. mibdir=/$PACKAGE_NAME/mibs
  15543. # location of property/resource files, relative to datadir
  15544. propertydir=/$PACKAGE_NAME/properties
  15545. # relative to libdir
  15546. perldir=/$PACKAGE_NAME/perl
  15547. # relative to libdir
  15548. pythondir=/$PACKAGE_NAME/python
  15549. fi
  15550. # if mandir is the default value, override it
  15551. # otherwise, the user must have set it - just use it
  15552. if test X"$mandir" = X'${prefix}/man' ; then
  15553. mandir='$(datadir)/man'
  15554. fi
  15555. # Shared paths for all layouts
  15556. # relative to sysconfdir
  15557. configdir=/$PACKAGE_NAME/config
  15558. # relative to sysconfdir
  15559. schemadir=/$PACKAGE_NAME/schema
  15560. # default user, group
  15561. defaultuser=nobody
  15562. defaultgroup=nobody
  15563. if test -z "$with_tmpfiles_d" ; then
  15564. if test -d $sysconfdir/tmpfiles.d ; then
  15565. with_tmpfiles_d='$(sysconfdir)/tmpfiles.d'
  15566. fi
  15567. fi
  15568. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-tmpfiles-d" >&5
  15569. $as_echo_n "checking for --with-tmpfiles-d... " >&6; }
  15570. # Check whether --with-tmpfiles-d was given.
  15571. if test "${with_tmpfiles_d+set}" = set; then :
  15572. withval=$with_tmpfiles_d;
  15573. fi
  15574. if test "$with_tmpfiles_d" = yes ; then
  15575. as_fn_error $? "You must specify --with-tmpfiles-d=/full/path/to/tmpfiles.d directory" "$LINENO" 5
  15576. elif test "$with_tmpfiles_d" = no ; then
  15577. with_tmpfiles_d=
  15578. else
  15579. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tmpfiles_d" >&5
  15580. $as_echo "$with_tmpfiles_d" >&6; }
  15581. fi
  15582. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  15583. if test -n "$ac_tool_prefix"; then
  15584. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  15585. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  15586. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15587. $as_echo_n "checking for $ac_word... " >&6; }
  15588. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  15589. $as_echo_n "(cached) " >&6
  15590. else
  15591. case $PKG_CONFIG in
  15592. [\\/]* | ?:[\\/]*)
  15593. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  15594. ;;
  15595. *)
  15596. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15597. for as_dir in $PATH
  15598. do
  15599. IFS=$as_save_IFS
  15600. test -z "$as_dir" && as_dir=.
  15601. for ac_exec_ext in '' $ac_executable_extensions; do
  15602. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15603. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  15604. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15605. break 2
  15606. fi
  15607. done
  15608. done
  15609. IFS=$as_save_IFS
  15610. ;;
  15611. esac
  15612. fi
  15613. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  15614. if test -n "$PKG_CONFIG"; then
  15615. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  15616. $as_echo "$PKG_CONFIG" >&6; }
  15617. else
  15618. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15619. $as_echo "no" >&6; }
  15620. fi
  15621. fi
  15622. if test -z "$ac_cv_path_PKG_CONFIG"; then
  15623. ac_pt_PKG_CONFIG=$PKG_CONFIG
  15624. # Extract the first word of "pkg-config", so it can be a program name with args.
  15625. set dummy pkg-config; ac_word=$2
  15626. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15627. $as_echo_n "checking for $ac_word... " >&6; }
  15628. if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
  15629. $as_echo_n "(cached) " >&6
  15630. else
  15631. case $ac_pt_PKG_CONFIG in
  15632. [\\/]* | ?:[\\/]*)
  15633. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  15634. ;;
  15635. *)
  15636. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15637. for as_dir in $PATH
  15638. do
  15639. IFS=$as_save_IFS
  15640. test -z "$as_dir" && as_dir=.
  15641. for ac_exec_ext in '' $ac_executable_extensions; do
  15642. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15643. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  15644. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15645. break 2
  15646. fi
  15647. done
  15648. done
  15649. IFS=$as_save_IFS
  15650. ;;
  15651. esac
  15652. fi
  15653. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  15654. if test -n "$ac_pt_PKG_CONFIG"; then
  15655. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  15656. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  15657. else
  15658. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15659. $as_echo "no" >&6; }
  15660. fi
  15661. if test "x$ac_pt_PKG_CONFIG" = x; then
  15662. PKG_CONFIG=""
  15663. else
  15664. case $cross_compiling:$ac_tool_warned in
  15665. yes:)
  15666. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  15667. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  15668. ac_tool_warned=yes ;;
  15669. esac
  15670. PKG_CONFIG=$ac_pt_PKG_CONFIG
  15671. fi
  15672. else
  15673. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  15674. fi
  15675. fi
  15676. if test -n "$PKG_CONFIG"; then
  15677. _pkg_min_version=0.9.0
  15678. { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  15679. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  15680. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  15681. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15682. $as_echo "yes" >&6; }
  15683. else
  15684. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15685. $as_echo "no" >&6; }
  15686. PKG_CONFIG=""
  15687. fi
  15688. fi
  15689. if test -n "$PKG_CONFIG" ; then
  15690. default_systemdsystemunitdir=`$PKG_CONFIG --variable=systemdsystemunitdir systemd`
  15691. default_systemdsystemconfdir=`$PKG_CONFIG --variable=systemdsystemconfdir systemd`
  15692. fi
  15693. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-perldir" >&5
  15694. $as_echo_n "checking for --with-perldir... " >&6; }
  15695. # Check whether --with-perldir was given.
  15696. if test "${with_perldir+set}" = set; then :
  15697. withval=$with_perldir;
  15698. fi
  15699. if test -n "$with_perldir"; then
  15700. if test "$with_perldir" = yes ; then
  15701. as_fn_error $? "You must specify --with-perldir=/full/path/to/perl" "$LINENO" 5
  15702. elif test "$with_perldir" = no ; then
  15703. with_perldir=
  15704. else
  15705. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_perldir" >&5
  15706. $as_echo "$with_perldir" >&6; }
  15707. fi
  15708. else
  15709. with_perldir=
  15710. fi
  15711. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pythondir" >&5
  15712. $as_echo_n "checking for --with-pythondir... " >&6; }
  15713. # Check whether --with-pythondir was given.
  15714. if test "${with_pythondir+set}" = set; then :
  15715. withval=$with_pythondir;
  15716. fi
  15717. if test -n "$with_pythondir"; then
  15718. if test "$with_pythondir" = yes ; then
  15719. as_fn_error $? "You must specify --with-pythondir=/full/path/to/python" "$LINENO" 5
  15720. elif test "$with_pythondir" = no ; then
  15721. with_pythondir=
  15722. else
  15723. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_pythondir" >&5
  15724. $as_echo "$with_pythondir" >&6; }
  15725. fi
  15726. else
  15727. with_pythondir=
  15728. fi
  15729. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-systemdsystemunitdir" >&5
  15730. $as_echo_n "checking for --with-systemdsystemunitdir... " >&6; }
  15731. # Check whether --with-systemdsystemunitdir was given.
  15732. if test "${with_systemdsystemunitdir+set}" = set; then :
  15733. withval=$with_systemdsystemunitdir;
  15734. fi
  15735. if test "$with_systemdsystemunitdir" = yes ; then
  15736. if test -n "$default_systemdsystemunitdir" ; then
  15737. with_systemdsystemunitdir=$default_systemdsystemunitdir
  15738. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_systemdsystemunitdir" >&5
  15739. $as_echo "$with_systemdsystemunitdir" >&6; }
  15740. else
  15741. as_fn_error $? "You must specify --with-systemdsystemconfdir=/full/path/to/systemd/system directory" "$LINENO" 5
  15742. fi
  15743. elif test "$with_systemdsystemunitdir" = no ; then
  15744. with_systemdsystemunitdir=
  15745. else
  15746. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_systemdsystemunitdir" >&5
  15747. $as_echo "$with_systemdsystemunitdir" >&6; }
  15748. fi
  15749. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-systemdsystemconfdir" >&5
  15750. $as_echo_n "checking for --with-systemdsystemconfdir... " >&6; }
  15751. # Check whether --with-systemdsystemconfdir was given.
  15752. if test "${with_systemdsystemconfdir+set}" = set; then :
  15753. withval=$with_systemdsystemconfdir;
  15754. fi
  15755. if test "$with_systemdsystemconfdir" = yes ; then
  15756. if test -n "$default_systemdsystemconfdir" ; then
  15757. with_systemdsystemconfdir=$default_systemdsystemconfdir
  15758. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_systemdsystemconfdir" >&5
  15759. $as_echo "$with_systemdsystemconfdir" >&6; }
  15760. else
  15761. as_fn_error $? "You must specify --with-systemdsystemconfdir=/full/path/to/systemd/system directory" "$LINENO" 5
  15762. fi
  15763. elif test "$with_systemdsystemconfdir" = no ; then
  15764. with_systemdsystemconfdir=
  15765. else
  15766. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_systemdsystemconfdir" >&5
  15767. $as_echo "$with_systemdsystemconfdir" >&6; }
  15768. fi
  15769. if test -n "$with_systemdsystemunitdir" -o -n "$with_systemdsystemconfdir" ; then
  15770. if test -z "$with_systemdgroupname" ; then
  15771. with_systemdgroupname=$PACKAGE_NAME.target
  15772. fi
  15773. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-systemdgroupname" >&5
  15774. $as_echo_n "checking for --with-systemdgroupname... " >&6; }
  15775. # Check whether --with-systemdgroupname was given.
  15776. if test "${with_systemdgroupname+set}" = set; then :
  15777. withval=$with_systemdgroupname;
  15778. fi
  15779. if test "$with_systemdgroupname" = yes ; then
  15780. as_fn_error $? "You must specify --with-systemdgroupname=name.of.group" "$LINENO" 5
  15781. elif test "$with_systemdgroupname" = no ; then
  15782. as_fn_error $? "You must specify --with-systemdgroupname=name.of.group" "$LINENO" 5
  15783. else
  15784. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_systemdgroupname" >&5
  15785. $as_echo "$with_systemdgroupname" >&6; }
  15786. fi
  15787. fi
  15788. # check for --with-instconfigdir
  15789. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-instconfigdir" >&5
  15790. $as_echo_n "checking for --with-instconfigdir... " >&6; }
  15791. # Check whether --with-instconfigdir was given.
  15792. if test "${with_instconfigdir+set}" = set; then :
  15793. withval=$with_instconfigdir;
  15794. if test $withval = yes ; then
  15795. as_fn_error $? "Please specify a full path with --with-instconfigdir" "$LINENO" 5
  15796. fi
  15797. instconfigdir="$withval"
  15798. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
  15799. $as_echo "$withval" >&6; }
  15800. else
  15801. instconfigdir='$(sysconfdir)/$(PACKAGE_NAME)'
  15802. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15803. $as_echo "no" >&6; }
  15804. fi
  15805. # WINNT should be true if building on Windows system not using
  15806. # cygnus, mingw, or the like and using cmd.exe as the shell
  15807. if false; then
  15808. WINNT_TRUE=
  15809. WINNT_FALSE='#'
  15810. else
  15811. WINNT_TRUE='#'
  15812. WINNT_FALSE=
  15813. fi
  15814. # Deal with platform dependent defines
  15815. # initdir is the location for the SysV init scripts - very heavily platform
  15816. # dependent and not specified in fhs or lsb
  15817. # and not used if systemd is used
  15818. initdir='$(sysconfdir)/rc.d'
  15819. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-initddir" >&5
  15820. $as_echo_n "checking for --with-initddir... " >&6; }
  15821. # Check whether --with-initddir was given.
  15822. if test "${with_initddir+set}" = set; then :
  15823. withval=$with_initddir;
  15824. if test "$withval" = yes -o "$withval" = no ; then
  15825. as_fn_error $? "Please specify a full path with --with-initddir" "$LINENO" 5
  15826. fi
  15827. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
  15828. $as_echo "$withval" >&6; }
  15829. else
  15830. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15831. $as_echo "no" >&6; }
  15832. fi
  15833. # on most platforms, we will just use perl from PATH
  15834. # On some platforms, we cannot. Why not just use any old
  15835. # perl? Because of perldap. We use a perldap that is
  15836. # compiled to either 32bit or 64bit, so we must use a native
  15837. # perl binary compiled with the same bitsize. On Solaris
  15838. # and HP-UX, /usr/bin/perl is 32 bit, so we cannot use
  15839. # those with our 64 bit compiled product.
  15840. if test -n "$with_perldir"; then
  15841. perlexec="$with_perldir/perl"
  15842. else
  15843. perlexec='/usr/bin/env perl'
  15844. fi
  15845. # we use stty in perl scripts to disable password echo
  15846. # this doesn't work unless the full absolute path of the
  15847. # stty command is used e.g. system("stty -echo") does not
  15848. # work but system("/bin/stty -echo") does work
  15849. # since the path of stty may not be the same on all
  15850. # platforms, we set the default here to /bin/stty and
  15851. # allow that value to be overridden in the platform
  15852. # specific section below
  15853. sttyexec=/bin/stty
  15854. case $host in
  15855. *-*-linux*)
  15856. $as_echo "#define XP_UNIX 1" >>confdefs.h
  15857. $as_echo "#define Linux 1" >>confdefs.h
  15858. $as_echo "#define LINUX 1" >>confdefs.h
  15859. $as_echo "#define LINUX2_0 1" >>confdefs.h
  15860. $as_echo "#define LINUX2_2 1" >>confdefs.h
  15861. $as_echo "#define LINUX2_4 1" >>confdefs.h
  15862. $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
  15863. platform="linux"
  15864. initdir='$(sysconfdir)/rc.d/init.d'
  15865. # do arch specific linux stuff here
  15866. case $host in
  15867. i*86-*-linux*)
  15868. $as_echo "#define CPU_x86 /**/" >>confdefs.h
  15869. $as_echo "#define ATOMIC_64BIT_OPERATIONS 1" >>confdefs.h
  15870. ;;
  15871. x86_64-*-linux*)
  15872. $as_echo "#define CPU_x86_64 /**/" >>confdefs.h
  15873. $as_echo "#define ATOMIC_64BIT_OPERATIONS 1" >>confdefs.h
  15874. ;;
  15875. aarch64-*-linux*)
  15876. $as_echo "#define CPU_arm /**/" >>confdefs.h
  15877. ;;
  15878. arm*-linux*)
  15879. $as_echo "#define CPU_arm /**/" >>confdefs.h
  15880. ;;
  15881. esac
  15882. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC provided 64-bit atomic bool cas function ..." >&5
  15883. $as_echo_n "checking for GCC provided 64-bit atomic bool cas function ...... " >&6; }
  15884. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15885. /* end confdefs.h. */
  15886. int
  15887. main ()
  15888. {
  15889. long long ptrval = 0, val = 0, newval = 1; (void)__sync_bool_compare_and_swap_8(&ptrval, val, newval);
  15890. ;
  15891. return 0;
  15892. }
  15893. _ACEOF
  15894. if ac_fn_c_try_link "$LINENO"; then :
  15895. $as_echo "#define HAVE_64BIT_ATOMIC_CAS_FUNC 1" >>confdefs.h
  15896. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15897. $as_echo "yes" >&6; }
  15898. else
  15899. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15900. $as_echo "no" >&6; }
  15901. fi
  15902. rm -f core conftest.err conftest.$ac_objext \
  15903. conftest$ac_exeext conftest.$ac_ext
  15904. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC provided 64-bit atomic ops functions ..." >&5
  15905. $as_echo_n "checking for GCC provided 64-bit atomic ops functions ...... " >&6; }
  15906. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15907. /* end confdefs.h. */
  15908. int
  15909. main ()
  15910. {
  15911. long long ptrval = 0, val = 0; (void)__sync_add_and_fetch_8(&ptrval, val);
  15912. ;
  15913. return 0;
  15914. }
  15915. _ACEOF
  15916. if ac_fn_c_try_link "$LINENO"; then :
  15917. $as_echo "#define HAVE_64BIT_ATOMIC_OP_FUNCS 1" >>confdefs.h
  15918. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15919. $as_echo "yes" >&6; }
  15920. else
  15921. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15922. $as_echo "no" >&6; }
  15923. fi
  15924. rm -f core conftest.err conftest.$ac_objext \
  15925. conftest$ac_exeext conftest.$ac_ext
  15926. # some programs use the native thread library directly
  15927. THREADLIB=-lpthread
  15928. THREADLIB=$THREADLIB
  15929. LIBCRYPT=-lcrypt
  15930. LIBCRYPT=$LIBCRYPT
  15931. $as_echo "#define USE_POSIX_RWLOCKS 1" >>confdefs.h
  15932. ;;
  15933. ia64-hp-hpux*)
  15934. $as_echo "#define XP_UNIX 1" >>confdefs.h
  15935. $as_echo "#define hpux 1" >>confdefs.h
  15936. $as_echo "#define HPUX 1" >>confdefs.h
  15937. $as_echo "#define HPUX11 1" >>confdefs.h
  15938. $as_echo "#define HPUX11_23 1" >>confdefs.h
  15939. $as_echo "#define CPU_ia64 /**/" >>confdefs.h
  15940. $as_echo "#define OS_hpux 1" >>confdefs.h
  15941. $as_echo "#define _POSIX_C_SOURCE 199506L" >>confdefs.h
  15942. $as_echo "#define _HPUX_SOURCE 1" >>confdefs.h
  15943. $as_echo "#define _INCLUDE_STDC__SOURCE_199901 1" >>confdefs.h
  15944. # assume 64 bit
  15945. perlexec='/opt/perl_64/bin/perl'
  15946. platform="hpux"
  15947. initconfigdir="/$PACKAGE_NAME/config"
  15948. # HPUX doesn't use /etc for this
  15949. initdir=/init.d
  15950. ;;
  15951. hppa*-hp-hpux*)
  15952. $as_echo "#define XP_UNIX 1" >>confdefs.h
  15953. $as_echo "#define hpux 1" >>confdefs.h
  15954. $as_echo "#define HPUX 1" >>confdefs.h
  15955. $as_echo "#define HPUX11 1" >>confdefs.h
  15956. $as_echo "#define HPUX11_11 1" >>confdefs.h
  15957. $as_echo "#define CPU_hppa /**/" >>confdefs.h
  15958. $as_echo "#define OS_hpux 1" >>confdefs.h
  15959. $as_echo "#define _POSIX_C_SOURCE 199506L" >>confdefs.h
  15960. $as_echo "#define _HPUX_SOURCE 1" >>confdefs.h
  15961. $as_echo "#define _INCLUDE_STDC__SOURCE_199901 1" >>confdefs.h
  15962. $as_echo "#define ATOMIC_64BIT_OPERATIONS 1" >>confdefs.h
  15963. # assume 64 bit
  15964. initconfigdir="/$PACKAGE_NAME/config"
  15965. perlexec='/opt/perl_64/bin/perl'
  15966. platform="hpux"
  15967. # HPUX doesn't use /etc for this
  15968. initdir=/init.d
  15969. ;;
  15970. *-*-solaris*)
  15971. $as_echo "#define XP_UNIX 1" >>confdefs.h
  15972. $as_echo "#define SVR4 1" >>confdefs.h
  15973. $as_echo "#define __svr4 1" >>confdefs.h
  15974. $as_echo "#define __svr4__ 1" >>confdefs.h
  15975. $as_echo "#define _SVID_GETTOD 1" >>confdefs.h
  15976. $as_echo "#define SOLARIS 1" >>confdefs.h
  15977. $as_echo "#define OS_solaris 1" >>confdefs.h
  15978. $as_echo "#define sunos5 1" >>confdefs.h
  15979. $as_echo "#define OSVERSION 509" >>confdefs.h
  15980. $as_echo "#define _REENTRANT 1" >>confdefs.h
  15981. $as_echo "#define NO_DOMAINNAME 1" >>confdefs.h
  15982. LIBSOCKET=-lsocket
  15983. LIBSOCKET=$LIBSOCKET
  15984. LIBNSL=-lnsl
  15985. LIBNSL=$LIBNSL
  15986. LIBDL=-ldl
  15987. LIBDL=$LIBDL
  15988. LIBCSTD=-lCstd
  15989. LIBCSTD=$LIBCSTD
  15990. LIBCRUN=-lCrun
  15991. LIBCRUN=$LIBCRUN
  15992. platform="solaris"
  15993. initdir='$(sysconfdir)/init.d'
  15994. case $host in
  15995. i?86-*-solaris2.1[0-9]*)
  15996. $as_echo "#define HAVE_GETPEERUCRED 1" >>confdefs.h
  15997. ;;
  15998. sparc-*-solaris*)
  15999. $as_echo "#define ATOMIC_64BIT_OPERATIONS 1" >>confdefs.h
  16000. $as_echo "#define CPU_sparc /**/" >>confdefs.h
  16001. TARGET='SPARC'
  16002. ;;
  16003. esac
  16004. ;;
  16005. *)
  16006. platform=""
  16007. ;;
  16008. esac
  16009. # cmd line overrides default setting above
  16010. if test -n "$with_initddir" ; then
  16011. initdir="$with_initddir"
  16012. fi
  16013. # sysv init scripts not used when systemd is used
  16014. # set default initconfigdir if not already set
  16015. # value will be set so as to be relative to $(sysconfdir)
  16016. if test -z "$initconfigdir" ; then
  16017. if test -d /etc/sysconfig ; then
  16018. initconfigdir=/sysconfig
  16019. elif test -d /etc/default ; then
  16020. initconfigdir=/default
  16021. else
  16022. initconfigdir="/$PACKAGE_NAME/config"
  16023. fi
  16024. fi
  16025. if test "$platform" = "hpux"; then
  16026. HPUX_TRUE=
  16027. HPUX_FALSE='#'
  16028. else
  16029. HPUX_TRUE='#'
  16030. HPUX_FALSE=
  16031. fi
  16032. if test "$platform" = "solaris"; then
  16033. SOLARIS_TRUE=
  16034. SOLARIS_FALSE='#'
  16035. else
  16036. SOLARIS_TRUE='#'
  16037. SOLARIS_FALSE=
  16038. fi
  16039. if test -n "$with_systemdsystemunitdir" -o -n "$with_systemdsystemconfdir"; then
  16040. SYSTEMD_TRUE=
  16041. SYSTEMD_FALSE='#'
  16042. else
  16043. SYSTEMD_TRUE='#'
  16044. SYSTEMD_FALSE=
  16045. fi
  16046. # Check for library dependencies
  16047. # BEGIN COPYRIGHT BLOCK
  16048. # Copyright (C) 2007 Red Hat, Inc.
  16049. # All rights reserved.
  16050. #
  16051. # This program is free software; you can redistribute it and/or
  16052. # modify it under the terms of the GNU General Public License
  16053. # as published by the Free Software Foundation; either version 2
  16054. # of the License, or (at your option) any later version.
  16055. #
  16056. # This program is distributed in the hope that it will be useful,
  16057. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  16058. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16059. # GNU General Public License for more details.
  16060. #
  16061. # You should have received a copy of the GNU General Public License
  16062. # along with this program; if not, write to the Free Software
  16063. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  16064. #
  16065. # END COPYRIGHT BLOCK
  16066. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NSPR..." >&5
  16067. $as_echo "$as_me: checking for NSPR..." >&6;}
  16068. # check for --with-nspr
  16069. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-nspr" >&5
  16070. $as_echo_n "checking for --with-nspr... " >&6; }
  16071. # Check whether --with-nspr was given.
  16072. if test "${with_nspr+set}" = set; then :
  16073. withval=$with_nspr;
  16074. if test "$withval" = "yes"
  16075. then
  16076. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16077. $as_echo "yes" >&6; }
  16078. elif test "$withval" = "no"
  16079. then
  16080. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16081. $as_echo "no" >&6; }
  16082. as_fn_error $? "NSPR is required." "$LINENO" 5
  16083. elif test -e "$withval"/include/nspr.h -a -d "$withval"/lib
  16084. then
  16085. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16086. $as_echo "using $withval" >&6; }
  16087. NSPRDIR=$withval
  16088. nspr_inc="-I$NSPRDIR/include"
  16089. nspr_lib="-L$NSPRDIR/lib"
  16090. nspr_libdir="$NSPRDIR/lib"
  16091. else
  16092. echo
  16093. as_fn_error $? "$withval not found" "$LINENO" 5
  16094. fi
  16095. else
  16096. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16097. $as_echo "yes" >&6; }
  16098. fi
  16099. # check for --with-nspr-inc
  16100. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-nspr-inc" >&5
  16101. $as_echo_n "checking for --with-nspr-inc... " >&6; }
  16102. # Check whether --with-nspr-inc was given.
  16103. if test "${with_nspr_inc+set}" = set; then :
  16104. withval=$with_nspr_inc;
  16105. if test -e "$withval"/nspr.h
  16106. then
  16107. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16108. $as_echo "using $withval" >&6; }
  16109. nspr_inc="-I$withval"
  16110. else
  16111. echo
  16112. as_fn_error $? "$withval not found" "$LINENO" 5
  16113. fi
  16114. else
  16115. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16116. $as_echo "no" >&6; }
  16117. fi
  16118. # check for --with-nspr-lib
  16119. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-nspr-lib" >&5
  16120. $as_echo_n "checking for --with-nspr-lib... " >&6; }
  16121. # Check whether --with-nspr-lib was given.
  16122. if test "${with_nspr_lib+set}" = set; then :
  16123. withval=$with_nspr_lib;
  16124. if test -d "$withval"
  16125. then
  16126. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16127. $as_echo "using $withval" >&6; }
  16128. nspr_lib="-L$withval"
  16129. nspr_libdir="$withval"
  16130. else
  16131. echo
  16132. as_fn_error $? "$withval not found" "$LINENO" 5
  16133. fi
  16134. else
  16135. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16136. $as_echo "no" >&6; }
  16137. fi
  16138. # if NSPR is not found yet, try pkg-config
  16139. # last resort
  16140. if test -z "$nspr_inc" -o -z "$nspr_lib" -o -z "$nspr_libdir"; then
  16141. # Extract the first word of "pkg-config", so it can be a program name with args.
  16142. set dummy pkg-config; ac_word=$2
  16143. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16144. $as_echo_n "checking for $ac_word... " >&6; }
  16145. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  16146. $as_echo_n "(cached) " >&6
  16147. else
  16148. case $PKG_CONFIG in
  16149. [\\/]* | ?:[\\/]*)
  16150. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  16151. ;;
  16152. *)
  16153. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16154. for as_dir in $PATH
  16155. do
  16156. IFS=$as_save_IFS
  16157. test -z "$as_dir" && as_dir=.
  16158. for ac_exec_ext in '' $ac_executable_extensions; do
  16159. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16160. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  16161. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16162. break 2
  16163. fi
  16164. done
  16165. done
  16166. IFS=$as_save_IFS
  16167. ;;
  16168. esac
  16169. fi
  16170. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  16171. if test -n "$PKG_CONFIG"; then
  16172. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  16173. $as_echo "$PKG_CONFIG" >&6; }
  16174. else
  16175. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16176. $as_echo "no" >&6; }
  16177. fi
  16178. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nspr with pkg-config" >&5
  16179. $as_echo_n "checking for nspr with pkg-config... " >&6; }
  16180. if test -n "$PKG_CONFIG"; then
  16181. if $PKG_CONFIG --exists nspr; then
  16182. nspr_inc=`$PKG_CONFIG --cflags-only-I nspr`
  16183. nspr_lib=`$PKG_CONFIG --libs-only-L nspr`
  16184. nspr_libdir=`$PKG_CONFIG --libs-only-L nspr | sed -e s/-L// | sed -e s/\ .*$//`
  16185. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using system NSPR" >&5
  16186. $as_echo "using system NSPR" >&6; }
  16187. elif $PKG_CONFIG --exists dirsec-nspr; then
  16188. nspr_inc=`$PKG_CONFIG --cflags-only-I dirsec-nspr`
  16189. nspr_lib=`$PKG_CONFIG --libs-only-L dirsec-nspr`
  16190. nspr_libdir=`$PKG_CONFIG --libs-only-L dirsec-nspr | sed -e s/-L// | sed -e s/\ .*$//`
  16191. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using system dirsec NSPR" >&5
  16192. $as_echo "using system dirsec NSPR" >&6; }
  16193. else
  16194. as_fn_error $? "NSPR not found, specify with --with-nspr." "$LINENO" 5
  16195. fi
  16196. fi
  16197. fi
  16198. # BEGIN COPYRIGHT BLOCK
  16199. # Copyright (C) 2007 Red Hat, Inc.
  16200. # All rights reserved.
  16201. #
  16202. # This program is free software; you can redistribute it and/or
  16203. # modify it under the terms of the GNU General Public License
  16204. # as published by the Free Software Foundation; either version 2
  16205. # of the License, or (at your option) any later version.
  16206. #
  16207. # This program is distributed in the hope that it will be useful,
  16208. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  16209. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16210. # GNU General Public License for more details.
  16211. #
  16212. # You should have received a copy of the GNU General Public License
  16213. # along with this program; if not, write to the Free Software
  16214. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  16215. #
  16216. # END COPYRIGHT BLOCK
  16217. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NSS..." >&5
  16218. $as_echo "$as_me: checking for NSS..." >&6;}
  16219. # check for --with-nss
  16220. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-nss" >&5
  16221. $as_echo_n "checking for --with-nss... " >&6; }
  16222. # Check whether --with-nss was given.
  16223. if test "${with_nss+set}" = set; then :
  16224. withval=$with_nss;
  16225. if test "$withval" = "yes"
  16226. then
  16227. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16228. $as_echo "yes" >&6; }
  16229. elif test "$withval" = "no"
  16230. then
  16231. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16232. $as_echo "no" >&6; }
  16233. as_fn_error $? "NSS is required." "$LINENO" 5
  16234. elif test -e "$withval"/include/nss.h -a -d "$withval"/lib
  16235. then
  16236. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16237. $as_echo "using $withval" >&6; }
  16238. NSSDIR=$withval
  16239. nss_inc="-I$NSSDIR/include"
  16240. nss_lib="-L$NSSDIR/lib"
  16241. nss_libdir="$NSSDIR/lib"
  16242. else
  16243. echo
  16244. as_fn_error $? "$withval not found" "$LINENO" 5
  16245. fi
  16246. else
  16247. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16248. $as_echo "yes" >&6; }
  16249. fi
  16250. # check for --with-nss-inc
  16251. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-nss-inc" >&5
  16252. $as_echo_n "checking for --with-nss-inc... " >&6; }
  16253. # Check whether --with-nss-inc was given.
  16254. if test "${with_nss_inc+set}" = set; then :
  16255. withval=$with_nss_inc;
  16256. if test -e "$withval"/nss.h
  16257. then
  16258. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16259. $as_echo "using $withval" >&6; }
  16260. nss_inc="-I$withval"
  16261. else
  16262. echo
  16263. as_fn_error $? "$withval not found" "$LINENO" 5
  16264. fi
  16265. else
  16266. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16267. $as_echo "no" >&6; }
  16268. fi
  16269. # check for --with-nss-lib
  16270. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-nss-lib" >&5
  16271. $as_echo_n "checking for --with-nss-lib... " >&6; }
  16272. # Check whether --with-nss-lib was given.
  16273. if test "${with_nss_lib+set}" = set; then :
  16274. withval=$with_nss_lib;
  16275. if test -d "$withval"
  16276. then
  16277. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16278. $as_echo "using $withval" >&6; }
  16279. nss_lib="-L$withval"
  16280. nss_libdir="$withval"
  16281. else
  16282. echo
  16283. as_fn_error $? "$withval not found" "$LINENO" 5
  16284. fi
  16285. else
  16286. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16287. $as_echo "no" >&6; }
  16288. fi
  16289. # if NSS is not found yet, try pkg-config
  16290. # last resort
  16291. if test -z "$nss_inc" -o -z "$nss_lib" -o -z "$nss_libdir"; then
  16292. # Extract the first word of "pkg-config", so it can be a program name with args.
  16293. set dummy pkg-config; ac_word=$2
  16294. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16295. $as_echo_n "checking for $ac_word... " >&6; }
  16296. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  16297. $as_echo_n "(cached) " >&6
  16298. else
  16299. case $PKG_CONFIG in
  16300. [\\/]* | ?:[\\/]*)
  16301. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  16302. ;;
  16303. *)
  16304. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16305. for as_dir in $PATH
  16306. do
  16307. IFS=$as_save_IFS
  16308. test -z "$as_dir" && as_dir=.
  16309. for ac_exec_ext in '' $ac_executable_extensions; do
  16310. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16311. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  16312. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16313. break 2
  16314. fi
  16315. done
  16316. done
  16317. IFS=$as_save_IFS
  16318. ;;
  16319. esac
  16320. fi
  16321. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  16322. if test -n "$PKG_CONFIG"; then
  16323. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  16324. $as_echo "$PKG_CONFIG" >&6; }
  16325. else
  16326. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16327. $as_echo "no" >&6; }
  16328. fi
  16329. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nss with pkg-config" >&5
  16330. $as_echo_n "checking for nss with pkg-config... " >&6; }
  16331. if test -n "$PKG_CONFIG"; then
  16332. if $PKG_CONFIG --exists nss; then
  16333. nss_inc=`$PKG_CONFIG --cflags-only-I nss`
  16334. nss_lib=`$PKG_CONFIG --libs-only-L nss`
  16335. nss_libdir=`$PKG_CONFIG --libs-only-L nss | sed -e s/-L// | sed -e s/\ .*$//`
  16336. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using system NSS" >&5
  16337. $as_echo "using system NSS" >&6; }
  16338. elif $PKG_CONFIG --exists dirsec-nss; then
  16339. nss_inc=`$PKG_CONFIG --cflags-only-I dirsec-nss`
  16340. nss_lib=`$PKG_CONFIG --libs-only-L dirsec-nss`
  16341. nss_libdir=`$PKG_CONFIG --libs-only-L dirsec-nss | sed -e s/-L// | sed -e s/\ .*$//`
  16342. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using system dirsec NSS" >&5
  16343. $as_echo "using system dirsec NSS" >&6; }
  16344. else
  16345. as_fn_error $? "NSS not found, specify with --with-nss." "$LINENO" 5
  16346. fi
  16347. fi
  16348. fi
  16349. # BEGIN COPYRIGHT BLOCK
  16350. # Copyright (C) 2009 Red Hat, Inc.
  16351. # All rights reserved.
  16352. #
  16353. # This program is free software; you can redistribute it and/or
  16354. # modify it under the terms of the GNU General Public License
  16355. # as published by the Free Software Foundation; either version 2
  16356. # of the License, or (at your option) any later version.
  16357. #
  16358. # This program is distributed in the hope that it will be useful,
  16359. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  16360. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16361. # GNU General Public License for more details.
  16362. #
  16363. # You should have received a copy of the GNU General Public License
  16364. # along with this program; if not, write to the Free Software
  16365. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  16366. #
  16367. # END COPYRIGHT BLOCK
  16368. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenLDAP..." >&5
  16369. $as_echo "$as_me: checking for OpenLDAP..." >&6;}
  16370. # check for --with-openldap
  16371. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-openldap" >&5
  16372. $as_echo_n "checking for --with-openldap... " >&6; }
  16373. # Check whether --with-openldap was given.
  16374. if test "${with_openldap+set}" = set; then :
  16375. withval=$with_openldap;
  16376. if test "$withval" = yes
  16377. then
  16378. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using system OpenLDAP" >&5
  16379. $as_echo "using system OpenLDAP" >&6; }
  16380. elif test "$withval" = no
  16381. then
  16382. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16383. $as_echo "no" >&6; }
  16384. elif test -e "$withval"/include/ldap.h -a -d "$withval"/lib
  16385. then
  16386. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16387. $as_echo "using $withval" >&6; }
  16388. OPENLDAPDIR=$withval
  16389. openldap_incdir="$OPENLDAPDIR/include"
  16390. openldap_inc="-I$openldap_incdir"
  16391. openldap_lib="-L$OPENLDAPDIR/lib"
  16392. openldap_libdir="$OPENLDAPDIR/lib"
  16393. openldap_bindir="$OPENLDAPDIR/bin"
  16394. with_openldap=yes
  16395. else
  16396. echo
  16397. as_fn_error $? "$withval not found" "$LINENO" 5
  16398. fi
  16399. else
  16400. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16401. $as_echo "no" >&6; }
  16402. fi
  16403. # check for --with-openldap-inc
  16404. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-openldap-inc" >&5
  16405. $as_echo_n "checking for --with-openldap-inc... " >&6; }
  16406. # Check whether --with-openldap-inc was given.
  16407. if test "${with_openldap_inc+set}" = set; then :
  16408. withval=$with_openldap_inc;
  16409. if test -e "$withval"/ldap.h
  16410. then
  16411. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16412. $as_echo "using $withval" >&6; }
  16413. openldap_incdir="$withval"
  16414. openldap_inc="-I$withval"
  16415. with_openldap=yes
  16416. else
  16417. echo
  16418. as_fn_error $? "$withval not found" "$LINENO" 5
  16419. fi
  16420. else
  16421. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16422. $as_echo "no" >&6; }
  16423. fi
  16424. # check for --with-openldap-lib
  16425. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-openldap-lib" >&5
  16426. $as_echo_n "checking for --with-openldap-lib... " >&6; }
  16427. # Check whether --with-openldap-lib was given.
  16428. if test "${with_openldap_lib+set}" = set; then :
  16429. withval=$with_openldap_lib;
  16430. if test -d "$withval"
  16431. then
  16432. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16433. $as_echo "using $withval" >&6; }
  16434. openldap_lib="-L$withval"
  16435. openldap_libdir="$withval"
  16436. with_openldap=yes
  16437. else
  16438. echo
  16439. as_fn_error $? "$withval not found" "$LINENO" 5
  16440. fi
  16441. else
  16442. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16443. $as_echo "no" >&6; }
  16444. fi
  16445. # check for --with-openldap-bin
  16446. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-openldap-bin" >&5
  16447. $as_echo_n "checking for --with-openldap-bin... " >&6; }
  16448. # Check whether --with-openldap-bin was given.
  16449. if test "${with_openldap_bin+set}" = set; then :
  16450. withval=$with_openldap_bin;
  16451. if test -d "$withval"
  16452. then
  16453. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16454. $as_echo "using $withval" >&6; }
  16455. openldap_bindir="$withval"
  16456. with_openldap=yes
  16457. else
  16458. echo
  16459. as_fn_error $? "$withval not found" "$LINENO" 5
  16460. fi
  16461. else
  16462. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16463. $as_echo "no" >&6; }
  16464. fi
  16465. # if OPENLDAP is not found yet, try pkg-config
  16466. if test "$with_openldap" = yes ; then # user wants to use openldap, but didn't specify paths
  16467. if test -z "$openldap_inc" -o -z "$openldap_lib" -o -z "$openldap_libdir" -o -z "$openldap_bindir"; then
  16468. # Extract the first word of "pkg-config", so it can be a program name with args.
  16469. set dummy pkg-config; ac_word=$2
  16470. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16471. $as_echo_n "checking for $ac_word... " >&6; }
  16472. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  16473. $as_echo_n "(cached) " >&6
  16474. else
  16475. case $PKG_CONFIG in
  16476. [\\/]* | ?:[\\/]*)
  16477. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  16478. ;;
  16479. *)
  16480. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16481. for as_dir in $PATH
  16482. do
  16483. IFS=$as_save_IFS
  16484. test -z "$as_dir" && as_dir=.
  16485. for ac_exec_ext in '' $ac_executable_extensions; do
  16486. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16487. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  16488. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16489. break 2
  16490. fi
  16491. done
  16492. done
  16493. IFS=$as_save_IFS
  16494. ;;
  16495. esac
  16496. fi
  16497. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  16498. if test -n "$PKG_CONFIG"; then
  16499. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  16500. $as_echo "$PKG_CONFIG" >&6; }
  16501. else
  16502. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16503. $as_echo "no" >&6; }
  16504. fi
  16505. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenLDAP with pkg-config" >&5
  16506. $as_echo_n "checking for OpenLDAP with pkg-config... " >&6; }
  16507. if test -n "$PKG_CONFIG" && $PKG_CONFIG --exists openldap; then
  16508. openldap_inc=`$PKG_CONFIG --cflags-only-I openldap`
  16509. openldap_lib=`$PKG_CONFIG --libs-only-L openldap`
  16510. openldap_libdir=`$PKG_CONFIG --libs-only-L openldap | sed -e s/-L// | sed -e s/\ .*$//`
  16511. openldap_bindir=`$PKG_CONFIG --variable=bindir openldap`
  16512. openldap_incdir=`$PKG_CONFIG --variable=includedir openldap`
  16513. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using system OpenLDAP from pkg-config" >&5
  16514. $as_echo "using system OpenLDAP from pkg-config" >&6; }
  16515. else
  16516. openldap_incdir="/usr/include"
  16517. openldap_inc="-I$openldap_incdir"
  16518. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no OpenLDAP pkg-config files" >&5
  16519. $as_echo "no OpenLDAP pkg-config files" >&6; }
  16520. fi
  16521. fi
  16522. fi
  16523. if test "$with_openldap" = yes ; then
  16524. save_cppflags="$CPPFLAGS"
  16525. CPPFLAGS="$openldap_inc $nss_inc $nspr_inc"
  16526. ac_fn_c_check_header_mongrel "$LINENO" "ldap_features.h" "ac_cv_header_ldap_features_h" "$ac_includes_default"
  16527. if test "x$ac_cv_header_ldap_features_h" = xyes; then :
  16528. else
  16529. as_fn_error $? "specified with-openldap but ldap_features.h not found" "$LINENO" 5
  16530. fi
  16531. ol_ver_maj=`grep LDAP_VENDOR_VERSION_MAJOR $openldap_incdir/ldap_features.h | awk '{print $3}'`
  16532. ol_ver_min=`grep LDAP_VENDOR_VERSION_MINOR $openldap_incdir/ldap_features.h | awk '{print $3}'`
  16533. ol_ver_pat=`grep LDAP_VENDOR_VERSION_PATCH $openldap_incdir/ldap_features.h | awk '{print $3}'`
  16534. ol_libver="-${ol_ver_maj}.${ol_ver_min}"
  16535. save_ldflags="$LDFLAGS"
  16536. LDFLAGS="$openldap_lib $LDFLAGS"
  16537. as_ac_Lib=`$as_echo "ac_cv_lib_ldap$ol_libver''_ldap_initialize" | $as_tr_sh`
  16538. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_initialize in -lldap$ol_libver" >&5
  16539. $as_echo_n "checking for ldap_initialize in -lldap$ol_libver... " >&6; }
  16540. if eval \${$as_ac_Lib+:} false; then :
  16541. $as_echo_n "(cached) " >&6
  16542. else
  16543. ac_check_lib_save_LIBS=$LIBS
  16544. LIBS="-lldap$ol_libver $LIBS"
  16545. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16546. /* end confdefs.h. */
  16547. /* Override any GCC internal prototype to avoid an error.
  16548. Use char because int might match the return type of a GCC
  16549. builtin and then its argument prototype would still apply. */
  16550. #ifdef __cplusplus
  16551. extern "C"
  16552. #endif
  16553. char ldap_initialize ();
  16554. int
  16555. main ()
  16556. {
  16557. return ldap_initialize ();
  16558. ;
  16559. return 0;
  16560. }
  16561. _ACEOF
  16562. if ac_fn_c_try_link "$LINENO"; then :
  16563. eval "$as_ac_Lib=yes"
  16564. else
  16565. eval "$as_ac_Lib=no"
  16566. fi
  16567. rm -f core conftest.err conftest.$ac_objext \
  16568. conftest$ac_exeext conftest.$ac_ext
  16569. LIBS=$ac_check_lib_save_LIBS
  16570. fi
  16571. eval ac_res=\$$as_ac_Lib
  16572. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  16573. $as_echo "$ac_res" >&6; }
  16574. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  16575. have_ldap_lib=1
  16576. fi
  16577. if test -z "$have_ldap_lib" ; then
  16578. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_initialize in -lldap" >&5
  16579. $as_echo_n "checking for ldap_initialize in -lldap... " >&6; }
  16580. if ${ac_cv_lib_ldap_ldap_initialize+:} false; then :
  16581. $as_echo_n "(cached) " >&6
  16582. else
  16583. ac_check_lib_save_LIBS=$LIBS
  16584. LIBS="-lldap $LIBS"
  16585. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16586. /* end confdefs.h. */
  16587. /* Override any GCC internal prototype to avoid an error.
  16588. Use char because int might match the return type of a GCC
  16589. builtin and then its argument prototype would still apply. */
  16590. #ifdef __cplusplus
  16591. extern "C"
  16592. #endif
  16593. char ldap_initialize ();
  16594. int
  16595. main ()
  16596. {
  16597. return ldap_initialize ();
  16598. ;
  16599. return 0;
  16600. }
  16601. _ACEOF
  16602. if ac_fn_c_try_link "$LINENO"; then :
  16603. ac_cv_lib_ldap_ldap_initialize=yes
  16604. else
  16605. ac_cv_lib_ldap_ldap_initialize=no
  16606. fi
  16607. rm -f core conftest.err conftest.$ac_objext \
  16608. conftest$ac_exeext conftest.$ac_ext
  16609. LIBS=$ac_check_lib_save_LIBS
  16610. fi
  16611. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_ldap_initialize" >&5
  16612. $as_echo "$ac_cv_lib_ldap_ldap_initialize" >&6; }
  16613. if test "x$ac_cv_lib_ldap_ldap_initialize" = xyes; then :
  16614. unset ol_libver
  16615. else
  16616. as_fn_error $? "specified with-openldap but libldap not found" "$LINENO" 5
  16617. fi
  16618. fi
  16619. as_ac_Lib=`$as_echo "ac_cv_lib_ldap$ol_libver''_ldap_url_parse_ext" | $as_tr_sh`
  16620. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_url_parse_ext in -lldap$ol_libver" >&5
  16621. $as_echo_n "checking for ldap_url_parse_ext in -lldap$ol_libver... " >&6; }
  16622. if eval \${$as_ac_Lib+:} false; then :
  16623. $as_echo_n "(cached) " >&6
  16624. else
  16625. ac_check_lib_save_LIBS=$LIBS
  16626. LIBS="-lldap$ol_libver $LIBS"
  16627. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16628. /* end confdefs.h. */
  16629. /* Override any GCC internal prototype to avoid an error.
  16630. Use char because int might match the return type of a GCC
  16631. builtin and then its argument prototype would still apply. */
  16632. #ifdef __cplusplus
  16633. extern "C"
  16634. #endif
  16635. char ldap_url_parse_ext ();
  16636. int
  16637. main ()
  16638. {
  16639. return ldap_url_parse_ext ();
  16640. ;
  16641. return 0;
  16642. }
  16643. _ACEOF
  16644. if ac_fn_c_try_link "$LINENO"; then :
  16645. eval "$as_ac_Lib=yes"
  16646. else
  16647. eval "$as_ac_Lib=no"
  16648. fi
  16649. rm -f core conftest.err conftest.$ac_objext \
  16650. conftest$ac_exeext conftest.$ac_ext
  16651. LIBS=$ac_check_lib_save_LIBS
  16652. fi
  16653. eval ac_res=\$$as_ac_Lib
  16654. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  16655. $as_echo "$ac_res" >&6; }
  16656. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  16657. $as_echo "#define HAVE_LDAP_URL_PARSE_EXT 1" >>confdefs.h
  16658. fi
  16659. ldap_lib_ldif=""
  16660. LDFLAGS="$LDFLAGS"
  16661. as_ac_Lib=`$as_echo "ac_cv_lib_ldap$ol_libver''_ldif_open" | $as_tr_sh`
  16662. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldif_open in -lldap$ol_libver" >&5
  16663. $as_echo_n "checking for ldif_open in -lldap$ol_libver... " >&6; }
  16664. if eval \${$as_ac_Lib+:} false; then :
  16665. $as_echo_n "(cached) " >&6
  16666. else
  16667. ac_check_lib_save_LIBS=$LIBS
  16668. LIBS="-lldap$ol_libver $LIBS"
  16669. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16670. /* end confdefs.h. */
  16671. /* Override any GCC internal prototype to avoid an error.
  16672. Use char because int might match the return type of a GCC
  16673. builtin and then its argument prototype would still apply. */
  16674. #ifdef __cplusplus
  16675. extern "C"
  16676. #endif
  16677. char ldif_open ();
  16678. int
  16679. main ()
  16680. {
  16681. return ldif_open ();
  16682. ;
  16683. return 0;
  16684. }
  16685. _ACEOF
  16686. if ac_fn_c_try_link "$LINENO"; then :
  16687. eval "$as_ac_Lib=yes"
  16688. else
  16689. eval "$as_ac_Lib=no"
  16690. fi
  16691. rm -f core conftest.err conftest.$ac_objext \
  16692. conftest$ac_exeext conftest.$ac_ext
  16693. LIBS=$ac_check_lib_save_LIBS
  16694. fi
  16695. eval ac_res=\$$as_ac_Lib
  16696. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  16697. $as_echo "$ac_res" >&6; }
  16698. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  16699. ldap_lib_ldif=
  16700. else
  16701. ldap_lib_ldif=-lldif$ol_libver
  16702. fi
  16703. LDFLAGS="$save_ldflags"
  16704. CPPFLAGS="$save_cppflags"
  16705. $as_echo "#define USE_OPENLDAP 1" >>confdefs.h
  16706. # where to find ldapsearch, et. al.
  16707. ldaptool_bindir=$openldap_bindir
  16708. # default options to pass to the tools
  16709. # use -x because all of our scripts use simple bind
  16710. ldaptool_opts=-x
  16711. # get plain output from ldapsearch - no version, no comments
  16712. plainldif_opts=-LLL
  16713. fi
  16714. # BEGIN COPYRIGHT BLOCK
  16715. # Copyright (C) 2007 Red Hat, Inc.
  16716. # All rights reserved.
  16717. #
  16718. # This program is free software; you can redistribute it and/or
  16719. # modify it under the terms of the GNU General Public License
  16720. # as published by the Free Software Foundation; either version 2
  16721. # of the License, or (at your option) any later version.
  16722. #
  16723. # This program is distributed in the hope that it will be useful,
  16724. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  16725. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16726. # GNU General Public License for more details.
  16727. #
  16728. # You should have received a copy of the GNU General Public License
  16729. # along with this program; if not, write to the Free Software
  16730. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  16731. #
  16732. # END COPYRIGHT BLOCK
  16733. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mozilla LDAPSDK..." >&5
  16734. $as_echo "$as_me: checking for Mozilla LDAPSDK..." >&6;}
  16735. # check for --with-ldapsdk
  16736. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-ldapsdk" >&5
  16737. $as_echo_n "checking for --with-ldapsdk... " >&6; }
  16738. # Check whether --with-ldapsdk was given.
  16739. if test "${with_ldapsdk+set}" = set; then :
  16740. withval=$with_ldapsdk;
  16741. if test "$withval" = yes
  16742. then
  16743. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16744. $as_echo "yes" >&6; }
  16745. elif test "$withval" = no
  16746. then
  16747. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16748. $as_echo "no" >&6; }
  16749. elif test -e "$withval"/include/ldap.h -a -d "$withval"/lib
  16750. then
  16751. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16752. $as_echo "using $withval" >&6; }
  16753. LDAPSDKDIR=$withval
  16754. ldapsdk_inc="-I$LDAPSDKDIR/include"
  16755. ldapsdk_lib="-L$LDAPSDKDIR/lib"
  16756. ldapsdk_libdir="$LDAPSDKDIR/lib"
  16757. ldapsdk_bindir="$LDAPSDKDIR/bin"
  16758. with_ldapsdk=yes
  16759. else
  16760. echo
  16761. as_fn_error $? "$withval not found" "$LINENO" 5
  16762. fi
  16763. if test "$with_ldapsdk" = yes -a "$with_openldap" = yes
  16764. then
  16765. as_fn_error $? "Cannot use both LDAPSDK and OpenLDAP." "$LINENO" 5
  16766. fi
  16767. if test "$with_ldapsdk" != yes -a "$with_openldap" != yes
  16768. then
  16769. as_fn_error $? "Either LDAPSDK or OpenLDAP must be used." "$LINENO" 5
  16770. fi
  16771. else
  16772. if test "$with_openldap" = yes
  16773. then
  16774. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16775. $as_echo "no" >&6; }
  16776. else
  16777. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16778. $as_echo "yes" >&6; }
  16779. with_ldapsdk=yes
  16780. fi
  16781. fi
  16782. # check for --with-ldapsdk-inc
  16783. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-ldapsdk-inc" >&5
  16784. $as_echo_n "checking for --with-ldapsdk-inc... " >&6; }
  16785. # Check whether --with-ldapsdk-inc was given.
  16786. if test "${with_ldapsdk_inc+set}" = set; then :
  16787. withval=$with_ldapsdk_inc;
  16788. if test -e "$withval"/ldap.h
  16789. then
  16790. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16791. $as_echo "using $withval" >&6; }
  16792. ldapsdk_inc="-I$withval"
  16793. with_ldapsdk=yes
  16794. else
  16795. echo
  16796. as_fn_error $? "$withval not found" "$LINENO" 5
  16797. fi
  16798. else
  16799. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16800. $as_echo "no" >&6; }
  16801. fi
  16802. # check for --with-ldapsdk-lib
  16803. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-ldapsdk-lib" >&5
  16804. $as_echo_n "checking for --with-ldapsdk-lib... " >&6; }
  16805. # Check whether --with-ldapsdk-lib was given.
  16806. if test "${with_ldapsdk_lib+set}" = set; then :
  16807. withval=$with_ldapsdk_lib;
  16808. if test -d "$withval"
  16809. then
  16810. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16811. $as_echo "using $withval" >&6; }
  16812. ldapsdk_lib="-L$withval"
  16813. ldapsdk_libdir="$withval"
  16814. with_ldapsdk=yes
  16815. else
  16816. echo
  16817. as_fn_error $? "$withval not found" "$LINENO" 5
  16818. fi
  16819. else
  16820. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16821. $as_echo "no" >&6; }
  16822. fi
  16823. # check for --with-ldapsdk-bin
  16824. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-ldapsdk-bin" >&5
  16825. $as_echo_n "checking for --with-ldapsdk-bin... " >&6; }
  16826. # Check whether --with-ldapsdk-bin was given.
  16827. if test "${with_ldapsdk_bin+set}" = set; then :
  16828. withval=$with_ldapsdk_bin;
  16829. if test -d "$withval"
  16830. then
  16831. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16832. $as_echo "using $withval" >&6; }
  16833. ldapsdk_bindir="$withval"
  16834. with_ldapsdk=yes
  16835. else
  16836. echo
  16837. as_fn_error $? "$withval not found" "$LINENO" 5
  16838. fi
  16839. else
  16840. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16841. $as_echo "no" >&6; }
  16842. fi
  16843. # if LDAPSDK is not found yet, try pkg-config
  16844. # last resort
  16845. if test "$with_ldapsdk" = yes ; then
  16846. if test -z "$ldapsdk_inc" -o -z "$ldapsdk_lib" -o -z "$ldapsdk_libdir" -o -z "$ldapsdk_bindir"; then
  16847. # Extract the first word of "pkg-config", so it can be a program name with args.
  16848. set dummy pkg-config; ac_word=$2
  16849. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16850. $as_echo_n "checking for $ac_word... " >&6; }
  16851. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  16852. $as_echo_n "(cached) " >&6
  16853. else
  16854. case $PKG_CONFIG in
  16855. [\\/]* | ?:[\\/]*)
  16856. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  16857. ;;
  16858. *)
  16859. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16860. for as_dir in $PATH
  16861. do
  16862. IFS=$as_save_IFS
  16863. test -z "$as_dir" && as_dir=.
  16864. for ac_exec_ext in '' $ac_executable_extensions; do
  16865. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16866. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  16867. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16868. break 2
  16869. fi
  16870. done
  16871. done
  16872. IFS=$as_save_IFS
  16873. ;;
  16874. esac
  16875. fi
  16876. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  16877. if test -n "$PKG_CONFIG"; then
  16878. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  16879. $as_echo "$PKG_CONFIG" >&6; }
  16880. else
  16881. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16882. $as_echo "no" >&6; }
  16883. fi
  16884. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mozldap with pkg-config" >&5
  16885. $as_echo_n "checking for mozldap with pkg-config... " >&6; }
  16886. if test -n "$PKG_CONFIG"; then
  16887. if $PKG_CONFIG --exists mozldap6; then
  16888. mozldappkg=mozldap6
  16889. elif $PKG_CONFIG --exists mozldap; then
  16890. mozldappkg=mozldap
  16891. else
  16892. as_fn_error $? "LDAPSDK not found, specify with --with-ldapsdk-inc|-lib|-bin." "$LINENO" 5
  16893. fi
  16894. ldapsdk_inc=`$PKG_CONFIG --cflags-only-I $mozldappkg`
  16895. ldapsdk_lib=`$PKG_CONFIG --libs-only-L $mozldappkg`
  16896. ldapsdk_libdir=`$PKG_CONFIG --libs-only-L $mozldappkg | sed -e s/-L// | sed -e s/\ .*$//`
  16897. ldapsdk_bindir=`$PKG_CONFIG --variable=bindir $mozldappkg`
  16898. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using system $mozldappkg" >&5
  16899. $as_echo "using system $mozldappkg" >&6; }
  16900. fi
  16901. fi
  16902. fi
  16903. if test "$with_ldapsdk" = yes ; then
  16904. if test -z "$ldapsdk_inc" -o -z "$ldapsdk_lib"; then
  16905. as_fn_error $? "LDAPSDK not found, specify with --with-ldapsdk-inc|-lib|-bin." "$LINENO" 5
  16906. fi
  16907. if test -z "$ldapsdk_bindir" ; then
  16908. if -d $libdir/mozldap6 ; then
  16909. ldapsdk_bindir=$libdir/mozldap6
  16910. else
  16911. ldapsdk_bindir=$libdir/mozldap
  16912. fi
  16913. fi
  16914. save_cppflags="$CPPFLAGS"
  16915. CPPFLAGS="$ldapsdk_inc $nss_inc $nspr_inc"
  16916. ac_fn_c_check_header_compile "$LINENO" "ldap.h" "ac_cv_header_ldap_h" "#include <ldap-standard.h>
  16917. #if LDAP_VENDOR_VERSION < 600
  16918. #error The LDAP C SDK version is not supported
  16919. #endif
  16920. "
  16921. if test "x$ac_cv_header_ldap_h" = xyes; then :
  16922. isversion6=1
  16923. else
  16924. isversion6=
  16925. fi
  16926. CPPFLAGS="$save_cppflags"
  16927. if test -z "$isversion6" ; then
  16928. as_fn_error $? "The LDAPSDK version in $ldapsdk_inc/ldap-standard.h is not supported" "$LINENO" 5
  16929. fi
  16930. $as_echo "#define USE_MOZLDAP 1" >>confdefs.h
  16931. $as_echo "#define HAVE_LDAP_URL_PARSE_NO_DEFAULTS 1" >>confdefs.h
  16932. # where to find ldapsearch, et. al.
  16933. ldaptool_bindir=$ldapsdk_bindir
  16934. # default options to pass to the tools
  16935. ldaptool_opts=
  16936. # get plain output from ldapsearch - no version
  16937. plainldif_opts=-1
  16938. fi
  16939. # BEGIN COPYRIGHT BLOCK
  16940. # Copyright (C) 2007 Red Hat, Inc.
  16941. # All rights reserved.
  16942. #
  16943. # This program is free software; you can redistribute it and/or
  16944. # modify it under the terms of the GNU General Public License
  16945. # as published by the Free Software Foundation; either version 2
  16946. # of the License, or (at your option) any later version.
  16947. #
  16948. # This program is distributed in the hope that it will be useful,
  16949. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  16950. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16951. # GNU General Public License for more details.
  16952. #
  16953. # You should have received a copy of the GNU General Public License
  16954. # along with this program; if not, write to the Free Software
  16955. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  16956. #
  16957. # END COPYRIGHT BLOCK
  16958. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for db..." >&5
  16959. $as_echo "$as_me: checking for db..." >&6;}
  16960. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-db" >&5
  16961. $as_echo_n "checking for --with-db... " >&6; }
  16962. # Check whether --with-db was given.
  16963. if test "${with_db+set}" = set; then :
  16964. withval=$with_db;
  16965. if test "$withval" = "yes"; then
  16966. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16967. $as_echo "yes" >&6; }
  16968. elif test "$withval" = "no"; then
  16969. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16970. $as_echo "no" >&6; }
  16971. as_fn_error $? "db is required." "$LINENO" 5
  16972. elif test -d "$withval"/include -a -d "$withval"/lib; then
  16973. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16974. $as_echo "using $withval" >&6; }
  16975. DBDIR=$withval
  16976. db_lib="-L$DBDIR/lib"
  16977. db_libdir="$DBDIR/lib"
  16978. db_incdir="$DBDIR/include"
  16979. if ! test -e "$db_incdir/db.h" ; then
  16980. as_fn_error $? "$withval include dir not found" "$LINENO" 5
  16981. fi
  16982. db_inc="-I$db_incdir"
  16983. else
  16984. echo
  16985. as_fn_error $? "$withval not found" "$LINENO" 5
  16986. fi
  16987. else
  16988. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16989. $as_echo "yes" >&6; }
  16990. fi
  16991. # check for --with-db-inc
  16992. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-db-inc" >&5
  16993. $as_echo_n "checking for --with-db-inc... " >&6; }
  16994. # Check whether --with-db-inc was given.
  16995. if test "${with_db_inc+set}" = set; then :
  16996. withval=$with_db_inc;
  16997. if test -e "$withval"/db.h
  16998. then
  16999. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17000. $as_echo "using $withval" >&6; }
  17001. db_incdir="$withval"
  17002. db_inc="-I$withval"
  17003. else
  17004. echo
  17005. as_fn_error $? "$withval not found" "$LINENO" 5
  17006. fi
  17007. else
  17008. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17009. $as_echo "no" >&6; }
  17010. fi
  17011. # check for --with-db-lib
  17012. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-db-lib" >&5
  17013. $as_echo_n "checking for --with-db-lib... " >&6; }
  17014. # Check whether --with-db-lib was given.
  17015. if test "${with_db_lib+set}" = set; then :
  17016. withval=$with_db_lib;
  17017. if test -d "$withval"
  17018. then
  17019. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17020. $as_echo "using $withval" >&6; }
  17021. db_lib="-L$withval"
  17022. db_libdir="$withval"
  17023. else
  17024. echo
  17025. as_fn_error $? "$withval not found" "$LINENO" 5
  17026. fi
  17027. else
  17028. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17029. $as_echo "no" >&6; }
  17030. fi
  17031. if test -z "$db_inc"; then
  17032. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for db.h" >&5
  17033. $as_echo_n "checking for db.h... " >&6; }
  17034. if test -f "/usr/include/db4/db.h"; then
  17035. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using /usr/include/db4/db.h" >&5
  17036. $as_echo "using /usr/include/db4/db.h" >&6; }
  17037. db_incdir="/usr/include/db4"
  17038. db_inc="-I/usr/include/db4"
  17039. db_lib='-L$(libdir)'
  17040. db_libdir='$(libdir)'
  17041. elif test -f "/usr/include/libdb/db.h"; then
  17042. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using /usr/include/libdb/db.h" >&5
  17043. $as_echo "using /usr/include/libdb/db.h" >&6; }
  17044. db_incdir="/usr/include/libdb"
  17045. db_inc="-I/usr/include/libdb"
  17046. db_lib='-L$(libdir)'
  17047. db_libdir='$(libdir)'
  17048. elif test -f "/usr/include/db.h"; then
  17049. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using /usr/include/db.h" >&5
  17050. $as_echo "using /usr/include/db.h" >&6; }
  17051. db_incdir="/usr/include"
  17052. db_inc="-I/usr/include"
  17053. db_lib='-L$(libdir)'
  17054. db_libdir='$(libdir)'
  17055. else
  17056. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17057. $as_echo "no" >&6; }
  17058. as_fn_error $? "db not found, specify with --with-db." "$LINENO" 5
  17059. fi
  17060. fi
  17061. db_ver_maj=`grep DB_VERSION_MAJOR $db_incdir/db.h | awk '{print $3}'`
  17062. db_ver_min=`grep DB_VERSION_MINOR $db_incdir/db.h | awk '{print $3}'`
  17063. db_ver_pat=`grep DB_VERSION_PATCH $db_incdir/db.h | awk '{print $3}'`
  17064. db_libver=${db_ver_maj}.${db_ver_min}
  17065. save_ldflags="$LDFLAGS"
  17066. LDFLAGS="$db_lib $LDFLAGS"
  17067. as_ac_Lib=`$as_echo "ac_cv_lib_db-$db_libver''_db_create" | $as_tr_sh`
  17068. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for db_create in -ldb-$db_libver" >&5
  17069. $as_echo_n "checking for db_create in -ldb-$db_libver... " >&6; }
  17070. if eval \${$as_ac_Lib+:} false; then :
  17071. $as_echo_n "(cached) " >&6
  17072. else
  17073. ac_check_lib_save_LIBS=$LIBS
  17074. LIBS="-ldb-$db_libver $LIBNSL $LIBS"
  17075. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17076. /* end confdefs.h. */
  17077. /* Override any GCC internal prototype to avoid an error.
  17078. Use char because int might match the return type of a GCC
  17079. builtin and then its argument prototype would still apply. */
  17080. #ifdef __cplusplus
  17081. extern "C"
  17082. #endif
  17083. char db_create ();
  17084. int
  17085. main ()
  17086. {
  17087. return db_create ();
  17088. ;
  17089. return 0;
  17090. }
  17091. _ACEOF
  17092. if ac_fn_c_try_link "$LINENO"; then :
  17093. eval "$as_ac_Lib=yes"
  17094. else
  17095. eval "$as_ac_Lib=no"
  17096. fi
  17097. rm -f core conftest.err conftest.$ac_objext \
  17098. conftest$ac_exeext conftest.$ac_ext
  17099. LIBS=$ac_check_lib_save_LIBS
  17100. fi
  17101. eval ac_res=\$$as_ac_Lib
  17102. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  17103. $as_echo "$ac_res" >&6; }
  17104. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  17105. true
  17106. else
  17107. as_fn_error $? "$db_incdir/db.h is version $db_libver but libdb-$db_libver not found" "$LINENO" 5
  17108. fi
  17109. LDFLAGS="$save_ldflags"
  17110. # if DB is not found yet, try pkg-config
  17111. # last resort
  17112. # Although the other db_* variables are correctly assigned at this point,
  17113. # db_bindir needs to be set by pkg-config if possible (e.g., on 64-bit Solaris)
  17114. if test -n "$PKG_CONFIG"; then
  17115. if $PKG_CONFIG --exists db; then
  17116. db_bindir=`$PKG_CONFIG --variable=bindir db`
  17117. else
  17118. db_bindir=/usr/bin
  17119. fi
  17120. else
  17121. db_bindir=/usr/bin
  17122. fi
  17123. # BEGIN COPYRIGHT BLOCK
  17124. # Copyright (C) 2007 Red Hat, Inc.
  17125. # All rights reserved.
  17126. #
  17127. # This program is free software; you can redistribute it and/or
  17128. # modify it under the terms of the GNU General Public License
  17129. # as published by the Free Software Foundation; either version 2
  17130. # of the License, or (at your option) any later version.
  17131. #
  17132. # This program is distributed in the hope that it will be useful,
  17133. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  17134. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17135. # GNU General Public License for more details.
  17136. #
  17137. # You should have received a copy of the GNU General Public License
  17138. # along with this program; if not, write to the Free Software
  17139. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  17140. #
  17141. # END COPYRIGHT BLOCK
  17142. # -*- tab-width: 4; -*-
  17143. # Configure paths for SASL
  17144. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SASL..." >&5
  17145. $as_echo "$as_me: checking for SASL..." >&6;}
  17146. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-sasl" >&5
  17147. $as_echo_n "checking for --with-sasl... " >&6; }
  17148. # Check whether --with-sasl was given.
  17149. if test "${with_sasl+set}" = set; then :
  17150. withval=$with_sasl;
  17151. if test "$withval" = "yes"; then
  17152. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17153. $as_echo "yes" >&6; }
  17154. elif test "$withval" = "no"; then
  17155. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17156. $as_echo "no" >&6; }
  17157. as_fn_error $? "SASL is required." "$LINENO" 5
  17158. elif test -d "$withval" -a -d "$withval/lib" -a -d "$withval/include" ; then
  17159. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17160. $as_echo "using $withval" >&6; }
  17161. if test -f "$withval/include/sasl/sasl.h"; then
  17162. sasl_inc="-I$withval/include/sasl"
  17163. elif test -f "$withval/include/sasl.h"; then
  17164. sasl_inc="-I$withval/include"
  17165. else
  17166. as_fn_error $? "sasl.h not found" "$LINENO" 5
  17167. fi
  17168. sasl_lib="-L$withval/lib"
  17169. sasl_libdir="$withval/lib"
  17170. else
  17171. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17172. $as_echo "yes" >&6; }
  17173. as_fn_error $? "SASL not found in $withval" "$LINENO" 5
  17174. fi
  17175. else
  17176. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17177. $as_echo "yes" >&6; }
  17178. fi
  17179. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-sasl-inc" >&5
  17180. $as_echo_n "checking for --with-sasl-inc... " >&6; }
  17181. # Check whether --with-sasl-inc was given.
  17182. if test "${with_sasl_inc+set}" = set; then :
  17183. withval=$with_sasl_inc;
  17184. if test -f "$withval"/sasl.h; then
  17185. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17186. $as_echo "using $withval" >&6; }
  17187. sasl_inc="-I$withval"
  17188. else
  17189. echo
  17190. as_fn_error $? "$withval/sasl.h not found" "$LINENO" 5
  17191. fi
  17192. else
  17193. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17194. $as_echo "no" >&6; }
  17195. fi
  17196. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-sasl-lib" >&5
  17197. $as_echo_n "checking for --with-sasl-lib... " >&6; }
  17198. # Check whether --with-sasl-lib was given.
  17199. if test "${with_sasl_lib+set}" = set; then :
  17200. withval=$with_sasl_lib;
  17201. if test -d "$withval"; then
  17202. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17203. $as_echo "using $withval" >&6; }
  17204. sasl_lib="-L$withval"
  17205. sasl_libdir="$withval"
  17206. else
  17207. echo
  17208. as_fn_error $? "$withval not found" "$LINENO" 5
  17209. fi
  17210. else
  17211. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17212. $as_echo "no" >&6; }
  17213. fi
  17214. if test -z "$sasl_inc"; then
  17215. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sasl.h" >&5
  17216. $as_echo_n "checking for sasl.h... " >&6; }
  17217. if test -f /usr/include/sasl/sasl.h; then
  17218. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using /usr/include/sasl/sasl.h" >&5
  17219. $as_echo "using /usr/include/sasl/sasl.h" >&6; }
  17220. sasl_inc="-I/usr/include/sasl"
  17221. elif test -f /usr/include/sasl.h; then
  17222. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using /usr/include/sasl.h" >&5
  17223. $as_echo "using /usr/include/sasl.h" >&6; }
  17224. sasl_inc="-I/usr/include"
  17225. else
  17226. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17227. $as_echo "no" >&6; }
  17228. as_fn_error $? "SASL not found, specify with --with-sasl." "$LINENO" 5
  17229. fi
  17230. fi
  17231. # BEGIN COPYRIGHT BLOCK
  17232. # Copyright (C) 2007 Red Hat, Inc.
  17233. # All rights reserved.
  17234. #
  17235. # This program is free software; you can redistribute it and/or
  17236. # modify it under the terms of the GNU General Public License
  17237. # as published by the Free Software Foundation; either version 2
  17238. # of the License, or (at your option) any later version.
  17239. #
  17240. # This program is distributed in the hope that it will be useful,
  17241. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  17242. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17243. # GNU General Public License for more details.
  17244. #
  17245. # You should have received a copy of the GNU General Public License
  17246. # along with this program; if not, write to the Free Software
  17247. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  17248. #
  17249. # END COPYRIGHT BLOCK
  17250. #
  17251. # Configure paths for SVRCORE
  17252. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SVRCORE..." >&5
  17253. $as_echo "$as_me: checking for SVRCORE..." >&6;}
  17254. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-svrcore" >&5
  17255. $as_echo_n "checking for --with-svrcore... " >&6; }
  17256. # Check whether --with-svrcore was given.
  17257. if test "${with_svrcore+set}" = set; then :
  17258. withval=$with_svrcore;
  17259. if test "$withval" = "yes"; then
  17260. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17261. $as_echo "yes" >&6; }
  17262. elif test "$withval" = "no"; then
  17263. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17264. $as_echo "no" >&6; }
  17265. as_fn_error $? "SVRCORE is required." "$LINENO" 5
  17266. elif test -d "$withval" -a -d "$withval/lib" -a -d "$withval/include" ; then
  17267. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17268. $as_echo "using $withval" >&6; }
  17269. if test -f "$withval/include/svrcore.h"; then
  17270. svrcore_inc="-I$withval/include"
  17271. else
  17272. as_fn_error $? "svrcore.h not found" "$LINENO" 5
  17273. fi
  17274. svrcore_lib="-L$withval/lib"
  17275. else
  17276. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17277. $as_echo "yes" >&6; }
  17278. as_fn_error $? "SVRCORE not found in $withval" "$LINENO" 5
  17279. fi
  17280. else
  17281. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17282. $as_echo "yes" >&6; }
  17283. fi
  17284. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-svrcore-inc" >&5
  17285. $as_echo_n "checking for --with-svrcore-inc... " >&6; }
  17286. # Check whether --with-svrcore-inc was given.
  17287. if test "${with_svrcore_inc+set}" = set; then :
  17288. withval=$with_svrcore_inc;
  17289. if test -f "$withval"/svrcore.h; then
  17290. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17291. $as_echo "using $withval" >&6; }
  17292. svrcore_inc="-I$withval"
  17293. else
  17294. echo
  17295. as_fn_error $? "$withval/svrcore.h not found" "$LINENO" 5
  17296. fi
  17297. else
  17298. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17299. $as_echo "no" >&6; }
  17300. fi
  17301. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-svrcore-lib" >&5
  17302. $as_echo_n "checking for --with-svrcore-lib... " >&6; }
  17303. # Check whether --with-svrcore-lib was given.
  17304. if test "${with_svrcore_lib+set}" = set; then :
  17305. withval=$with_svrcore_lib;
  17306. if test -d "$withval"; then
  17307. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17308. $as_echo "using $withval" >&6; }
  17309. svrcore_lib="-L$withval"
  17310. else
  17311. echo
  17312. as_fn_error $? "$withval not found" "$LINENO" 5
  17313. fi
  17314. else
  17315. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17316. $as_echo "no" >&6; }
  17317. fi
  17318. if test -z "$svrcore_inc" -o -z "$svrcore_lib"; then
  17319. # Extract the first word of "pkg-config", so it can be a program name with args.
  17320. set dummy pkg-config; ac_word=$2
  17321. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17322. $as_echo_n "checking for $ac_word... " >&6; }
  17323. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  17324. $as_echo_n "(cached) " >&6
  17325. else
  17326. case $PKG_CONFIG in
  17327. [\\/]* | ?:[\\/]*)
  17328. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  17329. ;;
  17330. *)
  17331. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17332. for as_dir in $PATH
  17333. do
  17334. IFS=$as_save_IFS
  17335. test -z "$as_dir" && as_dir=.
  17336. for ac_exec_ext in '' $ac_executable_extensions; do
  17337. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17338. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  17339. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17340. break 2
  17341. fi
  17342. done
  17343. done
  17344. IFS=$as_save_IFS
  17345. ;;
  17346. esac
  17347. fi
  17348. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  17349. if test -n "$PKG_CONFIG"; then
  17350. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  17351. $as_echo "$PKG_CONFIG" >&6; }
  17352. else
  17353. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17354. $as_echo "no" >&6; }
  17355. fi
  17356. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SVRCORE with pkg-config" >&5
  17357. $as_echo_n "checking for SVRCORE with pkg-config... " >&6; }
  17358. if test -n "$PKG_CONFIG"; then
  17359. if $PKG_CONFIG --exists svrcore; then
  17360. svrcore_inc=`$PKG_CONFIG --cflags-only-I svrcore`
  17361. svrcore_lib=`$PKG_CONFIG --libs-only-L svrcore`
  17362. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using system svrcore" >&5
  17363. $as_echo "using system svrcore" >&6; }
  17364. fi
  17365. fi
  17366. fi
  17367. if test -z "$svrcore_inc" -o -z "$svrcore_lib"; then
  17368. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SVRCORE_GetRegisteredPinObj in -lsvrcore" >&5
  17369. $as_echo_n "checking for SVRCORE_GetRegisteredPinObj in -lsvrcore... " >&6; }
  17370. if ${ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj+:} false; then :
  17371. $as_echo_n "(cached) " >&6
  17372. else
  17373. ac_check_lib_save_LIBS=$LIBS
  17374. LIBS="-lsvrcore $nss_inc $nspr_inc $nss_lib -lnss3 -lsoftokn3 $nspr_lib -lplds4 -lplc4 -lnspr4 $LIBS"
  17375. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17376. /* end confdefs.h. */
  17377. /* Override any GCC internal prototype to avoid an error.
  17378. Use char because int might match the return type of a GCC
  17379. builtin and then its argument prototype would still apply. */
  17380. #ifdef __cplusplus
  17381. extern "C"
  17382. #endif
  17383. char SVRCORE_GetRegisteredPinObj ();
  17384. int
  17385. main ()
  17386. {
  17387. return SVRCORE_GetRegisteredPinObj ();
  17388. ;
  17389. return 0;
  17390. }
  17391. _ACEOF
  17392. if ac_fn_c_try_link "$LINENO"; then :
  17393. ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj=yes
  17394. else
  17395. ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj=no
  17396. fi
  17397. rm -f core conftest.err conftest.$ac_objext \
  17398. conftest$ac_exeext conftest.$ac_ext
  17399. LIBS=$ac_check_lib_save_LIBS
  17400. fi
  17401. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj" >&5
  17402. $as_echo "$ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj" >&6; }
  17403. if test "x$ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj" = xyes; then :
  17404. havesvrcore=1
  17405. fi
  17406. if test -n "$havesvrcore" ; then
  17407. save_cppflags="$CPPFLAGS"
  17408. CPPFLAGS="$nss_inc $nspr_inc"
  17409. ac_fn_c_check_header_mongrel "$LINENO" "svrcore.h" "ac_cv_header_svrcore_h" "$ac_includes_default"
  17410. if test "x$ac_cv_header_svrcore_h" = xyes; then :
  17411. havesvrcore=1
  17412. else
  17413. havesvrcore=
  17414. fi
  17415. CPPFLAGS="$save_cppflags"
  17416. fi
  17417. if test -z "$havesvrcore" ; then
  17418. as_fn_error $? "SVRCORE not found, specify with --with-svrcore." "$LINENO" 5
  17419. fi
  17420. fi
  17421. if test -z "$svrcore_inc" -o -z "$svrcore_lib"; then
  17422. if test -f /usr/include/svrcore.h; then
  17423. svrcore_inc="-I/usr/include"
  17424. svrcore_lib="-L/usr/lib"
  17425. else
  17426. as_fn_error $? "SVRCORE not found, specify with --with-svrcore." "$LINENO" 5
  17427. fi
  17428. fi
  17429. # BEGIN COPYRIGHT BLOCK
  17430. # Copyright (C) 2006 Red Hat, Inc.
  17431. # All rights reserved.
  17432. #
  17433. # This program is free software; you can redistribute it and/or
  17434. # modify it under the terms of the GNU General Public License
  17435. # as published by the Free Software Foundation; either version 2
  17436. # of the License, or (at your option) any later version.
  17437. #
  17438. # This program is distributed in the hope that it will be useful,
  17439. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  17440. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17441. # GNU General Public License for more details.
  17442. #
  17443. # You should have received a copy of the GNU General Public License
  17444. # along with this program; if not, write to the Free Software
  17445. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  17446. #
  17447. # END COPYRIGHT BLOCK
  17448. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBICU..." >&5
  17449. $as_echo "$as_me: checking for LIBICU..." >&6;}
  17450. # check for --with-icu
  17451. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-icu" >&5
  17452. $as_echo_n "checking for --with-icu... " >&6; }
  17453. # Check whether --with-icu was given.
  17454. if test "${with_icu+set}" = set; then :
  17455. withval=$with_icu;
  17456. if test "$withval" = "yes"
  17457. then
  17458. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17459. $as_echo "yes" >&6; }
  17460. elif test "$withval" = "no"
  17461. then
  17462. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17463. $as_echo "no" >&6; }
  17464. as_fn_error $? "ICU is required." "$LINENO" 5
  17465. elif test -d "$withval"/lib
  17466. then
  17467. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17468. $as_echo "using $withval" >&6; }
  17469. ICUDIR=$withval
  17470. icu_lib="-L$ICUDIR/lib"
  17471. icu_inc="-I$withval/include"
  17472. icu_bin="$withval/bin"
  17473. else
  17474. echo
  17475. as_fn_error $? "$withval not found" "$LINENO" 5
  17476. fi
  17477. else
  17478. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17479. $as_echo "yes" >&6; }
  17480. fi
  17481. # check for --with-icu-inc
  17482. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-icu-inc" >&5
  17483. $as_echo_n "checking for --with-icu-inc... " >&6; }
  17484. # Check whether --with-icu-inc was given.
  17485. if test "${with_icu_inc+set}" = set; then :
  17486. withval=$with_icu_inc;
  17487. if test -d "$withval"
  17488. then
  17489. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17490. $as_echo "using $withval" >&6; }
  17491. icu_inc="-I$withval"
  17492. else
  17493. echo
  17494. as_fn_error $? "$withval not found" "$LINENO" 5
  17495. fi
  17496. else
  17497. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17498. $as_echo "no" >&6; }
  17499. fi
  17500. # check for --with-icu-lib
  17501. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-icu-lib" >&5
  17502. $as_echo_n "checking for --with-icu-lib... " >&6; }
  17503. # Check whether --with-icu-lib was given.
  17504. if test "${with_icu_lib+set}" = set; then :
  17505. withval=$with_icu_lib;
  17506. if test -d "$withval"
  17507. then
  17508. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17509. $as_echo "using $withval" >&6; }
  17510. icu_lib="-L$withval"
  17511. else
  17512. echo
  17513. as_fn_error $? "$withval not found" "$LINENO" 5
  17514. fi
  17515. else
  17516. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17517. $as_echo "no" >&6; }
  17518. fi
  17519. # check for --with-icu-bin
  17520. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-icu-bin" >&5
  17521. $as_echo_n "checking for --with-icu-bin... " >&6; }
  17522. # Check whether --with-icu-bin was given.
  17523. if test "${with_icu_bin+set}" = set; then :
  17524. withval=$with_icu_bin;
  17525. if test -d "$withval"
  17526. then
  17527. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17528. $as_echo "using $withval" >&6; }
  17529. icu_bin="$withval"
  17530. else
  17531. echo
  17532. as_fn_error $? "$withval not found" "$LINENO" 5
  17533. fi
  17534. else
  17535. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17536. $as_echo "no" >&6; }
  17537. fi
  17538. # if ICU is not found yet, try pkg-config
  17539. # last resort
  17540. if test -z "$icu_lib"; then
  17541. # Extract the first word of "icu-config", so it can be a program name with args.
  17542. set dummy icu-config; ac_word=$2
  17543. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17544. $as_echo_n "checking for $ac_word... " >&6; }
  17545. if ${ac_cv_path_ICU_CONFIG+:} false; then :
  17546. $as_echo_n "(cached) " >&6
  17547. else
  17548. case $ICU_CONFIG in
  17549. [\\/]* | ?:[\\/]*)
  17550. ac_cv_path_ICU_CONFIG="$ICU_CONFIG" # Let the user override the test with a path.
  17551. ;;
  17552. *)
  17553. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17554. for as_dir in $PATH
  17555. do
  17556. IFS=$as_save_IFS
  17557. test -z "$as_dir" && as_dir=.
  17558. for ac_exec_ext in '' $ac_executable_extensions; do
  17559. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17560. ac_cv_path_ICU_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  17561. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17562. break 2
  17563. fi
  17564. done
  17565. done
  17566. IFS=$as_save_IFS
  17567. ;;
  17568. esac
  17569. fi
  17570. ICU_CONFIG=$ac_cv_path_ICU_CONFIG
  17571. if test -n "$ICU_CONFIG"; then
  17572. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICU_CONFIG" >&5
  17573. $as_echo "$ICU_CONFIG" >&6; }
  17574. else
  17575. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17576. $as_echo "no" >&6; }
  17577. fi
  17578. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for icu with icu-config" >&5
  17579. $as_echo_n "checking for icu with icu-config... " >&6; }
  17580. if test -n "$ICU_CONFIG"; then
  17581. icu_lib=`$ICU_CONFIG --ldflags-searchpath`
  17582. icu_inc=`$ICU_CONFIG --cppflags-searchpath`
  17583. icu_bin=`$ICU_CONFIG --bindir`
  17584. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using system ICU" >&5
  17585. $as_echo "using system ICU" >&6; }
  17586. else
  17587. as_fn_error $? "ICU not found, specify with --with-icu." "$LINENO" 5
  17588. fi
  17589. fi
  17590. # BEGIN COPYRIGHT BLOCK
  17591. # Copyright (C) 2006 Red Hat, Inc.
  17592. # All rights reserved.
  17593. #
  17594. # This program is free software; you can redistribute it and/or
  17595. # modify it under the terms of the GNU General Public License
  17596. # as published by the Free Software Foundation; either version 2
  17597. # of the License, or (at your option) any later version.
  17598. #
  17599. # This program is distributed in the hope that it will be useful,
  17600. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  17601. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17602. # GNU General Public License for more details.
  17603. #
  17604. # You should have received a copy of the GNU General Public License
  17605. # along with this program; if not, write to the Free Software
  17606. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  17607. #
  17608. # END COPYRIGHT BLOCK
  17609. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Net-SNMP..." >&5
  17610. $as_echo "$as_me: checking for Net-SNMP..." >&6;}
  17611. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-netsnmp" >&5
  17612. $as_echo_n "checking for --with-netsnmp... " >&6; }
  17613. # Check whether --with-netsnmp was given.
  17614. if test "${with_netsnmp+set}" = set; then :
  17615. withval=$with_netsnmp;
  17616. if test "$withval" = "yes"; then
  17617. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17618. $as_echo "yes" >&6; }
  17619. elif test "$withval" = "no"; then
  17620. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17621. $as_echo "no" >&6; }
  17622. as_fn_error $? "Net-SNMP is required." "$LINENO" 5
  17623. elif test -d "$withval" -a -d "$withval/lib" -a -d "$withval/include"; then
  17624. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17625. $as_echo "using $withval" >&6; }
  17626. NETSNMPDIR=$withval
  17627. if test -f "$withval/include/net-snmp/net-snmp-includes.h"; then
  17628. netsnmp_inc="-I$withval/include"
  17629. else
  17630. as_fn_error $? "net-snmp-config.h not found" "$LINENO" 5
  17631. fi
  17632. netsnmp_lib="-L$withval/lib"
  17633. netsnmp_libdir="$withval/lib"
  17634. else
  17635. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17636. $as_echo "yes" >&6; }
  17637. as_fn_error $? "$withval not found" "$LINENO" 5
  17638. fi
  17639. else
  17640. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17641. $as_echo "yes" >&6; }
  17642. fi
  17643. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-netsnmp-inc" >&5
  17644. $as_echo_n "checking for --with-netsnmp-inc... " >&6; }
  17645. # Check whether --with-netsnmp-inc was given.
  17646. if test "${with_netsnmp_inc+set}" = set; then :
  17647. withval=$with_netsnmp_inc;
  17648. if test -f "$withval/net-snmp/net-snmp-includes.h"; then
  17649. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17650. $as_echo "using $withval" >&6; }
  17651. netsnmp_inc="-I$withval"
  17652. else
  17653. echo
  17654. as_fn_error $? "$withval/net-snmp/net-snmp-includes.h not found" "$LINENO" 5
  17655. fi
  17656. else
  17657. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17658. $as_echo "no" >&6; }
  17659. fi
  17660. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-netsnmp-lib" >&5
  17661. $as_echo_n "checking for --with-netsnmp-lib... " >&6; }
  17662. # Check whether --with-netsnmp-lib was given.
  17663. if test "${with_netsnmp_lib+set}" = set; then :
  17664. withval=$with_netsnmp_lib;
  17665. if test -d "$withval"
  17666. then
  17667. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17668. $as_echo "using $withval" >&6; }
  17669. netsnmp_lib="-L$withval"
  17670. netsnmp_libdir="$withval"
  17671. else
  17672. echo
  17673. as_fn_error $? "$withval not found" "$LINENO" 5
  17674. fi
  17675. else
  17676. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17677. $as_echo "no" >&6; }
  17678. fi
  17679. if test -z "$netsnmp_inc" -o -z "$netsnmp_lib"; then
  17680. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for net-snmp-includes.h" >&5
  17681. $as_echo_n "checking for net-snmp-includes.h... " >&6; }
  17682. if test -f /usr/include/net-snmp/net-snmp-includes.h; then
  17683. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using /usr/include/net-snmp/net-snmp-includes.h" >&5
  17684. $as_echo "using /usr/include/net-snmp/net-snmp-includes.h" >&6; }
  17685. netsnmp_inc="-I/usr/include"
  17686. else
  17687. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17688. $as_echo "no" >&6; }
  17689. as_fn_error $? "net-snmp not found, specify with --with-netsnmp." "$LINENO" 5
  17690. fi
  17691. fi
  17692. if test -n "$netsnmp_inc"; then
  17693. if test -x "$NETSNMPDIR/bin/net-snmp-config"; then
  17694. NETSNMP_CONFIG=$NETSNMPDIR/bin/net-snmp-config
  17695. else
  17696. # Extract the first word of "net-snmp-config", so it can be a program name with args.
  17697. set dummy net-snmp-config; ac_word=$2
  17698. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17699. $as_echo_n "checking for $ac_word... " >&6; }
  17700. if ${ac_cv_path_NETSNMP_CONFIG+:} false; then :
  17701. $as_echo_n "(cached) " >&6
  17702. else
  17703. case $NETSNMP_CONFIG in
  17704. [\\/]* | ?:[\\/]*)
  17705. ac_cv_path_NETSNMP_CONFIG="$NETSNMP_CONFIG" # Let the user override the test with a path.
  17706. ;;
  17707. *)
  17708. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17709. for as_dir in $PATH
  17710. do
  17711. IFS=$as_save_IFS
  17712. test -z "$as_dir" && as_dir=.
  17713. for ac_exec_ext in '' $ac_executable_extensions; do
  17714. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17715. ac_cv_path_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  17716. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17717. break 2
  17718. fi
  17719. done
  17720. done
  17721. IFS=$as_save_IFS
  17722. ;;
  17723. esac
  17724. fi
  17725. NETSNMP_CONFIG=$ac_cv_path_NETSNMP_CONFIG
  17726. if test -n "$NETSNMP_CONFIG"; then
  17727. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NETSNMP_CONFIG" >&5
  17728. $as_echo "$NETSNMP_CONFIG" >&6; }
  17729. else
  17730. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17731. $as_echo "no" >&6; }
  17732. fi
  17733. fi
  17734. if test -n "$NETSNMP_CONFIG"; then
  17735. netsnmp_link=`$NETSNMP_CONFIG --agent-libs`
  17736. else
  17737. as_fn_error $? "net-snmp-config not found, specify with --with-netsnmp." "$LINENO" 5
  17738. fi
  17739. else
  17740. as_fn_error $? "Net-SNMP not found, specify with --with-netsnmp." "$LINENO" 5
  17741. fi
  17742. # BEGIN COPYRIGHT BLOCK
  17743. # Copyright (C) 2008 Red Hat, Inc.
  17744. # All rights reserved.
  17745. #
  17746. # This program is free software; you can redistribute it and/or
  17747. # modify it under the terms of the GNU General Public License
  17748. # as published by the Free Software Foundation; either version 2
  17749. # of the License, or (at your option) any later version.
  17750. #
  17751. # This program is distributed in the hope that it will be useful,
  17752. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  17753. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17754. # GNU General Public License for more details.
  17755. #
  17756. # You should have received a copy of the GNU General Public License
  17757. # along with this program; if not, write to the Free Software
  17758. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  17759. #
  17760. # END COPYRIGHT BLOCK
  17761. # -*- tab-width: 4; -*-
  17762. # Configure paths for Kerberos
  17763. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Kerberos..." >&5
  17764. $as_echo "$as_me: checking for Kerberos..." >&6;}
  17765. if test -z "$with_kerberos" ; then
  17766. with_kerberos=yes # if not set on cmdline, set default
  17767. fi
  17768. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-kerberos" >&5
  17769. $as_echo_n "checking for --with-kerberos... " >&6; }
  17770. # Check whether --with-kerberos was given.
  17771. if test "${with_kerberos+set}" = set; then :
  17772. withval=$with_kerberos;
  17773. if test "x$withval" = "xyes"; then
  17774. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17775. $as_echo "yes" >&6; }
  17776. elif test "x$withval" = "xno"; then
  17777. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17778. $as_echo "no" >&6; }
  17779. with_kerberos=
  17780. elif test -d "$withval" -a -d "$withval/lib" -a -d "$withval/include" ; then
  17781. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17782. $as_echo "using $withval" >&6; }
  17783. kerberos_incdir="$withval/include"
  17784. kerberos_libdir="$withval/lib"
  17785. else
  17786. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17787. $as_echo "yes" >&6; }
  17788. as_fn_error $? "kerberos not found in $withval" "$LINENO" 5
  17789. fi
  17790. else
  17791. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17792. $as_echo "no" >&6; }
  17793. with_kerberos=
  17794. fi
  17795. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-kerberos-inc" >&5
  17796. $as_echo_n "checking for --with-kerberos-inc... " >&6; }
  17797. # Check whether --with-kerberos-inc was given.
  17798. if test "${with_kerberos_inc+set}" = set; then :
  17799. withval=$with_kerberos_inc;
  17800. if test -f "$withval"/krb5.h; then
  17801. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17802. $as_echo "using $withval" >&6; }
  17803. kerberos_incdir="$withval"
  17804. with_kerberos=yes # implies use of kerberos
  17805. else
  17806. echo
  17807. as_fn_error $? "$withval/krb5.h not found" "$LINENO" 5
  17808. fi
  17809. else
  17810. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17811. $as_echo "no" >&6; }
  17812. fi
  17813. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-kerberos-lib" >&5
  17814. $as_echo_n "checking for --with-kerberos-lib... " >&6; }
  17815. # Check whether --with-kerberos-lib was given.
  17816. if test "${with_kerberos_lib+set}" = set; then :
  17817. withval=$with_kerberos_lib;
  17818. if test -d "$withval"; then
  17819. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17820. $as_echo "using $withval" >&6; }
  17821. kerberos_libdir="$withval"
  17822. with_kerberos=yes # implies use of kerberos
  17823. else
  17824. echo
  17825. as_fn_error $? "$withval not found" "$LINENO" 5
  17826. fi
  17827. else
  17828. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17829. $as_echo "no" >&6; }
  17830. fi
  17831. if test -n "$with_kerberos" ; then
  17832. if test -z "$kerberos_incdir" -o -z "$kerberos_libdir" ; then
  17833. if test -z "$KRB5_CONFIG_BIN" ; then
  17834. # Extract the first word of "krb5-config", so it can be a program name with args.
  17835. set dummy krb5-config; ac_word=$2
  17836. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17837. $as_echo_n "checking for $ac_word... " >&6; }
  17838. if ${ac_cv_path_KRB5_CONFIG_BIN+:} false; then :
  17839. $as_echo_n "(cached) " >&6
  17840. else
  17841. case $KRB5_CONFIG_BIN in
  17842. [\\/]* | ?:[\\/]*)
  17843. ac_cv_path_KRB5_CONFIG_BIN="$KRB5_CONFIG_BIN" # Let the user override the test with a path.
  17844. ;;
  17845. *)
  17846. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17847. for as_dir in $PATH
  17848. do
  17849. IFS=$as_save_IFS
  17850. test -z "$as_dir" && as_dir=.
  17851. for ac_exec_ext in '' $ac_executable_extensions; do
  17852. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17853. ac_cv_path_KRB5_CONFIG_BIN="$as_dir/$ac_word$ac_exec_ext"
  17854. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17855. break 2
  17856. fi
  17857. done
  17858. done
  17859. IFS=$as_save_IFS
  17860. ;;
  17861. esac
  17862. fi
  17863. KRB5_CONFIG_BIN=$ac_cv_path_KRB5_CONFIG_BIN
  17864. if test -n "$KRB5_CONFIG_BIN"; then
  17865. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KRB5_CONFIG_BIN" >&5
  17866. $as_echo "$KRB5_CONFIG_BIN" >&6; }
  17867. else
  17868. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17869. $as_echo "no" >&6; }
  17870. fi
  17871. fi
  17872. if test -n "$KRB5_CONFIG_BIN" ; then
  17873. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kerberos with $KRB5_CONFIG_BIN" >&5
  17874. $as_echo_n "checking for kerberos with $KRB5_CONFIG_BIN... " >&6; }
  17875. if test -z "$kerberos_libdir" ; then
  17876. kerberos_lib=`$KRB5_CONFIG_BIN --libs krb5`
  17877. fi
  17878. if test -z "$kerberos_incdir" ; then
  17879. kerberos_inc=`$KRB5_CONFIG_BIN --cflags krb5`
  17880. fi
  17881. if test -n "$kerberos_lib" ; then
  17882. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using kerberos found with $KRB5_CONFIG_BIN" >&5
  17883. $as_echo "using kerberos found with $KRB5_CONFIG_BIN" >&6; }
  17884. have_krb5=yes
  17885. fi
  17886. fi
  17887. fi
  17888. fi
  17889. if test -n "$with_kerberos" -a -z "$kerberos_lib" ; then
  17890. # save these in order to set them to use the check macros below
  17891. # like AC_CHECK_HEADERS, AC_CHECK_LIB, and AC_CHECK_FUNCS
  17892. save_CPPFLAGS="$CPPFLAGS"
  17893. if test -n "$kerberos_incdir" ; then
  17894. CPPFLAGS="-I$kerberos_incdir $CPPFLAGS"
  17895. fi
  17896. save_LDFLAGS="$LDFLAGS"
  17897. if test -n "$kerberos_libdir" ; then
  17898. LDFLAGS="-L$kerberos_libdir $LDFLAGS"
  17899. fi
  17900. krb5_impl=mit
  17901. for ac_header in heim_err.h
  17902. do :
  17903. ac_fn_c_check_header_mongrel "$LINENO" "heim_err.h" "ac_cv_header_heim_err_h" "$ac_includes_default"
  17904. if test "x$ac_cv_header_heim_err_h" = xyes; then :
  17905. cat >>confdefs.h <<_ACEOF
  17906. #define HAVE_HEIM_ERR_H 1
  17907. _ACEOF
  17908. fi
  17909. done
  17910. if test $ac_cv_header_heim_err_h = yes ; then
  17911. krb5_impl=heimdal
  17912. fi
  17913. if test "x$krb5_impl" = "xmit"; then
  17914. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lk5crypto" >&5
  17915. $as_echo_n "checking for main in -lk5crypto... " >&6; }
  17916. if ${ac_cv_lib_k5crypto_main+:} false; then :
  17917. $as_echo_n "(cached) " >&6
  17918. else
  17919. ac_check_lib_save_LIBS=$LIBS
  17920. LIBS="-lk5crypto $LIBS"
  17921. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17922. /* end confdefs.h. */
  17923. int
  17924. main ()
  17925. {
  17926. return main ();
  17927. ;
  17928. return 0;
  17929. }
  17930. _ACEOF
  17931. if ac_fn_c_try_link "$LINENO"; then :
  17932. ac_cv_lib_k5crypto_main=yes
  17933. else
  17934. ac_cv_lib_k5crypto_main=no
  17935. fi
  17936. rm -f core conftest.err conftest.$ac_objext \
  17937. conftest$ac_exeext conftest.$ac_ext
  17938. LIBS=$ac_check_lib_save_LIBS
  17939. fi
  17940. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_main" >&5
  17941. $as_echo "$ac_cv_lib_k5crypto_main" >&6; }
  17942. if test "x$ac_cv_lib_k5crypto_main" = xyes; then :
  17943. krb5crypto=k5crypto
  17944. else
  17945. krb5crypto=crypto
  17946. fi
  17947. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lkrb5" >&5
  17948. $as_echo_n "checking for main in -lkrb5... " >&6; }
  17949. if ${ac_cv_lib_krb5_main+:} false; then :
  17950. $as_echo_n "(cached) " >&6
  17951. else
  17952. ac_check_lib_save_LIBS=$LIBS
  17953. LIBS="-lkrb5 -l$krb5crypto -lcom_err $LIBS"
  17954. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17955. /* end confdefs.h. */
  17956. int
  17957. main ()
  17958. {
  17959. return main ();
  17960. ;
  17961. return 0;
  17962. }
  17963. _ACEOF
  17964. if ac_fn_c_try_link "$LINENO"; then :
  17965. ac_cv_lib_krb5_main=yes
  17966. else
  17967. ac_cv_lib_krb5_main=no
  17968. fi
  17969. rm -f core conftest.err conftest.$ac_objext \
  17970. conftest$ac_exeext conftest.$ac_ext
  17971. LIBS=$ac_check_lib_save_LIBS
  17972. fi
  17973. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_main" >&5
  17974. $as_echo "$ac_cv_lib_krb5_main" >&6; }
  17975. if test "x$ac_cv_lib_krb5_main" = xyes; then :
  17976. have_krb5=yes
  17977. kerberos_lib="-lkrb5 -l$krb5crypto -lcom_err"
  17978. else
  17979. have_krb5=no
  17980. fi
  17981. elif test "x$krb5_impl" = "xheimdal"; then
  17982. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ldes" >&5
  17983. $as_echo_n "checking for main in -ldes... " >&6; }
  17984. if ${ac_cv_lib_des_main+:} false; then :
  17985. $as_echo_n "(cached) " >&6
  17986. else
  17987. ac_check_lib_save_LIBS=$LIBS
  17988. LIBS="-ldes $LIBS"
  17989. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17990. /* end confdefs.h. */
  17991. int
  17992. main ()
  17993. {
  17994. return main ();
  17995. ;
  17996. return 0;
  17997. }
  17998. _ACEOF
  17999. if ac_fn_c_try_link "$LINENO"; then :
  18000. ac_cv_lib_des_main=yes
  18001. else
  18002. ac_cv_lib_des_main=no
  18003. fi
  18004. rm -f core conftest.err conftest.$ac_objext \
  18005. conftest$ac_exeext conftest.$ac_ext
  18006. LIBS=$ac_check_lib_save_LIBS
  18007. fi
  18008. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_main" >&5
  18009. $as_echo "$ac_cv_lib_des_main" >&6; }
  18010. if test "x$ac_cv_lib_des_main" = xyes; then :
  18011. krb5crypto=des
  18012. else
  18013. krb5crypto=crypto
  18014. fi
  18015. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lkrb5" >&5
  18016. $as_echo_n "checking for main in -lkrb5... " >&6; }
  18017. if ${ac_cv_lib_krb5_main+:} false; then :
  18018. $as_echo_n "(cached) " >&6
  18019. else
  18020. ac_check_lib_save_LIBS=$LIBS
  18021. LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
  18022. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18023. /* end confdefs.h. */
  18024. int
  18025. main ()
  18026. {
  18027. return main ();
  18028. ;
  18029. return 0;
  18030. }
  18031. _ACEOF
  18032. if ac_fn_c_try_link "$LINENO"; then :
  18033. ac_cv_lib_krb5_main=yes
  18034. else
  18035. ac_cv_lib_krb5_main=no
  18036. fi
  18037. rm -f core conftest.err conftest.$ac_objext \
  18038. conftest$ac_exeext conftest.$ac_ext
  18039. LIBS=$ac_check_lib_save_LIBS
  18040. fi
  18041. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_main" >&5
  18042. $as_echo "$ac_cv_lib_krb5_main" >&6; }
  18043. if test "x$ac_cv_lib_krb5_main" = xyes; then :
  18044. have_krb5=yes
  18045. kerberos_lib="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err"
  18046. else
  18047. have_krb5=no
  18048. fi
  18049. $as_echo "#define HAVE_HEIMDAL_KERBEROS 1" >>confdefs.h
  18050. else
  18051. have_krb5=no
  18052. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unrecognized Kerberos5 Implementation" >&5
  18053. $as_echo "$as_me: WARNING: Unrecognized Kerberos5 Implementation" >&2;}
  18054. fi
  18055. # reset to original values
  18056. CPPFLAGS="$save_CPPFLAGS"
  18057. LDFLAGS="$save_LDFLAGS"
  18058. if test -n "$kerberos_incdir" ; then
  18059. kerberos_inc="-I$kerberos_incdir"
  18060. fi
  18061. if test -n "$kerberos_libdir" ; then
  18062. kerberos_lib="-L$kerberos_libdir $kerberos_lib"
  18063. fi
  18064. fi
  18065. if test -n "$with_kerberos" ; then
  18066. if test "x$have_krb5" = "xyes" ; then
  18067. $as_echo "#define HAVE_KRB5 1" >>confdefs.h
  18068. else
  18069. as_fn_error $? "Required Kerberos 5 support not available" "$LINENO" 5
  18070. fi
  18071. save_LIBS="$LIBS"
  18072. LIBS="$kerberos_lib"
  18073. save_CPPFLAGS="$CPPFLAGS"
  18074. CPPFLAGS="$kerberos_inc $CPPFLAGS"
  18075. for ac_func in krb5_cc_new_unique
  18076. do :
  18077. ac_fn_c_check_func "$LINENO" "krb5_cc_new_unique" "ac_cv_func_krb5_cc_new_unique"
  18078. if test "x$ac_cv_func_krb5_cc_new_unique" = xyes; then :
  18079. cat >>confdefs.h <<_ACEOF
  18080. #define HAVE_KRB5_CC_NEW_UNIQUE 1
  18081. _ACEOF
  18082. fi
  18083. done
  18084. LIBS="$save_LIBS"
  18085. CPPFLAGS="$save_CPPFLAGS"
  18086. fi
  18087. # BEGIN COPYRIGHT BLOCK
  18088. # Copyright (C) 2007 Red Hat, Inc.
  18089. # All rights reserved.
  18090. #
  18091. # This program is free software; you can redistribute it and/or
  18092. # modify it under the terms of the GNU General Public License
  18093. # as published by the Free Software Foundation; either version 2
  18094. # of the License, or (at your option) any later version.
  18095. #
  18096. # This program is distributed in the hope that it will be useful,
  18097. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  18098. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  18099. # GNU General Public License for more details.
  18100. #
  18101. # You should have received a copy of the GNU General Public License
  18102. # along with this program; if not, write to the Free Software
  18103. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  18104. #
  18105. # END COPYRIGHT BLOCK
  18106. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCRE..." >&5
  18107. $as_echo "$as_me: checking for PCRE..." >&6;}
  18108. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pcre" >&5
  18109. $as_echo_n "checking for --with-pcre... " >&6; }
  18110. # Check whether --with-pcre was given.
  18111. if test "${with_pcre+set}" = set; then :
  18112. withval=$with_pcre;
  18113. if test "$withval" = "yes"; then
  18114. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18115. $as_echo "yes" >&6; }
  18116. elif test "$withval" = "no"; then
  18117. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18118. $as_echo "no" >&6; }
  18119. as_fn_error $? "PCRE is required." "$LINENO" 5
  18120. elif test -d "$withval"/include -a -d "$withval"/lib; then
  18121. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  18122. $as_echo "using $withval" >&6; }
  18123. PCREDIR=$withval
  18124. pcre_lib="-L$PCREDIR/lib"
  18125. pcre_libdir="$PCREDIR/lib"
  18126. pcre_incdir="$PCREDIR/include"
  18127. if ! test -e "$pcre_incdir/pcre.h" ; then
  18128. as_fn_error $? "$withval include dir not found" "$LINENO" 5
  18129. fi
  18130. pcre_inc="-I$pcre_incdir"
  18131. else
  18132. echo
  18133. as_fn_error $? "$withval not found" "$LINENO" 5
  18134. fi
  18135. else
  18136. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18137. $as_echo "yes" >&6; }
  18138. fi
  18139. #
  18140. # if PCRE is not found yet, try pkg-config
  18141. if test -z "$pcre_inc" -o -z "$pcre_lib" -o -z "$pcre_libdir"; then
  18142. # Extract the first word of "pkg-config", so it can be a program name with args.
  18143. set dummy pkg-config; ac_word=$2
  18144. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18145. $as_echo_n "checking for $ac_word... " >&6; }
  18146. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  18147. $as_echo_n "(cached) " >&6
  18148. else
  18149. case $PKG_CONFIG in
  18150. [\\/]* | ?:[\\/]*)
  18151. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  18152. ;;
  18153. *)
  18154. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18155. for as_dir in $PATH
  18156. do
  18157. IFS=$as_save_IFS
  18158. test -z "$as_dir" && as_dir=.
  18159. for ac_exec_ext in '' $ac_executable_extensions; do
  18160. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18161. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  18162. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18163. break 2
  18164. fi
  18165. done
  18166. done
  18167. IFS=$as_save_IFS
  18168. ;;
  18169. esac
  18170. fi
  18171. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  18172. if test -n "$PKG_CONFIG"; then
  18173. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  18174. $as_echo "$PKG_CONFIG" >&6; }
  18175. else
  18176. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18177. $as_echo "no" >&6; }
  18178. fi
  18179. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcre with pkg-config" >&5
  18180. $as_echo_n "checking for pcre with pkg-config... " >&6; }
  18181. if test -n "$PKG_CONFIG"; then
  18182. if $PKG_CONFIG --exists pcre; then
  18183. pcre_inc=`$PKG_CONFIG --cflags-only-I pcre`
  18184. pcre_lib=`$PKG_CONFIG --libs-only-L pcre`
  18185. pcre_libdir=`$PKG_CONFIG --libs-only-L pcre | sed -e s/-L// | sed -e s/\ .*$//`
  18186. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using system PCRE" >&5
  18187. $as_echo "using system PCRE" >&6; }
  18188. elif $PKG_CONFIG --exists libpcre; then
  18189. pcre_inc=`$PKG_CONFIG --cflags-only-I libpcre`
  18190. pcre_lib=`$PKG_CONFIG --libs-only-L libpcre`
  18191. pcre_libdir=`$PKG_CONFIG --libs-only-L libpcre | sed -e s/-L// | sed -e s/\ .*$//`
  18192. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using system PCRE" >&5
  18193. $as_echo "using system PCRE" >&6; }
  18194. else
  18195. as_fn_error $? "PCRE not found, specify with --with-pcre." "$LINENO" 5
  18196. fi
  18197. fi
  18198. fi
  18199. if test -z "$pcre_inc"; then
  18200. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcre.h" >&5
  18201. $as_echo_n "checking for pcre.h... " >&6; }
  18202. if test -f "/usr/include/pcre/pcre.h"; then
  18203. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using /usr/include/pcre/pcre.h" >&5
  18204. $as_echo "using /usr/include/pcre/pcre.h" >&6; }
  18205. pcre_incdir="/usr/include/pcre"
  18206. pcre_inc="-I/usr/include/pcre"
  18207. pcre_lib='-L$(libdir)'
  18208. pcre_libdir='$(libdir)'
  18209. elif test -f "/usr/include/pcre.h"; then
  18210. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using /usr/include/pcre.h" >&5
  18211. $as_echo "using /usr/include/pcre.h" >&6; }
  18212. pcre_incdir="/usr/include"
  18213. pcre_inc="-I/usr/include"
  18214. pcre_lib='-L$(libdir)'
  18215. pcre_libdir='$(libdir)'
  18216. else
  18217. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18218. $as_echo "no" >&6; }
  18219. as_fn_error $? "PCRE not found, specify with --with-pcre." "$LINENO" 5
  18220. fi
  18221. fi
  18222. # BEGIN COPYRIGHT BLOCK
  18223. # Copyright (C) 2009 Red Hat, Inc.
  18224. # All rights reserved.
  18225. #
  18226. # This program is free software; you can redistribute it and/or
  18227. # modify it under the terms of the GNU General Public License
  18228. # as published by the Free Software Foundation; either version 2
  18229. # of the License, or (at your option) any later version.
  18230. #
  18231. # This program is distributed in the hope that it will be useful,
  18232. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  18233. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  18234. # GNU General Public License for more details.
  18235. #
  18236. # You should have received a copy of the GNU General Public License
  18237. # along with this program; if not, write to the Free Software
  18238. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  18239. #
  18240. # END COPYRIGHT BLOCK
  18241. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SELinux..." >&5
  18242. $as_echo "$as_me: checking for SELinux..." >&6;}
  18243. # check for --with-selinux
  18244. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-selinux" >&5
  18245. $as_echo_n "checking for --with-selinux... " >&6; }
  18246. # Check whether --with-selinux was given.
  18247. if test "${with_selinux+set}" = set; then :
  18248. withval=$with_selinux;
  18249. if test "$withval" = "no"; then
  18250. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18251. $as_echo "no" >&6; }
  18252. else
  18253. with_selinux=yes
  18254. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18255. $as_echo "yes" >&6; }
  18256. fi
  18257. else
  18258. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18259. $as_echo "no" >&6; }
  18260. fi
  18261. PACKAGE_BASE_VERSION=`echo $PACKAGE_VERSION | awk -F\. '{print $1"."$2}'`
  18262. # set sasl_path for wrapper scripts
  18263. if test -z "$sasl_libdir" ; then
  18264. sasl_path="$libdir/sasl2"
  18265. else
  18266. sasl_path="$sasl_libdir/sasl2"
  18267. fi
  18268. if test "$with_selinux" = "yes"; then
  18269. SELINUX_TRUE=
  18270. SELINUX_FALSE='#'
  18271. else
  18272. SELINUX_TRUE='#'
  18273. SELINUX_FALSE=
  18274. fi
  18275. if test "$with_openldap" = "yes"; then
  18276. OPENLDAP_TRUE=
  18277. OPENLDAP_FALSE='#'
  18278. else
  18279. OPENLDAP_TRUE='#'
  18280. OPENLDAP_FALSE=
  18281. fi
  18282. if test "$platform" = "solaris"; then
  18283. SOLARIS_TRUE=
  18284. SOLARIS_FALSE='#'
  18285. else
  18286. SOLARIS_TRUE='#'
  18287. SOLARIS_FALSE=
  18288. fi
  18289. if test "x$TARGET" = xSPARC; then
  18290. SPARC_TRUE=
  18291. SPARC_FALSE='#'
  18292. else
  18293. SPARC_TRUE='#'
  18294. SPARC_FALSE=
  18295. fi
  18296. # write out paths for binary components
  18297. # AC_DEFINE([USE_OLD_UNHASHED], [], [Use old unhashed code])
  18298. $as_echo "#define LDAP_DEBUG 1" >>confdefs.h
  18299. $as_echo "#define LDAP_DONT_USE_SMARTHEAP 1" >>confdefs.h
  18300. # libtool on fedora/rhel contains some gcc-isms which cause problems
  18301. # if not using gcc (e.g. Forte on Solaris, aCC on HP-UX)
  18302. # we remove them here
  18303. if test "$GCC" != yes ; then
  18304. { $as_echo "$as_me:${as_lineno-$LINENO}: Not using gcc - fixing libtool to remove gcc-isms . . ." >&5
  18305. $as_echo "$as_me: Not using gcc - fixing libtool to remove gcc-isms . . ." >&6;}
  18306. cp -p libtool libtool.orig
  18307. cp -p libtool libtool.tmp
  18308. # dnl note the special chars [ and ] - since m4 treats [ and ] specially,
  18309. # we have to use the quadrigraph [ for [ and ] for ] - and you thought
  18310. # perl produced write-only code . . .
  18311. sed -e '/^gcc_dir/ d' \
  18312. -e '/^gcc_ver/ d' \
  18313. -e 's/^predep_objects=.*echo \("[^"]*"\).*$/predep_objects=\1/' \
  18314. -e 's/^postdep_objects=.*echo \("[^"]*"\).*$/postdep_objects=\1/' \
  18315. -e 's/^compiler_lib_search_path=.*echo \("[^"]*"\).*$/compiler_lib_search_path=\1/' \
  18316. -e 's/^sys_lib_search_path_spec=.*echo \("[^"]*"\).*$/sys_lib_search_path_spec=\1/' \
  18317. libtool > libtool.tmp
  18318. cp -p libtool.tmp libtool
  18319. rm -f libtool.tmp
  18320. fi
  18321. ac_config_files="$ac_config_files Makefile"
  18322. cat >confcache <<\_ACEOF
  18323. # This file is a shell script that caches the results of configure
  18324. # tests run on this system so they can be shared between configure
  18325. # scripts and configure runs, see configure's option --config-cache.
  18326. # It is not useful on other systems. If it contains results you don't
  18327. # want to keep, you may remove or edit it.
  18328. #
  18329. # config.status only pays attention to the cache file if you give it
  18330. # the --recheck option to rerun configure.
  18331. #
  18332. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  18333. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  18334. # following values.
  18335. _ACEOF
  18336. # The following way of writing the cache mishandles newlines in values,
  18337. # but we know of no workaround that is simple, portable, and efficient.
  18338. # So, we kill variables containing newlines.
  18339. # Ultrix sh set writes to stderr and can't be redirected directly,
  18340. # and sets the high bit in the cache file unless we assign to the vars.
  18341. (
  18342. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  18343. eval ac_val=\$$ac_var
  18344. case $ac_val in #(
  18345. *${as_nl}*)
  18346. case $ac_var in #(
  18347. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  18348. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  18349. esac
  18350. case $ac_var in #(
  18351. _ | IFS | as_nl) ;; #(
  18352. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  18353. *) { eval $ac_var=; unset $ac_var;} ;;
  18354. esac ;;
  18355. esac
  18356. done
  18357. (set) 2>&1 |
  18358. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  18359. *${as_nl}ac_space=\ *)
  18360. # `set' does not quote correctly, so add quotes: double-quote
  18361. # substitution turns \\\\ into \\, and sed turns \\ into \.
  18362. sed -n \
  18363. "s/'/'\\\\''/g;
  18364. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  18365. ;; #(
  18366. *)
  18367. # `set' quotes correctly as required by POSIX, so do not add quotes.
  18368. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  18369. ;;
  18370. esac |
  18371. sort
  18372. ) |
  18373. sed '
  18374. /^ac_cv_env_/b end
  18375. t clear
  18376. :clear
  18377. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  18378. t end
  18379. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  18380. :end' >>confcache
  18381. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  18382. if test -w "$cache_file"; then
  18383. if test "x$cache_file" != "x/dev/null"; then
  18384. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  18385. $as_echo "$as_me: updating cache $cache_file" >&6;}
  18386. if test ! -f "$cache_file" || test -h "$cache_file"; then
  18387. cat confcache >"$cache_file"
  18388. else
  18389. case $cache_file in #(
  18390. */* | ?:*)
  18391. mv -f confcache "$cache_file"$$ &&
  18392. mv -f "$cache_file"$$ "$cache_file" ;; #(
  18393. *)
  18394. mv -f confcache "$cache_file" ;;
  18395. esac
  18396. fi
  18397. fi
  18398. else
  18399. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  18400. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  18401. fi
  18402. fi
  18403. rm -f confcache
  18404. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  18405. # Let make expand exec_prefix.
  18406. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  18407. DEFS=-DHAVE_CONFIG_H
  18408. ac_libobjs=
  18409. ac_ltlibobjs=
  18410. U=
  18411. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  18412. # 1. Remove the extension, and $U if already installed.
  18413. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  18414. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  18415. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  18416. # will be set to the directory where LIBOBJS objects are built.
  18417. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  18418. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  18419. done
  18420. LIBOBJS=$ac_libobjs
  18421. LTLIBOBJS=$ac_ltlibobjs
  18422. { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  18423. $as_echo_n "checking that generated files are newer than configure... " >&6; }
  18424. if test -n "$am_sleep_pid"; then
  18425. # Hide warnings about reused PIDs.
  18426. wait $am_sleep_pid 2>/dev/null
  18427. fi
  18428. { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
  18429. $as_echo "done" >&6; }
  18430. if test -n "$EXEEXT"; then
  18431. am__EXEEXT_TRUE=
  18432. am__EXEEXT_FALSE='#'
  18433. else
  18434. am__EXEEXT_TRUE='#'
  18435. am__EXEEXT_FALSE=
  18436. fi
  18437. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  18438. as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
  18439. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18440. fi
  18441. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  18442. as_fn_error $? "conditional \"AMDEP\" was never defined.
  18443. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18444. fi
  18445. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  18446. as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
  18447. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18448. fi
  18449. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  18450. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  18451. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18452. fi
  18453. if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
  18454. as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
  18455. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18456. fi
  18457. if test -z "${BUNDLE_TRUE}" && test -z "${BUNDLE_FALSE}"; then
  18458. as_fn_error $? "conditional \"BUNDLE\" was never defined.
  18459. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18460. fi
  18461. if test -z "${enable_pam_passthru_TRUE}" && test -z "${enable_pam_passthru_FALSE}"; then
  18462. as_fn_error $? "conditional \"enable_pam_passthru\" was never defined.
  18463. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18464. fi
  18465. if test -z "${enable_dna_TRUE}" && test -z "${enable_dna_FALSE}"; then
  18466. as_fn_error $? "conditional \"enable_dna\" was never defined.
  18467. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18468. fi
  18469. if test -z "${enable_ldapi_TRUE}" && test -z "${enable_ldapi_FALSE}"; then
  18470. as_fn_error $? "conditional \"enable_ldapi\" was never defined.
  18471. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18472. fi
  18473. if test -z "${enable_autobind_TRUE}" && test -z "${enable_autobind_FALSE}"; then
  18474. as_fn_error $? "conditional \"enable_autobind\" was never defined.
  18475. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18476. fi
  18477. if test -z "${enable_auto_dn_suffix_TRUE}" && test -z "${enable_auto_dn_suffix_FALSE}"; then
  18478. as_fn_error $? "conditional \"enable_auto_dn_suffix\" was never defined.
  18479. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18480. fi
  18481. if test -z "${enable_bitwise_TRUE}" && test -z "${enable_bitwise_FALSE}"; then
  18482. as_fn_error $? "conditional \"enable_bitwise\" was never defined.
  18483. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18484. fi
  18485. if test -z "${enable_presence_TRUE}" && test -z "${enable_presence_FALSE}"; then
  18486. as_fn_error $? "conditional \"enable_presence\" was never defined.
  18487. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18488. fi
  18489. if test -z "${enable_acctpolicy_TRUE}" && test -z "${enable_acctpolicy_FALSE}"; then
  18490. as_fn_error $? "conditional \"enable_acctpolicy\" was never defined.
  18491. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18492. fi
  18493. if test -z "${enable_posix_winsync_TRUE}" && test -z "${enable_posix_winsync_FALSE}"; then
  18494. as_fn_error $? "conditional \"enable_posix_winsync\" was never defined.
  18495. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18496. fi
  18497. if test -z "${WINNT_TRUE}" && test -z "${WINNT_FALSE}"; then
  18498. as_fn_error $? "conditional \"WINNT\" was never defined.
  18499. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18500. fi
  18501. if test -z "${HPUX_TRUE}" && test -z "${HPUX_FALSE}"; then
  18502. as_fn_error $? "conditional \"HPUX\" was never defined.
  18503. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18504. fi
  18505. if test -z "${SOLARIS_TRUE}" && test -z "${SOLARIS_FALSE}"; then
  18506. as_fn_error $? "conditional \"SOLARIS\" was never defined.
  18507. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18508. fi
  18509. if test -z "${SYSTEMD_TRUE}" && test -z "${SYSTEMD_FALSE}"; then
  18510. as_fn_error $? "conditional \"SYSTEMD\" was never defined.
  18511. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18512. fi
  18513. if test -z "${SELINUX_TRUE}" && test -z "${SELINUX_FALSE}"; then
  18514. as_fn_error $? "conditional \"SELINUX\" was never defined.
  18515. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18516. fi
  18517. if test -z "${OPENLDAP_TRUE}" && test -z "${OPENLDAP_FALSE}"; then
  18518. as_fn_error $? "conditional \"OPENLDAP\" was never defined.
  18519. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18520. fi
  18521. if test -z "${SOLARIS_TRUE}" && test -z "${SOLARIS_FALSE}"; then
  18522. as_fn_error $? "conditional \"SOLARIS\" was never defined.
  18523. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18524. fi
  18525. if test -z "${SPARC_TRUE}" && test -z "${SPARC_FALSE}"; then
  18526. as_fn_error $? "conditional \"SPARC\" was never defined.
  18527. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18528. fi
  18529. : "${CONFIG_STATUS=./config.status}"
  18530. ac_write_fail=0
  18531. ac_clean_files_save=$ac_clean_files
  18532. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  18533. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  18534. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  18535. as_write_fail=0
  18536. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  18537. #! $SHELL
  18538. # Generated by $as_me.
  18539. # Run this file to recreate the current configuration.
  18540. # Compiler output produced by configure, useful for debugging
  18541. # configure, is in config.log if it exists.
  18542. debug=false
  18543. ac_cs_recheck=false
  18544. ac_cs_silent=false
  18545. SHELL=\${CONFIG_SHELL-$SHELL}
  18546. export SHELL
  18547. _ASEOF
  18548. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  18549. ## -------------------- ##
  18550. ## M4sh Initialization. ##
  18551. ## -------------------- ##
  18552. # Be more Bourne compatible
  18553. DUALCASE=1; export DUALCASE # for MKS sh
  18554. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  18555. emulate sh
  18556. NULLCMD=:
  18557. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  18558. # is contrary to our usage. Disable this feature.
  18559. alias -g '${1+"$@"}'='"$@"'
  18560. setopt NO_GLOB_SUBST
  18561. else
  18562. case `(set -o) 2>/dev/null` in #(
  18563. *posix*) :
  18564. set -o posix ;; #(
  18565. *) :
  18566. ;;
  18567. esac
  18568. fi
  18569. as_nl='
  18570. '
  18571. export as_nl
  18572. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  18573. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  18574. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  18575. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  18576. # Prefer a ksh shell builtin over an external printf program on Solaris,
  18577. # but without wasting forks for bash or zsh.
  18578. if test -z "$BASH_VERSION$ZSH_VERSION" \
  18579. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  18580. as_echo='print -r --'
  18581. as_echo_n='print -rn --'
  18582. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  18583. as_echo='printf %s\n'
  18584. as_echo_n='printf %s'
  18585. else
  18586. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  18587. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  18588. as_echo_n='/usr/ucb/echo -n'
  18589. else
  18590. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  18591. as_echo_n_body='eval
  18592. arg=$1;
  18593. case $arg in #(
  18594. *"$as_nl"*)
  18595. expr "X$arg" : "X\\(.*\\)$as_nl";
  18596. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  18597. esac;
  18598. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  18599. '
  18600. export as_echo_n_body
  18601. as_echo_n='sh -c $as_echo_n_body as_echo'
  18602. fi
  18603. export as_echo_body
  18604. as_echo='sh -c $as_echo_body as_echo'
  18605. fi
  18606. # The user is always right.
  18607. if test "${PATH_SEPARATOR+set}" != set; then
  18608. PATH_SEPARATOR=:
  18609. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  18610. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  18611. PATH_SEPARATOR=';'
  18612. }
  18613. fi
  18614. # IFS
  18615. # We need space, tab and new line, in precisely that order. Quoting is
  18616. # there to prevent editors from complaining about space-tab.
  18617. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  18618. # splitting by setting IFS to empty value.)
  18619. IFS=" "" $as_nl"
  18620. # Find who we are. Look in the path if we contain no directory separator.
  18621. as_myself=
  18622. case $0 in #((
  18623. *[\\/]* ) as_myself=$0 ;;
  18624. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18625. for as_dir in $PATH
  18626. do
  18627. IFS=$as_save_IFS
  18628. test -z "$as_dir" && as_dir=.
  18629. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  18630. done
  18631. IFS=$as_save_IFS
  18632. ;;
  18633. esac
  18634. # We did not find ourselves, most probably we were run as `sh COMMAND'
  18635. # in which case we are not to be found in the path.
  18636. if test "x$as_myself" = x; then
  18637. as_myself=$0
  18638. fi
  18639. if test ! -f "$as_myself"; then
  18640. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  18641. exit 1
  18642. fi
  18643. # Unset variables that we do not need and which cause bugs (e.g. in
  18644. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  18645. # suppresses any "Segmentation fault" message there. '((' could
  18646. # trigger a bug in pdksh 5.2.14.
  18647. for as_var in BASH_ENV ENV MAIL MAILPATH
  18648. do eval test x\${$as_var+set} = xset \
  18649. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  18650. done
  18651. PS1='$ '
  18652. PS2='> '
  18653. PS4='+ '
  18654. # NLS nuisances.
  18655. LC_ALL=C
  18656. export LC_ALL
  18657. LANGUAGE=C
  18658. export LANGUAGE
  18659. # CDPATH.
  18660. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  18661. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  18662. # ----------------------------------------
  18663. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  18664. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  18665. # script with STATUS, using 1 if that was 0.
  18666. as_fn_error ()
  18667. {
  18668. as_status=$1; test $as_status -eq 0 && as_status=1
  18669. if test "$4"; then
  18670. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  18671. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  18672. fi
  18673. $as_echo "$as_me: error: $2" >&2
  18674. as_fn_exit $as_status
  18675. } # as_fn_error
  18676. # as_fn_set_status STATUS
  18677. # -----------------------
  18678. # Set $? to STATUS, without forking.
  18679. as_fn_set_status ()
  18680. {
  18681. return $1
  18682. } # as_fn_set_status
  18683. # as_fn_exit STATUS
  18684. # -----------------
  18685. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  18686. as_fn_exit ()
  18687. {
  18688. set +e
  18689. as_fn_set_status $1
  18690. exit $1
  18691. } # as_fn_exit
  18692. # as_fn_unset VAR
  18693. # ---------------
  18694. # Portably unset VAR.
  18695. as_fn_unset ()
  18696. {
  18697. { eval $1=; unset $1;}
  18698. }
  18699. as_unset=as_fn_unset
  18700. # as_fn_append VAR VALUE
  18701. # ----------------------
  18702. # Append the text in VALUE to the end of the definition contained in VAR. Take
  18703. # advantage of any shell optimizations that allow amortized linear growth over
  18704. # repeated appends, instead of the typical quadratic growth present in naive
  18705. # implementations.
  18706. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  18707. eval 'as_fn_append ()
  18708. {
  18709. eval $1+=\$2
  18710. }'
  18711. else
  18712. as_fn_append ()
  18713. {
  18714. eval $1=\$$1\$2
  18715. }
  18716. fi # as_fn_append
  18717. # as_fn_arith ARG...
  18718. # ------------------
  18719. # Perform arithmetic evaluation on the ARGs, and store the result in the
  18720. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  18721. # must be portable across $(()) and expr.
  18722. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  18723. eval 'as_fn_arith ()
  18724. {
  18725. as_val=$(( $* ))
  18726. }'
  18727. else
  18728. as_fn_arith ()
  18729. {
  18730. as_val=`expr "$@" || test $? -eq 1`
  18731. }
  18732. fi # as_fn_arith
  18733. if expr a : '\(a\)' >/dev/null 2>&1 &&
  18734. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  18735. as_expr=expr
  18736. else
  18737. as_expr=false
  18738. fi
  18739. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  18740. as_basename=basename
  18741. else
  18742. as_basename=false
  18743. fi
  18744. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  18745. as_dirname=dirname
  18746. else
  18747. as_dirname=false
  18748. fi
  18749. as_me=`$as_basename -- "$0" ||
  18750. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  18751. X"$0" : 'X\(//\)$' \| \
  18752. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  18753. $as_echo X/"$0" |
  18754. sed '/^.*\/\([^/][^/]*\)\/*$/{
  18755. s//\1/
  18756. q
  18757. }
  18758. /^X\/\(\/\/\)$/{
  18759. s//\1/
  18760. q
  18761. }
  18762. /^X\/\(\/\).*/{
  18763. s//\1/
  18764. q
  18765. }
  18766. s/.*/./; q'`
  18767. # Avoid depending upon Character Ranges.
  18768. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  18769. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  18770. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  18771. as_cr_digits='0123456789'
  18772. as_cr_alnum=$as_cr_Letters$as_cr_digits
  18773. ECHO_C= ECHO_N= ECHO_T=
  18774. case `echo -n x` in #(((((
  18775. -n*)
  18776. case `echo 'xy\c'` in
  18777. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  18778. xy) ECHO_C='\c';;
  18779. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  18780. ECHO_T=' ';;
  18781. esac;;
  18782. *)
  18783. ECHO_N='-n';;
  18784. esac
  18785. rm -f conf$$ conf$$.exe conf$$.file
  18786. if test -d conf$$.dir; then
  18787. rm -f conf$$.dir/conf$$.file
  18788. else
  18789. rm -f conf$$.dir
  18790. mkdir conf$$.dir 2>/dev/null
  18791. fi
  18792. if (echo >conf$$.file) 2>/dev/null; then
  18793. if ln -s conf$$.file conf$$ 2>/dev/null; then
  18794. as_ln_s='ln -s'
  18795. # ... but there are two gotchas:
  18796. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  18797. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  18798. # In both cases, we have to default to `cp -pR'.
  18799. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  18800. as_ln_s='cp -pR'
  18801. elif ln conf$$.file conf$$ 2>/dev/null; then
  18802. as_ln_s=ln
  18803. else
  18804. as_ln_s='cp -pR'
  18805. fi
  18806. else
  18807. as_ln_s='cp -pR'
  18808. fi
  18809. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  18810. rmdir conf$$.dir 2>/dev/null
  18811. # as_fn_mkdir_p
  18812. # -------------
  18813. # Create "$as_dir" as a directory, including parents if necessary.
  18814. as_fn_mkdir_p ()
  18815. {
  18816. case $as_dir in #(
  18817. -*) as_dir=./$as_dir;;
  18818. esac
  18819. test -d "$as_dir" || eval $as_mkdir_p || {
  18820. as_dirs=
  18821. while :; do
  18822. case $as_dir in #(
  18823. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  18824. *) as_qdir=$as_dir;;
  18825. esac
  18826. as_dirs="'$as_qdir' $as_dirs"
  18827. as_dir=`$as_dirname -- "$as_dir" ||
  18828. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  18829. X"$as_dir" : 'X\(//\)[^/]' \| \
  18830. X"$as_dir" : 'X\(//\)$' \| \
  18831. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  18832. $as_echo X"$as_dir" |
  18833. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  18834. s//\1/
  18835. q
  18836. }
  18837. /^X\(\/\/\)[^/].*/{
  18838. s//\1/
  18839. q
  18840. }
  18841. /^X\(\/\/\)$/{
  18842. s//\1/
  18843. q
  18844. }
  18845. /^X\(\/\).*/{
  18846. s//\1/
  18847. q
  18848. }
  18849. s/.*/./; q'`
  18850. test -d "$as_dir" && break
  18851. done
  18852. test -z "$as_dirs" || eval "mkdir $as_dirs"
  18853. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  18854. } # as_fn_mkdir_p
  18855. if mkdir -p . 2>/dev/null; then
  18856. as_mkdir_p='mkdir -p "$as_dir"'
  18857. else
  18858. test -d ./-p && rmdir ./-p
  18859. as_mkdir_p=false
  18860. fi
  18861. # as_fn_executable_p FILE
  18862. # -----------------------
  18863. # Test if FILE is an executable regular file.
  18864. as_fn_executable_p ()
  18865. {
  18866. test -f "$1" && test -x "$1"
  18867. } # as_fn_executable_p
  18868. as_test_x='test -x'
  18869. as_executable_p=as_fn_executable_p
  18870. # Sed expression to map a string onto a valid CPP name.
  18871. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  18872. # Sed expression to map a string onto a valid variable name.
  18873. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  18874. exec 6>&1
  18875. ## ----------------------------------- ##
  18876. ## Main body of $CONFIG_STATUS script. ##
  18877. ## ----------------------------------- ##
  18878. _ASEOF
  18879. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  18880. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18881. # Save the log message, to keep $0 and so on meaningful, and to
  18882. # report actual input values of CONFIG_FILES etc. instead of their
  18883. # values after options handling.
  18884. ac_log="
  18885. This file was extended by dirsrv $as_me 1.0, which was
  18886. generated by GNU Autoconf 2.69. Invocation command line was
  18887. CONFIG_FILES = $CONFIG_FILES
  18888. CONFIG_HEADERS = $CONFIG_HEADERS
  18889. CONFIG_LINKS = $CONFIG_LINKS
  18890. CONFIG_COMMANDS = $CONFIG_COMMANDS
  18891. $ $0 $@
  18892. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  18893. "
  18894. _ACEOF
  18895. case $ac_config_files in *"
  18896. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  18897. esac
  18898. case $ac_config_headers in *"
  18899. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  18900. esac
  18901. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  18902. # Files that config.status was made for.
  18903. config_files="$ac_config_files"
  18904. config_headers="$ac_config_headers"
  18905. config_commands="$ac_config_commands"
  18906. _ACEOF
  18907. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18908. ac_cs_usage="\
  18909. \`$as_me' instantiates files and other configuration actions
  18910. from templates according to the current configuration. Unless the files
  18911. and actions are specified as TAGs, all are instantiated by default.
  18912. Usage: $0 [OPTION]... [TAG]...
  18913. -h, --help print this help, then exit
  18914. -V, --version print version number and configuration settings, then exit
  18915. --config print configuration, then exit
  18916. -q, --quiet, --silent
  18917. do not print progress messages
  18918. -d, --debug don't remove temporary files
  18919. --recheck update $as_me by reconfiguring in the same conditions
  18920. --file=FILE[:TEMPLATE]
  18921. instantiate the configuration file FILE
  18922. --header=FILE[:TEMPLATE]
  18923. instantiate the configuration header FILE
  18924. Configuration files:
  18925. $config_files
  18926. Configuration headers:
  18927. $config_headers
  18928. Configuration commands:
  18929. $config_commands
  18930. Report bugs to <http://bugzilla.redhat.com/>."
  18931. _ACEOF
  18932. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  18933. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  18934. ac_cs_version="\\
  18935. dirsrv config.status 1.0
  18936. configured by $0, generated by GNU Autoconf 2.69,
  18937. with options \\"\$ac_cs_config\\"
  18938. Copyright (C) 2012 Free Software Foundation, Inc.
  18939. This config.status script is free software; the Free Software Foundation
  18940. gives unlimited permission to copy, distribute and modify it."
  18941. ac_pwd='$ac_pwd'
  18942. srcdir='$srcdir'
  18943. INSTALL='$INSTALL'
  18944. MKDIR_P='$MKDIR_P'
  18945. AWK='$AWK'
  18946. test -n "\$AWK" || AWK=awk
  18947. _ACEOF
  18948. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18949. # The default lists apply if the user does not specify any file.
  18950. ac_need_defaults=:
  18951. while test $# != 0
  18952. do
  18953. case $1 in
  18954. --*=?*)
  18955. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  18956. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  18957. ac_shift=:
  18958. ;;
  18959. --*=)
  18960. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  18961. ac_optarg=
  18962. ac_shift=:
  18963. ;;
  18964. *)
  18965. ac_option=$1
  18966. ac_optarg=$2
  18967. ac_shift=shift
  18968. ;;
  18969. esac
  18970. case $ac_option in
  18971. # Handling of the options.
  18972. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  18973. ac_cs_recheck=: ;;
  18974. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  18975. $as_echo "$ac_cs_version"; exit ;;
  18976. --config | --confi | --conf | --con | --co | --c )
  18977. $as_echo "$ac_cs_config"; exit ;;
  18978. --debug | --debu | --deb | --de | --d | -d )
  18979. debug=: ;;
  18980. --file | --fil | --fi | --f )
  18981. $ac_shift
  18982. case $ac_optarg in
  18983. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  18984. '') as_fn_error $? "missing file argument" ;;
  18985. esac
  18986. as_fn_append CONFIG_FILES " '$ac_optarg'"
  18987. ac_need_defaults=false;;
  18988. --header | --heade | --head | --hea )
  18989. $ac_shift
  18990. case $ac_optarg in
  18991. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  18992. esac
  18993. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  18994. ac_need_defaults=false;;
  18995. --he | --h)
  18996. # Conflict between --help and --header
  18997. as_fn_error $? "ambiguous option: \`$1'
  18998. Try \`$0 --help' for more information.";;
  18999. --help | --hel | -h )
  19000. $as_echo "$ac_cs_usage"; exit ;;
  19001. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  19002. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  19003. ac_cs_silent=: ;;
  19004. # This is an error.
  19005. -*) as_fn_error $? "unrecognized option: \`$1'
  19006. Try \`$0 --help' for more information." ;;
  19007. *) as_fn_append ac_config_targets " $1"
  19008. ac_need_defaults=false ;;
  19009. esac
  19010. shift
  19011. done
  19012. ac_configure_extra_args=
  19013. if $ac_cs_silent; then
  19014. exec 6>/dev/null
  19015. ac_configure_extra_args="$ac_configure_extra_args --silent"
  19016. fi
  19017. _ACEOF
  19018. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19019. if \$ac_cs_recheck; then
  19020. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  19021. shift
  19022. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  19023. CONFIG_SHELL='$SHELL'
  19024. export CONFIG_SHELL
  19025. exec "\$@"
  19026. fi
  19027. _ACEOF
  19028. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19029. exec 5>>config.log
  19030. {
  19031. echo
  19032. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  19033. ## Running $as_me. ##
  19034. _ASBOX
  19035. $as_echo "$ac_log"
  19036. } >&5
  19037. _ACEOF
  19038. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19039. #
  19040. # INIT-COMMANDS
  19041. #
  19042. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  19043. # The HP-UX ksh and POSIX shell print the target directory to stdout
  19044. # if CDPATH is set.
  19045. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  19046. sed_quote_subst='$sed_quote_subst'
  19047. double_quote_subst='$double_quote_subst'
  19048. delay_variable_subst='$delay_variable_subst'
  19049. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  19050. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  19051. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  19052. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  19053. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  19054. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  19055. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  19056. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  19057. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  19058. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  19059. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  19060. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  19061. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  19062. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  19063. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  19064. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  19065. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  19066. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  19067. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  19068. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  19069. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  19070. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  19071. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  19072. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  19073. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  19074. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  19075. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  19076. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  19077. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  19078. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  19079. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  19080. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  19081. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  19082. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  19083. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  19084. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  19085. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  19086. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  19087. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  19088. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  19089. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  19090. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  19091. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  19092. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  19093. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  19094. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  19095. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  19096. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  19097. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  19098. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  19099. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  19100. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  19101. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  19102. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  19103. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  19104. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  19105. 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"`'
  19106. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  19107. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  19108. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  19109. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  19110. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  19111. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  19112. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  19113. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  19114. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  19115. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  19116. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  19117. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  19118. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  19119. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  19120. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  19121. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  19122. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  19123. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  19124. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  19125. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  19126. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  19127. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  19128. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  19129. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  19130. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  19131. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  19132. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  19133. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  19134. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  19135. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  19136. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  19137. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  19138. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  19139. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  19140. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  19141. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  19142. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  19143. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  19144. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  19145. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  19146. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  19147. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  19148. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  19149. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  19150. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  19151. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  19152. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  19153. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  19154. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  19155. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  19156. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  19157. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  19158. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  19159. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  19160. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  19161. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  19162. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  19163. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  19164. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  19165. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  19166. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  19167. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  19168. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  19169. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  19170. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  19171. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  19172. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  19173. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  19174. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  19175. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  19176. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  19177. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  19178. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  19179. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  19180. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  19181. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  19182. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  19183. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  19184. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  19185. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  19186. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  19187. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  19188. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  19189. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  19190. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  19191. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  19192. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  19193. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  19194. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  19195. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  19196. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  19197. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  19198. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  19199. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  19200. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  19201. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  19202. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  19203. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  19204. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  19205. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  19206. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  19207. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  19208. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  19209. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  19210. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  19211. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  19212. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  19213. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  19214. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  19215. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  19216. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  19217. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  19218. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  19219. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  19220. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  19221. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  19222. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  19223. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  19224. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  19225. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  19226. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  19227. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  19228. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  19229. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  19230. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  19231. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  19232. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  19233. LTCC='$LTCC'
  19234. LTCFLAGS='$LTCFLAGS'
  19235. compiler='$compiler_DEFAULT'
  19236. # A function that is used when there is no print builtin or printf.
  19237. func_fallback_echo ()
  19238. {
  19239. eval 'cat <<_LTECHO_EOF
  19240. \$1
  19241. _LTECHO_EOF'
  19242. }
  19243. # Quote evaled strings.
  19244. for var in SHELL \
  19245. ECHO \
  19246. PATH_SEPARATOR \
  19247. SED \
  19248. GREP \
  19249. EGREP \
  19250. FGREP \
  19251. LD \
  19252. NM \
  19253. LN_S \
  19254. lt_SP2NL \
  19255. lt_NL2SP \
  19256. reload_flag \
  19257. OBJDUMP \
  19258. deplibs_check_method \
  19259. file_magic_cmd \
  19260. file_magic_glob \
  19261. want_nocaseglob \
  19262. DLLTOOL \
  19263. sharedlib_from_linklib_cmd \
  19264. AR \
  19265. AR_FLAGS \
  19266. archiver_list_spec \
  19267. STRIP \
  19268. RANLIB \
  19269. CC \
  19270. CFLAGS \
  19271. compiler \
  19272. lt_cv_sys_global_symbol_pipe \
  19273. lt_cv_sys_global_symbol_to_cdecl \
  19274. lt_cv_sys_global_symbol_to_c_name_address \
  19275. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  19276. nm_file_list_spec \
  19277. lt_prog_compiler_no_builtin_flag \
  19278. lt_prog_compiler_pic \
  19279. lt_prog_compiler_wl \
  19280. lt_prog_compiler_static \
  19281. lt_cv_prog_compiler_c_o \
  19282. need_locks \
  19283. MANIFEST_TOOL \
  19284. DSYMUTIL \
  19285. NMEDIT \
  19286. LIPO \
  19287. OTOOL \
  19288. OTOOL64 \
  19289. shrext_cmds \
  19290. export_dynamic_flag_spec \
  19291. whole_archive_flag_spec \
  19292. compiler_needs_object \
  19293. with_gnu_ld \
  19294. allow_undefined_flag \
  19295. no_undefined_flag \
  19296. hardcode_libdir_flag_spec \
  19297. hardcode_libdir_separator \
  19298. exclude_expsyms \
  19299. include_expsyms \
  19300. file_list_spec \
  19301. variables_saved_for_relink \
  19302. libname_spec \
  19303. library_names_spec \
  19304. soname_spec \
  19305. install_override_mode \
  19306. finish_eval \
  19307. old_striplib \
  19308. striplib \
  19309. compiler_lib_search_dirs \
  19310. predep_objects \
  19311. postdep_objects \
  19312. predeps \
  19313. postdeps \
  19314. compiler_lib_search_path \
  19315. LD_CXX \
  19316. reload_flag_CXX \
  19317. compiler_CXX \
  19318. lt_prog_compiler_no_builtin_flag_CXX \
  19319. lt_prog_compiler_pic_CXX \
  19320. lt_prog_compiler_wl_CXX \
  19321. lt_prog_compiler_static_CXX \
  19322. lt_cv_prog_compiler_c_o_CXX \
  19323. export_dynamic_flag_spec_CXX \
  19324. whole_archive_flag_spec_CXX \
  19325. compiler_needs_object_CXX \
  19326. with_gnu_ld_CXX \
  19327. allow_undefined_flag_CXX \
  19328. no_undefined_flag_CXX \
  19329. hardcode_libdir_flag_spec_CXX \
  19330. hardcode_libdir_separator_CXX \
  19331. exclude_expsyms_CXX \
  19332. include_expsyms_CXX \
  19333. file_list_spec_CXX \
  19334. compiler_lib_search_dirs_CXX \
  19335. predep_objects_CXX \
  19336. postdep_objects_CXX \
  19337. predeps_CXX \
  19338. postdeps_CXX \
  19339. compiler_lib_search_path_CXX; do
  19340. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  19341. *[\\\\\\\`\\"\\\$]*)
  19342. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  19343. ;;
  19344. *)
  19345. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  19346. ;;
  19347. esac
  19348. done
  19349. # Double-quote double-evaled strings.
  19350. for var in reload_cmds \
  19351. old_postinstall_cmds \
  19352. old_postuninstall_cmds \
  19353. old_archive_cmds \
  19354. extract_expsyms_cmds \
  19355. old_archive_from_new_cmds \
  19356. old_archive_from_expsyms_cmds \
  19357. archive_cmds \
  19358. archive_expsym_cmds \
  19359. module_cmds \
  19360. module_expsym_cmds \
  19361. export_symbols_cmds \
  19362. prelink_cmds \
  19363. postlink_cmds \
  19364. postinstall_cmds \
  19365. postuninstall_cmds \
  19366. finish_cmds \
  19367. sys_lib_search_path_spec \
  19368. sys_lib_dlsearch_path_spec \
  19369. reload_cmds_CXX \
  19370. old_archive_cmds_CXX \
  19371. old_archive_from_new_cmds_CXX \
  19372. old_archive_from_expsyms_cmds_CXX \
  19373. archive_cmds_CXX \
  19374. archive_expsym_cmds_CXX \
  19375. module_cmds_CXX \
  19376. module_expsym_cmds_CXX \
  19377. export_symbols_cmds_CXX \
  19378. prelink_cmds_CXX \
  19379. postlink_cmds_CXX; do
  19380. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  19381. *[\\\\\\\`\\"\\\$]*)
  19382. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  19383. ;;
  19384. *)
  19385. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  19386. ;;
  19387. esac
  19388. done
  19389. ac_aux_dir='$ac_aux_dir'
  19390. xsi_shell='$xsi_shell'
  19391. lt_shell_append='$lt_shell_append'
  19392. # See if we are running on zsh, and set the options which allow our
  19393. # commands through without removal of \ escapes INIT.
  19394. if test -n "\${ZSH_VERSION+set}" ; then
  19395. setopt NO_GLOB_SUBST
  19396. fi
  19397. PACKAGE='$PACKAGE'
  19398. VERSION='$VERSION'
  19399. TIMESTAMP='$TIMESTAMP'
  19400. RM='$RM'
  19401. ofile='$ofile'
  19402. _ACEOF
  19403. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19404. # Handling of arguments.
  19405. for ac_config_target in $ac_config_targets
  19406. do
  19407. case $ac_config_target in
  19408. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  19409. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  19410. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  19411. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  19412. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  19413. esac
  19414. done
  19415. # If the user did not use the arguments to specify the items to instantiate,
  19416. # then the envvar interface is used. Set only those that are not.
  19417. # We use the long form for the default assignment because of an extremely
  19418. # bizarre bug on SunOS 4.1.3.
  19419. if $ac_need_defaults; then
  19420. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  19421. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  19422. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  19423. fi
  19424. # Have a temporary directory for convenience. Make it in the build tree
  19425. # simply because there is no reason against having it here, and in addition,
  19426. # creating and moving files from /tmp can sometimes cause problems.
  19427. # Hook for its removal unless debugging.
  19428. # Note that there is a small window in which the directory will not be cleaned:
  19429. # after its creation but before its name has been assigned to `$tmp'.
  19430. $debug ||
  19431. {
  19432. tmp= ac_tmp=
  19433. trap 'exit_status=$?
  19434. : "${ac_tmp:=$tmp}"
  19435. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  19436. ' 0
  19437. trap 'as_fn_exit 1' 1 2 13 15
  19438. }
  19439. # Create a (secure) tmp directory for tmp files.
  19440. {
  19441. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  19442. test -d "$tmp"
  19443. } ||
  19444. {
  19445. tmp=./conf$$-$RANDOM
  19446. (umask 077 && mkdir "$tmp")
  19447. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  19448. ac_tmp=$tmp
  19449. # Set up the scripts for CONFIG_FILES section.
  19450. # No need to generate them if there are no CONFIG_FILES.
  19451. # This happens for instance with `./config.status config.h'.
  19452. if test -n "$CONFIG_FILES"; then
  19453. ac_cr=`echo X | tr X '\015'`
  19454. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  19455. # But we know of no other shell where ac_cr would be empty at this
  19456. # point, so we can use a bashism as a fallback.
  19457. if test "x$ac_cr" = x; then
  19458. eval ac_cr=\$\'\\r\'
  19459. fi
  19460. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  19461. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  19462. ac_cs_awk_cr='\\r'
  19463. else
  19464. ac_cs_awk_cr=$ac_cr
  19465. fi
  19466. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  19467. _ACEOF
  19468. {
  19469. echo "cat >conf$$subs.awk <<_ACEOF" &&
  19470. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  19471. echo "_ACEOF"
  19472. } >conf$$subs.sh ||
  19473. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  19474. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  19475. ac_delim='%!_!# '
  19476. for ac_last_try in false false false false false :; do
  19477. . ./conf$$subs.sh ||
  19478. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  19479. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  19480. if test $ac_delim_n = $ac_delim_num; then
  19481. break
  19482. elif $ac_last_try; then
  19483. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  19484. else
  19485. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  19486. fi
  19487. done
  19488. rm -f conf$$subs.sh
  19489. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19490. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  19491. _ACEOF
  19492. sed -n '
  19493. h
  19494. s/^/S["/; s/!.*/"]=/
  19495. p
  19496. g
  19497. s/^[^!]*!//
  19498. :repl
  19499. t repl
  19500. s/'"$ac_delim"'$//
  19501. t delim
  19502. :nl
  19503. h
  19504. s/\(.\{148\}\)..*/\1/
  19505. t more1
  19506. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  19507. p
  19508. n
  19509. b repl
  19510. :more1
  19511. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  19512. p
  19513. g
  19514. s/.\{148\}//
  19515. t nl
  19516. :delim
  19517. h
  19518. s/\(.\{148\}\)..*/\1/
  19519. t more2
  19520. s/["\\]/\\&/g; s/^/"/; s/$/"/
  19521. p
  19522. b
  19523. :more2
  19524. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  19525. p
  19526. g
  19527. s/.\{148\}//
  19528. t delim
  19529. ' <conf$$subs.awk | sed '
  19530. /^[^""]/{
  19531. N
  19532. s/\n//
  19533. }
  19534. ' >>$CONFIG_STATUS || ac_write_fail=1
  19535. rm -f conf$$subs.awk
  19536. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19537. _ACAWK
  19538. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  19539. for (key in S) S_is_set[key] = 1
  19540. FS = ""
  19541. }
  19542. {
  19543. line = $ 0
  19544. nfields = split(line, field, "@")
  19545. substed = 0
  19546. len = length(field[1])
  19547. for (i = 2; i < nfields; i++) {
  19548. key = field[i]
  19549. keylen = length(key)
  19550. if (S_is_set[key]) {
  19551. value = S[key]
  19552. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  19553. len += length(value) + length(field[++i])
  19554. substed = 1
  19555. } else
  19556. len += 1 + keylen
  19557. }
  19558. print line
  19559. }
  19560. _ACAWK
  19561. _ACEOF
  19562. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19563. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  19564. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  19565. else
  19566. cat
  19567. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  19568. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  19569. _ACEOF
  19570. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  19571. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  19572. # trailing colons and then remove the whole line if VPATH becomes empty
  19573. # (actually we leave an empty line to preserve line numbers).
  19574. if test "x$srcdir" = x.; then
  19575. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  19576. h
  19577. s///
  19578. s/^/:/
  19579. s/[ ]*$/:/
  19580. s/:\$(srcdir):/:/g
  19581. s/:\${srcdir}:/:/g
  19582. s/:@srcdir@:/:/g
  19583. s/^:*//
  19584. s/:*$//
  19585. x
  19586. s/\(=[ ]*\).*/\1/
  19587. G
  19588. s/\n//
  19589. s/^[^=]*=[ ]*$//
  19590. }'
  19591. fi
  19592. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19593. fi # test -n "$CONFIG_FILES"
  19594. # Set up the scripts for CONFIG_HEADERS section.
  19595. # No need to generate them if there are no CONFIG_HEADERS.
  19596. # This happens for instance with `./config.status Makefile'.
  19597. if test -n "$CONFIG_HEADERS"; then
  19598. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  19599. BEGIN {
  19600. _ACEOF
  19601. # Transform confdefs.h into an awk script `defines.awk', embedded as
  19602. # here-document in config.status, that substitutes the proper values into
  19603. # config.h.in to produce config.h.
  19604. # Create a delimiter string that does not exist in confdefs.h, to ease
  19605. # handling of long lines.
  19606. ac_delim='%!_!# '
  19607. for ac_last_try in false false :; do
  19608. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  19609. if test -z "$ac_tt"; then
  19610. break
  19611. elif $ac_last_try; then
  19612. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  19613. else
  19614. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  19615. fi
  19616. done
  19617. # For the awk script, D is an array of macro values keyed by name,
  19618. # likewise P contains macro parameters if any. Preserve backslash
  19619. # newline sequences.
  19620. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  19621. sed -n '
  19622. s/.\{148\}/&'"$ac_delim"'/g
  19623. t rset
  19624. :rset
  19625. s/^[ ]*#[ ]*define[ ][ ]*/ /
  19626. t def
  19627. d
  19628. :def
  19629. s/\\$//
  19630. t bsnl
  19631. s/["\\]/\\&/g
  19632. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  19633. D["\1"]=" \3"/p
  19634. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  19635. d
  19636. :bsnl
  19637. s/["\\]/\\&/g
  19638. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  19639. D["\1"]=" \3\\\\\\n"\\/p
  19640. t cont
  19641. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  19642. t cont
  19643. d
  19644. :cont
  19645. n
  19646. s/.\{148\}/&'"$ac_delim"'/g
  19647. t clear
  19648. :clear
  19649. s/\\$//
  19650. t bsnlc
  19651. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  19652. d
  19653. :bsnlc
  19654. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  19655. b cont
  19656. ' <confdefs.h | sed '
  19657. s/'"$ac_delim"'/"\\\
  19658. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  19659. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19660. for (key in D) D_is_set[key] = 1
  19661. FS = ""
  19662. }
  19663. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  19664. line = \$ 0
  19665. split(line, arg, " ")
  19666. if (arg[1] == "#") {
  19667. defundef = arg[2]
  19668. mac1 = arg[3]
  19669. } else {
  19670. defundef = substr(arg[1], 2)
  19671. mac1 = arg[2]
  19672. }
  19673. split(mac1, mac2, "(") #)
  19674. macro = mac2[1]
  19675. prefix = substr(line, 1, index(line, defundef) - 1)
  19676. if (D_is_set[macro]) {
  19677. # Preserve the white space surrounding the "#".
  19678. print prefix "define", macro P[macro] D[macro]
  19679. next
  19680. } else {
  19681. # Replace #undef with comments. This is necessary, for example,
  19682. # in the case of _POSIX_SOURCE, which is predefined and required
  19683. # on some systems where configure will not decide to define it.
  19684. if (defundef == "undef") {
  19685. print "/*", prefix defundef, macro, "*/"
  19686. next
  19687. }
  19688. }
  19689. }
  19690. { print }
  19691. _ACAWK
  19692. _ACEOF
  19693. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19694. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  19695. fi # test -n "$CONFIG_HEADERS"
  19696. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  19697. shift
  19698. for ac_tag
  19699. do
  19700. case $ac_tag in
  19701. :[FHLC]) ac_mode=$ac_tag; continue;;
  19702. esac
  19703. case $ac_mode$ac_tag in
  19704. :[FHL]*:*);;
  19705. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  19706. :[FH]-) ac_tag=-:-;;
  19707. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  19708. esac
  19709. ac_save_IFS=$IFS
  19710. IFS=:
  19711. set x $ac_tag
  19712. IFS=$ac_save_IFS
  19713. shift
  19714. ac_file=$1
  19715. shift
  19716. case $ac_mode in
  19717. :L) ac_source=$1;;
  19718. :[FH])
  19719. ac_file_inputs=
  19720. for ac_f
  19721. do
  19722. case $ac_f in
  19723. -) ac_f="$ac_tmp/stdin";;
  19724. *) # Look for the file first in the build tree, then in the source tree
  19725. # (if the path is not absolute). The absolute path cannot be DOS-style,
  19726. # because $ac_f cannot contain `:'.
  19727. test -f "$ac_f" ||
  19728. case $ac_f in
  19729. [\\/$]*) false;;
  19730. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  19731. esac ||
  19732. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  19733. esac
  19734. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  19735. as_fn_append ac_file_inputs " '$ac_f'"
  19736. done
  19737. # Let's still pretend it is `configure' which instantiates (i.e., don't
  19738. # use $as_me), people would be surprised to read:
  19739. # /* config.h. Generated by config.status. */
  19740. configure_input='Generated from '`
  19741. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  19742. `' by configure.'
  19743. if test x"$ac_file" != x-; then
  19744. configure_input="$ac_file. $configure_input"
  19745. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  19746. $as_echo "$as_me: creating $ac_file" >&6;}
  19747. fi
  19748. # Neutralize special characters interpreted by sed in replacement strings.
  19749. case $configure_input in #(
  19750. *\&* | *\|* | *\\* )
  19751. ac_sed_conf_input=`$as_echo "$configure_input" |
  19752. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  19753. *) ac_sed_conf_input=$configure_input;;
  19754. esac
  19755. case $ac_tag in
  19756. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  19757. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  19758. esac
  19759. ;;
  19760. esac
  19761. ac_dir=`$as_dirname -- "$ac_file" ||
  19762. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  19763. X"$ac_file" : 'X\(//\)[^/]' \| \
  19764. X"$ac_file" : 'X\(//\)$' \| \
  19765. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  19766. $as_echo X"$ac_file" |
  19767. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  19768. s//\1/
  19769. q
  19770. }
  19771. /^X\(\/\/\)[^/].*/{
  19772. s//\1/
  19773. q
  19774. }
  19775. /^X\(\/\/\)$/{
  19776. s//\1/
  19777. q
  19778. }
  19779. /^X\(\/\).*/{
  19780. s//\1/
  19781. q
  19782. }
  19783. s/.*/./; q'`
  19784. as_dir="$ac_dir"; as_fn_mkdir_p
  19785. ac_builddir=.
  19786. case "$ac_dir" in
  19787. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  19788. *)
  19789. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  19790. # A ".." for each directory in $ac_dir_suffix.
  19791. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  19792. case $ac_top_builddir_sub in
  19793. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  19794. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  19795. esac ;;
  19796. esac
  19797. ac_abs_top_builddir=$ac_pwd
  19798. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  19799. # for backward compatibility:
  19800. ac_top_builddir=$ac_top_build_prefix
  19801. case $srcdir in
  19802. .) # We are building in place.
  19803. ac_srcdir=.
  19804. ac_top_srcdir=$ac_top_builddir_sub
  19805. ac_abs_top_srcdir=$ac_pwd ;;
  19806. [\\/]* | ?:[\\/]* ) # Absolute name.
  19807. ac_srcdir=$srcdir$ac_dir_suffix;
  19808. ac_top_srcdir=$srcdir
  19809. ac_abs_top_srcdir=$srcdir ;;
  19810. *) # Relative name.
  19811. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  19812. ac_top_srcdir=$ac_top_build_prefix$srcdir
  19813. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  19814. esac
  19815. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  19816. case $ac_mode in
  19817. :F)
  19818. #
  19819. # CONFIG_FILE
  19820. #
  19821. case $INSTALL in
  19822. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  19823. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  19824. esac
  19825. ac_MKDIR_P=$MKDIR_P
  19826. case $MKDIR_P in
  19827. [\\/$]* | ?:[\\/]* ) ;;
  19828. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  19829. esac
  19830. _ACEOF
  19831. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19832. # If the template does not know about datarootdir, expand it.
  19833. # FIXME: This hack should be removed a few years after 2.60.
  19834. ac_datarootdir_hack=; ac_datarootdir_seen=
  19835. ac_sed_dataroot='
  19836. /datarootdir/ {
  19837. p
  19838. q
  19839. }
  19840. /@datadir@/p
  19841. /@docdir@/p
  19842. /@infodir@/p
  19843. /@localedir@/p
  19844. /@mandir@/p'
  19845. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  19846. *datarootdir*) ac_datarootdir_seen=yes;;
  19847. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  19848. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  19849. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  19850. _ACEOF
  19851. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19852. ac_datarootdir_hack='
  19853. s&@datadir@&$datadir&g
  19854. s&@docdir@&$docdir&g
  19855. s&@infodir@&$infodir&g
  19856. s&@localedir@&$localedir&g
  19857. s&@mandir@&$mandir&g
  19858. s&\\\${datarootdir}&$datarootdir&g' ;;
  19859. esac
  19860. _ACEOF
  19861. # Neutralize VPATH when `$srcdir' = `.'.
  19862. # Shell code in configure.ac might set extrasub.
  19863. # FIXME: do we really want to maintain this feature?
  19864. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19865. ac_sed_extra="$ac_vpsub
  19866. $extrasub
  19867. _ACEOF
  19868. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19869. :t
  19870. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  19871. s|@configure_input@|$ac_sed_conf_input|;t t
  19872. s&@top_builddir@&$ac_top_builddir_sub&;t t
  19873. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  19874. s&@srcdir@&$ac_srcdir&;t t
  19875. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  19876. s&@top_srcdir@&$ac_top_srcdir&;t t
  19877. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  19878. s&@builddir@&$ac_builddir&;t t
  19879. s&@abs_builddir@&$ac_abs_builddir&;t t
  19880. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  19881. s&@INSTALL@&$ac_INSTALL&;t t
  19882. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  19883. $ac_datarootdir_hack
  19884. "
  19885. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  19886. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  19887. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  19888. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  19889. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  19890. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  19891. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  19892. which seems to be undefined. Please make sure it is defined" >&5
  19893. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  19894. which seems to be undefined. Please make sure it is defined" >&2;}
  19895. rm -f "$ac_tmp/stdin"
  19896. case $ac_file in
  19897. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  19898. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  19899. esac \
  19900. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  19901. ;;
  19902. :H)
  19903. #
  19904. # CONFIG_HEADER
  19905. #
  19906. if test x"$ac_file" != x-; then
  19907. {
  19908. $as_echo "/* $configure_input */" \
  19909. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  19910. } >"$ac_tmp/config.h" \
  19911. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  19912. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  19913. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  19914. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  19915. else
  19916. rm -f "$ac_file"
  19917. mv "$ac_tmp/config.h" "$ac_file" \
  19918. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  19919. fi
  19920. else
  19921. $as_echo "/* $configure_input */" \
  19922. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  19923. || as_fn_error $? "could not create -" "$LINENO" 5
  19924. fi
  19925. # Compute "$ac_file"'s index in $config_headers.
  19926. _am_arg="$ac_file"
  19927. _am_stamp_count=1
  19928. for _am_header in $config_headers :; do
  19929. case $_am_header in
  19930. $_am_arg | $_am_arg:* )
  19931. break ;;
  19932. * )
  19933. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  19934. esac
  19935. done
  19936. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  19937. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  19938. X"$_am_arg" : 'X\(//\)[^/]' \| \
  19939. X"$_am_arg" : 'X\(//\)$' \| \
  19940. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  19941. $as_echo X"$_am_arg" |
  19942. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  19943. s//\1/
  19944. q
  19945. }
  19946. /^X\(\/\/\)[^/].*/{
  19947. s//\1/
  19948. q
  19949. }
  19950. /^X\(\/\/\)$/{
  19951. s//\1/
  19952. q
  19953. }
  19954. /^X\(\/\).*/{
  19955. s//\1/
  19956. q
  19957. }
  19958. s/.*/./; q'`/stamp-h$_am_stamp_count
  19959. ;;
  19960. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  19961. $as_echo "$as_me: executing $ac_file commands" >&6;}
  19962. ;;
  19963. esac
  19964. case $ac_file$ac_mode in
  19965. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  19966. # Older Autoconf quotes --file arguments for eval, but not when files
  19967. # are listed without --file. Let's play safe and only enable the eval
  19968. # if we detect the quoting.
  19969. case $CONFIG_FILES in
  19970. *\'*) eval set x "$CONFIG_FILES" ;;
  19971. *) set x $CONFIG_FILES ;;
  19972. esac
  19973. shift
  19974. for mf
  19975. do
  19976. # Strip MF so we end up with the name of the file.
  19977. mf=`echo "$mf" | sed -e 's/:.*$//'`
  19978. # Check whether this is an Automake generated Makefile or not.
  19979. # We used to match only the files named 'Makefile.in', but
  19980. # some people rename them; so instead we look at the file content.
  19981. # Grep'ing the first line is not enough: some people post-process
  19982. # each Makefile.in and add a new line on top of each file to say so.
  19983. # Grep'ing the whole file is not good either: AIX grep has a line
  19984. # limit of 2048, but all sed's we know have understand at least 4000.
  19985. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  19986. dirpart=`$as_dirname -- "$mf" ||
  19987. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  19988. X"$mf" : 'X\(//\)[^/]' \| \
  19989. X"$mf" : 'X\(//\)$' \| \
  19990. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  19991. $as_echo X"$mf" |
  19992. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  19993. s//\1/
  19994. q
  19995. }
  19996. /^X\(\/\/\)[^/].*/{
  19997. s//\1/
  19998. q
  19999. }
  20000. /^X\(\/\/\)$/{
  20001. s//\1/
  20002. q
  20003. }
  20004. /^X\(\/\).*/{
  20005. s//\1/
  20006. q
  20007. }
  20008. s/.*/./; q'`
  20009. else
  20010. continue
  20011. fi
  20012. # Extract the definition of DEPDIR, am__include, and am__quote
  20013. # from the Makefile without running 'make'.
  20014. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  20015. test -z "$DEPDIR" && continue
  20016. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  20017. test -z "$am__include" && continue
  20018. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  20019. # Find all dependency output files, they are included files with
  20020. # $(DEPDIR) in their names. We invoke sed twice because it is the
  20021. # simplest approach to changing $(DEPDIR) to its actual value in the
  20022. # expansion.
  20023. for file in `sed -n "
  20024. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  20025. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
  20026. # Make sure the directory exists.
  20027. test -f "$dirpart/$file" && continue
  20028. fdir=`$as_dirname -- "$file" ||
  20029. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20030. X"$file" : 'X\(//\)[^/]' \| \
  20031. X"$file" : 'X\(//\)$' \| \
  20032. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  20033. $as_echo X"$file" |
  20034. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  20035. s//\1/
  20036. q
  20037. }
  20038. /^X\(\/\/\)[^/].*/{
  20039. s//\1/
  20040. q
  20041. }
  20042. /^X\(\/\/\)$/{
  20043. s//\1/
  20044. q
  20045. }
  20046. /^X\(\/\).*/{
  20047. s//\1/
  20048. q
  20049. }
  20050. s/.*/./; q'`
  20051. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  20052. # echo "creating $dirpart/$file"
  20053. echo '# dummy' > "$dirpart/$file"
  20054. done
  20055. done
  20056. }
  20057. ;;
  20058. "libtool":C)
  20059. # See if we are running on zsh, and set the options which allow our
  20060. # commands through without removal of \ escapes.
  20061. if test -n "${ZSH_VERSION+set}" ; then
  20062. setopt NO_GLOB_SUBST
  20063. fi
  20064. cfgfile="${ofile}T"
  20065. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  20066. $RM "$cfgfile"
  20067. cat <<_LT_EOF >> "$cfgfile"
  20068. #! $SHELL
  20069. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  20070. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  20071. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  20072. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  20073. #
  20074. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  20075. # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
  20076. # Foundation, Inc.
  20077. # Written by Gordon Matzigkeit, 1996
  20078. #
  20079. # This file is part of GNU Libtool.
  20080. #
  20081. # GNU Libtool is free software; you can redistribute it and/or
  20082. # modify it under the terms of the GNU General Public License as
  20083. # published by the Free Software Foundation; either version 2 of
  20084. # the License, or (at your option) any later version.
  20085. #
  20086. # As a special exception to the GNU General Public License,
  20087. # if you distribute this file as part of a program or library that
  20088. # is built using GNU Libtool, you may include this file under the
  20089. # same distribution terms that you use for the rest of that program.
  20090. #
  20091. # GNU Libtool is distributed in the hope that it will be useful,
  20092. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  20093. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  20094. # GNU General Public License for more details.
  20095. #
  20096. # You should have received a copy of the GNU General Public License
  20097. # along with GNU Libtool; see the file COPYING. If not, a copy
  20098. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  20099. # obtained by writing to the Free Software Foundation, Inc.,
  20100. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  20101. # The names of the tagged configurations supported by this script.
  20102. available_tags="CXX "
  20103. # ### BEGIN LIBTOOL CONFIG
  20104. # Whether or not to build static libraries.
  20105. build_old_libs=$enable_static
  20106. # Which release of libtool.m4 was used?
  20107. macro_version=$macro_version
  20108. macro_revision=$macro_revision
  20109. # Whether or not to build shared libraries.
  20110. build_libtool_libs=$enable_shared
  20111. # What type of objects to build.
  20112. pic_mode=$pic_mode
  20113. # Whether or not to optimize for fast installation.
  20114. fast_install=$enable_fast_install
  20115. # Shell to use when invoking shell scripts.
  20116. SHELL=$lt_SHELL
  20117. # An echo program that protects backslashes.
  20118. ECHO=$lt_ECHO
  20119. # The PATH separator for the build system.
  20120. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  20121. # The host system.
  20122. host_alias=$host_alias
  20123. host=$host
  20124. host_os=$host_os
  20125. # The build system.
  20126. build_alias=$build_alias
  20127. build=$build
  20128. build_os=$build_os
  20129. # A sed program that does not truncate output.
  20130. SED=$lt_SED
  20131. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  20132. Xsed="\$SED -e 1s/^X//"
  20133. # A grep program that handles long lines.
  20134. GREP=$lt_GREP
  20135. # An ERE matcher.
  20136. EGREP=$lt_EGREP
  20137. # A literal string matcher.
  20138. FGREP=$lt_FGREP
  20139. # A BSD- or MS-compatible name lister.
  20140. NM=$lt_NM
  20141. # Whether we need soft or hard links.
  20142. LN_S=$lt_LN_S
  20143. # What is the maximum length of a command?
  20144. max_cmd_len=$max_cmd_len
  20145. # Object file suffix (normally "o").
  20146. objext=$ac_objext
  20147. # Executable file suffix (normally "").
  20148. exeext=$exeext
  20149. # whether the shell understands "unset".
  20150. lt_unset=$lt_unset
  20151. # turn spaces into newlines.
  20152. SP2NL=$lt_lt_SP2NL
  20153. # turn newlines into spaces.
  20154. NL2SP=$lt_lt_NL2SP
  20155. # convert \$build file names to \$host format.
  20156. to_host_file_cmd=$lt_cv_to_host_file_cmd
  20157. # convert \$build files to toolchain format.
  20158. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  20159. # An object symbol dumper.
  20160. OBJDUMP=$lt_OBJDUMP
  20161. # Method to check whether dependent libraries are shared objects.
  20162. deplibs_check_method=$lt_deplibs_check_method
  20163. # Command to use when deplibs_check_method = "file_magic".
  20164. file_magic_cmd=$lt_file_magic_cmd
  20165. # How to find potential files when deplibs_check_method = "file_magic".
  20166. file_magic_glob=$lt_file_magic_glob
  20167. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  20168. want_nocaseglob=$lt_want_nocaseglob
  20169. # DLL creation program.
  20170. DLLTOOL=$lt_DLLTOOL
  20171. # Command to associate shared and link libraries.
  20172. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  20173. # The archiver.
  20174. AR=$lt_AR
  20175. # Flags to create an archive.
  20176. AR_FLAGS=$lt_AR_FLAGS
  20177. # How to feed a file listing to the archiver.
  20178. archiver_list_spec=$lt_archiver_list_spec
  20179. # A symbol stripping program.
  20180. STRIP=$lt_STRIP
  20181. # Commands used to install an old-style archive.
  20182. RANLIB=$lt_RANLIB
  20183. old_postinstall_cmds=$lt_old_postinstall_cmds
  20184. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  20185. # Whether to use a lock for old archive extraction.
  20186. lock_old_archive_extraction=$lock_old_archive_extraction
  20187. # A C compiler.
  20188. LTCC=$lt_CC
  20189. # LTCC compiler flags.
  20190. LTCFLAGS=$lt_CFLAGS
  20191. # Take the output of nm and produce a listing of raw symbols and C names.
  20192. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  20193. # Transform the output of nm in a proper C declaration.
  20194. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  20195. # Transform the output of nm in a C name address pair.
  20196. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  20197. # Transform the output of nm in a C name address pair when lib prefix is needed.
  20198. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  20199. # Specify filename containing input files for \$NM.
  20200. nm_file_list_spec=$lt_nm_file_list_spec
  20201. # The root where to search for dependent libraries,and in which our libraries should be installed.
  20202. lt_sysroot=$lt_sysroot
  20203. # The name of the directory that contains temporary libtool files.
  20204. objdir=$objdir
  20205. # Used to examine libraries when file_magic_cmd begins with "file".
  20206. MAGIC_CMD=$MAGIC_CMD
  20207. # Must we lock files when doing compilation?
  20208. need_locks=$lt_need_locks
  20209. # Manifest tool.
  20210. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  20211. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  20212. DSYMUTIL=$lt_DSYMUTIL
  20213. # Tool to change global to local symbols on Mac OS X.
  20214. NMEDIT=$lt_NMEDIT
  20215. # Tool to manipulate fat objects and archives on Mac OS X.
  20216. LIPO=$lt_LIPO
  20217. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  20218. OTOOL=$lt_OTOOL
  20219. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  20220. OTOOL64=$lt_OTOOL64
  20221. # Old archive suffix (normally "a").
  20222. libext=$libext
  20223. # Shared library suffix (normally ".so").
  20224. shrext_cmds=$lt_shrext_cmds
  20225. # The commands to extract the exported symbol list from a shared archive.
  20226. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  20227. # Variables whose values should be saved in libtool wrapper scripts and
  20228. # restored at link time.
  20229. variables_saved_for_relink=$lt_variables_saved_for_relink
  20230. # Do we need the "lib" prefix for modules?
  20231. need_lib_prefix=$need_lib_prefix
  20232. # Do we need a version for libraries?
  20233. need_version=$need_version
  20234. # Library versioning type.
  20235. version_type=$version_type
  20236. # Shared library runtime path variable.
  20237. runpath_var=$runpath_var
  20238. # Shared library path variable.
  20239. shlibpath_var=$shlibpath_var
  20240. # Is shlibpath searched before the hard-coded library search path?
  20241. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  20242. # Format of library name prefix.
  20243. libname_spec=$lt_libname_spec
  20244. # List of archive names. First name is the real one, the rest are links.
  20245. # The last name is the one that the linker finds with -lNAME
  20246. library_names_spec=$lt_library_names_spec
  20247. # The coded name of the library, if different from the real name.
  20248. soname_spec=$lt_soname_spec
  20249. # Permission mode override for installation of shared libraries.
  20250. install_override_mode=$lt_install_override_mode
  20251. # Command to use after installation of a shared archive.
  20252. postinstall_cmds=$lt_postinstall_cmds
  20253. # Command to use after uninstallation of a shared archive.
  20254. postuninstall_cmds=$lt_postuninstall_cmds
  20255. # Commands used to finish a libtool library installation in a directory.
  20256. finish_cmds=$lt_finish_cmds
  20257. # As "finish_cmds", except a single script fragment to be evaled but
  20258. # not shown.
  20259. finish_eval=$lt_finish_eval
  20260. # Whether we should hardcode library paths into libraries.
  20261. hardcode_into_libs=$hardcode_into_libs
  20262. # Compile-time system search path for libraries.
  20263. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  20264. # Run-time system search path for libraries.
  20265. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  20266. # Whether dlopen is supported.
  20267. dlopen_support=$enable_dlopen
  20268. # Whether dlopen of programs is supported.
  20269. dlopen_self=$enable_dlopen_self
  20270. # Whether dlopen of statically linked programs is supported.
  20271. dlopen_self_static=$enable_dlopen_self_static
  20272. # Commands to strip libraries.
  20273. old_striplib=$lt_old_striplib
  20274. striplib=$lt_striplib
  20275. # The linker used to build libraries.
  20276. LD=$lt_LD
  20277. # How to create reloadable object files.
  20278. reload_flag=$lt_reload_flag
  20279. reload_cmds=$lt_reload_cmds
  20280. # Commands used to build an old-style archive.
  20281. old_archive_cmds=$lt_old_archive_cmds
  20282. # A language specific compiler.
  20283. CC=$lt_compiler
  20284. # Is the compiler the GNU compiler?
  20285. with_gcc=$GCC
  20286. # Compiler flag to turn off builtin functions.
  20287. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  20288. # Additional compiler flags for building library objects.
  20289. pic_flag=$lt_lt_prog_compiler_pic
  20290. # How to pass a linker flag through the compiler.
  20291. wl=$lt_lt_prog_compiler_wl
  20292. # Compiler flag to prevent dynamic linking.
  20293. link_static_flag=$lt_lt_prog_compiler_static
  20294. # Does compiler simultaneously support -c and -o options?
  20295. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  20296. # Whether or not to add -lc for building shared libraries.
  20297. build_libtool_need_lc=$archive_cmds_need_lc
  20298. # Whether or not to disallow shared libs when runtime libs are static.
  20299. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  20300. # Compiler flag to allow reflexive dlopens.
  20301. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  20302. # Compiler flag to generate shared objects directly from archives.
  20303. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  20304. # Whether the compiler copes with passing no objects directly.
  20305. compiler_needs_object=$lt_compiler_needs_object
  20306. # Create an old-style archive from a shared archive.
  20307. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  20308. # Create a temporary old-style archive to link instead of a shared archive.
  20309. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  20310. # Commands used to build a shared archive.
  20311. archive_cmds=$lt_archive_cmds
  20312. archive_expsym_cmds=$lt_archive_expsym_cmds
  20313. # Commands used to build a loadable module if different from building
  20314. # a shared archive.
  20315. module_cmds=$lt_module_cmds
  20316. module_expsym_cmds=$lt_module_expsym_cmds
  20317. # Whether we are building with GNU ld or not.
  20318. with_gnu_ld=$lt_with_gnu_ld
  20319. # Flag that allows shared libraries with undefined symbols to be built.
  20320. allow_undefined_flag=$lt_allow_undefined_flag
  20321. # Flag that enforces no undefined symbols.
  20322. no_undefined_flag=$lt_no_undefined_flag
  20323. # Flag to hardcode \$libdir into a binary during linking.
  20324. # This must work even if \$libdir does not exist
  20325. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  20326. # Whether we need a single "-rpath" flag with a separated argument.
  20327. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  20328. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  20329. # DIR into the resulting binary.
  20330. hardcode_direct=$hardcode_direct
  20331. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  20332. # DIR into the resulting binary and the resulting library dependency is
  20333. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  20334. # library is relocated.
  20335. hardcode_direct_absolute=$hardcode_direct_absolute
  20336. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  20337. # into the resulting binary.
  20338. hardcode_minus_L=$hardcode_minus_L
  20339. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  20340. # into the resulting binary.
  20341. hardcode_shlibpath_var=$hardcode_shlibpath_var
  20342. # Set to "yes" if building a shared library automatically hardcodes DIR
  20343. # into the library and all subsequent libraries and executables linked
  20344. # against it.
  20345. hardcode_automatic=$hardcode_automatic
  20346. # Set to yes if linker adds runtime paths of dependent libraries
  20347. # to runtime path list.
  20348. inherit_rpath=$inherit_rpath
  20349. # Whether libtool must link a program against all its dependency libraries.
  20350. link_all_deplibs=$link_all_deplibs
  20351. # Set to "yes" if exported symbols are required.
  20352. always_export_symbols=$always_export_symbols
  20353. # The commands to list exported symbols.
  20354. export_symbols_cmds=$lt_export_symbols_cmds
  20355. # Symbols that should not be listed in the preloaded symbols.
  20356. exclude_expsyms=$lt_exclude_expsyms
  20357. # Symbols that must always be exported.
  20358. include_expsyms=$lt_include_expsyms
  20359. # Commands necessary for linking programs (against libraries) with templates.
  20360. prelink_cmds=$lt_prelink_cmds
  20361. # Commands necessary for finishing linking programs.
  20362. postlink_cmds=$lt_postlink_cmds
  20363. # Specify filename containing input files.
  20364. file_list_spec=$lt_file_list_spec
  20365. # How to hardcode a shared library path into an executable.
  20366. hardcode_action=$hardcode_action
  20367. # The directories searched by this compiler when creating a shared library.
  20368. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  20369. # Dependencies to place before and after the objects being linked to
  20370. # create a shared library.
  20371. predep_objects=$lt_predep_objects
  20372. postdep_objects=$lt_postdep_objects
  20373. predeps=$lt_predeps
  20374. postdeps=$lt_postdeps
  20375. # The library search path used internally by the compiler when linking
  20376. # a shared library.
  20377. compiler_lib_search_path=$lt_compiler_lib_search_path
  20378. # ### END LIBTOOL CONFIG
  20379. _LT_EOF
  20380. case $host_os in
  20381. aix3*)
  20382. cat <<\_LT_EOF >> "$cfgfile"
  20383. # AIX sometimes has problems with the GCC collect2 program. For some
  20384. # reason, if we set the COLLECT_NAMES environment variable, the problems
  20385. # vanish in a puff of smoke.
  20386. if test "X${COLLECT_NAMES+set}" != Xset; then
  20387. COLLECT_NAMES=
  20388. export COLLECT_NAMES
  20389. fi
  20390. _LT_EOF
  20391. ;;
  20392. esac
  20393. ltmain="$ac_aux_dir/ltmain.sh"
  20394. # We use sed instead of cat because bash on DJGPP gets confused if
  20395. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  20396. # text mode, it properly converts lines to CR/LF. This bash problem
  20397. # is reportedly fixed, but why not run on old versions too?
  20398. sed '$q' "$ltmain" >> "$cfgfile" \
  20399. || (rm -f "$cfgfile"; exit 1)
  20400. if test x"$xsi_shell" = xyes; then
  20401. sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
  20402. func_dirname ()\
  20403. {\
  20404. \ case ${1} in\
  20405. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  20406. \ * ) func_dirname_result="${3}" ;;\
  20407. \ esac\
  20408. } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
  20409. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20410. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20411. test 0 -eq $? || _lt_function_replace_fail=:
  20412. sed -e '/^func_basename ()$/,/^} # func_basename /c\
  20413. func_basename ()\
  20414. {\
  20415. \ func_basename_result="${1##*/}"\
  20416. } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
  20417. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20418. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20419. test 0 -eq $? || _lt_function_replace_fail=:
  20420. sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
  20421. func_dirname_and_basename ()\
  20422. {\
  20423. \ case ${1} in\
  20424. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  20425. \ * ) func_dirname_result="${3}" ;;\
  20426. \ esac\
  20427. \ func_basename_result="${1##*/}"\
  20428. } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
  20429. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20430. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20431. test 0 -eq $? || _lt_function_replace_fail=:
  20432. sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
  20433. func_stripname ()\
  20434. {\
  20435. \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
  20436. \ # positional parameters, so assign one to ordinary parameter first.\
  20437. \ func_stripname_result=${3}\
  20438. \ func_stripname_result=${func_stripname_result#"${1}"}\
  20439. \ func_stripname_result=${func_stripname_result%"${2}"}\
  20440. } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
  20441. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20442. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20443. test 0 -eq $? || _lt_function_replace_fail=:
  20444. sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
  20445. func_split_long_opt ()\
  20446. {\
  20447. \ func_split_long_opt_name=${1%%=*}\
  20448. \ func_split_long_opt_arg=${1#*=}\
  20449. } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
  20450. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20451. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20452. test 0 -eq $? || _lt_function_replace_fail=:
  20453. sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
  20454. func_split_short_opt ()\
  20455. {\
  20456. \ func_split_short_opt_arg=${1#??}\
  20457. \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
  20458. } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
  20459. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20460. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20461. test 0 -eq $? || _lt_function_replace_fail=:
  20462. sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
  20463. func_lo2o ()\
  20464. {\
  20465. \ case ${1} in\
  20466. \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
  20467. \ *) func_lo2o_result=${1} ;;\
  20468. \ esac\
  20469. } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
  20470. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20471. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20472. test 0 -eq $? || _lt_function_replace_fail=:
  20473. sed -e '/^func_xform ()$/,/^} # func_xform /c\
  20474. func_xform ()\
  20475. {\
  20476. func_xform_result=${1%.*}.lo\
  20477. } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
  20478. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20479. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20480. test 0 -eq $? || _lt_function_replace_fail=:
  20481. sed -e '/^func_arith ()$/,/^} # func_arith /c\
  20482. func_arith ()\
  20483. {\
  20484. func_arith_result=$(( $* ))\
  20485. } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
  20486. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20487. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20488. test 0 -eq $? || _lt_function_replace_fail=:
  20489. sed -e '/^func_len ()$/,/^} # func_len /c\
  20490. func_len ()\
  20491. {\
  20492. func_len_result=${#1}\
  20493. } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
  20494. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20495. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20496. test 0 -eq $? || _lt_function_replace_fail=:
  20497. fi
  20498. if test x"$lt_shell_append" = xyes; then
  20499. sed -e '/^func_append ()$/,/^} # func_append /c\
  20500. func_append ()\
  20501. {\
  20502. eval "${1}+=\\${2}"\
  20503. } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
  20504. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20505. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20506. test 0 -eq $? || _lt_function_replace_fail=:
  20507. sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
  20508. func_append_quoted ()\
  20509. {\
  20510. \ func_quote_for_eval "${2}"\
  20511. \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
  20512. } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
  20513. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20514. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20515. test 0 -eq $? || _lt_function_replace_fail=:
  20516. # Save a `func_append' function call where possible by direct use of '+='
  20517. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
  20518. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20519. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20520. test 0 -eq $? || _lt_function_replace_fail=:
  20521. else
  20522. # Save a `func_append' function call even when '+=' is not available
  20523. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  20524. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20525. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20526. test 0 -eq $? || _lt_function_replace_fail=:
  20527. fi
  20528. if test x"$_lt_function_replace_fail" = x":"; then
  20529. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
  20530. $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
  20531. fi
  20532. mv -f "$cfgfile" "$ofile" ||
  20533. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  20534. chmod +x "$ofile"
  20535. cat <<_LT_EOF >> "$ofile"
  20536. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  20537. # The linker used to build libraries.
  20538. LD=$lt_LD_CXX
  20539. # How to create reloadable object files.
  20540. reload_flag=$lt_reload_flag_CXX
  20541. reload_cmds=$lt_reload_cmds_CXX
  20542. # Commands used to build an old-style archive.
  20543. old_archive_cmds=$lt_old_archive_cmds_CXX
  20544. # A language specific compiler.
  20545. CC=$lt_compiler_CXX
  20546. # Is the compiler the GNU compiler?
  20547. with_gcc=$GCC_CXX
  20548. # Compiler flag to turn off builtin functions.
  20549. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  20550. # Additional compiler flags for building library objects.
  20551. pic_flag=$lt_lt_prog_compiler_pic_CXX
  20552. # How to pass a linker flag through the compiler.
  20553. wl=$lt_lt_prog_compiler_wl_CXX
  20554. # Compiler flag to prevent dynamic linking.
  20555. link_static_flag=$lt_lt_prog_compiler_static_CXX
  20556. # Does compiler simultaneously support -c and -o options?
  20557. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  20558. # Whether or not to add -lc for building shared libraries.
  20559. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  20560. # Whether or not to disallow shared libs when runtime libs are static.
  20561. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  20562. # Compiler flag to allow reflexive dlopens.
  20563. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  20564. # Compiler flag to generate shared objects directly from archives.
  20565. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  20566. # Whether the compiler copes with passing no objects directly.
  20567. compiler_needs_object=$lt_compiler_needs_object_CXX
  20568. # Create an old-style archive from a shared archive.
  20569. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  20570. # Create a temporary old-style archive to link instead of a shared archive.
  20571. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  20572. # Commands used to build a shared archive.
  20573. archive_cmds=$lt_archive_cmds_CXX
  20574. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  20575. # Commands used to build a loadable module if different from building
  20576. # a shared archive.
  20577. module_cmds=$lt_module_cmds_CXX
  20578. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  20579. # Whether we are building with GNU ld or not.
  20580. with_gnu_ld=$lt_with_gnu_ld_CXX
  20581. # Flag that allows shared libraries with undefined symbols to be built.
  20582. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  20583. # Flag that enforces no undefined symbols.
  20584. no_undefined_flag=$lt_no_undefined_flag_CXX
  20585. # Flag to hardcode \$libdir into a binary during linking.
  20586. # This must work even if \$libdir does not exist
  20587. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  20588. # Whether we need a single "-rpath" flag with a separated argument.
  20589. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  20590. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  20591. # DIR into the resulting binary.
  20592. hardcode_direct=$hardcode_direct_CXX
  20593. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  20594. # DIR into the resulting binary and the resulting library dependency is
  20595. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  20596. # library is relocated.
  20597. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  20598. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  20599. # into the resulting binary.
  20600. hardcode_minus_L=$hardcode_minus_L_CXX
  20601. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  20602. # into the resulting binary.
  20603. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  20604. # Set to "yes" if building a shared library automatically hardcodes DIR
  20605. # into the library and all subsequent libraries and executables linked
  20606. # against it.
  20607. hardcode_automatic=$hardcode_automatic_CXX
  20608. # Set to yes if linker adds runtime paths of dependent libraries
  20609. # to runtime path list.
  20610. inherit_rpath=$inherit_rpath_CXX
  20611. # Whether libtool must link a program against all its dependency libraries.
  20612. link_all_deplibs=$link_all_deplibs_CXX
  20613. # Set to "yes" if exported symbols are required.
  20614. always_export_symbols=$always_export_symbols_CXX
  20615. # The commands to list exported symbols.
  20616. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  20617. # Symbols that should not be listed in the preloaded symbols.
  20618. exclude_expsyms=$lt_exclude_expsyms_CXX
  20619. # Symbols that must always be exported.
  20620. include_expsyms=$lt_include_expsyms_CXX
  20621. # Commands necessary for linking programs (against libraries) with templates.
  20622. prelink_cmds=$lt_prelink_cmds_CXX
  20623. # Commands necessary for finishing linking programs.
  20624. postlink_cmds=$lt_postlink_cmds_CXX
  20625. # Specify filename containing input files.
  20626. file_list_spec=$lt_file_list_spec_CXX
  20627. # How to hardcode a shared library path into an executable.
  20628. hardcode_action=$hardcode_action_CXX
  20629. # The directories searched by this compiler when creating a shared library.
  20630. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  20631. # Dependencies to place before and after the objects being linked to
  20632. # create a shared library.
  20633. predep_objects=$lt_predep_objects_CXX
  20634. postdep_objects=$lt_postdep_objects_CXX
  20635. predeps=$lt_predeps_CXX
  20636. postdeps=$lt_postdeps_CXX
  20637. # The library search path used internally by the compiler when linking
  20638. # a shared library.
  20639. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  20640. # ### END LIBTOOL TAG CONFIG: CXX
  20641. _LT_EOF
  20642. ;;
  20643. esac
  20644. done # for ac_tag
  20645. as_fn_exit 0
  20646. _ACEOF
  20647. ac_clean_files=$ac_clean_files_save
  20648. test $ac_write_fail = 0 ||
  20649. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  20650. # configure is writing to config.log, and then calls config.status.
  20651. # config.status does its own redirection, appending to config.log.
  20652. # Unfortunately, on DOS this fails, as config.log is still kept open
  20653. # by configure, so config.status won't be able to write to it; its
  20654. # output is simply discarded. So we exec the FD to /dev/null,
  20655. # effectively closing config.log, so it can be properly (re)opened and
  20656. # appended to by config.status. When coming back to configure, we
  20657. # need to make the FD available again.
  20658. if test "$no_create" != yes; then
  20659. ac_cs_success=:
  20660. ac_config_status_args=
  20661. test "$silent" = yes &&
  20662. ac_config_status_args="$ac_config_status_args --quiet"
  20663. exec 5>/dev/null
  20664. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  20665. exec 5>>config.log
  20666. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  20667. # would make configure fail if this is the last instruction.
  20668. $ac_cs_success || as_fn_exit 1
  20669. fi
  20670. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  20671. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  20672. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  20673. fi