configure 666 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.66 for dirsrv 1.0.
  4. #
  5. # Report bugs to <http://bugzilla.redhat.com/>.
  6. #
  7. #
  8. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  9. # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
  10. # Foundation, Inc.
  11. #
  12. #
  13. # This configure script is free software; the Free Software Foundation
  14. # gives unlimited permission to copy, distribute and modify it.
  15. ## -------------------- ##
  16. ## M4sh Initialization. ##
  17. ## -------------------- ##
  18. # Be more Bourne compatible
  19. DUALCASE=1; export DUALCASE # for MKS sh
  20. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  21. emulate sh
  22. NULLCMD=:
  23. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  24. # is contrary to our usage. Disable this feature.
  25. alias -g '${1+"$@"}'='"$@"'
  26. setopt NO_GLOB_SUBST
  27. else
  28. case `(set -o) 2>/dev/null` in #(
  29. *posix*) :
  30. set -o posix ;; #(
  31. *) :
  32. ;;
  33. esac
  34. fi
  35. as_nl='
  36. '
  37. export as_nl
  38. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  39. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  40. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  41. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  42. # Prefer a ksh shell builtin over an external printf program on Solaris,
  43. # but without wasting forks for bash or zsh.
  44. if test -z "$BASH_VERSION$ZSH_VERSION" \
  45. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  46. as_echo='print -r --'
  47. as_echo_n='print -rn --'
  48. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  49. as_echo='printf %s\n'
  50. as_echo_n='printf %s'
  51. else
  52. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  53. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  54. as_echo_n='/usr/ucb/echo -n'
  55. else
  56. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  57. as_echo_n_body='eval
  58. arg=$1;
  59. case $arg in #(
  60. *"$as_nl"*)
  61. expr "X$arg" : "X\\(.*\\)$as_nl";
  62. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  63. esac;
  64. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  65. '
  66. export as_echo_n_body
  67. as_echo_n='sh -c $as_echo_n_body as_echo'
  68. fi
  69. export as_echo_body
  70. as_echo='sh -c $as_echo_body as_echo'
  71. fi
  72. # The user is always right.
  73. if test "${PATH_SEPARATOR+set}" != set; then
  74. PATH_SEPARATOR=:
  75. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  76. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  77. PATH_SEPARATOR=';'
  78. }
  79. fi
  80. # IFS
  81. # We need space, tab and new line, in precisely that order. Quoting is
  82. # there to prevent editors from complaining about space-tab.
  83. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  84. # splitting by setting IFS to empty value.)
  85. IFS=" "" $as_nl"
  86. # Find who we are. Look in the path if we contain no directory separator.
  87. case $0 in #((
  88. *[\\/]* ) as_myself=$0 ;;
  89. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  90. for as_dir in $PATH
  91. do
  92. IFS=$as_save_IFS
  93. test -z "$as_dir" && as_dir=.
  94. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  95. done
  96. IFS=$as_save_IFS
  97. ;;
  98. esac
  99. # We did not find ourselves, most probably we were run as `sh COMMAND'
  100. # in which case we are not to be found in the path.
  101. if test "x$as_myself" = x; then
  102. as_myself=$0
  103. fi
  104. if test ! -f "$as_myself"; then
  105. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  106. exit 1
  107. fi
  108. # Unset variables that we do not need and which cause bugs (e.g. in
  109. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  110. # suppresses any "Segmentation fault" message there. '((' could
  111. # trigger a bug in pdksh 5.2.14.
  112. for as_var in BASH_ENV ENV MAIL MAILPATH
  113. do eval test x\${$as_var+set} = xset \
  114. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  115. done
  116. PS1='$ '
  117. PS2='> '
  118. PS4='+ '
  119. # NLS nuisances.
  120. LC_ALL=C
  121. export LC_ALL
  122. LANGUAGE=C
  123. export LANGUAGE
  124. # CDPATH.
  125. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  126. if test "x$CONFIG_SHELL" = x; then
  127. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  128. emulate sh
  129. NULLCMD=:
  130. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  131. # is contrary to our usage. Disable this feature.
  132. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  133. setopt NO_GLOB_SUBST
  134. else
  135. case \`(set -o) 2>/dev/null\` in #(
  136. *posix*) :
  137. set -o posix ;; #(
  138. *) :
  139. ;;
  140. esac
  141. fi
  142. "
  143. as_required="as_fn_return () { (exit \$1); }
  144. as_fn_success () { as_fn_return 0; }
  145. as_fn_failure () { as_fn_return 1; }
  146. as_fn_ret_success () { return 0; }
  147. as_fn_ret_failure () { return 1; }
  148. exitcode=0
  149. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  150. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  151. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  152. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  153. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  154. else
  155. exitcode=1; echo positional parameters were not saved.
  156. fi
  157. test x\$exitcode = x0 || exit 1"
  158. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  159. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  160. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  161. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  162. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  163. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  164. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  165. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  166. PATH=/empty FPATH=/empty; export PATH FPATH
  167. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  168. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
  169. test \$(( 1 + 1 )) = 2 || exit 1"
  170. if (eval "$as_required") 2>/dev/null; then :
  171. as_have_required=yes
  172. else
  173. as_have_required=no
  174. fi
  175. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  176. else
  177. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  178. as_found=false
  179. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  180. do
  181. IFS=$as_save_IFS
  182. test -z "$as_dir" && as_dir=.
  183. as_found=:
  184. case $as_dir in #(
  185. /*)
  186. for as_base in sh bash ksh sh5; do
  187. # Try only shells that exist, to save several forks.
  188. as_shell=$as_dir/$as_base
  189. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  190. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  191. CONFIG_SHELL=$as_shell as_have_required=yes
  192. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  193. break 2
  194. fi
  195. fi
  196. done;;
  197. esac
  198. as_found=false
  199. done
  200. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  201. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  202. CONFIG_SHELL=$SHELL as_have_required=yes
  203. fi; }
  204. IFS=$as_save_IFS
  205. if test "x$CONFIG_SHELL" != x; then :
  206. # We cannot yet assume a decent shell, so we have to provide a
  207. # neutralization value for shells without unset; and this also
  208. # works around shells that cannot unset nonexistent variables.
  209. BASH_ENV=/dev/null
  210. ENV=/dev/null
  211. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  212. export CONFIG_SHELL
  213. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  214. fi
  215. if test x$as_have_required = xno; then :
  216. $as_echo "$0: This script requires a shell more modern than all"
  217. $as_echo "$0: the shells that I found on your system."
  218. if test x${ZSH_VERSION+set} = xset ; then
  219. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  220. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  221. else
  222. $as_echo "$0: Please tell [email protected] and
  223. $0: http://bugzilla.redhat.com/ about your system,
  224. $0: including any error possibly output before this
  225. $0: message. Then install a modern shell, or manually run
  226. $0: the script under such a shell if you do have one."
  227. fi
  228. exit 1
  229. fi
  230. fi
  231. fi
  232. SHELL=${CONFIG_SHELL-/bin/sh}
  233. export SHELL
  234. # Unset more variables known to interfere with behavior of common tools.
  235. CLICOLOR_FORCE= GREP_OPTIONS=
  236. unset CLICOLOR_FORCE GREP_OPTIONS
  237. ## --------------------- ##
  238. ## M4sh Shell Functions. ##
  239. ## --------------------- ##
  240. # as_fn_unset VAR
  241. # ---------------
  242. # Portably unset VAR.
  243. as_fn_unset ()
  244. {
  245. { eval $1=; unset $1;}
  246. }
  247. as_unset=as_fn_unset
  248. # as_fn_set_status STATUS
  249. # -----------------------
  250. # Set $? to STATUS, without forking.
  251. as_fn_set_status ()
  252. {
  253. return $1
  254. } # as_fn_set_status
  255. # as_fn_exit STATUS
  256. # -----------------
  257. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  258. as_fn_exit ()
  259. {
  260. set +e
  261. as_fn_set_status $1
  262. exit $1
  263. } # as_fn_exit
  264. # as_fn_mkdir_p
  265. # -------------
  266. # Create "$as_dir" as a directory, including parents if necessary.
  267. as_fn_mkdir_p ()
  268. {
  269. case $as_dir in #(
  270. -*) as_dir=./$as_dir;;
  271. esac
  272. test -d "$as_dir" || eval $as_mkdir_p || {
  273. as_dirs=
  274. while :; do
  275. case $as_dir in #(
  276. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  277. *) as_qdir=$as_dir;;
  278. esac
  279. as_dirs="'$as_qdir' $as_dirs"
  280. as_dir=`$as_dirname -- "$as_dir" ||
  281. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  282. X"$as_dir" : 'X\(//\)[^/]' \| \
  283. X"$as_dir" : 'X\(//\)$' \| \
  284. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  285. $as_echo X"$as_dir" |
  286. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  287. s//\1/
  288. q
  289. }
  290. /^X\(\/\/\)[^/].*/{
  291. s//\1/
  292. q
  293. }
  294. /^X\(\/\/\)$/{
  295. s//\1/
  296. q
  297. }
  298. /^X\(\/\).*/{
  299. s//\1/
  300. q
  301. }
  302. s/.*/./; q'`
  303. test -d "$as_dir" && break
  304. done
  305. test -z "$as_dirs" || eval "mkdir $as_dirs"
  306. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  307. } # as_fn_mkdir_p
  308. # as_fn_append VAR VALUE
  309. # ----------------------
  310. # Append the text in VALUE to the end of the definition contained in VAR. Take
  311. # advantage of any shell optimizations that allow amortized linear growth over
  312. # repeated appends, instead of the typical quadratic growth present in naive
  313. # implementations.
  314. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  315. eval 'as_fn_append ()
  316. {
  317. eval $1+=\$2
  318. }'
  319. else
  320. as_fn_append ()
  321. {
  322. eval $1=\$$1\$2
  323. }
  324. fi # as_fn_append
  325. # as_fn_arith ARG...
  326. # ------------------
  327. # Perform arithmetic evaluation on the ARGs, and store the result in the
  328. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  329. # must be portable across $(()) and expr.
  330. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  331. eval 'as_fn_arith ()
  332. {
  333. as_val=$(( $* ))
  334. }'
  335. else
  336. as_fn_arith ()
  337. {
  338. as_val=`expr "$@" || test $? -eq 1`
  339. }
  340. fi # as_fn_arith
  341. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  342. # ----------------------------------------
  343. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  344. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  345. # script with STATUS, using 1 if that was 0.
  346. as_fn_error ()
  347. {
  348. as_status=$1; test $as_status -eq 0 && as_status=1
  349. if test "$4"; then
  350. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  351. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  352. fi
  353. $as_echo "$as_me: error: $2" >&2
  354. as_fn_exit $as_status
  355. } # as_fn_error
  356. if expr a : '\(a\)' >/dev/null 2>&1 &&
  357. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  358. as_expr=expr
  359. else
  360. as_expr=false
  361. fi
  362. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  363. as_basename=basename
  364. else
  365. as_basename=false
  366. fi
  367. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  368. as_dirname=dirname
  369. else
  370. as_dirname=false
  371. fi
  372. as_me=`$as_basename -- "$0" ||
  373. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  374. X"$0" : 'X\(//\)$' \| \
  375. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  376. $as_echo X/"$0" |
  377. sed '/^.*\/\([^/][^/]*\)\/*$/{
  378. s//\1/
  379. q
  380. }
  381. /^X\/\(\/\/\)$/{
  382. s//\1/
  383. q
  384. }
  385. /^X\/\(\/\).*/{
  386. s//\1/
  387. q
  388. }
  389. s/.*/./; q'`
  390. # Avoid depending upon Character Ranges.
  391. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  392. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  393. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  394. as_cr_digits='0123456789'
  395. as_cr_alnum=$as_cr_Letters$as_cr_digits
  396. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  397. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  398. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  399. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  400. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  401. sed -n '
  402. p
  403. /[$]LINENO/=
  404. ' <$as_myself |
  405. sed '
  406. s/[$]LINENO.*/&-/
  407. t lineno
  408. b
  409. :lineno
  410. N
  411. :loop
  412. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  413. t loop
  414. s/-\n.*//
  415. ' >$as_me.lineno &&
  416. chmod +x "$as_me.lineno" ||
  417. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  418. # Don't try to exec as it changes $[0], causing all sort of problems
  419. # (the dirname of $[0] is not the place where we might find the
  420. # original and so on. Autoconf is especially sensitive to this).
  421. . "./$as_me.lineno"
  422. # Exit status is that of the last command.
  423. exit
  424. }
  425. ECHO_C= ECHO_N= ECHO_T=
  426. case `echo -n x` in #(((((
  427. -n*)
  428. case `echo 'xy\c'` in
  429. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  430. xy) ECHO_C='\c';;
  431. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  432. ECHO_T=' ';;
  433. esac;;
  434. *)
  435. ECHO_N='-n';;
  436. esac
  437. rm -f conf$$ conf$$.exe conf$$.file
  438. if test -d conf$$.dir; then
  439. rm -f conf$$.dir/conf$$.file
  440. else
  441. rm -f conf$$.dir
  442. mkdir conf$$.dir 2>/dev/null
  443. fi
  444. if (echo >conf$$.file) 2>/dev/null; then
  445. if ln -s conf$$.file conf$$ 2>/dev/null; then
  446. as_ln_s='ln -s'
  447. # ... but there are two gotchas:
  448. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  449. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  450. # In both cases, we have to default to `cp -p'.
  451. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  452. as_ln_s='cp -p'
  453. elif ln conf$$.file conf$$ 2>/dev/null; then
  454. as_ln_s=ln
  455. else
  456. as_ln_s='cp -p'
  457. fi
  458. else
  459. as_ln_s='cp -p'
  460. fi
  461. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  462. rmdir conf$$.dir 2>/dev/null
  463. if mkdir -p . 2>/dev/null; then
  464. as_mkdir_p='mkdir -p "$as_dir"'
  465. else
  466. test -d ./-p && rmdir ./-p
  467. as_mkdir_p=false
  468. fi
  469. if test -x / >/dev/null 2>&1; then
  470. as_test_x='test -x'
  471. else
  472. if ls -dL / >/dev/null 2>&1; then
  473. as_ls_L_option=L
  474. else
  475. as_ls_L_option=
  476. fi
  477. as_test_x='
  478. eval sh -c '\''
  479. if test -d "$1"; then
  480. test -d "$1/.";
  481. else
  482. case $1 in #(
  483. -*)set "./$1";;
  484. esac;
  485. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  486. ???[sx]*):;;*)false;;esac;fi
  487. '\'' sh
  488. '
  489. fi
  490. as_executable_p=$as_test_x
  491. # Sed expression to map a string onto a valid CPP name.
  492. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  493. # Sed expression to map a string onto a valid variable name.
  494. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  495. SHELL=${CONFIG_SHELL-/bin/sh}
  496. test -n "$DJDIR" || exec 7<&0 </dev/null
  497. exec 6>&1
  498. # Name of the host.
  499. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  500. # so uname gets run too.
  501. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  502. #
  503. # Initializations.
  504. #
  505. ac_default_prefix=/usr/local
  506. ac_clean_files=
  507. ac_config_libobj_dir=.
  508. LIBOBJS=
  509. cross_compiling=no
  510. subdirs=
  511. MFLAGS=
  512. MAKEFLAGS=
  513. # Identity of this package.
  514. PACKAGE_NAME='dirsrv'
  515. PACKAGE_TARNAME='dirsrv'
  516. PACKAGE_VERSION='1.0'
  517. PACKAGE_STRING='dirsrv 1.0'
  518. PACKAGE_BUGREPORT='http://bugzilla.redhat.com/'
  519. PACKAGE_URL=''
  520. # Factoring default headers for most tests.
  521. ac_includes_default="\
  522. #include <stdio.h>
  523. #ifdef HAVE_SYS_TYPES_H
  524. # include <sys/types.h>
  525. #endif
  526. #ifdef HAVE_SYS_STAT_H
  527. # include <sys/stat.h>
  528. #endif
  529. #ifdef STDC_HEADERS
  530. # include <stdlib.h>
  531. # include <stddef.h>
  532. #else
  533. # ifdef HAVE_STDLIB_H
  534. # include <stdlib.h>
  535. # endif
  536. #endif
  537. #ifdef HAVE_STRING_H
  538. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  539. # include <memory.h>
  540. # endif
  541. # include <string.h>
  542. #endif
  543. #ifdef HAVE_STRINGS_H
  544. # include <strings.h>
  545. #endif
  546. #ifdef HAVE_INTTYPES_H
  547. # include <inttypes.h>
  548. #endif
  549. #ifdef HAVE_STDINT_H
  550. # include <stdint.h>
  551. #endif
  552. #ifdef HAVE_UNISTD_H
  553. # include <unistd.h>
  554. #endif"
  555. ac_header_list=
  556. ac_default_prefix=/opt/$PACKAGE_NAME
  557. ac_subst_vars='am__EXEEXT_FALSE
  558. am__EXEEXT_TRUE
  559. LTLIBOBJS
  560. vendor
  561. capbrand
  562. brand
  563. pcre_libdir
  564. pcre_lib
  565. pcre_inc
  566. netsnmp_link
  567. netsnmp_libdir
  568. netsnmp_lib
  569. netsnmp_inc
  570. icu_bin
  571. icu_inc
  572. icu_lib
  573. svrcore_lib
  574. svrcore_inc
  575. sasl_path
  576. sasl_libdir
  577. sasl_lib
  578. sasl_inc
  579. db_libver
  580. db_bindir
  581. db_libdir
  582. db_lib
  583. db_incdir
  584. db_inc
  585. ol_libver
  586. plainldif_opts
  587. ldaptool_opts
  588. ldaptool_bindir
  589. openldap_bindir
  590. openldap_libdir
  591. openldap_lib
  592. openldap_inc
  593. ldapsdk_bindir
  594. ldapsdk_libdir
  595. ldapsdk_lib
  596. ldapsdk_inc
  597. nss_libdir
  598. nss_lib
  599. nss_inc
  600. nspr_libdir
  601. nspr_lib
  602. nspr_inc
  603. OPENLDAP_FALSE
  604. OPENLDAP_TRUE
  605. SELINUX_FALSE
  606. SELINUX_TRUE
  607. PACKAGE_BASE_VERSION
  608. with_selinux
  609. kerberos_libdir
  610. kerberos_lib
  611. kerberos_inc
  612. KRB5_CONFIG_BIN
  613. NETSNMP_CONFIG
  614. ICU_CONFIG
  615. PKG_CONFIG
  616. SOLARIS_FALSE
  617. SOLARIS_TRUE
  618. HPUX_FALSE
  619. HPUX_TRUE
  620. initconfigdir
  621. sttyexec
  622. perlexec
  623. initdir
  624. LIBCRUN
  625. LIBCSTD
  626. LIBDL
  627. LIBNSL
  628. LIBSOCKET
  629. LIBCRYPT
  630. THREADLIB
  631. WINNT_FALSE
  632. WINNT_TRUE
  633. instconfigdir
  634. defaultgroup
  635. defaultuser
  636. updatedir
  637. mibdir
  638. infdir
  639. perldir
  640. scripttemplatedir
  641. serverplugindir
  642. serverincdir
  643. serverdir
  644. schemadir
  645. propertydir
  646. sampledatadir
  647. configdir
  648. with_fhs_opt
  649. enable_acctpolicy_FALSE
  650. enable_acctpolicy_TRUE
  651. enable_presence_FALSE
  652. enable_presence_TRUE
  653. enable_bitwise_FALSE
  654. enable_bitwise_TRUE
  655. enable_auto_dn_suffix_FALSE
  656. enable_auto_dn_suffix_TRUE
  657. enable_autobind_FALSE
  658. enable_autobind_TRUE
  659. enable_ldapi_FALSE
  660. enable_ldapi_TRUE
  661. enable_dna_FALSE
  662. enable_dna_TRUE
  663. enable_pam_passthru_FALSE
  664. enable_pam_passthru_TRUE
  665. BUNDLE_FALSE
  666. BUNDLE_TRUE
  667. debug_defs
  668. LIBOBJS
  669. CXXCPP
  670. CPP
  671. OTOOL64
  672. OTOOL
  673. LIPO
  674. NMEDIT
  675. DSYMUTIL
  676. RANLIB
  677. AR
  678. OBJDUMP
  679. LN_S
  680. NM
  681. ac_ct_DUMPBIN
  682. DUMPBIN
  683. LD
  684. FGREP
  685. EGREP
  686. GREP
  687. SED
  688. LIBTOOL
  689. am__fastdepCCAS_FALSE
  690. am__fastdepCCAS_TRUE
  691. CCASDEPMODE
  692. CCASFLAGS
  693. CCAS
  694. am__fastdepCC_FALSE
  695. am__fastdepCC_TRUE
  696. CCDEPMODE
  697. ac_ct_CC
  698. CFLAGS
  699. CC
  700. am__fastdepCXX_FALSE
  701. am__fastdepCXX_TRUE
  702. CXXDEPMODE
  703. AMDEPBACKSLASH
  704. AMDEP_FALSE
  705. AMDEP_TRUE
  706. am__quote
  707. am__include
  708. DEPDIR
  709. OBJEXT
  710. EXEEXT
  711. ac_ct_CXX
  712. CPPFLAGS
  713. LDFLAGS
  714. CXXFLAGS
  715. CXX
  716. host_os
  717. host_vendor
  718. host_cpu
  719. host
  720. build_os
  721. build_vendor
  722. build_cpu
  723. build
  724. MAINT
  725. MAINTAINER_MODE_FALSE
  726. MAINTAINER_MODE_TRUE
  727. CONSOLE_VERSION
  728. am__untar
  729. am__tar
  730. AMTAR
  731. am__leading_dot
  732. SET_MAKE
  733. AWK
  734. mkdir_p
  735. MKDIR_P
  736. INSTALL_STRIP_PROGRAM
  737. STRIP
  738. install_sh
  739. MAKEINFO
  740. AUTOHEADER
  741. AUTOMAKE
  742. AUTOCONF
  743. ACLOCAL
  744. VERSION
  745. PACKAGE
  746. CYGPATH_W
  747. am__isrc
  748. INSTALL_DATA
  749. INSTALL_SCRIPT
  750. INSTALL_PROGRAM
  751. target_alias
  752. host_alias
  753. build_alias
  754. LIBS
  755. ECHO_T
  756. ECHO_N
  757. ECHO_C
  758. DEFS
  759. mandir
  760. localedir
  761. libdir
  762. psdir
  763. pdfdir
  764. dvidir
  765. htmldir
  766. infodir
  767. docdir
  768. oldincludedir
  769. includedir
  770. localstatedir
  771. sharedstatedir
  772. sysconfdir
  773. datadir
  774. datarootdir
  775. libexecdir
  776. sbindir
  777. bindir
  778. program_transform_name
  779. prefix
  780. exec_prefix
  781. PACKAGE_URL
  782. PACKAGE_BUGREPORT
  783. PACKAGE_STRING
  784. PACKAGE_VERSION
  785. PACKAGE_TARNAME
  786. PACKAGE_NAME
  787. PATH_SEPARATOR
  788. SHELL'
  789. ac_subst_files=''
  790. ac_user_opts='
  791. enable_option_checking
  792. enable_maintainer_mode
  793. enable_dependency_tracking
  794. enable_static
  795. enable_shared
  796. with_pic
  797. enable_fast_install
  798. with_gnu_ld
  799. enable_libtool_lock
  800. enable_debug
  801. enable_bundle
  802. enable_pam_passthru
  803. enable_dna
  804. enable_ldapi
  805. enable_autobind
  806. enable_bitwise
  807. enable_presence
  808. enable_acctpolicy
  809. with_fhs
  810. with_fhs_opt
  811. with_instconfigdir
  812. with_initddir
  813. with_nspr
  814. with_nspr_inc
  815. with_nspr_lib
  816. with_nss
  817. with_nss_inc
  818. with_nss_lib
  819. with_openldap
  820. with_openldap_inc
  821. with_openldap_lib
  822. with_openldap_bin
  823. with_ldapsdk
  824. with_ldapsdk_inc
  825. with_ldapsdk_lib
  826. with_ldapsdk_bin
  827. with_db
  828. with_db_inc
  829. with_db_lib
  830. with_sasl
  831. with_sasl_inc
  832. with_sasl_lib
  833. with_svrcore
  834. with_svrcore_inc
  835. with_svrcore_lib
  836. with_icu
  837. with_icu_inc
  838. with_icu_lib
  839. with_icu_bin
  840. with_netsnmp
  841. with_netsnmp_inc
  842. with_netsnmp_lib
  843. with_kerberos
  844. with_kerberos_inc
  845. with_kerberos_lib
  846. with_pcre
  847. with_selinux
  848. '
  849. ac_precious_vars='build_alias
  850. host_alias
  851. target_alias
  852. CXX
  853. CXXFLAGS
  854. LDFLAGS
  855. LIBS
  856. CPPFLAGS
  857. CCC
  858. CC
  859. CFLAGS
  860. CCAS
  861. CCASFLAGS
  862. CPP
  863. CXXCPP'
  864. # Initialize some variables set by options.
  865. ac_init_help=
  866. ac_init_version=false
  867. ac_unrecognized_opts=
  868. ac_unrecognized_sep=
  869. # The variables have the same names as the options, with
  870. # dashes changed to underlines.
  871. cache_file=/dev/null
  872. exec_prefix=NONE
  873. no_create=
  874. no_recursion=
  875. prefix=NONE
  876. program_prefix=NONE
  877. program_suffix=NONE
  878. program_transform_name=s,x,x,
  879. silent=
  880. site=
  881. srcdir=
  882. verbose=
  883. x_includes=NONE
  884. x_libraries=NONE
  885. # Installation directory options.
  886. # These are left unexpanded so users can "make install exec_prefix=/foo"
  887. # and all the variables that are supposed to be based on exec_prefix
  888. # by default will actually change.
  889. # Use braces instead of parens because sh, perl, etc. also accept them.
  890. # (The list follows the same order as the GNU Coding Standards.)
  891. bindir='${exec_prefix}/bin'
  892. sbindir='${exec_prefix}/sbin'
  893. libexecdir='${exec_prefix}/libexec'
  894. datarootdir='${prefix}/share'
  895. datadir='${datarootdir}'
  896. sysconfdir='${prefix}/etc'
  897. sharedstatedir='${prefix}/com'
  898. localstatedir='${prefix}/var'
  899. includedir='${prefix}/include'
  900. oldincludedir='/usr/include'
  901. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  902. infodir='${datarootdir}/info'
  903. htmldir='${docdir}'
  904. dvidir='${docdir}'
  905. pdfdir='${docdir}'
  906. psdir='${docdir}'
  907. libdir='${exec_prefix}/lib'
  908. localedir='${datarootdir}/locale'
  909. mandir='${datarootdir}/man'
  910. ac_prev=
  911. ac_dashdash=
  912. for ac_option
  913. do
  914. # If the previous option needs an argument, assign it.
  915. if test -n "$ac_prev"; then
  916. eval $ac_prev=\$ac_option
  917. ac_prev=
  918. continue
  919. fi
  920. case $ac_option in
  921. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  922. *) ac_optarg=yes ;;
  923. esac
  924. # Accept the important Cygnus configure options, so we can diagnose typos.
  925. case $ac_dashdash$ac_option in
  926. --)
  927. ac_dashdash=yes ;;
  928. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  929. ac_prev=bindir ;;
  930. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  931. bindir=$ac_optarg ;;
  932. -build | --build | --buil | --bui | --bu)
  933. ac_prev=build_alias ;;
  934. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  935. build_alias=$ac_optarg ;;
  936. -cache-file | --cache-file | --cache-fil | --cache-fi \
  937. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  938. ac_prev=cache_file ;;
  939. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  940. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  941. cache_file=$ac_optarg ;;
  942. --config-cache | -C)
  943. cache_file=config.cache ;;
  944. -datadir | --datadir | --datadi | --datad)
  945. ac_prev=datadir ;;
  946. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  947. datadir=$ac_optarg ;;
  948. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  949. | --dataroo | --dataro | --datar)
  950. ac_prev=datarootdir ;;
  951. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  952. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  953. datarootdir=$ac_optarg ;;
  954. -disable-* | --disable-*)
  955. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  956. # Reject names that are not valid shell variable names.
  957. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  958. as_fn_error $? "invalid feature name: $ac_useropt"
  959. ac_useropt_orig=$ac_useropt
  960. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  961. case $ac_user_opts in
  962. *"
  963. "enable_$ac_useropt"
  964. "*) ;;
  965. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  966. ac_unrecognized_sep=', ';;
  967. esac
  968. eval enable_$ac_useropt=no ;;
  969. -docdir | --docdir | --docdi | --doc | --do)
  970. ac_prev=docdir ;;
  971. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  972. docdir=$ac_optarg ;;
  973. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  974. ac_prev=dvidir ;;
  975. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  976. dvidir=$ac_optarg ;;
  977. -enable-* | --enable-*)
  978. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  979. # Reject names that are not valid shell variable names.
  980. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  981. as_fn_error $? "invalid feature name: $ac_useropt"
  982. ac_useropt_orig=$ac_useropt
  983. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  984. case $ac_user_opts in
  985. *"
  986. "enable_$ac_useropt"
  987. "*) ;;
  988. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  989. ac_unrecognized_sep=', ';;
  990. esac
  991. eval enable_$ac_useropt=\$ac_optarg ;;
  992. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  993. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  994. | --exec | --exe | --ex)
  995. ac_prev=exec_prefix ;;
  996. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  997. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  998. | --exec=* | --exe=* | --ex=*)
  999. exec_prefix=$ac_optarg ;;
  1000. -gas | --gas | --ga | --g)
  1001. # Obsolete; use --with-gas.
  1002. with_gas=yes ;;
  1003. -help | --help | --hel | --he | -h)
  1004. ac_init_help=long ;;
  1005. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1006. ac_init_help=recursive ;;
  1007. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1008. ac_init_help=short ;;
  1009. -host | --host | --hos | --ho)
  1010. ac_prev=host_alias ;;
  1011. -host=* | --host=* | --hos=* | --ho=*)
  1012. host_alias=$ac_optarg ;;
  1013. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1014. ac_prev=htmldir ;;
  1015. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1016. | --ht=*)
  1017. htmldir=$ac_optarg ;;
  1018. -includedir | --includedir | --includedi | --included | --include \
  1019. | --includ | --inclu | --incl | --inc)
  1020. ac_prev=includedir ;;
  1021. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1022. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1023. includedir=$ac_optarg ;;
  1024. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1025. ac_prev=infodir ;;
  1026. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1027. infodir=$ac_optarg ;;
  1028. -libdir | --libdir | --libdi | --libd)
  1029. ac_prev=libdir ;;
  1030. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1031. libdir=$ac_optarg ;;
  1032. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1033. | --libexe | --libex | --libe)
  1034. ac_prev=libexecdir ;;
  1035. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1036. | --libexe=* | --libex=* | --libe=*)
  1037. libexecdir=$ac_optarg ;;
  1038. -localedir | --localedir | --localedi | --localed | --locale)
  1039. ac_prev=localedir ;;
  1040. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1041. localedir=$ac_optarg ;;
  1042. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1043. | --localstate | --localstat | --localsta | --localst | --locals)
  1044. ac_prev=localstatedir ;;
  1045. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1046. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1047. localstatedir=$ac_optarg ;;
  1048. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1049. ac_prev=mandir ;;
  1050. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1051. mandir=$ac_optarg ;;
  1052. -nfp | --nfp | --nf)
  1053. # Obsolete; use --without-fp.
  1054. with_fp=no ;;
  1055. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1056. | --no-cr | --no-c | -n)
  1057. no_create=yes ;;
  1058. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1059. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1060. no_recursion=yes ;;
  1061. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1062. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1063. | --oldin | --oldi | --old | --ol | --o)
  1064. ac_prev=oldincludedir ;;
  1065. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1066. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1067. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1068. oldincludedir=$ac_optarg ;;
  1069. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1070. ac_prev=prefix ;;
  1071. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1072. prefix=$ac_optarg ;;
  1073. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1074. | --program-pre | --program-pr | --program-p)
  1075. ac_prev=program_prefix ;;
  1076. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1077. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1078. program_prefix=$ac_optarg ;;
  1079. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1080. | --program-suf | --program-su | --program-s)
  1081. ac_prev=program_suffix ;;
  1082. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1083. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1084. program_suffix=$ac_optarg ;;
  1085. -program-transform-name | --program-transform-name \
  1086. | --program-transform-nam | --program-transform-na \
  1087. | --program-transform-n | --program-transform- \
  1088. | --program-transform | --program-transfor \
  1089. | --program-transfo | --program-transf \
  1090. | --program-trans | --program-tran \
  1091. | --progr-tra | --program-tr | --program-t)
  1092. ac_prev=program_transform_name ;;
  1093. -program-transform-name=* | --program-transform-name=* \
  1094. | --program-transform-nam=* | --program-transform-na=* \
  1095. | --program-transform-n=* | --program-transform-=* \
  1096. | --program-transform=* | --program-transfor=* \
  1097. | --program-transfo=* | --program-transf=* \
  1098. | --program-trans=* | --program-tran=* \
  1099. | --progr-tra=* | --program-tr=* | --program-t=*)
  1100. program_transform_name=$ac_optarg ;;
  1101. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1102. ac_prev=pdfdir ;;
  1103. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1104. pdfdir=$ac_optarg ;;
  1105. -psdir | --psdir | --psdi | --psd | --ps)
  1106. ac_prev=psdir ;;
  1107. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1108. psdir=$ac_optarg ;;
  1109. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1110. | -silent | --silent | --silen | --sile | --sil)
  1111. silent=yes ;;
  1112. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1113. ac_prev=sbindir ;;
  1114. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1115. | --sbi=* | --sb=*)
  1116. sbindir=$ac_optarg ;;
  1117. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1118. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1119. | --sharedst | --shareds | --shared | --share | --shar \
  1120. | --sha | --sh)
  1121. ac_prev=sharedstatedir ;;
  1122. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1123. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1124. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1125. | --sha=* | --sh=*)
  1126. sharedstatedir=$ac_optarg ;;
  1127. -site | --site | --sit)
  1128. ac_prev=site ;;
  1129. -site=* | --site=* | --sit=*)
  1130. site=$ac_optarg ;;
  1131. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1132. ac_prev=srcdir ;;
  1133. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1134. srcdir=$ac_optarg ;;
  1135. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1136. | --syscon | --sysco | --sysc | --sys | --sy)
  1137. ac_prev=sysconfdir ;;
  1138. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1139. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1140. sysconfdir=$ac_optarg ;;
  1141. -target | --target | --targe | --targ | --tar | --ta | --t)
  1142. ac_prev=target_alias ;;
  1143. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1144. target_alias=$ac_optarg ;;
  1145. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1146. verbose=yes ;;
  1147. -version | --version | --versio | --versi | --vers | -V)
  1148. ac_init_version=: ;;
  1149. -with-* | --with-*)
  1150. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1151. # Reject names that are not valid shell variable names.
  1152. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1153. as_fn_error $? "invalid package name: $ac_useropt"
  1154. ac_useropt_orig=$ac_useropt
  1155. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1156. case $ac_user_opts in
  1157. *"
  1158. "with_$ac_useropt"
  1159. "*) ;;
  1160. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1161. ac_unrecognized_sep=', ';;
  1162. esac
  1163. eval with_$ac_useropt=\$ac_optarg ;;
  1164. -without-* | --without-*)
  1165. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1166. # Reject names that are not valid shell variable names.
  1167. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1168. as_fn_error $? "invalid package name: $ac_useropt"
  1169. ac_useropt_orig=$ac_useropt
  1170. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1171. case $ac_user_opts in
  1172. *"
  1173. "with_$ac_useropt"
  1174. "*) ;;
  1175. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1176. ac_unrecognized_sep=', ';;
  1177. esac
  1178. eval with_$ac_useropt=no ;;
  1179. --x)
  1180. # Obsolete; use --with-x.
  1181. with_x=yes ;;
  1182. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1183. | --x-incl | --x-inc | --x-in | --x-i)
  1184. ac_prev=x_includes ;;
  1185. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1186. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1187. x_includes=$ac_optarg ;;
  1188. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1189. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1190. ac_prev=x_libraries ;;
  1191. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1192. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1193. x_libraries=$ac_optarg ;;
  1194. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1195. Try \`$0 --help' for more information"
  1196. ;;
  1197. *=*)
  1198. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1199. # Reject names that are not valid shell variable names.
  1200. case $ac_envvar in #(
  1201. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1202. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1203. esac
  1204. eval $ac_envvar=\$ac_optarg
  1205. export $ac_envvar ;;
  1206. *)
  1207. # FIXME: should be removed in autoconf 3.0.
  1208. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1209. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1210. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1211. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1212. ;;
  1213. esac
  1214. done
  1215. if test -n "$ac_prev"; then
  1216. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1217. as_fn_error $? "missing argument to $ac_option"
  1218. fi
  1219. if test -n "$ac_unrecognized_opts"; then
  1220. case $enable_option_checking in
  1221. no) ;;
  1222. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1223. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1224. esac
  1225. fi
  1226. # Check all directory arguments for consistency.
  1227. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1228. datadir sysconfdir sharedstatedir localstatedir includedir \
  1229. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1230. libdir localedir mandir
  1231. do
  1232. eval ac_val=\$$ac_var
  1233. # Remove trailing slashes.
  1234. case $ac_val in
  1235. */ )
  1236. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1237. eval $ac_var=\$ac_val;;
  1238. esac
  1239. # Be sure to have absolute directory names.
  1240. case $ac_val in
  1241. [\\/$]* | ?:[\\/]* ) continue;;
  1242. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1243. esac
  1244. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1245. done
  1246. # There might be people who depend on the old broken behavior: `$host'
  1247. # used to hold the argument of --host etc.
  1248. # FIXME: To remove some day.
  1249. build=$build_alias
  1250. host=$host_alias
  1251. target=$target_alias
  1252. # FIXME: To remove some day.
  1253. if test "x$host_alias" != x; then
  1254. if test "x$build_alias" = x; then
  1255. cross_compiling=maybe
  1256. $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
  1257. If a cross compiler is detected then cross compile mode will be used" >&2
  1258. elif test "x$build_alias" != "x$host_alias"; then
  1259. cross_compiling=yes
  1260. fi
  1261. fi
  1262. ac_tool_prefix=
  1263. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1264. test "$silent" = yes && exec 6>/dev/null
  1265. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1266. ac_ls_di=`ls -di .` &&
  1267. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1268. as_fn_error $? "working directory cannot be determined"
  1269. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1270. as_fn_error $? "pwd does not report name of working directory"
  1271. # Find the source files, if location was not specified.
  1272. if test -z "$srcdir"; then
  1273. ac_srcdir_defaulted=yes
  1274. # Try the directory containing this script, then the parent directory.
  1275. ac_confdir=`$as_dirname -- "$as_myself" ||
  1276. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1277. X"$as_myself" : 'X\(//\)[^/]' \| \
  1278. X"$as_myself" : 'X\(//\)$' \| \
  1279. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1280. $as_echo X"$as_myself" |
  1281. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1282. s//\1/
  1283. q
  1284. }
  1285. /^X\(\/\/\)[^/].*/{
  1286. s//\1/
  1287. q
  1288. }
  1289. /^X\(\/\/\)$/{
  1290. s//\1/
  1291. q
  1292. }
  1293. /^X\(\/\).*/{
  1294. s//\1/
  1295. q
  1296. }
  1297. s/.*/./; q'`
  1298. srcdir=$ac_confdir
  1299. if test ! -r "$srcdir/$ac_unique_file"; then
  1300. srcdir=..
  1301. fi
  1302. else
  1303. ac_srcdir_defaulted=no
  1304. fi
  1305. if test ! -r "$srcdir/$ac_unique_file"; then
  1306. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1307. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1308. fi
  1309. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1310. ac_abs_confdir=`(
  1311. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1312. pwd)`
  1313. # When building in place, set srcdir=.
  1314. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1315. srcdir=.
  1316. fi
  1317. # Remove unnecessary trailing slashes from srcdir.
  1318. # Double slashes in file names in object file debugging info
  1319. # mess up M-x gdb in Emacs.
  1320. case $srcdir in
  1321. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1322. esac
  1323. for ac_var in $ac_precious_vars; do
  1324. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1325. eval ac_env_${ac_var}_value=\$${ac_var}
  1326. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1327. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1328. done
  1329. #
  1330. # Report the --help message.
  1331. #
  1332. if test "$ac_init_help" = "long"; then
  1333. # Omit some internal or obsolete options to make the list less imposing.
  1334. # This message is too long to be a string in the A/UX 3.1 sh.
  1335. cat <<_ACEOF
  1336. \`configure' configures dirsrv 1.0 to adapt to many kinds of systems.
  1337. Usage: $0 [OPTION]... [VAR=VALUE]...
  1338. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1339. VAR=VALUE. See below for descriptions of some of the useful variables.
  1340. Defaults for the options are specified in brackets.
  1341. Configuration:
  1342. -h, --help display this help and exit
  1343. --help=short display options specific to this package
  1344. --help=recursive display the short help of all the included packages
  1345. -V, --version display version information and exit
  1346. -q, --quiet, --silent do not print \`checking ...' messages
  1347. --cache-file=FILE cache test results in FILE [disabled]
  1348. -C, --config-cache alias for \`--cache-file=config.cache'
  1349. -n, --no-create do not create output files
  1350. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1351. Installation directories:
  1352. --prefix=PREFIX install architecture-independent files in PREFIX
  1353. [$ac_default_prefix]
  1354. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1355. [PREFIX]
  1356. By default, \`make install' will install all the files in
  1357. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1358. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1359. for instance \`--prefix=\$HOME'.
  1360. For better control, use the options below.
  1361. Fine tuning of the installation directories:
  1362. --bindir=DIR user executables [EPREFIX/bin]
  1363. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1364. --libexecdir=DIR program executables [EPREFIX/libexec]
  1365. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1366. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1367. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1368. --libdir=DIR object code libraries [EPREFIX/lib]
  1369. --includedir=DIR C header files [PREFIX/include]
  1370. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1371. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1372. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1373. --infodir=DIR info documentation [DATAROOTDIR/info]
  1374. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1375. --mandir=DIR man documentation [DATAROOTDIR/man]
  1376. --docdir=DIR documentation root [DATAROOTDIR/doc/dirsrv]
  1377. --htmldir=DIR html documentation [DOCDIR]
  1378. --dvidir=DIR dvi documentation [DOCDIR]
  1379. --pdfdir=DIR pdf documentation [DOCDIR]
  1380. --psdir=DIR ps documentation [DOCDIR]
  1381. _ACEOF
  1382. cat <<\_ACEOF
  1383. Program names:
  1384. --program-prefix=PREFIX prepend PREFIX to installed program names
  1385. --program-suffix=SUFFIX append SUFFIX to installed program names
  1386. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1387. System types:
  1388. --build=BUILD configure for building on BUILD [guessed]
  1389. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1390. _ACEOF
  1391. fi
  1392. if test -n "$ac_init_help"; then
  1393. case $ac_init_help in
  1394. short | recursive ) echo "Configuration of dirsrv 1.0:";;
  1395. esac
  1396. cat <<\_ACEOF
  1397. Optional Features:
  1398. --disable-option-checking ignore unrecognized --enable/--with options
  1399. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1400. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1401. --enable-maintainer-mode enable make rules and dependencies not useful
  1402. (and sometimes confusing) to the casual installer
  1403. --disable-dependency-tracking speeds up one-time build
  1404. --enable-dependency-tracking do not reject slow dependency extractors
  1405. --enable-static[=PKGS] build static libraries [default=no]
  1406. --enable-shared[=PKGS] build shared libraries [default=yes]
  1407. --enable-fast-install[=PKGS]
  1408. optimize for fast installation [default=yes]
  1409. --disable-libtool-lock avoid locking (might break parallel builds)
  1410. --enable-debug Enable debug features (default: no)
  1411. --enable-bundle Enable bundled dependencies (default: no)
  1412. --enable-pam-passthru enable the PAM passthrough auth plugin (default:
  1413. yes)
  1414. --enable-dna enable the Distributed Numeric Assignment (DNA)
  1415. plugin (default: yes)
  1416. --enable-ldapi enable LDAP over unix domain socket (LDAPI) support
  1417. (default: yes)
  1418. --enable-autobind enable auto bind over unix domain socket (LDAPI)
  1419. support (default: no)
  1420. --enable-auto-dn-suffix enable auto bind with auto dn suffix over unix
  1421. domain socket (LDAPI) support (default: no)
  1422. --enable-bitwise enable the bitwise matching rule plugin (default:
  1423. yes)
  1424. --enable-presence enable the presence plugin (default: no)
  1425. --enable-acctpolicy enable the account policy plugin (default: yes)
  1426. Optional Packages:
  1427. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1428. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1429. --with-pic try to use only PIC/non-PIC objects [default=use
  1430. both]
  1431. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1432. --with-fhs Use FHS layout
  1433. --with-fhs-opt Use FHS optional layout
  1434. --with-instconfigdir=/path
  1435. Base directory for instance specific writable
  1436. configuration directories (default
  1437. $sysconfdir/$PACKAGE_NAME)
  1438. --with-initddir=/path Absolute path (not relative like some of the other
  1439. options) that should contain the SysV init scripts
  1440. (default '$(sysconfdir)/rc.d')
  1441. --with-nspr[=PATH] Netscape Portable Runtime (NSPR) directory
  1442. --with-nspr-inc=PATH Netscape Portable Runtime (NSPR) include directory
  1443. --with-nspr-lib=PATH Netscape Portable Runtime (NSPR) library directory
  1444. --with-nss[=PATH] Network Security Services (NSS) directory
  1445. --with-nss-inc=PATH Network Security Services (NSS) include directory
  1446. --with-nss-lib=PATH Network Security Services (NSS) library directory
  1447. --with-openldap[=PATH] Use OpenLDAP - optional PATH is path to OpenLDAP SDK
  1448. --with-openldap-inc=PATH
  1449. OpenLDAP SDK include directory
  1450. --with-openldap-lib=PATH
  1451. OpenLDAP SDK library directory
  1452. --with-openldap-bin=PATH
  1453. OpenLDAP SDK binary directory
  1454. --with-ldapsdk[=PATH] Mozilla LDAP SDK directory
  1455. --with-ldapsdk-inc=PATH Mozilla LDAP SDK include directory
  1456. --with-ldapsdk-lib=PATH Mozilla LDAP SDK library directory
  1457. --with-ldapsdk-bin=PATH Mozilla LDAP SDK binary directory
  1458. --with-db[=PATH] Berkeley DB directory
  1459. --with-db-inc=PATH Berkeley DB include file directory
  1460. --with-db-lib=PATH Berkeley DB library directory
  1461. --with-sasl[=PATH] Use SASL from supplied path
  1462. --with-sasl-inc=PATH SASL include file directory
  1463. --with-sasl-lib=PATH SASL library directory
  1464. --with-svrcore[=PATH] Use system installed SVRCORE - optional path for
  1465. SVRCORE
  1466. --with-svrcore-inc=PATH SVRCORE include file directory
  1467. --with-svrcore-lib=PATH SVRCORE library directory
  1468. --with-icu[=PATH] ICU directory
  1469. --with-icu-inc=PATH ICU include directory
  1470. --with-icu-lib=PATH ICU library directory
  1471. --with-icu-bin=PATH ICU binary directory
  1472. --with-netsnmp[=PATH] Net-SNMP directory
  1473. --with-netsnmp-inc=PATH Net-SNMP include directory
  1474. --with-netsnmp-lib=PATH Net-SNMP library directory
  1475. --with-kerberos[=PATH] Use the kerberos API in the server directly - allows
  1476. the server to authenticate directly with a keytab -
  1477. otherwise, SASL/GSSAPI auth depends on underlying
  1478. SASL libraries and external kinit with a keytab - if
  1479. PATH is not specified, look for kerberos in the
  1480. system locations. This will attempt to use
  1481. krb5-config from the PATH to find the libs and
  1482. include dirs - you can specify KRB5_CONFIG_BIN to
  1483. specify a different filename or absolute path. If
  1484. krb5-config does not work, this will attempt to look
  1485. in various system directories
  1486. --with-kerberos-inc=PATH
  1487. Allows you to explicitly set the directory
  1488. containing the kerberos include files - implies use
  1489. of kerberos
  1490. --with-kerberos-lib=PATH
  1491. Allows you to explicitly set the directory
  1492. containing the kerberos libraries - implies use of
  1493. kerberos
  1494. --with-pcre[=PATH] Perl Compatible Regular Expression directory
  1495. --with-selinux Support SELinux policy
  1496. Some influential environment variables:
  1497. CXX C++ compiler command
  1498. CXXFLAGS C++ compiler flags
  1499. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1500. nonstandard directory <lib dir>
  1501. LIBS libraries to pass to the linker, e.g. -l<library>
  1502. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1503. you have headers in a nonstandard directory <include dir>
  1504. CC C compiler command
  1505. CFLAGS C compiler flags
  1506. CCAS assembler compiler command (defaults to CC)
  1507. CCASFLAGS assembler compiler flags (defaults to CFLAGS)
  1508. CPP C preprocessor
  1509. CXXCPP C++ preprocessor
  1510. Use these variables to override the choices made by `configure' or to help
  1511. it to find libraries and programs with nonstandard names/locations.
  1512. Report bugs to <http://bugzilla.redhat.com/>.
  1513. _ACEOF
  1514. ac_status=$?
  1515. fi
  1516. if test "$ac_init_help" = "recursive"; then
  1517. # If there are subdirs, report their specific --help.
  1518. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1519. test -d "$ac_dir" ||
  1520. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1521. continue
  1522. ac_builddir=.
  1523. case "$ac_dir" in
  1524. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1525. *)
  1526. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1527. # A ".." for each directory in $ac_dir_suffix.
  1528. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1529. case $ac_top_builddir_sub in
  1530. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1531. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1532. esac ;;
  1533. esac
  1534. ac_abs_top_builddir=$ac_pwd
  1535. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1536. # for backward compatibility:
  1537. ac_top_builddir=$ac_top_build_prefix
  1538. case $srcdir in
  1539. .) # We are building in place.
  1540. ac_srcdir=.
  1541. ac_top_srcdir=$ac_top_builddir_sub
  1542. ac_abs_top_srcdir=$ac_pwd ;;
  1543. [\\/]* | ?:[\\/]* ) # Absolute name.
  1544. ac_srcdir=$srcdir$ac_dir_suffix;
  1545. ac_top_srcdir=$srcdir
  1546. ac_abs_top_srcdir=$srcdir ;;
  1547. *) # Relative name.
  1548. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1549. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1550. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1551. esac
  1552. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1553. cd "$ac_dir" || { ac_status=$?; continue; }
  1554. # Check for guested configure.
  1555. if test -f "$ac_srcdir/configure.gnu"; then
  1556. echo &&
  1557. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1558. elif test -f "$ac_srcdir/configure"; then
  1559. echo &&
  1560. $SHELL "$ac_srcdir/configure" --help=recursive
  1561. else
  1562. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1563. fi || ac_status=$?
  1564. cd "$ac_pwd" || { ac_status=$?; break; }
  1565. done
  1566. fi
  1567. test -n "$ac_init_help" && exit $ac_status
  1568. if $ac_init_version; then
  1569. cat <<\_ACEOF
  1570. dirsrv configure 1.0
  1571. generated by GNU Autoconf 2.66
  1572. Copyright (C) 2010 Free Software Foundation, Inc.
  1573. This configure script is free software; the Free Software Foundation
  1574. gives unlimited permission to copy, distribute and modify it.
  1575. _ACEOF
  1576. exit
  1577. fi
  1578. ## ------------------------ ##
  1579. ## Autoconf initialization. ##
  1580. ## ------------------------ ##
  1581. # ac_fn_cxx_try_compile LINENO
  1582. # ----------------------------
  1583. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1584. ac_fn_cxx_try_compile ()
  1585. {
  1586. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1587. rm -f conftest.$ac_objext
  1588. if { { ac_try="$ac_compile"
  1589. case "(($ac_try" in
  1590. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1591. *) ac_try_echo=$ac_try;;
  1592. esac
  1593. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1594. $as_echo "$ac_try_echo"; } >&5
  1595. (eval "$ac_compile") 2>conftest.err
  1596. ac_status=$?
  1597. if test -s conftest.err; then
  1598. grep -v '^ *+' conftest.err >conftest.er1
  1599. cat conftest.er1 >&5
  1600. mv -f conftest.er1 conftest.err
  1601. fi
  1602. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1603. test $ac_status = 0; } && {
  1604. test -z "$ac_cxx_werror_flag" ||
  1605. test ! -s conftest.err
  1606. } && test -s conftest.$ac_objext; then :
  1607. ac_retval=0
  1608. else
  1609. $as_echo "$as_me: failed program was:" >&5
  1610. sed 's/^/| /' conftest.$ac_ext >&5
  1611. ac_retval=1
  1612. fi
  1613. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1614. as_fn_set_status $ac_retval
  1615. } # ac_fn_cxx_try_compile
  1616. # ac_fn_c_try_compile LINENO
  1617. # --------------------------
  1618. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1619. ac_fn_c_try_compile ()
  1620. {
  1621. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1622. rm -f conftest.$ac_objext
  1623. if { { ac_try="$ac_compile"
  1624. case "(($ac_try" in
  1625. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1626. *) ac_try_echo=$ac_try;;
  1627. esac
  1628. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1629. $as_echo "$ac_try_echo"; } >&5
  1630. (eval "$ac_compile") 2>conftest.err
  1631. ac_status=$?
  1632. if test -s conftest.err; then
  1633. grep -v '^ *+' conftest.err >conftest.er1
  1634. cat conftest.er1 >&5
  1635. mv -f conftest.er1 conftest.err
  1636. fi
  1637. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1638. test $ac_status = 0; } && {
  1639. test -z "$ac_c_werror_flag" ||
  1640. test ! -s conftest.err
  1641. } && test -s conftest.$ac_objext; then :
  1642. ac_retval=0
  1643. else
  1644. $as_echo "$as_me: failed program was:" >&5
  1645. sed 's/^/| /' conftest.$ac_ext >&5
  1646. ac_retval=1
  1647. fi
  1648. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1649. as_fn_set_status $ac_retval
  1650. } # ac_fn_c_try_compile
  1651. # ac_fn_c_try_link LINENO
  1652. # -----------------------
  1653. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1654. ac_fn_c_try_link ()
  1655. {
  1656. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1657. rm -f conftest.$ac_objext conftest$ac_exeext
  1658. if { { ac_try="$ac_link"
  1659. case "(($ac_try" in
  1660. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1661. *) ac_try_echo=$ac_try;;
  1662. esac
  1663. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1664. $as_echo "$ac_try_echo"; } >&5
  1665. (eval "$ac_link") 2>conftest.err
  1666. ac_status=$?
  1667. if test -s conftest.err; then
  1668. grep -v '^ *+' conftest.err >conftest.er1
  1669. cat conftest.er1 >&5
  1670. mv -f conftest.er1 conftest.err
  1671. fi
  1672. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1673. test $ac_status = 0; } && {
  1674. test -z "$ac_c_werror_flag" ||
  1675. test ! -s conftest.err
  1676. } && test -s conftest$ac_exeext && {
  1677. test "$cross_compiling" = yes ||
  1678. $as_test_x conftest$ac_exeext
  1679. }; then :
  1680. ac_retval=0
  1681. else
  1682. $as_echo "$as_me: failed program was:" >&5
  1683. sed 's/^/| /' conftest.$ac_ext >&5
  1684. ac_retval=1
  1685. fi
  1686. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1687. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1688. # interfere with the next link command; also delete a directory that is
  1689. # left behind by Apple's compiler. We do this before executing the actions.
  1690. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1691. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1692. as_fn_set_status $ac_retval
  1693. } # ac_fn_c_try_link
  1694. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1695. # -------------------------------------------------------
  1696. # Tests whether HEADER exists and can be compiled using the include files in
  1697. # INCLUDES, setting the cache variable VAR accordingly.
  1698. ac_fn_c_check_header_compile ()
  1699. {
  1700. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1701. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1702. $as_echo_n "checking for $2... " >&6; }
  1703. if eval "test \"\${$3+set}\"" = set; then :
  1704. $as_echo_n "(cached) " >&6
  1705. else
  1706. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1707. /* end confdefs.h. */
  1708. $4
  1709. #include <$2>
  1710. _ACEOF
  1711. if ac_fn_c_try_compile "$LINENO"; then :
  1712. eval "$3=yes"
  1713. else
  1714. eval "$3=no"
  1715. fi
  1716. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1717. fi
  1718. eval ac_res=\$$3
  1719. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1720. $as_echo "$ac_res" >&6; }
  1721. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1722. } # ac_fn_c_check_header_compile
  1723. # ac_fn_c_try_cpp LINENO
  1724. # ----------------------
  1725. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1726. ac_fn_c_try_cpp ()
  1727. {
  1728. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1729. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1730. case "(($ac_try" in
  1731. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1732. *) ac_try_echo=$ac_try;;
  1733. esac
  1734. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1735. $as_echo "$ac_try_echo"; } >&5
  1736. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1737. ac_status=$?
  1738. if test -s conftest.err; then
  1739. grep -v '^ *+' conftest.err >conftest.er1
  1740. cat conftest.er1 >&5
  1741. mv -f conftest.er1 conftest.err
  1742. fi
  1743. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1744. test $ac_status = 0; } >/dev/null && {
  1745. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1746. test ! -s conftest.err
  1747. }; then :
  1748. ac_retval=0
  1749. else
  1750. $as_echo "$as_me: failed program was:" >&5
  1751. sed 's/^/| /' conftest.$ac_ext >&5
  1752. ac_retval=1
  1753. fi
  1754. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1755. as_fn_set_status $ac_retval
  1756. } # ac_fn_c_try_cpp
  1757. # ac_fn_c_try_run LINENO
  1758. # ----------------------
  1759. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1760. # that executables *can* be run.
  1761. ac_fn_c_try_run ()
  1762. {
  1763. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1764. if { { ac_try="$ac_link"
  1765. case "(($ac_try" in
  1766. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1767. *) ac_try_echo=$ac_try;;
  1768. esac
  1769. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1770. $as_echo "$ac_try_echo"; } >&5
  1771. (eval "$ac_link") 2>&5
  1772. ac_status=$?
  1773. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1774. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1775. { { case "(($ac_try" in
  1776. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1777. *) ac_try_echo=$ac_try;;
  1778. esac
  1779. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1780. $as_echo "$ac_try_echo"; } >&5
  1781. (eval "$ac_try") 2>&5
  1782. ac_status=$?
  1783. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1784. test $ac_status = 0; }; }; then :
  1785. ac_retval=0
  1786. else
  1787. $as_echo "$as_me: program exited with status $ac_status" >&5
  1788. $as_echo "$as_me: failed program was:" >&5
  1789. sed 's/^/| /' conftest.$ac_ext >&5
  1790. ac_retval=$ac_status
  1791. fi
  1792. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1793. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1794. as_fn_set_status $ac_retval
  1795. } # ac_fn_c_try_run
  1796. # ac_fn_c_check_func LINENO FUNC VAR
  1797. # ----------------------------------
  1798. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1799. ac_fn_c_check_func ()
  1800. {
  1801. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1802. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1803. $as_echo_n "checking for $2... " >&6; }
  1804. if eval "test \"\${$3+set}\"" = set; then :
  1805. $as_echo_n "(cached) " >&6
  1806. else
  1807. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1808. /* end confdefs.h. */
  1809. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1810. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1811. #define $2 innocuous_$2
  1812. /* System header to define __stub macros and hopefully few prototypes,
  1813. which can conflict with char $2 (); below.
  1814. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1815. <limits.h> exists even on freestanding compilers. */
  1816. #ifdef __STDC__
  1817. # include <limits.h>
  1818. #else
  1819. # include <assert.h>
  1820. #endif
  1821. #undef $2
  1822. /* Override any GCC internal prototype to avoid an error.
  1823. Use char because int might match the return type of a GCC
  1824. builtin and then its argument prototype would still apply. */
  1825. #ifdef __cplusplus
  1826. extern "C"
  1827. #endif
  1828. char $2 ();
  1829. /* The GNU C library defines this for functions which it implements
  1830. to always fail with ENOSYS. Some functions are actually named
  1831. something starting with __ and the normal name is an alias. */
  1832. #if defined __stub_$2 || defined __stub___$2
  1833. choke me
  1834. #endif
  1835. int
  1836. main ()
  1837. {
  1838. return $2 ();
  1839. ;
  1840. return 0;
  1841. }
  1842. _ACEOF
  1843. if ac_fn_c_try_link "$LINENO"; then :
  1844. eval "$3=yes"
  1845. else
  1846. eval "$3=no"
  1847. fi
  1848. rm -f core conftest.err conftest.$ac_objext \
  1849. conftest$ac_exeext conftest.$ac_ext
  1850. fi
  1851. eval ac_res=\$$3
  1852. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1853. $as_echo "$ac_res" >&6; }
  1854. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1855. } # ac_fn_c_check_func
  1856. # ac_fn_cxx_try_cpp LINENO
  1857. # ------------------------
  1858. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1859. ac_fn_cxx_try_cpp ()
  1860. {
  1861. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1862. if { { ac_try="$ac_cpp conftest.$ac_ext"
  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_cpp conftest.$ac_ext") 2>conftest.err
  1870. ac_status=$?
  1871. if test -s conftest.err; then
  1872. grep -v '^ *+' conftest.err >conftest.er1
  1873. cat conftest.er1 >&5
  1874. mv -f conftest.er1 conftest.err
  1875. fi
  1876. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1877. test $ac_status = 0; } >/dev/null && {
  1878. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1879. test ! -s conftest.err
  1880. }; then :
  1881. ac_retval=0
  1882. else
  1883. $as_echo "$as_me: failed program was:" >&5
  1884. sed 's/^/| /' conftest.$ac_ext >&5
  1885. ac_retval=1
  1886. fi
  1887. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1888. as_fn_set_status $ac_retval
  1889. } # ac_fn_cxx_try_cpp
  1890. # ac_fn_cxx_try_link LINENO
  1891. # -------------------------
  1892. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1893. ac_fn_cxx_try_link ()
  1894. {
  1895. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1896. rm -f conftest.$ac_objext conftest$ac_exeext
  1897. if { { ac_try="$ac_link"
  1898. case "(($ac_try" in
  1899. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1900. *) ac_try_echo=$ac_try;;
  1901. esac
  1902. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1903. $as_echo "$ac_try_echo"; } >&5
  1904. (eval "$ac_link") 2>conftest.err
  1905. ac_status=$?
  1906. if test -s conftest.err; then
  1907. grep -v '^ *+' conftest.err >conftest.er1
  1908. cat conftest.er1 >&5
  1909. mv -f conftest.er1 conftest.err
  1910. fi
  1911. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1912. test $ac_status = 0; } && {
  1913. test -z "$ac_cxx_werror_flag" ||
  1914. test ! -s conftest.err
  1915. } && test -s conftest$ac_exeext && {
  1916. test "$cross_compiling" = yes ||
  1917. $as_test_x conftest$ac_exeext
  1918. }; then :
  1919. ac_retval=0
  1920. else
  1921. $as_echo "$as_me: failed program was:" >&5
  1922. sed 's/^/| /' conftest.$ac_ext >&5
  1923. ac_retval=1
  1924. fi
  1925. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1926. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1927. # interfere with the next link command; also delete a directory that is
  1928. # left behind by Apple's compiler. We do this before executing the actions.
  1929. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1930. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1931. as_fn_set_status $ac_retval
  1932. } # ac_fn_cxx_try_link
  1933. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1934. # -------------------------------------------------------
  1935. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1936. # the include files in INCLUDES and setting the cache variable VAR
  1937. # accordingly.
  1938. ac_fn_c_check_header_mongrel ()
  1939. {
  1940. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1941. if eval "test \"\${$3+set}\"" = set; then :
  1942. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1943. $as_echo_n "checking for $2... " >&6; }
  1944. if eval "test \"\${$3+set}\"" = set; then :
  1945. $as_echo_n "(cached) " >&6
  1946. fi
  1947. eval ac_res=\$$3
  1948. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1949. $as_echo "$ac_res" >&6; }
  1950. else
  1951. # Is the header compilable?
  1952. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1953. $as_echo_n "checking $2 usability... " >&6; }
  1954. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1955. /* end confdefs.h. */
  1956. $4
  1957. #include <$2>
  1958. _ACEOF
  1959. if ac_fn_c_try_compile "$LINENO"; then :
  1960. ac_header_compiler=yes
  1961. else
  1962. ac_header_compiler=no
  1963. fi
  1964. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1965. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1966. $as_echo "$ac_header_compiler" >&6; }
  1967. # Is the header present?
  1968. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1969. $as_echo_n "checking $2 presence... " >&6; }
  1970. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1971. /* end confdefs.h. */
  1972. #include <$2>
  1973. _ACEOF
  1974. if ac_fn_c_try_cpp "$LINENO"; then :
  1975. ac_header_preproc=yes
  1976. else
  1977. ac_header_preproc=no
  1978. fi
  1979. rm -f conftest.err conftest.$ac_ext
  1980. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1981. $as_echo "$ac_header_preproc" >&6; }
  1982. # So? What about this header?
  1983. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1984. yes:no: )
  1985. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1986. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1987. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1988. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1989. ;;
  1990. no:yes:* )
  1991. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1992. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1993. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1994. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1995. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1996. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1997. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1998. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1999. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2000. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2001. ( $as_echo "## ------------------------------------------ ##
  2002. ## Report this to http://bugzilla.redhat.com/ ##
  2003. ## ------------------------------------------ ##"
  2004. ) | sed "s/^/$as_me: WARNING: /" >&2
  2005. ;;
  2006. esac
  2007. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2008. $as_echo_n "checking for $2... " >&6; }
  2009. if eval "test \"\${$3+set}\"" = set; then :
  2010. $as_echo_n "(cached) " >&6
  2011. else
  2012. eval "$3=\$ac_header_compiler"
  2013. fi
  2014. eval ac_res=\$$3
  2015. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2016. $as_echo "$ac_res" >&6; }
  2017. fi
  2018. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2019. } # ac_fn_c_check_header_mongrel
  2020. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  2021. # -------------------------------------------
  2022. # Tests whether TYPE exists after having included INCLUDES, setting cache
  2023. # variable VAR accordingly.
  2024. ac_fn_c_check_type ()
  2025. {
  2026. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2027. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2028. $as_echo_n "checking for $2... " >&6; }
  2029. if eval "test \"\${$3+set}\"" = set; then :
  2030. $as_echo_n "(cached) " >&6
  2031. else
  2032. eval "$3=no"
  2033. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2034. /* end confdefs.h. */
  2035. $4
  2036. int
  2037. main ()
  2038. {
  2039. if (sizeof ($2))
  2040. return 0;
  2041. ;
  2042. return 0;
  2043. }
  2044. _ACEOF
  2045. if ac_fn_c_try_compile "$LINENO"; then :
  2046. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2047. /* end confdefs.h. */
  2048. $4
  2049. int
  2050. main ()
  2051. {
  2052. if (sizeof (($2)))
  2053. return 0;
  2054. ;
  2055. return 0;
  2056. }
  2057. _ACEOF
  2058. if ac_fn_c_try_compile "$LINENO"; then :
  2059. else
  2060. eval "$3=yes"
  2061. fi
  2062. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2063. fi
  2064. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2065. fi
  2066. eval ac_res=\$$3
  2067. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2068. $as_echo "$ac_res" >&6; }
  2069. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2070. } # ac_fn_c_check_type
  2071. # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
  2072. # ---------------------------------------------
  2073. # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
  2074. # accordingly.
  2075. ac_fn_c_check_decl ()
  2076. {
  2077. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2078. as_decl_name=`echo $2|sed 's/ *(.*//'`
  2079. as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
  2080. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
  2081. $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
  2082. if eval "test \"\${$3+set}\"" = set; then :
  2083. $as_echo_n "(cached) " >&6
  2084. else
  2085. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2086. /* end confdefs.h. */
  2087. $4
  2088. int
  2089. main ()
  2090. {
  2091. #ifndef $as_decl_name
  2092. #ifdef __cplusplus
  2093. (void) $as_decl_use;
  2094. #else
  2095. (void) $as_decl_name;
  2096. #endif
  2097. #endif
  2098. ;
  2099. return 0;
  2100. }
  2101. _ACEOF
  2102. if ac_fn_c_try_compile "$LINENO"; then :
  2103. eval "$3=yes"
  2104. else
  2105. eval "$3=no"
  2106. fi
  2107. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2108. fi
  2109. eval ac_res=\$$3
  2110. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2111. $as_echo "$ac_res" >&6; }
  2112. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2113. } # ac_fn_c_check_decl
  2114. cat >config.log <<_ACEOF
  2115. This file contains any messages produced by compilers while
  2116. running configure, to aid debugging if configure makes a mistake.
  2117. It was created by dirsrv $as_me 1.0, which was
  2118. generated by GNU Autoconf 2.66. Invocation command line was
  2119. $ $0 $@
  2120. _ACEOF
  2121. exec 5>>config.log
  2122. {
  2123. cat <<_ASUNAME
  2124. ## --------- ##
  2125. ## Platform. ##
  2126. ## --------- ##
  2127. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2128. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2129. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2130. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2131. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2132. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2133. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2134. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2135. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2136. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2137. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2138. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2139. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2140. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2141. _ASUNAME
  2142. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2143. for as_dir in $PATH
  2144. do
  2145. IFS=$as_save_IFS
  2146. test -z "$as_dir" && as_dir=.
  2147. $as_echo "PATH: $as_dir"
  2148. done
  2149. IFS=$as_save_IFS
  2150. } >&5
  2151. cat >&5 <<_ACEOF
  2152. ## ----------- ##
  2153. ## Core tests. ##
  2154. ## ----------- ##
  2155. _ACEOF
  2156. # Keep a trace of the command line.
  2157. # Strip out --no-create and --no-recursion so they do not pile up.
  2158. # Strip out --silent because we don't want to record it for future runs.
  2159. # Also quote any args containing shell meta-characters.
  2160. # Make two passes to allow for proper duplicate-argument suppression.
  2161. ac_configure_args=
  2162. ac_configure_args0=
  2163. ac_configure_args1=
  2164. ac_must_keep_next=false
  2165. for ac_pass in 1 2
  2166. do
  2167. for ac_arg
  2168. do
  2169. case $ac_arg in
  2170. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2171. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2172. | -silent | --silent | --silen | --sile | --sil)
  2173. continue ;;
  2174. *\'*)
  2175. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2176. esac
  2177. case $ac_pass in
  2178. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2179. 2)
  2180. as_fn_append ac_configure_args1 " '$ac_arg'"
  2181. if test $ac_must_keep_next = true; then
  2182. ac_must_keep_next=false # Got value, back to normal.
  2183. else
  2184. case $ac_arg in
  2185. *=* | --config-cache | -C | -disable-* | --disable-* \
  2186. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2187. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2188. | -with-* | --with-* | -without-* | --without-* | --x)
  2189. case "$ac_configure_args0 " in
  2190. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2191. esac
  2192. ;;
  2193. -* ) ac_must_keep_next=true ;;
  2194. esac
  2195. fi
  2196. as_fn_append ac_configure_args " '$ac_arg'"
  2197. ;;
  2198. esac
  2199. done
  2200. done
  2201. { ac_configure_args0=; unset ac_configure_args0;}
  2202. { ac_configure_args1=; unset ac_configure_args1;}
  2203. # When interrupted or exit'd, cleanup temporary files, and complete
  2204. # config.log. We remove comments because anyway the quotes in there
  2205. # would cause problems or look ugly.
  2206. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2207. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2208. trap 'exit_status=$?
  2209. # Save into config.log some information that might help in debugging.
  2210. {
  2211. echo
  2212. $as_echo "## ---------------- ##
  2213. ## Cache variables. ##
  2214. ## ---------------- ##"
  2215. echo
  2216. # The following way of writing the cache mishandles newlines in values,
  2217. (
  2218. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2219. eval ac_val=\$$ac_var
  2220. case $ac_val in #(
  2221. *${as_nl}*)
  2222. case $ac_var in #(
  2223. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2224. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2225. esac
  2226. case $ac_var in #(
  2227. _ | IFS | as_nl) ;; #(
  2228. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2229. *) { eval $ac_var=; unset $ac_var;} ;;
  2230. esac ;;
  2231. esac
  2232. done
  2233. (set) 2>&1 |
  2234. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2235. *${as_nl}ac_space=\ *)
  2236. sed -n \
  2237. "s/'\''/'\''\\\\'\'''\''/g;
  2238. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2239. ;; #(
  2240. *)
  2241. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2242. ;;
  2243. esac |
  2244. sort
  2245. )
  2246. echo
  2247. $as_echo "## ----------------- ##
  2248. ## Output variables. ##
  2249. ## ----------------- ##"
  2250. echo
  2251. for ac_var in $ac_subst_vars
  2252. do
  2253. eval ac_val=\$$ac_var
  2254. case $ac_val in
  2255. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2256. esac
  2257. $as_echo "$ac_var='\''$ac_val'\''"
  2258. done | sort
  2259. echo
  2260. if test -n "$ac_subst_files"; then
  2261. $as_echo "## ------------------- ##
  2262. ## File substitutions. ##
  2263. ## ------------------- ##"
  2264. echo
  2265. for ac_var in $ac_subst_files
  2266. do
  2267. eval ac_val=\$$ac_var
  2268. case $ac_val in
  2269. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2270. esac
  2271. $as_echo "$ac_var='\''$ac_val'\''"
  2272. done | sort
  2273. echo
  2274. fi
  2275. if test -s confdefs.h; then
  2276. $as_echo "## ----------- ##
  2277. ## confdefs.h. ##
  2278. ## ----------- ##"
  2279. echo
  2280. cat confdefs.h
  2281. echo
  2282. fi
  2283. test "$ac_signal" != 0 &&
  2284. $as_echo "$as_me: caught signal $ac_signal"
  2285. $as_echo "$as_me: exit $exit_status"
  2286. } >&5
  2287. rm -f core *.core core.conftest.* &&
  2288. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2289. exit $exit_status
  2290. ' 0
  2291. for ac_signal in 1 2 13 15; do
  2292. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2293. done
  2294. ac_signal=0
  2295. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2296. rm -f -r conftest* confdefs.h
  2297. $as_echo "/* confdefs.h */" > confdefs.h
  2298. # Predefined preprocessor variables.
  2299. cat >>confdefs.h <<_ACEOF
  2300. #define PACKAGE_NAME "$PACKAGE_NAME"
  2301. _ACEOF
  2302. cat >>confdefs.h <<_ACEOF
  2303. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2304. _ACEOF
  2305. cat >>confdefs.h <<_ACEOF
  2306. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2307. _ACEOF
  2308. cat >>confdefs.h <<_ACEOF
  2309. #define PACKAGE_STRING "$PACKAGE_STRING"
  2310. _ACEOF
  2311. cat >>confdefs.h <<_ACEOF
  2312. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2313. _ACEOF
  2314. cat >>confdefs.h <<_ACEOF
  2315. #define PACKAGE_URL "$PACKAGE_URL"
  2316. _ACEOF
  2317. # Let the site file select an alternate cache file if it wants to.
  2318. # Prefer an explicitly selected file to automatically selected ones.
  2319. ac_site_file1=NONE
  2320. ac_site_file2=NONE
  2321. if test -n "$CONFIG_SITE"; then
  2322. # We do not want a PATH search for config.site.
  2323. case $CONFIG_SITE in #((
  2324. -*) ac_site_file1=./$CONFIG_SITE;;
  2325. */*) ac_site_file1=$CONFIG_SITE;;
  2326. *) ac_site_file1=./$CONFIG_SITE;;
  2327. esac
  2328. elif test "x$prefix" != xNONE; then
  2329. ac_site_file1=$prefix/share/config.site
  2330. ac_site_file2=$prefix/etc/config.site
  2331. else
  2332. ac_site_file1=$ac_default_prefix/share/config.site
  2333. ac_site_file2=$ac_default_prefix/etc/config.site
  2334. fi
  2335. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2336. do
  2337. test "x$ac_site_file" = xNONE && continue
  2338. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2339. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2340. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2341. sed 's/^/| /' "$ac_site_file" >&5
  2342. . "$ac_site_file" \
  2343. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2344. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2345. as_fn_error $? "failed to load site script $ac_site_file
  2346. See \`config.log' for more details" "$LINENO" 5; }
  2347. fi
  2348. done
  2349. if test -r "$cache_file"; then
  2350. # Some versions of bash will fail to source /dev/null (special files
  2351. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2352. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2353. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2354. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2355. case $cache_file in
  2356. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2357. *) . "./$cache_file";;
  2358. esac
  2359. fi
  2360. else
  2361. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2362. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2363. >$cache_file
  2364. fi
  2365. as_fn_append ac_header_list " stdlib.h"
  2366. as_fn_append ac_header_list " unistd.h"
  2367. as_fn_append ac_header_list " sys/param.h"
  2368. # Check that the precious variables saved in the cache have kept the same
  2369. # value.
  2370. ac_cache_corrupted=false
  2371. for ac_var in $ac_precious_vars; do
  2372. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2373. eval ac_new_set=\$ac_env_${ac_var}_set
  2374. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2375. eval ac_new_val=\$ac_env_${ac_var}_value
  2376. case $ac_old_set,$ac_new_set in
  2377. set,)
  2378. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2379. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2380. ac_cache_corrupted=: ;;
  2381. ,set)
  2382. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2383. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2384. ac_cache_corrupted=: ;;
  2385. ,);;
  2386. *)
  2387. if test "x$ac_old_val" != "x$ac_new_val"; then
  2388. # differences in whitespace do not lead to failure.
  2389. ac_old_val_w=`echo x $ac_old_val`
  2390. ac_new_val_w=`echo x $ac_new_val`
  2391. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2392. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2393. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2394. ac_cache_corrupted=:
  2395. else
  2396. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2397. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2398. eval $ac_var=\$ac_old_val
  2399. fi
  2400. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2401. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2402. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2403. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2404. fi;;
  2405. esac
  2406. # Pass precious variables to config.status.
  2407. if test "$ac_new_set" = set; then
  2408. case $ac_new_val in
  2409. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2410. *) ac_arg=$ac_var=$ac_new_val ;;
  2411. esac
  2412. case " $ac_configure_args " in
  2413. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2414. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2415. esac
  2416. fi
  2417. done
  2418. if $ac_cache_corrupted; then
  2419. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2420. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2421. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2422. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2423. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2424. fi
  2425. ## -------------------- ##
  2426. ## Main body of script. ##
  2427. ## -------------------- ##
  2428. ac_ext=c
  2429. ac_cpp='$CPP $CPPFLAGS'
  2430. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2431. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2432. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2433. # AC_CONFIG_HEADER must be called right after AC_INIT.
  2434. ac_config_headers="$ac_config_headers config.h"
  2435. # include the version information
  2436. . $srcdir/VERSION.sh
  2437. { $as_echo "$as_me:${as_lineno-$LINENO}: This is configure for $PACKAGE_TARNAME $PACKAGE_VERSION" >&5
  2438. $as_echo "$as_me: This is configure for $PACKAGE_TARNAME $PACKAGE_VERSION" >&6;}
  2439. cat >>confdefs.h <<_ACEOF
  2440. #define DS_PACKAGE_VERSION "$PACKAGE_VERSION"
  2441. _ACEOF
  2442. cat >>confdefs.h <<_ACEOF
  2443. #define DS_PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2444. _ACEOF
  2445. cat >>confdefs.h <<_ACEOF
  2446. #define DS_PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2447. _ACEOF
  2448. cat >>confdefs.h <<_ACEOF
  2449. #define DS_PACKAGE_STRING "$PACKAGE_STRING"
  2450. _ACEOF
  2451. am__api_version='1.11'
  2452. ac_aux_dir=
  2453. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2454. if test -f "$ac_dir/install-sh"; then
  2455. ac_aux_dir=$ac_dir
  2456. ac_install_sh="$ac_aux_dir/install-sh -c"
  2457. break
  2458. elif test -f "$ac_dir/install.sh"; then
  2459. ac_aux_dir=$ac_dir
  2460. ac_install_sh="$ac_aux_dir/install.sh -c"
  2461. break
  2462. elif test -f "$ac_dir/shtool"; then
  2463. ac_aux_dir=$ac_dir
  2464. ac_install_sh="$ac_aux_dir/shtool install -c"
  2465. break
  2466. fi
  2467. done
  2468. if test -z "$ac_aux_dir"; then
  2469. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2470. fi
  2471. # These three variables are undocumented and unsupported,
  2472. # and are intended to be withdrawn in a future Autoconf release.
  2473. # They can cause serious problems if a builder's source tree is in a directory
  2474. # whose full name contains unusual characters.
  2475. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2476. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2477. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2478. # Find a good install program. We prefer a C program (faster),
  2479. # so one script is as good as another. But avoid the broken or
  2480. # incompatible versions:
  2481. # SysV /etc/install, /usr/sbin/install
  2482. # SunOS /usr/etc/install
  2483. # IRIX /sbin/install
  2484. # AIX /bin/install
  2485. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2486. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2487. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2488. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2489. # OS/2's system install, which has a completely different semantic
  2490. # ./install, which can be erroneously created by make from ./install.sh.
  2491. # Reject install programs that cannot install multiple files.
  2492. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2493. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2494. if test -z "$INSTALL"; then
  2495. if test "${ac_cv_path_install+set}" = set; then :
  2496. $as_echo_n "(cached) " >&6
  2497. else
  2498. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2499. for as_dir in $PATH
  2500. do
  2501. IFS=$as_save_IFS
  2502. test -z "$as_dir" && as_dir=.
  2503. # Account for people who put trailing slashes in PATH elements.
  2504. case $as_dir/ in #((
  2505. ./ | .// | /[cC]/* | \
  2506. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2507. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2508. /usr/ucb/* ) ;;
  2509. *)
  2510. # OSF1 and SCO ODT 3.0 have their own names for install.
  2511. # Don't use installbsd from OSF since it installs stuff as root
  2512. # by default.
  2513. for ac_prog in ginstall scoinst install; do
  2514. for ac_exec_ext in '' $ac_executable_extensions; do
  2515. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  2516. if test $ac_prog = install &&
  2517. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2518. # AIX install. It has an incompatible calling convention.
  2519. :
  2520. elif test $ac_prog = install &&
  2521. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2522. # program-specific install script used by HP pwplus--don't use.
  2523. :
  2524. else
  2525. rm -rf conftest.one conftest.two conftest.dir
  2526. echo one > conftest.one
  2527. echo two > conftest.two
  2528. mkdir conftest.dir
  2529. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2530. test -s conftest.one && test -s conftest.two &&
  2531. test -s conftest.dir/conftest.one &&
  2532. test -s conftest.dir/conftest.two
  2533. then
  2534. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2535. break 3
  2536. fi
  2537. fi
  2538. fi
  2539. done
  2540. done
  2541. ;;
  2542. esac
  2543. done
  2544. IFS=$as_save_IFS
  2545. rm -rf conftest.one conftest.two conftest.dir
  2546. fi
  2547. if test "${ac_cv_path_install+set}" = set; then
  2548. INSTALL=$ac_cv_path_install
  2549. else
  2550. # As a last resort, use the slow shell script. Don't cache a
  2551. # value for INSTALL within a source directory, because that will
  2552. # break other packages using the cache if that directory is
  2553. # removed, or if the value is a relative name.
  2554. INSTALL=$ac_install_sh
  2555. fi
  2556. fi
  2557. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2558. $as_echo "$INSTALL" >&6; }
  2559. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2560. # It thinks the first close brace ends the variable substitution.
  2561. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2562. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2563. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2564. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2565. $as_echo_n "checking whether build environment is sane... " >&6; }
  2566. # Just in case
  2567. sleep 1
  2568. echo timestamp > conftest.file
  2569. # Reject unsafe characters in $srcdir or the absolute working directory
  2570. # name. Accept space and tab only in the latter.
  2571. am_lf='
  2572. '
  2573. case `pwd` in
  2574. *[\\\"\#\$\&\'\`$am_lf]*)
  2575. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  2576. esac
  2577. case $srcdir in
  2578. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2579. as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
  2580. esac
  2581. # Do `set' in a subshell so we don't clobber the current shell's
  2582. # arguments. Must try -L first in case configure is actually a
  2583. # symlink; some systems play weird games with the mod time of symlinks
  2584. # (eg FreeBSD returns the mod time of the symlink's containing
  2585. # directory).
  2586. if (
  2587. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2588. if test "$*" = "X"; then
  2589. # -L didn't work.
  2590. set X `ls -t "$srcdir/configure" conftest.file`
  2591. fi
  2592. rm -f conftest.file
  2593. if test "$*" != "X $srcdir/configure conftest.file" \
  2594. && test "$*" != "X conftest.file $srcdir/configure"; then
  2595. # If neither matched, then we have a broken ls. This can happen
  2596. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2597. # broken ls alias from the environment. This has actually
  2598. # happened. Such a system could not be considered "sane".
  2599. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  2600. alias in your environment" "$LINENO" 5
  2601. fi
  2602. test "$2" = conftest.file
  2603. )
  2604. then
  2605. # Ok.
  2606. :
  2607. else
  2608. as_fn_error $? "newly created file is older than distributed files!
  2609. Check your system clock" "$LINENO" 5
  2610. fi
  2611. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2612. $as_echo "yes" >&6; }
  2613. test "$program_prefix" != NONE &&
  2614. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2615. # Use a double $ so make ignores it.
  2616. test "$program_suffix" != NONE &&
  2617. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2618. # Double any \ or $.
  2619. # By default was `s,x,x', remove it if useless.
  2620. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2621. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2622. # expand $ac_aux_dir to an absolute path
  2623. am_aux_dir=`cd $ac_aux_dir && pwd`
  2624. if test x"${MISSING+set}" != xset; then
  2625. case $am_aux_dir in
  2626. *\ * | *\ *)
  2627. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2628. *)
  2629. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2630. esac
  2631. fi
  2632. # Use eval to expand $SHELL
  2633. if eval "$MISSING --run true"; then
  2634. am_missing_run="$MISSING --run "
  2635. else
  2636. am_missing_run=
  2637. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
  2638. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  2639. fi
  2640. if test x"${install_sh}" != xset; then
  2641. case $am_aux_dir in
  2642. *\ * | *\ *)
  2643. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2644. *)
  2645. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2646. esac
  2647. fi
  2648. # Installed binaries are usually stripped using `strip' when the user
  2649. # run `make install-strip'. However `strip' might not be the right
  2650. # tool to use in cross-compilation environments, therefore Automake
  2651. # will honor the `STRIP' environment variable to overrule this program.
  2652. if test "$cross_compiling" != no; then
  2653. if test -n "$ac_tool_prefix"; then
  2654. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2655. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2656. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2657. $as_echo_n "checking for $ac_word... " >&6; }
  2658. if test "${ac_cv_prog_STRIP+set}" = set; then :
  2659. $as_echo_n "(cached) " >&6
  2660. else
  2661. if test -n "$STRIP"; then
  2662. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2663. else
  2664. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2665. for as_dir in $PATH
  2666. do
  2667. IFS=$as_save_IFS
  2668. test -z "$as_dir" && as_dir=.
  2669. for ac_exec_ext in '' $ac_executable_extensions; do
  2670. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2671. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2672. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2673. break 2
  2674. fi
  2675. done
  2676. done
  2677. IFS=$as_save_IFS
  2678. fi
  2679. fi
  2680. STRIP=$ac_cv_prog_STRIP
  2681. if test -n "$STRIP"; then
  2682. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2683. $as_echo "$STRIP" >&6; }
  2684. else
  2685. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2686. $as_echo "no" >&6; }
  2687. fi
  2688. fi
  2689. if test -z "$ac_cv_prog_STRIP"; then
  2690. ac_ct_STRIP=$STRIP
  2691. # Extract the first word of "strip", so it can be a program name with args.
  2692. set dummy strip; ac_word=$2
  2693. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2694. $as_echo_n "checking for $ac_word... " >&6; }
  2695. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  2696. $as_echo_n "(cached) " >&6
  2697. else
  2698. if test -n "$ac_ct_STRIP"; then
  2699. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2700. else
  2701. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2702. for as_dir in $PATH
  2703. do
  2704. IFS=$as_save_IFS
  2705. test -z "$as_dir" && as_dir=.
  2706. for ac_exec_ext in '' $ac_executable_extensions; do
  2707. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2708. ac_cv_prog_ac_ct_STRIP="strip"
  2709. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2710. break 2
  2711. fi
  2712. done
  2713. done
  2714. IFS=$as_save_IFS
  2715. fi
  2716. fi
  2717. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2718. if test -n "$ac_ct_STRIP"; then
  2719. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2720. $as_echo "$ac_ct_STRIP" >&6; }
  2721. else
  2722. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2723. $as_echo "no" >&6; }
  2724. fi
  2725. if test "x$ac_ct_STRIP" = x; then
  2726. STRIP=":"
  2727. else
  2728. case $cross_compiling:$ac_tool_warned in
  2729. yes:)
  2730. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2731. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2732. ac_tool_warned=yes ;;
  2733. esac
  2734. STRIP=$ac_ct_STRIP
  2735. fi
  2736. else
  2737. STRIP="$ac_cv_prog_STRIP"
  2738. fi
  2739. fi
  2740. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2741. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2742. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2743. if test -z "$MKDIR_P"; then
  2744. if test "${ac_cv_path_mkdir+set}" = set; then :
  2745. $as_echo_n "(cached) " >&6
  2746. else
  2747. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2748. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2749. do
  2750. IFS=$as_save_IFS
  2751. test -z "$as_dir" && as_dir=.
  2752. for ac_prog in mkdir gmkdir; do
  2753. for ac_exec_ext in '' $ac_executable_extensions; do
  2754. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  2755. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2756. 'mkdir (GNU coreutils) '* | \
  2757. 'mkdir (coreutils) '* | \
  2758. 'mkdir (fileutils) '4.1*)
  2759. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2760. break 3;;
  2761. esac
  2762. done
  2763. done
  2764. done
  2765. IFS=$as_save_IFS
  2766. fi
  2767. test -d ./--version && rmdir ./--version
  2768. if test "${ac_cv_path_mkdir+set}" = set; then
  2769. MKDIR_P="$ac_cv_path_mkdir -p"
  2770. else
  2771. # As a last resort, use the slow shell script. Don't cache a
  2772. # value for MKDIR_P within a source directory, because that will
  2773. # break other packages using the cache if that directory is
  2774. # removed, or if the value is a relative name.
  2775. MKDIR_P="$ac_install_sh -d"
  2776. fi
  2777. fi
  2778. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2779. $as_echo "$MKDIR_P" >&6; }
  2780. mkdir_p="$MKDIR_P"
  2781. case $mkdir_p in
  2782. [\\/$]* | ?:[\\/]*) ;;
  2783. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  2784. esac
  2785. for ac_prog in gawk mawk nawk awk
  2786. do
  2787. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2788. set dummy $ac_prog; ac_word=$2
  2789. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2790. $as_echo_n "checking for $ac_word... " >&6; }
  2791. if test "${ac_cv_prog_AWK+set}" = set; then :
  2792. $as_echo_n "(cached) " >&6
  2793. else
  2794. if test -n "$AWK"; then
  2795. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2796. else
  2797. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2798. for as_dir in $PATH
  2799. do
  2800. IFS=$as_save_IFS
  2801. test -z "$as_dir" && as_dir=.
  2802. for ac_exec_ext in '' $ac_executable_extensions; do
  2803. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2804. ac_cv_prog_AWK="$ac_prog"
  2805. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2806. break 2
  2807. fi
  2808. done
  2809. done
  2810. IFS=$as_save_IFS
  2811. fi
  2812. fi
  2813. AWK=$ac_cv_prog_AWK
  2814. if test -n "$AWK"; then
  2815. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2816. $as_echo "$AWK" >&6; }
  2817. else
  2818. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2819. $as_echo "no" >&6; }
  2820. fi
  2821. test -n "$AWK" && break
  2822. done
  2823. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2824. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2825. set x ${MAKE-make}
  2826. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2827. if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
  2828. $as_echo_n "(cached) " >&6
  2829. else
  2830. cat >conftest.make <<\_ACEOF
  2831. SHELL = /bin/sh
  2832. all:
  2833. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2834. _ACEOF
  2835. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  2836. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2837. *@@@%%%=?*=@@@%%%*)
  2838. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2839. *)
  2840. eval ac_cv_prog_make_${ac_make}_set=no;;
  2841. esac
  2842. rm -f conftest.make
  2843. fi
  2844. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2845. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2846. $as_echo "yes" >&6; }
  2847. SET_MAKE=
  2848. else
  2849. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2850. $as_echo "no" >&6; }
  2851. SET_MAKE="MAKE=${MAKE-make}"
  2852. fi
  2853. rm -rf .tst 2>/dev/null
  2854. mkdir .tst 2>/dev/null
  2855. if test -d .tst; then
  2856. am__leading_dot=.
  2857. else
  2858. am__leading_dot=_
  2859. fi
  2860. rmdir .tst 2>/dev/null
  2861. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2862. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2863. # is not polluted with repeated "-I."
  2864. am__isrc=' -I$(srcdir)'
  2865. # test to see if srcdir already configured
  2866. if test -f $srcdir/config.status; then
  2867. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2868. fi
  2869. fi
  2870. # test whether we have cygpath
  2871. if test -z "$CYGPATH_W"; then
  2872. if (cygpath --version) >/dev/null 2>/dev/null; then
  2873. CYGPATH_W='cygpath -w'
  2874. else
  2875. CYGPATH_W=echo
  2876. fi
  2877. fi
  2878. # Define the identity of the package.
  2879. PACKAGE='dirsrv'
  2880. VERSION='1.0'
  2881. # Some tools Automake needs.
  2882. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2883. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2884. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2885. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2886. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2887. # We need awk for the "check" target. The system "awk" is bad on
  2888. # some platforms.
  2889. # Always define AMTAR for backward compatibility.
  2890. AMTAR=${AMTAR-"${am_missing_run}tar"}
  2891. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  2892. # define these for automake distdir
  2893. VERSION=$PACKAGE_VERSION
  2894. PACKAGE=$PACKAGE_TARNAME
  2895. cat >>confdefs.h <<_ACEOF
  2896. #define VERSION "$VERSION"
  2897. _ACEOF
  2898. cat >>confdefs.h <<_ACEOF
  2899. #define PACKAGE "$PACKAGE"
  2900. _ACEOF
  2901. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  2902. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  2903. # Check whether --enable-maintainer-mode was given.
  2904. if test "${enable_maintainer_mode+set}" = set; then :
  2905. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  2906. else
  2907. USE_MAINTAINER_MODE=no
  2908. fi
  2909. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  2910. $as_echo "$USE_MAINTAINER_MODE" >&6; }
  2911. if test $USE_MAINTAINER_MODE = yes; then
  2912. MAINTAINER_MODE_TRUE=
  2913. MAINTAINER_MODE_FALSE='#'
  2914. else
  2915. MAINTAINER_MODE_TRUE='#'
  2916. MAINTAINER_MODE_FALSE=
  2917. fi
  2918. MAINT=$MAINTAINER_MODE_TRUE
  2919. # Make sure we can run config.sub.
  2920. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2921. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2922. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2923. $as_echo_n "checking build system type... " >&6; }
  2924. if test "${ac_cv_build+set}" = set; then :
  2925. $as_echo_n "(cached) " >&6
  2926. else
  2927. ac_build_alias=$build_alias
  2928. test "x$ac_build_alias" = x &&
  2929. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2930. test "x$ac_build_alias" = x &&
  2931. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2932. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2933. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2934. fi
  2935. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2936. $as_echo "$ac_cv_build" >&6; }
  2937. case $ac_cv_build in
  2938. *-*-*) ;;
  2939. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2940. esac
  2941. build=$ac_cv_build
  2942. ac_save_IFS=$IFS; IFS='-'
  2943. set x $ac_cv_build
  2944. shift
  2945. build_cpu=$1
  2946. build_vendor=$2
  2947. shift; shift
  2948. # Remember, the first character of IFS is used to create $*,
  2949. # except with old shells:
  2950. build_os=$*
  2951. IFS=$ac_save_IFS
  2952. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2953. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2954. $as_echo_n "checking host system type... " >&6; }
  2955. if test "${ac_cv_host+set}" = set; then :
  2956. $as_echo_n "(cached) " >&6
  2957. else
  2958. if test "x$host_alias" = x; then
  2959. ac_cv_host=$ac_cv_build
  2960. else
  2961. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2962. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2963. fi
  2964. fi
  2965. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2966. $as_echo "$ac_cv_host" >&6; }
  2967. case $ac_cv_host in
  2968. *-*-*) ;;
  2969. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2970. esac
  2971. host=$ac_cv_host
  2972. ac_save_IFS=$IFS; IFS='-'
  2973. set x $ac_cv_host
  2974. shift
  2975. host_cpu=$1
  2976. host_vendor=$2
  2977. shift; shift
  2978. # Remember, the first character of IFS is used to create $*,
  2979. # except with old shells:
  2980. host_os=$*
  2981. IFS=$ac_save_IFS
  2982. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2983. # Checks for programs.
  2984. ac_ext=cpp
  2985. ac_cpp='$CXXCPP $CPPFLAGS'
  2986. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2987. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2988. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2989. if test -z "$CXX"; then
  2990. if test -n "$CCC"; then
  2991. CXX=$CCC
  2992. else
  2993. if test -n "$ac_tool_prefix"; then
  2994. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  2995. do
  2996. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2997. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2998. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2999. $as_echo_n "checking for $ac_word... " >&6; }
  3000. if test "${ac_cv_prog_CXX+set}" = set; then :
  3001. $as_echo_n "(cached) " >&6
  3002. else
  3003. if test -n "$CXX"; then
  3004. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  3005. else
  3006. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3007. for as_dir in $PATH
  3008. do
  3009. IFS=$as_save_IFS
  3010. test -z "$as_dir" && as_dir=.
  3011. for ac_exec_ext in '' $ac_executable_extensions; do
  3012. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3013. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  3014. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3015. break 2
  3016. fi
  3017. done
  3018. done
  3019. IFS=$as_save_IFS
  3020. fi
  3021. fi
  3022. CXX=$ac_cv_prog_CXX
  3023. if test -n "$CXX"; then
  3024. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  3025. $as_echo "$CXX" >&6; }
  3026. else
  3027. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3028. $as_echo "no" >&6; }
  3029. fi
  3030. test -n "$CXX" && break
  3031. done
  3032. fi
  3033. if test -z "$CXX"; then
  3034. ac_ct_CXX=$CXX
  3035. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  3036. do
  3037. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3038. set dummy $ac_prog; ac_word=$2
  3039. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3040. $as_echo_n "checking for $ac_word... " >&6; }
  3041. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
  3042. $as_echo_n "(cached) " >&6
  3043. else
  3044. if test -n "$ac_ct_CXX"; then
  3045. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  3046. else
  3047. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3048. for as_dir in $PATH
  3049. do
  3050. IFS=$as_save_IFS
  3051. test -z "$as_dir" && as_dir=.
  3052. for ac_exec_ext in '' $ac_executable_extensions; do
  3053. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3054. ac_cv_prog_ac_ct_CXX="$ac_prog"
  3055. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3056. break 2
  3057. fi
  3058. done
  3059. done
  3060. IFS=$as_save_IFS
  3061. fi
  3062. fi
  3063. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  3064. if test -n "$ac_ct_CXX"; then
  3065. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  3066. $as_echo "$ac_ct_CXX" >&6; }
  3067. else
  3068. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3069. $as_echo "no" >&6; }
  3070. fi
  3071. test -n "$ac_ct_CXX" && break
  3072. done
  3073. if test "x$ac_ct_CXX" = x; then
  3074. CXX="g++"
  3075. else
  3076. case $cross_compiling:$ac_tool_warned in
  3077. yes:)
  3078. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3079. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3080. ac_tool_warned=yes ;;
  3081. esac
  3082. CXX=$ac_ct_CXX
  3083. fi
  3084. fi
  3085. fi
  3086. fi
  3087. # Provide some information about the compiler.
  3088. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  3089. set X $ac_compile
  3090. ac_compiler=$2
  3091. for ac_option in --version -v -V -qversion; do
  3092. { { ac_try="$ac_compiler $ac_option >&5"
  3093. case "(($ac_try" in
  3094. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3095. *) ac_try_echo=$ac_try;;
  3096. esac
  3097. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3098. $as_echo "$ac_try_echo"; } >&5
  3099. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3100. ac_status=$?
  3101. if test -s conftest.err; then
  3102. sed '10a\
  3103. ... rest of stderr output deleted ...
  3104. 10q' conftest.err >conftest.er1
  3105. cat conftest.er1 >&5
  3106. fi
  3107. rm -f conftest.er1 conftest.err
  3108. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3109. test $ac_status = 0; }
  3110. done
  3111. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3112. /* end confdefs.h. */
  3113. int
  3114. main ()
  3115. {
  3116. ;
  3117. return 0;
  3118. }
  3119. _ACEOF
  3120. ac_clean_files_save=$ac_clean_files
  3121. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3122. # Try to create an executable without -o first, disregard a.out.
  3123. # It will help us diagnose broken compilers, and finding out an intuition
  3124. # of exeext.
  3125. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
  3126. $as_echo_n "checking whether the C++ compiler works... " >&6; }
  3127. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3128. # The possible output files:
  3129. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3130. ac_rmfiles=
  3131. for ac_file in $ac_files
  3132. do
  3133. case $ac_file in
  3134. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3135. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3136. esac
  3137. done
  3138. rm -f $ac_rmfiles
  3139. if { { ac_try="$ac_link_default"
  3140. case "(($ac_try" in
  3141. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3142. *) ac_try_echo=$ac_try;;
  3143. esac
  3144. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3145. $as_echo "$ac_try_echo"; } >&5
  3146. (eval "$ac_link_default") 2>&5
  3147. ac_status=$?
  3148. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3149. test $ac_status = 0; }; then :
  3150. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3151. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3152. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3153. # so that the user can short-circuit this test for compilers unknown to
  3154. # Autoconf.
  3155. for ac_file in $ac_files ''
  3156. do
  3157. test -f "$ac_file" || continue
  3158. case $ac_file in
  3159. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3160. ;;
  3161. [ab].out )
  3162. # We found the default executable, but exeext='' is most
  3163. # certainly right.
  3164. break;;
  3165. *.* )
  3166. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3167. then :; else
  3168. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3169. fi
  3170. # We set ac_cv_exeext here because the later test for it is not
  3171. # safe: cross compilers may not add the suffix if given an `-o'
  3172. # argument, so we may need to know it at that point already.
  3173. # Even if this section looks crufty: it has the advantage of
  3174. # actually working.
  3175. break;;
  3176. * )
  3177. break;;
  3178. esac
  3179. done
  3180. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3181. else
  3182. ac_file=''
  3183. fi
  3184. if test -z "$ac_file"; then :
  3185. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3186. $as_echo "no" >&6; }
  3187. $as_echo "$as_me: failed program was:" >&5
  3188. sed 's/^/| /' conftest.$ac_ext >&5
  3189. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3190. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3191. as_fn_error 77 "C++ compiler cannot create executables
  3192. See \`config.log' for more details" "$LINENO" 5; }
  3193. else
  3194. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3195. $as_echo "yes" >&6; }
  3196. fi
  3197. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
  3198. $as_echo_n "checking for C++ compiler default output file name... " >&6; }
  3199. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3200. $as_echo "$ac_file" >&6; }
  3201. ac_exeext=$ac_cv_exeext
  3202. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3203. ac_clean_files=$ac_clean_files_save
  3204. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3205. $as_echo_n "checking for suffix of executables... " >&6; }
  3206. if { { ac_try="$ac_link"
  3207. case "(($ac_try" in
  3208. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3209. *) ac_try_echo=$ac_try;;
  3210. esac
  3211. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3212. $as_echo "$ac_try_echo"; } >&5
  3213. (eval "$ac_link") 2>&5
  3214. ac_status=$?
  3215. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3216. test $ac_status = 0; }; then :
  3217. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3218. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3219. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3220. # `rm'.
  3221. for ac_file in conftest.exe conftest conftest.*; do
  3222. test -f "$ac_file" || continue
  3223. case $ac_file in
  3224. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3225. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3226. break;;
  3227. * ) break;;
  3228. esac
  3229. done
  3230. else
  3231. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3232. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3233. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3234. See \`config.log' for more details" "$LINENO" 5; }
  3235. fi
  3236. rm -f conftest conftest$ac_cv_exeext
  3237. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3238. $as_echo "$ac_cv_exeext" >&6; }
  3239. rm -f conftest.$ac_ext
  3240. EXEEXT=$ac_cv_exeext
  3241. ac_exeext=$EXEEXT
  3242. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3243. /* end confdefs.h. */
  3244. #include <stdio.h>
  3245. int
  3246. main ()
  3247. {
  3248. FILE *f = fopen ("conftest.out", "w");
  3249. return ferror (f) || fclose (f) != 0;
  3250. ;
  3251. return 0;
  3252. }
  3253. _ACEOF
  3254. ac_clean_files="$ac_clean_files conftest.out"
  3255. # Check that the compiler produces executables we can run. If not, either
  3256. # the compiler is broken, or we cross compile.
  3257. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3258. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3259. if test "$cross_compiling" != yes; then
  3260. { { ac_try="$ac_link"
  3261. case "(($ac_try" in
  3262. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3263. *) ac_try_echo=$ac_try;;
  3264. esac
  3265. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3266. $as_echo "$ac_try_echo"; } >&5
  3267. (eval "$ac_link") 2>&5
  3268. ac_status=$?
  3269. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3270. test $ac_status = 0; }
  3271. if { ac_try='./conftest$ac_cv_exeext'
  3272. { { case "(($ac_try" in
  3273. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3274. *) ac_try_echo=$ac_try;;
  3275. esac
  3276. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3277. $as_echo "$ac_try_echo"; } >&5
  3278. (eval "$ac_try") 2>&5
  3279. ac_status=$?
  3280. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3281. test $ac_status = 0; }; }; then
  3282. cross_compiling=no
  3283. else
  3284. if test "$cross_compiling" = maybe; then
  3285. cross_compiling=yes
  3286. else
  3287. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3288. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3289. as_fn_error $? "cannot run C++ compiled programs.
  3290. If you meant to cross compile, use \`--host'.
  3291. See \`config.log' for more details" "$LINENO" 5; }
  3292. fi
  3293. fi
  3294. fi
  3295. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3296. $as_echo "$cross_compiling" >&6; }
  3297. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3298. ac_clean_files=$ac_clean_files_save
  3299. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3300. $as_echo_n "checking for suffix of object files... " >&6; }
  3301. if test "${ac_cv_objext+set}" = set; then :
  3302. $as_echo_n "(cached) " >&6
  3303. else
  3304. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3305. /* end confdefs.h. */
  3306. int
  3307. main ()
  3308. {
  3309. ;
  3310. return 0;
  3311. }
  3312. _ACEOF
  3313. rm -f conftest.o conftest.obj
  3314. if { { ac_try="$ac_compile"
  3315. case "(($ac_try" in
  3316. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3317. *) ac_try_echo=$ac_try;;
  3318. esac
  3319. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3320. $as_echo "$ac_try_echo"; } >&5
  3321. (eval "$ac_compile") 2>&5
  3322. ac_status=$?
  3323. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3324. test $ac_status = 0; }; then :
  3325. for ac_file in conftest.o conftest.obj conftest.*; do
  3326. test -f "$ac_file" || continue;
  3327. case $ac_file in
  3328. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3329. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3330. break;;
  3331. esac
  3332. done
  3333. else
  3334. $as_echo "$as_me: failed program was:" >&5
  3335. sed 's/^/| /' conftest.$ac_ext >&5
  3336. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3337. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3338. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3339. See \`config.log' for more details" "$LINENO" 5; }
  3340. fi
  3341. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3342. fi
  3343. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3344. $as_echo "$ac_cv_objext" >&6; }
  3345. OBJEXT=$ac_cv_objext
  3346. ac_objext=$OBJEXT
  3347. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  3348. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  3349. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
  3350. $as_echo_n "(cached) " >&6
  3351. else
  3352. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3353. /* end confdefs.h. */
  3354. int
  3355. main ()
  3356. {
  3357. #ifndef __GNUC__
  3358. choke me
  3359. #endif
  3360. ;
  3361. return 0;
  3362. }
  3363. _ACEOF
  3364. if ac_fn_cxx_try_compile "$LINENO"; then :
  3365. ac_compiler_gnu=yes
  3366. else
  3367. ac_compiler_gnu=no
  3368. fi
  3369. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3370. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  3371. fi
  3372. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  3373. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  3374. if test $ac_compiler_gnu = yes; then
  3375. GXX=yes
  3376. else
  3377. GXX=
  3378. fi
  3379. ac_test_CXXFLAGS=${CXXFLAGS+set}
  3380. ac_save_CXXFLAGS=$CXXFLAGS
  3381. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  3382. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  3383. if test "${ac_cv_prog_cxx_g+set}" = set; then :
  3384. $as_echo_n "(cached) " >&6
  3385. else
  3386. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  3387. ac_cxx_werror_flag=yes
  3388. ac_cv_prog_cxx_g=no
  3389. CXXFLAGS="-g"
  3390. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3391. /* end confdefs.h. */
  3392. int
  3393. main ()
  3394. {
  3395. ;
  3396. return 0;
  3397. }
  3398. _ACEOF
  3399. if ac_fn_cxx_try_compile "$LINENO"; then :
  3400. ac_cv_prog_cxx_g=yes
  3401. else
  3402. CXXFLAGS=""
  3403. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3404. /* end confdefs.h. */
  3405. int
  3406. main ()
  3407. {
  3408. ;
  3409. return 0;
  3410. }
  3411. _ACEOF
  3412. if ac_fn_cxx_try_compile "$LINENO"; then :
  3413. else
  3414. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3415. CXXFLAGS="-g"
  3416. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3417. /* end confdefs.h. */
  3418. int
  3419. main ()
  3420. {
  3421. ;
  3422. return 0;
  3423. }
  3424. _ACEOF
  3425. if ac_fn_cxx_try_compile "$LINENO"; then :
  3426. ac_cv_prog_cxx_g=yes
  3427. fi
  3428. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3429. fi
  3430. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3431. fi
  3432. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3433. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3434. fi
  3435. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  3436. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  3437. if test "$ac_test_CXXFLAGS" = set; then
  3438. CXXFLAGS=$ac_save_CXXFLAGS
  3439. elif test $ac_cv_prog_cxx_g = yes; then
  3440. if test "$GXX" = yes; then
  3441. CXXFLAGS="-g -O2"
  3442. else
  3443. CXXFLAGS="-g"
  3444. fi
  3445. else
  3446. if test "$GXX" = yes; then
  3447. CXXFLAGS="-O2"
  3448. else
  3449. CXXFLAGS=
  3450. fi
  3451. fi
  3452. ac_ext=c
  3453. ac_cpp='$CPP $CPPFLAGS'
  3454. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3455. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3456. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3457. DEPDIR="${am__leading_dot}deps"
  3458. ac_config_commands="$ac_config_commands depfiles"
  3459. am_make=${MAKE-make}
  3460. cat > confinc << 'END'
  3461. am__doit:
  3462. @echo this is the am__doit target
  3463. .PHONY: am__doit
  3464. END
  3465. # If we don't find an include directive, just comment out the code.
  3466. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3467. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3468. am__include="#"
  3469. am__quote=
  3470. _am_result=none
  3471. # First try GNU make style include.
  3472. echo "include confinc" > confmf
  3473. # Ignore all kinds of additional output from `make'.
  3474. case `$am_make -s -f confmf 2> /dev/null` in #(
  3475. *the\ am__doit\ target*)
  3476. am__include=include
  3477. am__quote=
  3478. _am_result=GNU
  3479. ;;
  3480. esac
  3481. # Now try BSD make style include.
  3482. if test "$am__include" = "#"; then
  3483. echo '.include "confinc"' > confmf
  3484. case `$am_make -s -f confmf 2> /dev/null` in #(
  3485. *the\ am__doit\ target*)
  3486. am__include=.include
  3487. am__quote="\""
  3488. _am_result=BSD
  3489. ;;
  3490. esac
  3491. fi
  3492. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3493. $as_echo "$_am_result" >&6; }
  3494. rm -f confinc confmf
  3495. # Check whether --enable-dependency-tracking was given.
  3496. if test "${enable_dependency_tracking+set}" = set; then :
  3497. enableval=$enable_dependency_tracking;
  3498. fi
  3499. if test "x$enable_dependency_tracking" != xno; then
  3500. am_depcomp="$ac_aux_dir/depcomp"
  3501. AMDEPBACKSLASH='\'
  3502. fi
  3503. if test "x$enable_dependency_tracking" != xno; then
  3504. AMDEP_TRUE=
  3505. AMDEP_FALSE='#'
  3506. else
  3507. AMDEP_TRUE='#'
  3508. AMDEP_FALSE=
  3509. fi
  3510. depcc="$CXX" am_compiler_list=
  3511. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3512. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3513. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
  3514. $as_echo_n "(cached) " >&6
  3515. else
  3516. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3517. # We make a subdir and do the tests there. Otherwise we can end up
  3518. # making bogus files that we don't know about and never remove. For
  3519. # instance it was reported that on HP-UX the gcc test will end up
  3520. # making a dummy file named `D' -- because `-MD' means `put the output
  3521. # in D'.
  3522. mkdir conftest.dir
  3523. # Copy depcomp to subdir because otherwise we won't find it if we're
  3524. # using a relative directory.
  3525. cp "$am_depcomp" conftest.dir
  3526. cd conftest.dir
  3527. # We will build objects and dependencies in a subdirectory because
  3528. # it helps to detect inapplicable dependency modes. For instance
  3529. # both Tru64's cc and ICC support -MD to output dependencies as a
  3530. # side effect of compilation, but ICC will put the dependencies in
  3531. # the current directory while Tru64 will put them in the object
  3532. # directory.
  3533. mkdir sub
  3534. am_cv_CXX_dependencies_compiler_type=none
  3535. if test "$am_compiler_list" = ""; then
  3536. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3537. fi
  3538. am__universal=false
  3539. case " $depcc " in #(
  3540. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3541. esac
  3542. for depmode in $am_compiler_list; do
  3543. # Setup a source with many dependencies, because some compilers
  3544. # like to wrap large dependency lists on column 80 (with \), and
  3545. # we should not choose a depcomp mode which is confused by this.
  3546. #
  3547. # We need to recreate these files for each test, as the compiler may
  3548. # overwrite some of them when testing with obscure command lines.
  3549. # This happens at least with the AIX C compiler.
  3550. : > sub/conftest.c
  3551. for i in 1 2 3 4 5 6; do
  3552. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3553. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3554. # Solaris 8's {/usr,}/bin/sh.
  3555. touch sub/conftst$i.h
  3556. done
  3557. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3558. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3559. # mode. It turns out that the SunPro C++ compiler does not properly
  3560. # handle `-M -o', and we need to detect this. Also, some Intel
  3561. # versions had trouble with output in subdirs
  3562. am__obj=sub/conftest.${OBJEXT-o}
  3563. am__minus_obj="-o $am__obj"
  3564. case $depmode in
  3565. gcc)
  3566. # This depmode causes a compiler race in universal mode.
  3567. test "$am__universal" = false || continue
  3568. ;;
  3569. nosideeffect)
  3570. # after this tag, mechanisms are not by side-effect, so they'll
  3571. # only be used when explicitly requested
  3572. if test "x$enable_dependency_tracking" = xyes; then
  3573. continue
  3574. else
  3575. break
  3576. fi
  3577. ;;
  3578. msvisualcpp | msvcmsys)
  3579. # This compiler won't grok `-c -o', but also, the minuso test has
  3580. # not run yet. These depmodes are late enough in the game, and
  3581. # so weak that their functioning should not be impacted.
  3582. am__obj=conftest.${OBJEXT-o}
  3583. am__minus_obj=
  3584. ;;
  3585. none) break ;;
  3586. esac
  3587. if depmode=$depmode \
  3588. source=sub/conftest.c object=$am__obj \
  3589. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3590. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3591. >/dev/null 2>conftest.err &&
  3592. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3593. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3594. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3595. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3596. # icc doesn't choke on unknown options, it will just issue warnings
  3597. # or remarks (even with -Werror). So we grep stderr for any message
  3598. # that says an option was ignored or not supported.
  3599. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3600. # icc: Command line warning: ignoring option '-M'; no argument required
  3601. # The diagnosis changed in icc 8.0:
  3602. # icc: Command line remark: option '-MP' not supported
  3603. if (grep 'ignoring option' conftest.err ||
  3604. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3605. am_cv_CXX_dependencies_compiler_type=$depmode
  3606. break
  3607. fi
  3608. fi
  3609. done
  3610. cd ..
  3611. rm -rf conftest.dir
  3612. else
  3613. am_cv_CXX_dependencies_compiler_type=none
  3614. fi
  3615. fi
  3616. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  3617. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  3618. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  3619. if
  3620. test "x$enable_dependency_tracking" != xno \
  3621. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  3622. am__fastdepCXX_TRUE=
  3623. am__fastdepCXX_FALSE='#'
  3624. else
  3625. am__fastdepCXX_TRUE='#'
  3626. am__fastdepCXX_FALSE=
  3627. fi
  3628. ac_ext=c
  3629. ac_cpp='$CPP $CPPFLAGS'
  3630. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3631. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3632. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3633. if test -n "$ac_tool_prefix"; then
  3634. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3635. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3636. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3637. $as_echo_n "checking for $ac_word... " >&6; }
  3638. if test "${ac_cv_prog_CC+set}" = set; then :
  3639. $as_echo_n "(cached) " >&6
  3640. else
  3641. if test -n "$CC"; then
  3642. ac_cv_prog_CC="$CC" # Let the user override the test.
  3643. else
  3644. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3645. for as_dir in $PATH
  3646. do
  3647. IFS=$as_save_IFS
  3648. test -z "$as_dir" && as_dir=.
  3649. for ac_exec_ext in '' $ac_executable_extensions; do
  3650. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3651. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3652. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3653. break 2
  3654. fi
  3655. done
  3656. done
  3657. IFS=$as_save_IFS
  3658. fi
  3659. fi
  3660. CC=$ac_cv_prog_CC
  3661. if test -n "$CC"; then
  3662. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3663. $as_echo "$CC" >&6; }
  3664. else
  3665. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3666. $as_echo "no" >&6; }
  3667. fi
  3668. fi
  3669. if test -z "$ac_cv_prog_CC"; then
  3670. ac_ct_CC=$CC
  3671. # Extract the first word of "gcc", so it can be a program name with args.
  3672. set dummy gcc; ac_word=$2
  3673. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3674. $as_echo_n "checking for $ac_word... " >&6; }
  3675. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  3676. $as_echo_n "(cached) " >&6
  3677. else
  3678. if test -n "$ac_ct_CC"; then
  3679. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3680. else
  3681. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3682. for as_dir in $PATH
  3683. do
  3684. IFS=$as_save_IFS
  3685. test -z "$as_dir" && as_dir=.
  3686. for ac_exec_ext in '' $ac_executable_extensions; do
  3687. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3688. ac_cv_prog_ac_ct_CC="gcc"
  3689. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3690. break 2
  3691. fi
  3692. done
  3693. done
  3694. IFS=$as_save_IFS
  3695. fi
  3696. fi
  3697. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3698. if test -n "$ac_ct_CC"; then
  3699. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3700. $as_echo "$ac_ct_CC" >&6; }
  3701. else
  3702. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3703. $as_echo "no" >&6; }
  3704. fi
  3705. if test "x$ac_ct_CC" = x; then
  3706. CC=""
  3707. else
  3708. case $cross_compiling:$ac_tool_warned in
  3709. yes:)
  3710. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3711. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3712. ac_tool_warned=yes ;;
  3713. esac
  3714. CC=$ac_ct_CC
  3715. fi
  3716. else
  3717. CC="$ac_cv_prog_CC"
  3718. fi
  3719. if test -z "$CC"; then
  3720. if test -n "$ac_tool_prefix"; then
  3721. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3722. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3723. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3724. $as_echo_n "checking for $ac_word... " >&6; }
  3725. if test "${ac_cv_prog_CC+set}" = set; then :
  3726. $as_echo_n "(cached) " >&6
  3727. else
  3728. if test -n "$CC"; then
  3729. ac_cv_prog_CC="$CC" # Let the user override the test.
  3730. else
  3731. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3732. for as_dir in $PATH
  3733. do
  3734. IFS=$as_save_IFS
  3735. test -z "$as_dir" && as_dir=.
  3736. for ac_exec_ext in '' $ac_executable_extensions; do
  3737. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3738. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3739. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3740. break 2
  3741. fi
  3742. done
  3743. done
  3744. IFS=$as_save_IFS
  3745. fi
  3746. fi
  3747. CC=$ac_cv_prog_CC
  3748. if test -n "$CC"; then
  3749. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3750. $as_echo "$CC" >&6; }
  3751. else
  3752. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3753. $as_echo "no" >&6; }
  3754. fi
  3755. fi
  3756. fi
  3757. if test -z "$CC"; then
  3758. # Extract the first word of "cc", so it can be a program name with args.
  3759. set dummy cc; ac_word=$2
  3760. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3761. $as_echo_n "checking for $ac_word... " >&6; }
  3762. if test "${ac_cv_prog_CC+set}" = set; then :
  3763. $as_echo_n "(cached) " >&6
  3764. else
  3765. if test -n "$CC"; then
  3766. ac_cv_prog_CC="$CC" # Let the user override the test.
  3767. else
  3768. ac_prog_rejected=no
  3769. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3770. for as_dir in $PATH
  3771. do
  3772. IFS=$as_save_IFS
  3773. test -z "$as_dir" && as_dir=.
  3774. for ac_exec_ext in '' $ac_executable_extensions; do
  3775. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3776. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3777. ac_prog_rejected=yes
  3778. continue
  3779. fi
  3780. ac_cv_prog_CC="cc"
  3781. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3782. break 2
  3783. fi
  3784. done
  3785. done
  3786. IFS=$as_save_IFS
  3787. if test $ac_prog_rejected = yes; then
  3788. # We found a bogon in the path, so make sure we never use it.
  3789. set dummy $ac_cv_prog_CC
  3790. shift
  3791. if test $# != 0; then
  3792. # We chose a different compiler from the bogus one.
  3793. # However, it has the same basename, so the bogon will be chosen
  3794. # first if we set CC to just the basename; use the full file name.
  3795. shift
  3796. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3797. fi
  3798. fi
  3799. fi
  3800. fi
  3801. CC=$ac_cv_prog_CC
  3802. if test -n "$CC"; then
  3803. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3804. $as_echo "$CC" >&6; }
  3805. else
  3806. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3807. $as_echo "no" >&6; }
  3808. fi
  3809. fi
  3810. if test -z "$CC"; then
  3811. if test -n "$ac_tool_prefix"; then
  3812. for ac_prog in cl.exe
  3813. do
  3814. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3815. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3816. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3817. $as_echo_n "checking for $ac_word... " >&6; }
  3818. if test "${ac_cv_prog_CC+set}" = set; then :
  3819. $as_echo_n "(cached) " >&6
  3820. else
  3821. if test -n "$CC"; then
  3822. ac_cv_prog_CC="$CC" # Let the user override the test.
  3823. else
  3824. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3825. for as_dir in $PATH
  3826. do
  3827. IFS=$as_save_IFS
  3828. test -z "$as_dir" && as_dir=.
  3829. for ac_exec_ext in '' $ac_executable_extensions; do
  3830. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3831. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3832. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3833. break 2
  3834. fi
  3835. done
  3836. done
  3837. IFS=$as_save_IFS
  3838. fi
  3839. fi
  3840. CC=$ac_cv_prog_CC
  3841. if test -n "$CC"; then
  3842. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3843. $as_echo "$CC" >&6; }
  3844. else
  3845. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3846. $as_echo "no" >&6; }
  3847. fi
  3848. test -n "$CC" && break
  3849. done
  3850. fi
  3851. if test -z "$CC"; then
  3852. ac_ct_CC=$CC
  3853. for ac_prog in cl.exe
  3854. do
  3855. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3856. set dummy $ac_prog; ac_word=$2
  3857. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3858. $as_echo_n "checking for $ac_word... " >&6; }
  3859. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  3860. $as_echo_n "(cached) " >&6
  3861. else
  3862. if test -n "$ac_ct_CC"; then
  3863. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3864. else
  3865. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3866. for as_dir in $PATH
  3867. do
  3868. IFS=$as_save_IFS
  3869. test -z "$as_dir" && as_dir=.
  3870. for ac_exec_ext in '' $ac_executable_extensions; do
  3871. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3872. ac_cv_prog_ac_ct_CC="$ac_prog"
  3873. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3874. break 2
  3875. fi
  3876. done
  3877. done
  3878. IFS=$as_save_IFS
  3879. fi
  3880. fi
  3881. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3882. if test -n "$ac_ct_CC"; then
  3883. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3884. $as_echo "$ac_ct_CC" >&6; }
  3885. else
  3886. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3887. $as_echo "no" >&6; }
  3888. fi
  3889. test -n "$ac_ct_CC" && break
  3890. done
  3891. if test "x$ac_ct_CC" = x; then
  3892. CC=""
  3893. else
  3894. case $cross_compiling:$ac_tool_warned in
  3895. yes:)
  3896. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3897. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3898. ac_tool_warned=yes ;;
  3899. esac
  3900. CC=$ac_ct_CC
  3901. fi
  3902. fi
  3903. fi
  3904. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3905. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3906. as_fn_error $? "no acceptable C compiler found in \$PATH
  3907. See \`config.log' for more details" "$LINENO" 5; }
  3908. # Provide some information about the compiler.
  3909. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3910. set X $ac_compile
  3911. ac_compiler=$2
  3912. for ac_option in --version -v -V -qversion; do
  3913. { { ac_try="$ac_compiler $ac_option >&5"
  3914. case "(($ac_try" in
  3915. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3916. *) ac_try_echo=$ac_try;;
  3917. esac
  3918. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3919. $as_echo "$ac_try_echo"; } >&5
  3920. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3921. ac_status=$?
  3922. if test -s conftest.err; then
  3923. sed '10a\
  3924. ... rest of stderr output deleted ...
  3925. 10q' conftest.err >conftest.er1
  3926. cat conftest.er1 >&5
  3927. fi
  3928. rm -f conftest.er1 conftest.err
  3929. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3930. test $ac_status = 0; }
  3931. done
  3932. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3933. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3934. if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  3935. $as_echo_n "(cached) " >&6
  3936. else
  3937. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3938. /* end confdefs.h. */
  3939. int
  3940. main ()
  3941. {
  3942. #ifndef __GNUC__
  3943. choke me
  3944. #endif
  3945. ;
  3946. return 0;
  3947. }
  3948. _ACEOF
  3949. if ac_fn_c_try_compile "$LINENO"; then :
  3950. ac_compiler_gnu=yes
  3951. else
  3952. ac_compiler_gnu=no
  3953. fi
  3954. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3955. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3956. fi
  3957. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3958. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3959. if test $ac_compiler_gnu = yes; then
  3960. GCC=yes
  3961. else
  3962. GCC=
  3963. fi
  3964. ac_test_CFLAGS=${CFLAGS+set}
  3965. ac_save_CFLAGS=$CFLAGS
  3966. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3967. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3968. if test "${ac_cv_prog_cc_g+set}" = set; then :
  3969. $as_echo_n "(cached) " >&6
  3970. else
  3971. ac_save_c_werror_flag=$ac_c_werror_flag
  3972. ac_c_werror_flag=yes
  3973. ac_cv_prog_cc_g=no
  3974. CFLAGS="-g"
  3975. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3976. /* end confdefs.h. */
  3977. int
  3978. main ()
  3979. {
  3980. ;
  3981. return 0;
  3982. }
  3983. _ACEOF
  3984. if ac_fn_c_try_compile "$LINENO"; then :
  3985. ac_cv_prog_cc_g=yes
  3986. else
  3987. CFLAGS=""
  3988. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3989. /* end confdefs.h. */
  3990. int
  3991. main ()
  3992. {
  3993. ;
  3994. return 0;
  3995. }
  3996. _ACEOF
  3997. if ac_fn_c_try_compile "$LINENO"; then :
  3998. else
  3999. ac_c_werror_flag=$ac_save_c_werror_flag
  4000. CFLAGS="-g"
  4001. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4002. /* end confdefs.h. */
  4003. int
  4004. main ()
  4005. {
  4006. ;
  4007. return 0;
  4008. }
  4009. _ACEOF
  4010. if ac_fn_c_try_compile "$LINENO"; then :
  4011. ac_cv_prog_cc_g=yes
  4012. fi
  4013. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4014. fi
  4015. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4016. fi
  4017. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4018. ac_c_werror_flag=$ac_save_c_werror_flag
  4019. fi
  4020. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  4021. $as_echo "$ac_cv_prog_cc_g" >&6; }
  4022. if test "$ac_test_CFLAGS" = set; then
  4023. CFLAGS=$ac_save_CFLAGS
  4024. elif test $ac_cv_prog_cc_g = yes; then
  4025. if test "$GCC" = yes; then
  4026. CFLAGS="-g -O2"
  4027. else
  4028. CFLAGS="-g"
  4029. fi
  4030. else
  4031. if test "$GCC" = yes; then
  4032. CFLAGS="-O2"
  4033. else
  4034. CFLAGS=
  4035. fi
  4036. fi
  4037. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  4038. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  4039. if test "${ac_cv_prog_cc_c89+set}" = set; then :
  4040. $as_echo_n "(cached) " >&6
  4041. else
  4042. ac_cv_prog_cc_c89=no
  4043. ac_save_CC=$CC
  4044. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4045. /* end confdefs.h. */
  4046. #include <stdarg.h>
  4047. #include <stdio.h>
  4048. #include <sys/types.h>
  4049. #include <sys/stat.h>
  4050. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  4051. struct buf { int x; };
  4052. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  4053. static char *e (p, i)
  4054. char **p;
  4055. int i;
  4056. {
  4057. return p[i];
  4058. }
  4059. static char *f (char * (*g) (char **, int), char **p, ...)
  4060. {
  4061. char *s;
  4062. va_list v;
  4063. va_start (v,p);
  4064. s = g (p, va_arg (v,int));
  4065. va_end (v);
  4066. return s;
  4067. }
  4068. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  4069. function prototypes and stuff, but not '\xHH' hex character constants.
  4070. These don't provoke an error unfortunately, instead are silently treated
  4071. as 'x'. The following induces an error, until -std is added to get
  4072. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  4073. array size at least. It's necessary to write '\x00'==0 to get something
  4074. that's true only with -std. */
  4075. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  4076. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  4077. inside strings and character constants. */
  4078. #define FOO(x) 'x'
  4079. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  4080. int test (int i, double x);
  4081. struct s1 {int (*f) (int a);};
  4082. struct s2 {int (*f) (double a);};
  4083. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4084. int argc;
  4085. char **argv;
  4086. int
  4087. main ()
  4088. {
  4089. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  4090. ;
  4091. return 0;
  4092. }
  4093. _ACEOF
  4094. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  4095. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4096. do
  4097. CC="$ac_save_CC $ac_arg"
  4098. if ac_fn_c_try_compile "$LINENO"; then :
  4099. ac_cv_prog_cc_c89=$ac_arg
  4100. fi
  4101. rm -f core conftest.err conftest.$ac_objext
  4102. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4103. done
  4104. rm -f conftest.$ac_ext
  4105. CC=$ac_save_CC
  4106. fi
  4107. # AC_CACHE_VAL
  4108. case "x$ac_cv_prog_cc_c89" in
  4109. x)
  4110. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4111. $as_echo "none needed" >&6; } ;;
  4112. xno)
  4113. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4114. $as_echo "unsupported" >&6; } ;;
  4115. *)
  4116. CC="$CC $ac_cv_prog_cc_c89"
  4117. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4118. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  4119. esac
  4120. if test "x$ac_cv_prog_cc_c89" != xno; then :
  4121. fi
  4122. ac_ext=c
  4123. ac_cpp='$CPP $CPPFLAGS'
  4124. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4125. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4126. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4127. depcc="$CC" am_compiler_list=
  4128. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4129. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4130. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
  4131. $as_echo_n "(cached) " >&6
  4132. else
  4133. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4134. # We make a subdir and do the tests there. Otherwise we can end up
  4135. # making bogus files that we don't know about and never remove. For
  4136. # instance it was reported that on HP-UX the gcc test will end up
  4137. # making a dummy file named `D' -- because `-MD' means `put the output
  4138. # in D'.
  4139. mkdir conftest.dir
  4140. # Copy depcomp to subdir because otherwise we won't find it if we're
  4141. # using a relative directory.
  4142. cp "$am_depcomp" conftest.dir
  4143. cd conftest.dir
  4144. # We will build objects and dependencies in a subdirectory because
  4145. # it helps to detect inapplicable dependency modes. For instance
  4146. # both Tru64's cc and ICC support -MD to output dependencies as a
  4147. # side effect of compilation, but ICC will put the dependencies in
  4148. # the current directory while Tru64 will put them in the object
  4149. # directory.
  4150. mkdir sub
  4151. am_cv_CC_dependencies_compiler_type=none
  4152. if test "$am_compiler_list" = ""; then
  4153. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4154. fi
  4155. am__universal=false
  4156. case " $depcc " in #(
  4157. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  4158. esac
  4159. for depmode in $am_compiler_list; do
  4160. # Setup a source with many dependencies, because some compilers
  4161. # like to wrap large dependency lists on column 80 (with \), and
  4162. # we should not choose a depcomp mode which is confused by this.
  4163. #
  4164. # We need to recreate these files for each test, as the compiler may
  4165. # overwrite some of them when testing with obscure command lines.
  4166. # This happens at least with the AIX C compiler.
  4167. : > sub/conftest.c
  4168. for i in 1 2 3 4 5 6; do
  4169. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4170. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  4171. # Solaris 8's {/usr,}/bin/sh.
  4172. touch sub/conftst$i.h
  4173. done
  4174. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4175. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  4176. # mode. It turns out that the SunPro C++ compiler does not properly
  4177. # handle `-M -o', and we need to detect this. Also, some Intel
  4178. # versions had trouble with output in subdirs
  4179. am__obj=sub/conftest.${OBJEXT-o}
  4180. am__minus_obj="-o $am__obj"
  4181. case $depmode in
  4182. gcc)
  4183. # This depmode causes a compiler race in universal mode.
  4184. test "$am__universal" = false || continue
  4185. ;;
  4186. nosideeffect)
  4187. # after this tag, mechanisms are not by side-effect, so they'll
  4188. # only be used when explicitly requested
  4189. if test "x$enable_dependency_tracking" = xyes; then
  4190. continue
  4191. else
  4192. break
  4193. fi
  4194. ;;
  4195. msvisualcpp | msvcmsys)
  4196. # This compiler won't grok `-c -o', but also, the minuso test has
  4197. # not run yet. These depmodes are late enough in the game, and
  4198. # so weak that their functioning should not be impacted.
  4199. am__obj=conftest.${OBJEXT-o}
  4200. am__minus_obj=
  4201. ;;
  4202. none) break ;;
  4203. esac
  4204. if depmode=$depmode \
  4205. source=sub/conftest.c object=$am__obj \
  4206. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4207. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4208. >/dev/null 2>conftest.err &&
  4209. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4210. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4211. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4212. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4213. # icc doesn't choke on unknown options, it will just issue warnings
  4214. # or remarks (even with -Werror). So we grep stderr for any message
  4215. # that says an option was ignored or not supported.
  4216. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4217. # icc: Command line warning: ignoring option '-M'; no argument required
  4218. # The diagnosis changed in icc 8.0:
  4219. # icc: Command line remark: option '-MP' not supported
  4220. if (grep 'ignoring option' conftest.err ||
  4221. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4222. am_cv_CC_dependencies_compiler_type=$depmode
  4223. break
  4224. fi
  4225. fi
  4226. done
  4227. cd ..
  4228. rm -rf conftest.dir
  4229. else
  4230. am_cv_CC_dependencies_compiler_type=none
  4231. fi
  4232. fi
  4233. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  4234. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  4235. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4236. if
  4237. test "x$enable_dependency_tracking" != xno \
  4238. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4239. am__fastdepCC_TRUE=
  4240. am__fastdepCC_FALSE='#'
  4241. else
  4242. am__fastdepCC_TRUE='#'
  4243. am__fastdepCC_FALSE=
  4244. fi
  4245. if test "x$CC" != xcc; then
  4246. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
  4247. $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
  4248. else
  4249. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
  4250. $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
  4251. fi
  4252. set dummy $CC; ac_cc=`$as_echo "$2" |
  4253. sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  4254. if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\"" = set; then :
  4255. $as_echo_n "(cached) " >&6
  4256. else
  4257. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4258. /* end confdefs.h. */
  4259. int
  4260. main ()
  4261. {
  4262. ;
  4263. return 0;
  4264. }
  4265. _ACEOF
  4266. # Make sure it works both with $CC and with simple cc.
  4267. # We do the test twice because some compilers refuse to overwrite an
  4268. # existing .o file with -o, though they will create one.
  4269. ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  4270. rm -f conftest2.*
  4271. if { { case "(($ac_try" in
  4272. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4273. *) ac_try_echo=$ac_try;;
  4274. esac
  4275. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4276. $as_echo "$ac_try_echo"; } >&5
  4277. (eval "$ac_try") 2>&5
  4278. ac_status=$?
  4279. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4280. test $ac_status = 0; } &&
  4281. test -f conftest2.$ac_objext && { { case "(($ac_try" in
  4282. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4283. *) ac_try_echo=$ac_try;;
  4284. esac
  4285. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4286. $as_echo "$ac_try_echo"; } >&5
  4287. (eval "$ac_try") 2>&5
  4288. ac_status=$?
  4289. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4290. test $ac_status = 0; };
  4291. then
  4292. eval ac_cv_prog_cc_${ac_cc}_c_o=yes
  4293. if test "x$CC" != xcc; then
  4294. # Test first that cc exists at all.
  4295. if { ac_try='cc -c conftest.$ac_ext >&5'
  4296. { { case "(($ac_try" in
  4297. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4298. *) ac_try_echo=$ac_try;;
  4299. esac
  4300. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4301. $as_echo "$ac_try_echo"; } >&5
  4302. (eval "$ac_try") 2>&5
  4303. ac_status=$?
  4304. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4305. test $ac_status = 0; }; }; then
  4306. ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  4307. rm -f conftest2.*
  4308. if { { case "(($ac_try" in
  4309. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4310. *) ac_try_echo=$ac_try;;
  4311. esac
  4312. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4313. $as_echo "$ac_try_echo"; } >&5
  4314. (eval "$ac_try") 2>&5
  4315. ac_status=$?
  4316. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4317. test $ac_status = 0; } &&
  4318. test -f conftest2.$ac_objext && { { case "(($ac_try" in
  4319. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4320. *) ac_try_echo=$ac_try;;
  4321. esac
  4322. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4323. $as_echo "$ac_try_echo"; } >&5
  4324. (eval "$ac_try") 2>&5
  4325. ac_status=$?
  4326. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4327. test $ac_status = 0; };
  4328. then
  4329. # cc works too.
  4330. :
  4331. else
  4332. # cc exists but doesn't like -o.
  4333. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  4334. fi
  4335. fi
  4336. fi
  4337. else
  4338. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  4339. fi
  4340. rm -f core conftest*
  4341. fi
  4342. if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
  4343. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4344. $as_echo "yes" >&6; }
  4345. else
  4346. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4347. $as_echo "no" >&6; }
  4348. $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
  4349. fi
  4350. # FIXME: we rely on the cache variable name because
  4351. # there is no other way.
  4352. set dummy $CC
  4353. am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  4354. eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
  4355. if test "$am_t" != yes; then
  4356. # Losing compiler, so override with the script.
  4357. # FIXME: It is wrong to rewrite CC.
  4358. # But if we don't then we get into trouble of one sort or another.
  4359. # A longer-term fix would be to have automake use am__CC in this case,
  4360. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  4361. CC="$am_aux_dir/compile $CC"
  4362. fi
  4363. # By default we simply use the C compiler to build assembly code.
  4364. test "${CCAS+set}" = set || CCAS=$CC
  4365. test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
  4366. depcc="$CCAS" am_compiler_list=
  4367. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4368. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4369. if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then :
  4370. $as_echo_n "(cached) " >&6
  4371. else
  4372. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4373. # We make a subdir and do the tests there. Otherwise we can end up
  4374. # making bogus files that we don't know about and never remove. For
  4375. # instance it was reported that on HP-UX the gcc test will end up
  4376. # making a dummy file named `D' -- because `-MD' means `put the output
  4377. # in D'.
  4378. mkdir conftest.dir
  4379. # Copy depcomp to subdir because otherwise we won't find it if we're
  4380. # using a relative directory.
  4381. cp "$am_depcomp" conftest.dir
  4382. cd conftest.dir
  4383. # We will build objects and dependencies in a subdirectory because
  4384. # it helps to detect inapplicable dependency modes. For instance
  4385. # both Tru64's cc and ICC support -MD to output dependencies as a
  4386. # side effect of compilation, but ICC will put the dependencies in
  4387. # the current directory while Tru64 will put them in the object
  4388. # directory.
  4389. mkdir sub
  4390. am_cv_CCAS_dependencies_compiler_type=none
  4391. if test "$am_compiler_list" = ""; then
  4392. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4393. fi
  4394. am__universal=false
  4395. for depmode in $am_compiler_list; do
  4396. # Setup a source with many dependencies, because some compilers
  4397. # like to wrap large dependency lists on column 80 (with \), and
  4398. # we should not choose a depcomp mode which is confused by this.
  4399. #
  4400. # We need to recreate these files for each test, as the compiler may
  4401. # overwrite some of them when testing with obscure command lines.
  4402. # This happens at least with the AIX C compiler.
  4403. : > sub/conftest.c
  4404. for i in 1 2 3 4 5 6; do
  4405. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4406. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  4407. # Solaris 8's {/usr,}/bin/sh.
  4408. touch sub/conftst$i.h
  4409. done
  4410. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4411. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  4412. # mode. It turns out that the SunPro C++ compiler does not properly
  4413. # handle `-M -o', and we need to detect this. Also, some Intel
  4414. # versions had trouble with output in subdirs
  4415. am__obj=sub/conftest.${OBJEXT-o}
  4416. am__minus_obj="-o $am__obj"
  4417. case $depmode in
  4418. gcc)
  4419. # This depmode causes a compiler race in universal mode.
  4420. test "$am__universal" = false || continue
  4421. ;;
  4422. nosideeffect)
  4423. # after this tag, mechanisms are not by side-effect, so they'll
  4424. # only be used when explicitly requested
  4425. if test "x$enable_dependency_tracking" = xyes; then
  4426. continue
  4427. else
  4428. break
  4429. fi
  4430. ;;
  4431. msvisualcpp | msvcmsys)
  4432. # This compiler won't grok `-c -o', but also, the minuso test has
  4433. # not run yet. These depmodes are late enough in the game, and
  4434. # so weak that their functioning should not be impacted.
  4435. am__obj=conftest.${OBJEXT-o}
  4436. am__minus_obj=
  4437. ;;
  4438. none) break ;;
  4439. esac
  4440. if depmode=$depmode \
  4441. source=sub/conftest.c object=$am__obj \
  4442. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4443. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4444. >/dev/null 2>conftest.err &&
  4445. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4446. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4447. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4448. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4449. # icc doesn't choke on unknown options, it will just issue warnings
  4450. # or remarks (even with -Werror). So we grep stderr for any message
  4451. # that says an option was ignored or not supported.
  4452. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4453. # icc: Command line warning: ignoring option '-M'; no argument required
  4454. # The diagnosis changed in icc 8.0:
  4455. # icc: Command line remark: option '-MP' not supported
  4456. if (grep 'ignoring option' conftest.err ||
  4457. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4458. am_cv_CCAS_dependencies_compiler_type=$depmode
  4459. break
  4460. fi
  4461. fi
  4462. done
  4463. cd ..
  4464. rm -rf conftest.dir
  4465. else
  4466. am_cv_CCAS_dependencies_compiler_type=none
  4467. fi
  4468. fi
  4469. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
  4470. $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
  4471. CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
  4472. if
  4473. test "x$enable_dependency_tracking" != xno \
  4474. && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
  4475. am__fastdepCCAS_TRUE=
  4476. am__fastdepCCAS_FALSE='#'
  4477. else
  4478. am__fastdepCCAS_TRUE='#'
  4479. am__fastdepCCAS_FALSE=
  4480. fi
  4481. # disable static libs by default - we only use a couple
  4482. # Check whether --enable-static was given.
  4483. if test "${enable_static+set}" = set; then :
  4484. enableval=$enable_static; p=${PACKAGE-default}
  4485. case $enableval in
  4486. yes) enable_static=yes ;;
  4487. no) enable_static=no ;;
  4488. *)
  4489. enable_static=no
  4490. # Look at the argument we got. We use all the common list separators.
  4491. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  4492. for pkg in $enableval; do
  4493. IFS="$lt_save_ifs"
  4494. if test "X$pkg" = "X$p"; then
  4495. enable_static=yes
  4496. fi
  4497. done
  4498. IFS="$lt_save_ifs"
  4499. ;;
  4500. esac
  4501. else
  4502. enable_static=no
  4503. fi
  4504. case `pwd` in
  4505. *\ * | *\ *)
  4506. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  4507. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  4508. esac
  4509. macro_version='2.2.10'
  4510. macro_revision='1.3175'
  4511. ltmain="$ac_aux_dir/ltmain.sh"
  4512. # Backslashify metacharacters that are still active within
  4513. # double-quoted strings.
  4514. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  4515. # Same as above, but do not quote variable references.
  4516. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  4517. # Sed substitution to delay expansion of an escaped shell variable in a
  4518. # double_quote_subst'ed string.
  4519. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  4520. # Sed substitution to delay expansion of an escaped single quote.
  4521. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  4522. # Sed substitution to avoid accidental globbing in evaled expressions
  4523. no_glob_subst='s/\*/\\\*/g'
  4524. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  4525. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  4526. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  4527. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  4528. $as_echo_n "checking how to print strings... " >&6; }
  4529. # Test print first, because it will be a builtin if present.
  4530. if test "X`print -r -- -n 2>/dev/null`" = X-n && \
  4531. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  4532. ECHO='print -r --'
  4533. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  4534. ECHO='printf %s\n'
  4535. else
  4536. # Use this function as a fallback that always works.
  4537. func_fallback_echo ()
  4538. {
  4539. eval 'cat <<_LTECHO_EOF
  4540. $1
  4541. _LTECHO_EOF'
  4542. }
  4543. ECHO='func_fallback_echo'
  4544. fi
  4545. # func_echo_all arg...
  4546. # Invoke $ECHO with all args, space-separated.
  4547. func_echo_all ()
  4548. {
  4549. $ECHO ""
  4550. }
  4551. case "$ECHO" in
  4552. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  4553. $as_echo "printf" >&6; } ;;
  4554. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  4555. $as_echo "print -r" >&6; } ;;
  4556. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  4557. $as_echo "cat" >&6; } ;;
  4558. esac
  4559. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4560. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4561. if test "${ac_cv_path_SED+set}" = set; then :
  4562. $as_echo_n "(cached) " >&6
  4563. else
  4564. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4565. for ac_i in 1 2 3 4 5 6 7; do
  4566. ac_script="$ac_script$as_nl$ac_script"
  4567. done
  4568. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4569. { ac_script=; unset ac_script;}
  4570. if test -z "$SED"; then
  4571. ac_path_SED_found=false
  4572. # Loop through the user's path and test for each of PROGNAME-LIST
  4573. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4574. for as_dir in $PATH
  4575. do
  4576. IFS=$as_save_IFS
  4577. test -z "$as_dir" && as_dir=.
  4578. for ac_prog in sed gsed; do
  4579. for ac_exec_ext in '' $ac_executable_extensions; do
  4580. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4581. { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  4582. # Check for GNU ac_path_SED and select it if it is found.
  4583. # Check for GNU $ac_path_SED
  4584. case `"$ac_path_SED" --version 2>&1` in
  4585. *GNU*)
  4586. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4587. *)
  4588. ac_count=0
  4589. $as_echo_n 0123456789 >"conftest.in"
  4590. while :
  4591. do
  4592. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4593. mv "conftest.tmp" "conftest.in"
  4594. cp "conftest.in" "conftest.nl"
  4595. $as_echo '' >> "conftest.nl"
  4596. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4597. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4598. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4599. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4600. # Best one so far, save it but keep looking for a better one
  4601. ac_cv_path_SED="$ac_path_SED"
  4602. ac_path_SED_max=$ac_count
  4603. fi
  4604. # 10*(2^10) chars as input seems more than enough
  4605. test $ac_count -gt 10 && break
  4606. done
  4607. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4608. esac
  4609. $ac_path_SED_found && break 3
  4610. done
  4611. done
  4612. done
  4613. IFS=$as_save_IFS
  4614. if test -z "$ac_cv_path_SED"; then
  4615. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4616. fi
  4617. else
  4618. ac_cv_path_SED=$SED
  4619. fi
  4620. fi
  4621. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4622. $as_echo "$ac_cv_path_SED" >&6; }
  4623. SED="$ac_cv_path_SED"
  4624. rm -f conftest.sed
  4625. test -z "$SED" && SED=sed
  4626. Xsed="$SED -e 1s/^X//"
  4627. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4628. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4629. if test "${ac_cv_path_GREP+set}" = set; then :
  4630. $as_echo_n "(cached) " >&6
  4631. else
  4632. if test -z "$GREP"; then
  4633. ac_path_GREP_found=false
  4634. # Loop through the user's path and test for each of PROGNAME-LIST
  4635. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4636. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4637. do
  4638. IFS=$as_save_IFS
  4639. test -z "$as_dir" && as_dir=.
  4640. for ac_prog in grep ggrep; do
  4641. for ac_exec_ext in '' $ac_executable_extensions; do
  4642. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4643. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  4644. # Check for GNU ac_path_GREP and select it if it is found.
  4645. # Check for GNU $ac_path_GREP
  4646. case `"$ac_path_GREP" --version 2>&1` in
  4647. *GNU*)
  4648. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4649. *)
  4650. ac_count=0
  4651. $as_echo_n 0123456789 >"conftest.in"
  4652. while :
  4653. do
  4654. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4655. mv "conftest.tmp" "conftest.in"
  4656. cp "conftest.in" "conftest.nl"
  4657. $as_echo 'GREP' >> "conftest.nl"
  4658. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4659. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4660. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4661. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4662. # Best one so far, save it but keep looking for a better one
  4663. ac_cv_path_GREP="$ac_path_GREP"
  4664. ac_path_GREP_max=$ac_count
  4665. fi
  4666. # 10*(2^10) chars as input seems more than enough
  4667. test $ac_count -gt 10 && break
  4668. done
  4669. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4670. esac
  4671. $ac_path_GREP_found && break 3
  4672. done
  4673. done
  4674. done
  4675. IFS=$as_save_IFS
  4676. if test -z "$ac_cv_path_GREP"; then
  4677. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4678. fi
  4679. else
  4680. ac_cv_path_GREP=$GREP
  4681. fi
  4682. fi
  4683. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4684. $as_echo "$ac_cv_path_GREP" >&6; }
  4685. GREP="$ac_cv_path_GREP"
  4686. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4687. $as_echo_n "checking for egrep... " >&6; }
  4688. if test "${ac_cv_path_EGREP+set}" = set; then :
  4689. $as_echo_n "(cached) " >&6
  4690. else
  4691. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4692. then ac_cv_path_EGREP="$GREP -E"
  4693. else
  4694. if test -z "$EGREP"; then
  4695. ac_path_EGREP_found=false
  4696. # Loop through the user's path and test for each of PROGNAME-LIST
  4697. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4698. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4699. do
  4700. IFS=$as_save_IFS
  4701. test -z "$as_dir" && as_dir=.
  4702. for ac_prog in egrep; do
  4703. for ac_exec_ext in '' $ac_executable_extensions; do
  4704. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4705. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  4706. # Check for GNU ac_path_EGREP and select it if it is found.
  4707. # Check for GNU $ac_path_EGREP
  4708. case `"$ac_path_EGREP" --version 2>&1` in
  4709. *GNU*)
  4710. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4711. *)
  4712. ac_count=0
  4713. $as_echo_n 0123456789 >"conftest.in"
  4714. while :
  4715. do
  4716. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4717. mv "conftest.tmp" "conftest.in"
  4718. cp "conftest.in" "conftest.nl"
  4719. $as_echo 'EGREP' >> "conftest.nl"
  4720. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4721. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4722. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4723. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4724. # Best one so far, save it but keep looking for a better one
  4725. ac_cv_path_EGREP="$ac_path_EGREP"
  4726. ac_path_EGREP_max=$ac_count
  4727. fi
  4728. # 10*(2^10) chars as input seems more than enough
  4729. test $ac_count -gt 10 && break
  4730. done
  4731. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4732. esac
  4733. $ac_path_EGREP_found && break 3
  4734. done
  4735. done
  4736. done
  4737. IFS=$as_save_IFS
  4738. if test -z "$ac_cv_path_EGREP"; then
  4739. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4740. fi
  4741. else
  4742. ac_cv_path_EGREP=$EGREP
  4743. fi
  4744. fi
  4745. fi
  4746. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4747. $as_echo "$ac_cv_path_EGREP" >&6; }
  4748. EGREP="$ac_cv_path_EGREP"
  4749. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4750. $as_echo_n "checking for fgrep... " >&6; }
  4751. if test "${ac_cv_path_FGREP+set}" = set; then :
  4752. $as_echo_n "(cached) " >&6
  4753. else
  4754. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4755. then ac_cv_path_FGREP="$GREP -F"
  4756. else
  4757. if test -z "$FGREP"; then
  4758. ac_path_FGREP_found=false
  4759. # Loop through the user's path and test for each of PROGNAME-LIST
  4760. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4761. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4762. do
  4763. IFS=$as_save_IFS
  4764. test -z "$as_dir" && as_dir=.
  4765. for ac_prog in fgrep; do
  4766. for ac_exec_ext in '' $ac_executable_extensions; do
  4767. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  4768. { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  4769. # Check for GNU ac_path_FGREP and select it if it is found.
  4770. # Check for GNU $ac_path_FGREP
  4771. case `"$ac_path_FGREP" --version 2>&1` in
  4772. *GNU*)
  4773. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4774. *)
  4775. ac_count=0
  4776. $as_echo_n 0123456789 >"conftest.in"
  4777. while :
  4778. do
  4779. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4780. mv "conftest.tmp" "conftest.in"
  4781. cp "conftest.in" "conftest.nl"
  4782. $as_echo 'FGREP' >> "conftest.nl"
  4783. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4784. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4785. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4786. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4787. # Best one so far, save it but keep looking for a better one
  4788. ac_cv_path_FGREP="$ac_path_FGREP"
  4789. ac_path_FGREP_max=$ac_count
  4790. fi
  4791. # 10*(2^10) chars as input seems more than enough
  4792. test $ac_count -gt 10 && break
  4793. done
  4794. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4795. esac
  4796. $ac_path_FGREP_found && break 3
  4797. done
  4798. done
  4799. done
  4800. IFS=$as_save_IFS
  4801. if test -z "$ac_cv_path_FGREP"; then
  4802. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4803. fi
  4804. else
  4805. ac_cv_path_FGREP=$FGREP
  4806. fi
  4807. fi
  4808. fi
  4809. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4810. $as_echo "$ac_cv_path_FGREP" >&6; }
  4811. FGREP="$ac_cv_path_FGREP"
  4812. test -z "$GREP" && GREP=grep
  4813. # Check whether --with-gnu-ld was given.
  4814. if test "${with_gnu_ld+set}" = set; then :
  4815. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  4816. else
  4817. with_gnu_ld=no
  4818. fi
  4819. ac_prog=ld
  4820. if test "$GCC" = yes; then
  4821. # Check if gcc -print-prog-name=ld gives a path.
  4822. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4823. $as_echo_n "checking for ld used by $CC... " >&6; }
  4824. case $host in
  4825. *-*-mingw*)
  4826. # gcc leaves a trailing carriage return which upsets mingw
  4827. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4828. *)
  4829. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4830. esac
  4831. case $ac_prog in
  4832. # Accept absolute paths.
  4833. [\\/]* | ?:[\\/]*)
  4834. re_direlt='/[^/][^/]*/\.\./'
  4835. # Canonicalize the pathname of ld
  4836. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4837. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4838. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4839. done
  4840. test -z "$LD" && LD="$ac_prog"
  4841. ;;
  4842. "")
  4843. # If it fails, then pretend we aren't using GCC.
  4844. ac_prog=ld
  4845. ;;
  4846. *)
  4847. # If it is relative, then search for the first ld in PATH.
  4848. with_gnu_ld=unknown
  4849. ;;
  4850. esac
  4851. elif test "$with_gnu_ld" = yes; then
  4852. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4853. $as_echo_n "checking for GNU ld... " >&6; }
  4854. else
  4855. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4856. $as_echo_n "checking for non-GNU ld... " >&6; }
  4857. fi
  4858. if test "${lt_cv_path_LD+set}" = set; then :
  4859. $as_echo_n "(cached) " >&6
  4860. else
  4861. if test -z "$LD"; then
  4862. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4863. for ac_dir in $PATH; do
  4864. IFS="$lt_save_ifs"
  4865. test -z "$ac_dir" && ac_dir=.
  4866. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4867. lt_cv_path_LD="$ac_dir/$ac_prog"
  4868. # Check to see if the program is GNU ld. I'd rather use --version,
  4869. # but apparently some variants of GNU ld only accept -v.
  4870. # Break only if it was the GNU/non-GNU ld that we prefer.
  4871. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4872. *GNU* | *'with BFD'*)
  4873. test "$with_gnu_ld" != no && break
  4874. ;;
  4875. *)
  4876. test "$with_gnu_ld" != yes && break
  4877. ;;
  4878. esac
  4879. fi
  4880. done
  4881. IFS="$lt_save_ifs"
  4882. else
  4883. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  4884. fi
  4885. fi
  4886. LD="$lt_cv_path_LD"
  4887. if test -n "$LD"; then
  4888. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4889. $as_echo "$LD" >&6; }
  4890. else
  4891. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4892. $as_echo "no" >&6; }
  4893. fi
  4894. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  4895. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4896. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4897. if test "${lt_cv_prog_gnu_ld+set}" = set; then :
  4898. $as_echo_n "(cached) " >&6
  4899. else
  4900. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4901. case `$LD -v 2>&1 </dev/null` in
  4902. *GNU* | *'with BFD'*)
  4903. lt_cv_prog_gnu_ld=yes
  4904. ;;
  4905. *)
  4906. lt_cv_prog_gnu_ld=no
  4907. ;;
  4908. esac
  4909. fi
  4910. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4911. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4912. with_gnu_ld=$lt_cv_prog_gnu_ld
  4913. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4914. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4915. if test "${lt_cv_path_NM+set}" = set; then :
  4916. $as_echo_n "(cached) " >&6
  4917. else
  4918. if test -n "$NM"; then
  4919. # Let the user override the test.
  4920. lt_cv_path_NM="$NM"
  4921. else
  4922. lt_nm_to_check="${ac_tool_prefix}nm"
  4923. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4924. lt_nm_to_check="$lt_nm_to_check nm"
  4925. fi
  4926. for lt_tmp_nm in $lt_nm_to_check; do
  4927. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4928. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4929. IFS="$lt_save_ifs"
  4930. test -z "$ac_dir" && ac_dir=.
  4931. tmp_nm="$ac_dir/$lt_tmp_nm"
  4932. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  4933. # Check to see if the nm accepts a BSD-compat flag.
  4934. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  4935. # nm: unknown option "B" ignored
  4936. # Tru64's nm complains that /dev/null is an invalid object file
  4937. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  4938. */dev/null* | *'Invalid file or object type'*)
  4939. lt_cv_path_NM="$tmp_nm -B"
  4940. break
  4941. ;;
  4942. *)
  4943. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4944. */dev/null*)
  4945. lt_cv_path_NM="$tmp_nm -p"
  4946. break
  4947. ;;
  4948. *)
  4949. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4950. continue # so that we can try to find one that supports BSD flags
  4951. ;;
  4952. esac
  4953. ;;
  4954. esac
  4955. fi
  4956. done
  4957. IFS="$lt_save_ifs"
  4958. done
  4959. : ${lt_cv_path_NM=no}
  4960. fi
  4961. fi
  4962. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4963. $as_echo "$lt_cv_path_NM" >&6; }
  4964. if test "$lt_cv_path_NM" != "no"; then
  4965. NM="$lt_cv_path_NM"
  4966. else
  4967. # Didn't find any BSD compatible name lister, look for dumpbin.
  4968. if test -n "$DUMPBIN"; then :
  4969. # Let the user override the test.
  4970. else
  4971. if test -n "$ac_tool_prefix"; then
  4972. for ac_prog in dumpbin "link -dump"
  4973. do
  4974. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4975. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4976. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4977. $as_echo_n "checking for $ac_word... " >&6; }
  4978. if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
  4979. $as_echo_n "(cached) " >&6
  4980. else
  4981. if test -n "$DUMPBIN"; then
  4982. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4983. else
  4984. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4985. for as_dir in $PATH
  4986. do
  4987. IFS=$as_save_IFS
  4988. test -z "$as_dir" && as_dir=.
  4989. for ac_exec_ext in '' $ac_executable_extensions; do
  4990. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4991. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4992. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4993. break 2
  4994. fi
  4995. done
  4996. done
  4997. IFS=$as_save_IFS
  4998. fi
  4999. fi
  5000. DUMPBIN=$ac_cv_prog_DUMPBIN
  5001. if test -n "$DUMPBIN"; then
  5002. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  5003. $as_echo "$DUMPBIN" >&6; }
  5004. else
  5005. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5006. $as_echo "no" >&6; }
  5007. fi
  5008. test -n "$DUMPBIN" && break
  5009. done
  5010. fi
  5011. if test -z "$DUMPBIN"; then
  5012. ac_ct_DUMPBIN=$DUMPBIN
  5013. for ac_prog in dumpbin "link -dump"
  5014. do
  5015. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5016. set dummy $ac_prog; ac_word=$2
  5017. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5018. $as_echo_n "checking for $ac_word... " >&6; }
  5019. if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
  5020. $as_echo_n "(cached) " >&6
  5021. else
  5022. if test -n "$ac_ct_DUMPBIN"; then
  5023. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  5024. else
  5025. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5026. for as_dir in $PATH
  5027. do
  5028. IFS=$as_save_IFS
  5029. test -z "$as_dir" && as_dir=.
  5030. for ac_exec_ext in '' $ac_executable_extensions; do
  5031. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5032. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  5033. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5034. break 2
  5035. fi
  5036. done
  5037. done
  5038. IFS=$as_save_IFS
  5039. fi
  5040. fi
  5041. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  5042. if test -n "$ac_ct_DUMPBIN"; then
  5043. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  5044. $as_echo "$ac_ct_DUMPBIN" >&6; }
  5045. else
  5046. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5047. $as_echo "no" >&6; }
  5048. fi
  5049. test -n "$ac_ct_DUMPBIN" && break
  5050. done
  5051. if test "x$ac_ct_DUMPBIN" = x; then
  5052. DUMPBIN=":"
  5053. else
  5054. case $cross_compiling:$ac_tool_warned in
  5055. yes:)
  5056. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5057. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5058. ac_tool_warned=yes ;;
  5059. esac
  5060. DUMPBIN=$ac_ct_DUMPBIN
  5061. fi
  5062. fi
  5063. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  5064. *COFF*)
  5065. DUMPBIN="$DUMPBIN -symbols"
  5066. ;;
  5067. *)
  5068. DUMPBIN=:
  5069. ;;
  5070. esac
  5071. fi
  5072. if test "$DUMPBIN" != ":"; then
  5073. NM="$DUMPBIN"
  5074. fi
  5075. fi
  5076. test -z "$NM" && NM=nm
  5077. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  5078. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  5079. if test "${lt_cv_nm_interface+set}" = set; then :
  5080. $as_echo_n "(cached) " >&6
  5081. else
  5082. lt_cv_nm_interface="BSD nm"
  5083. echo "int some_variable = 0;" > conftest.$ac_ext
  5084. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  5085. (eval "$ac_compile" 2>conftest.err)
  5086. cat conftest.err >&5
  5087. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  5088. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  5089. cat conftest.err >&5
  5090. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  5091. cat conftest.out >&5
  5092. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  5093. lt_cv_nm_interface="MS dumpbin"
  5094. fi
  5095. rm -f conftest*
  5096. fi
  5097. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  5098. $as_echo "$lt_cv_nm_interface" >&6; }
  5099. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  5100. $as_echo_n "checking whether ln -s works... " >&6; }
  5101. LN_S=$as_ln_s
  5102. if test "$LN_S" = "ln -s"; then
  5103. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5104. $as_echo "yes" >&6; }
  5105. else
  5106. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  5107. $as_echo "no, using $LN_S" >&6; }
  5108. fi
  5109. # find the maximum length of command line arguments
  5110. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  5111. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  5112. if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
  5113. $as_echo_n "(cached) " >&6
  5114. else
  5115. i=0
  5116. teststring="ABCD"
  5117. case $build_os in
  5118. msdosdjgpp*)
  5119. # On DJGPP, this test can blow up pretty badly due to problems in libc
  5120. # (any single argument exceeding 2000 bytes causes a buffer overrun
  5121. # during glob expansion). Even if it were fixed, the result of this
  5122. # check would be larger than it should be.
  5123. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  5124. ;;
  5125. gnu*)
  5126. # Under GNU Hurd, this test is not required because there is
  5127. # no limit to the length of command line arguments.
  5128. # Libtool will interpret -1 as no limit whatsoever
  5129. lt_cv_sys_max_cmd_len=-1;
  5130. ;;
  5131. cygwin* | mingw* | cegcc*)
  5132. # On Win9x/ME, this test blows up -- it succeeds, but takes
  5133. # about 5 minutes as the teststring grows exponentially.
  5134. # Worse, since 9x/ME are not pre-emptively multitasking,
  5135. # you end up with a "frozen" computer, even though with patience
  5136. # the test eventually succeeds (with a max line length of 256k).
  5137. # Instead, let's just punt: use the minimum linelength reported by
  5138. # all of the supported platforms: 8192 (on NT/2K/XP).
  5139. lt_cv_sys_max_cmd_len=8192;
  5140. ;;
  5141. mint*)
  5142. # On MiNT this can take a long time and run out of memory.
  5143. lt_cv_sys_max_cmd_len=8192;
  5144. ;;
  5145. amigaos*)
  5146. # On AmigaOS with pdksh, this test takes hours, literally.
  5147. # So we just punt and use a minimum line length of 8192.
  5148. lt_cv_sys_max_cmd_len=8192;
  5149. ;;
  5150. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  5151. # This has been around since 386BSD, at least. Likely further.
  5152. if test -x /sbin/sysctl; then
  5153. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  5154. elif test -x /usr/sbin/sysctl; then
  5155. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  5156. else
  5157. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  5158. fi
  5159. # And add a safety zone
  5160. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5161. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5162. ;;
  5163. interix*)
  5164. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  5165. lt_cv_sys_max_cmd_len=196608
  5166. ;;
  5167. osf*)
  5168. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  5169. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  5170. # nice to cause kernel panics so lets avoid the loop below.
  5171. # First set a reasonable default.
  5172. lt_cv_sys_max_cmd_len=16384
  5173. #
  5174. if test -x /sbin/sysconfig; then
  5175. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  5176. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  5177. esac
  5178. fi
  5179. ;;
  5180. sco3.2v5*)
  5181. lt_cv_sys_max_cmd_len=102400
  5182. ;;
  5183. sysv5* | sco5v6* | sysv4.2uw2*)
  5184. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  5185. if test -n "$kargmax"; then
  5186. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  5187. else
  5188. lt_cv_sys_max_cmd_len=32768
  5189. fi
  5190. ;;
  5191. *)
  5192. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  5193. if test -n "$lt_cv_sys_max_cmd_len"; then
  5194. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5195. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5196. else
  5197. # Make teststring a little bigger before we do anything with it.
  5198. # a 1K string should be a reasonable start.
  5199. for i in 1 2 3 4 5 6 7 8 ; do
  5200. teststring=$teststring$teststring
  5201. done
  5202. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  5203. # If test is not a shell built-in, we'll probably end up computing a
  5204. # maximum length that is only half of the actual maximum length, but
  5205. # we can't tell.
  5206. while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
  5207. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  5208. test $i != 17 # 1/2 MB should be enough
  5209. do
  5210. i=`expr $i + 1`
  5211. teststring=$teststring$teststring
  5212. done
  5213. # Only check the string length outside the loop.
  5214. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  5215. teststring=
  5216. # Add a significant safety factor because C++ compilers can tack on
  5217. # massive amounts of additional arguments before passing them to the
  5218. # linker. It appears as though 1/2 is a usable value.
  5219. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5220. fi
  5221. ;;
  5222. esac
  5223. fi
  5224. if test -n $lt_cv_sys_max_cmd_len ; then
  5225. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  5226. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  5227. else
  5228. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  5229. $as_echo "none" >&6; }
  5230. fi
  5231. max_cmd_len=$lt_cv_sys_max_cmd_len
  5232. : ${CP="cp -f"}
  5233. : ${MV="mv -f"}
  5234. : ${RM="rm -f"}
  5235. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  5236. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  5237. # Try some XSI features
  5238. xsi_shell=no
  5239. ( _lt_dummy="a/b/c"
  5240. test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  5241. = c,a/b,, \
  5242. && eval 'test $(( 1 + 1 )) -eq 2 \
  5243. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  5244. && xsi_shell=yes
  5245. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  5246. $as_echo "$xsi_shell" >&6; }
  5247. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  5248. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  5249. lt_shell_append=no
  5250. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  5251. >/dev/null 2>&1 \
  5252. && lt_shell_append=yes
  5253. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  5254. $as_echo "$lt_shell_append" >&6; }
  5255. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  5256. lt_unset=unset
  5257. else
  5258. lt_unset=false
  5259. fi
  5260. # test EBCDIC or ASCII
  5261. case `echo X|tr X '\101'` in
  5262. A) # ASCII based system
  5263. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  5264. lt_SP2NL='tr \040 \012'
  5265. lt_NL2SP='tr \015\012 \040\040'
  5266. ;;
  5267. *) # EBCDIC based system
  5268. lt_SP2NL='tr \100 \n'
  5269. lt_NL2SP='tr \r\n \100\100'
  5270. ;;
  5271. esac
  5272. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  5273. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  5274. if test "${lt_cv_ld_reload_flag+set}" = set; then :
  5275. $as_echo_n "(cached) " >&6
  5276. else
  5277. lt_cv_ld_reload_flag='-r'
  5278. fi
  5279. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  5280. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  5281. reload_flag=$lt_cv_ld_reload_flag
  5282. case $reload_flag in
  5283. "" | " "*) ;;
  5284. *) reload_flag=" $reload_flag" ;;
  5285. esac
  5286. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5287. case $host_os in
  5288. darwin*)
  5289. if test "$GCC" = yes; then
  5290. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  5291. else
  5292. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5293. fi
  5294. ;;
  5295. esac
  5296. if test -n "$ac_tool_prefix"; then
  5297. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5298. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5299. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5300. $as_echo_n "checking for $ac_word... " >&6; }
  5301. if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
  5302. $as_echo_n "(cached) " >&6
  5303. else
  5304. if test -n "$OBJDUMP"; then
  5305. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5306. else
  5307. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5308. for as_dir in $PATH
  5309. do
  5310. IFS=$as_save_IFS
  5311. test -z "$as_dir" && as_dir=.
  5312. for ac_exec_ext in '' $ac_executable_extensions; do
  5313. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5314. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5315. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5316. break 2
  5317. fi
  5318. done
  5319. done
  5320. IFS=$as_save_IFS
  5321. fi
  5322. fi
  5323. OBJDUMP=$ac_cv_prog_OBJDUMP
  5324. if test -n "$OBJDUMP"; then
  5325. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5326. $as_echo "$OBJDUMP" >&6; }
  5327. else
  5328. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5329. $as_echo "no" >&6; }
  5330. fi
  5331. fi
  5332. if test -z "$ac_cv_prog_OBJDUMP"; then
  5333. ac_ct_OBJDUMP=$OBJDUMP
  5334. # Extract the first word of "objdump", so it can be a program name with args.
  5335. set dummy objdump; ac_word=$2
  5336. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5337. $as_echo_n "checking for $ac_word... " >&6; }
  5338. if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
  5339. $as_echo_n "(cached) " >&6
  5340. else
  5341. if test -n "$ac_ct_OBJDUMP"; then
  5342. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5343. else
  5344. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5345. for as_dir in $PATH
  5346. do
  5347. IFS=$as_save_IFS
  5348. test -z "$as_dir" && as_dir=.
  5349. for ac_exec_ext in '' $ac_executable_extensions; do
  5350. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5351. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5352. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5353. break 2
  5354. fi
  5355. done
  5356. done
  5357. IFS=$as_save_IFS
  5358. fi
  5359. fi
  5360. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5361. if test -n "$ac_ct_OBJDUMP"; then
  5362. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5363. $as_echo "$ac_ct_OBJDUMP" >&6; }
  5364. else
  5365. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5366. $as_echo "no" >&6; }
  5367. fi
  5368. if test "x$ac_ct_OBJDUMP" = x; then
  5369. OBJDUMP="false"
  5370. else
  5371. case $cross_compiling:$ac_tool_warned in
  5372. yes:)
  5373. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5374. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5375. ac_tool_warned=yes ;;
  5376. esac
  5377. OBJDUMP=$ac_ct_OBJDUMP
  5378. fi
  5379. else
  5380. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5381. fi
  5382. test -z "$OBJDUMP" && OBJDUMP=objdump
  5383. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5384. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  5385. if test "${lt_cv_deplibs_check_method+set}" = set; then :
  5386. $as_echo_n "(cached) " >&6
  5387. else
  5388. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5389. lt_cv_file_magic_test_file=
  5390. lt_cv_deplibs_check_method='unknown'
  5391. # Need to set the preceding variable on all platforms that support
  5392. # interlibrary dependencies.
  5393. # 'none' -- dependencies not supported.
  5394. # `unknown' -- same as none, but documents that we really don't know.
  5395. # 'pass_all' -- all dependencies passed with no checks.
  5396. # 'test_compile' -- check by making test program.
  5397. # 'file_magic [[regex]]' -- check by looking for files in library path
  5398. # which responds to the $file_magic_cmd with a given extended regex.
  5399. # If you have `file' or equivalent on your system and you're not sure
  5400. # whether `pass_all' will *always* work, you probably want this one.
  5401. case $host_os in
  5402. aix[4-9]*)
  5403. lt_cv_deplibs_check_method=pass_all
  5404. ;;
  5405. beos*)
  5406. lt_cv_deplibs_check_method=pass_all
  5407. ;;
  5408. bsdi[45]*)
  5409. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5410. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5411. lt_cv_file_magic_test_file=/shlib/libc.so
  5412. ;;
  5413. cygwin*)
  5414. # func_win32_libid is a shell function defined in ltmain.sh
  5415. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5416. lt_cv_file_magic_cmd='func_win32_libid'
  5417. ;;
  5418. mingw* | pw32*)
  5419. # Base MSYS/MinGW do not provide the 'file' command needed by
  5420. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5421. # unless we find 'file', for example because we are cross-compiling.
  5422. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  5423. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  5424. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5425. lt_cv_file_magic_cmd='func_win32_libid'
  5426. else
  5427. # Keep this pattern in sync with the one in func_win32_libid.
  5428. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  5429. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5430. fi
  5431. ;;
  5432. cegcc*)
  5433. # use the weaker test based on 'objdump'. See mingw*.
  5434. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5435. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5436. ;;
  5437. darwin* | rhapsody*)
  5438. lt_cv_deplibs_check_method=pass_all
  5439. ;;
  5440. freebsd* | dragonfly*)
  5441. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5442. case $host_cpu in
  5443. i*86 )
  5444. # Not sure whether the presence of OpenBSD here was a mistake.
  5445. # Let's accept both of them until this is cleared up.
  5446. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5447. lt_cv_file_magic_cmd=/usr/bin/file
  5448. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5449. ;;
  5450. esac
  5451. else
  5452. lt_cv_deplibs_check_method=pass_all
  5453. fi
  5454. ;;
  5455. gnu*)
  5456. lt_cv_deplibs_check_method=pass_all
  5457. ;;
  5458. haiku*)
  5459. lt_cv_deplibs_check_method=pass_all
  5460. ;;
  5461. hpux10.20* | hpux11*)
  5462. lt_cv_file_magic_cmd=/usr/bin/file
  5463. case $host_cpu in
  5464. ia64*)
  5465. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5466. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5467. ;;
  5468. hppa*64*)
  5469. 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]'
  5470. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5471. ;;
  5472. *)
  5473. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  5474. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5475. ;;
  5476. esac
  5477. ;;
  5478. interix[3-9]*)
  5479. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5480. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5481. ;;
  5482. irix5* | irix6* | nonstopux*)
  5483. case $LD in
  5484. *-32|*"-32 ") libmagic=32-bit;;
  5485. *-n32|*"-n32 ") libmagic=N32;;
  5486. *-64|*"-64 ") libmagic=64-bit;;
  5487. *) libmagic=never-match;;
  5488. esac
  5489. lt_cv_deplibs_check_method=pass_all
  5490. ;;
  5491. # This must be Linux ELF.
  5492. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  5493. lt_cv_deplibs_check_method=pass_all
  5494. ;;
  5495. netbsd*)
  5496. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5497. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5498. else
  5499. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5500. fi
  5501. ;;
  5502. newos6*)
  5503. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5504. lt_cv_file_magic_cmd=/usr/bin/file
  5505. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5506. ;;
  5507. *nto* | *qnx*)
  5508. lt_cv_deplibs_check_method=pass_all
  5509. ;;
  5510. openbsd*)
  5511. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  5512. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5513. else
  5514. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5515. fi
  5516. ;;
  5517. osf3* | osf4* | osf5*)
  5518. lt_cv_deplibs_check_method=pass_all
  5519. ;;
  5520. rdos*)
  5521. lt_cv_deplibs_check_method=pass_all
  5522. ;;
  5523. solaris*)
  5524. lt_cv_deplibs_check_method=pass_all
  5525. ;;
  5526. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5527. lt_cv_deplibs_check_method=pass_all
  5528. ;;
  5529. sysv4 | sysv4.3*)
  5530. case $host_vendor in
  5531. motorola)
  5532. 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]'
  5533. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5534. ;;
  5535. ncr)
  5536. lt_cv_deplibs_check_method=pass_all
  5537. ;;
  5538. sequent)
  5539. lt_cv_file_magic_cmd='/bin/file'
  5540. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5541. ;;
  5542. sni)
  5543. lt_cv_file_magic_cmd='/bin/file'
  5544. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5545. lt_cv_file_magic_test_file=/lib/libc.so
  5546. ;;
  5547. siemens)
  5548. lt_cv_deplibs_check_method=pass_all
  5549. ;;
  5550. pc)
  5551. lt_cv_deplibs_check_method=pass_all
  5552. ;;
  5553. esac
  5554. ;;
  5555. tpf*)
  5556. lt_cv_deplibs_check_method=pass_all
  5557. ;;
  5558. esac
  5559. fi
  5560. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5561. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  5562. file_magic_cmd=$lt_cv_file_magic_cmd
  5563. deplibs_check_method=$lt_cv_deplibs_check_method
  5564. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5565. if test -n "$ac_tool_prefix"; then
  5566. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  5567. set dummy ${ac_tool_prefix}ar; ac_word=$2
  5568. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5569. $as_echo_n "checking for $ac_word... " >&6; }
  5570. if test "${ac_cv_prog_AR+set}" = set; then :
  5571. $as_echo_n "(cached) " >&6
  5572. else
  5573. if test -n "$AR"; then
  5574. ac_cv_prog_AR="$AR" # Let the user override the test.
  5575. else
  5576. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5577. for as_dir in $PATH
  5578. do
  5579. IFS=$as_save_IFS
  5580. test -z "$as_dir" && as_dir=.
  5581. for ac_exec_ext in '' $ac_executable_extensions; do
  5582. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5583. ac_cv_prog_AR="${ac_tool_prefix}ar"
  5584. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5585. break 2
  5586. fi
  5587. done
  5588. done
  5589. IFS=$as_save_IFS
  5590. fi
  5591. fi
  5592. AR=$ac_cv_prog_AR
  5593. if test -n "$AR"; then
  5594. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5595. $as_echo "$AR" >&6; }
  5596. else
  5597. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5598. $as_echo "no" >&6; }
  5599. fi
  5600. fi
  5601. if test -z "$ac_cv_prog_AR"; then
  5602. ac_ct_AR=$AR
  5603. # Extract the first word of "ar", so it can be a program name with args.
  5604. set dummy ar; ac_word=$2
  5605. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5606. $as_echo_n "checking for $ac_word... " >&6; }
  5607. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
  5608. $as_echo_n "(cached) " >&6
  5609. else
  5610. if test -n "$ac_ct_AR"; then
  5611. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5612. else
  5613. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5614. for as_dir in $PATH
  5615. do
  5616. IFS=$as_save_IFS
  5617. test -z "$as_dir" && as_dir=.
  5618. for ac_exec_ext in '' $ac_executable_extensions; do
  5619. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5620. ac_cv_prog_ac_ct_AR="ar"
  5621. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5622. break 2
  5623. fi
  5624. done
  5625. done
  5626. IFS=$as_save_IFS
  5627. fi
  5628. fi
  5629. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5630. if test -n "$ac_ct_AR"; then
  5631. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5632. $as_echo "$ac_ct_AR" >&6; }
  5633. else
  5634. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5635. $as_echo "no" >&6; }
  5636. fi
  5637. if test "x$ac_ct_AR" = x; then
  5638. AR="false"
  5639. else
  5640. case $cross_compiling:$ac_tool_warned in
  5641. yes:)
  5642. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5643. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5644. ac_tool_warned=yes ;;
  5645. esac
  5646. AR=$ac_ct_AR
  5647. fi
  5648. else
  5649. AR="$ac_cv_prog_AR"
  5650. fi
  5651. test -z "$AR" && AR=ar
  5652. test -z "$AR_FLAGS" && AR_FLAGS=cru
  5653. if test -n "$ac_tool_prefix"; then
  5654. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5655. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5656. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5657. $as_echo_n "checking for $ac_word... " >&6; }
  5658. if test "${ac_cv_prog_STRIP+set}" = set; then :
  5659. $as_echo_n "(cached) " >&6
  5660. else
  5661. if test -n "$STRIP"; then
  5662. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5663. else
  5664. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5665. for as_dir in $PATH
  5666. do
  5667. IFS=$as_save_IFS
  5668. test -z "$as_dir" && as_dir=.
  5669. for ac_exec_ext in '' $ac_executable_extensions; do
  5670. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5671. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5672. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5673. break 2
  5674. fi
  5675. done
  5676. done
  5677. IFS=$as_save_IFS
  5678. fi
  5679. fi
  5680. STRIP=$ac_cv_prog_STRIP
  5681. if test -n "$STRIP"; then
  5682. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5683. $as_echo "$STRIP" >&6; }
  5684. else
  5685. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5686. $as_echo "no" >&6; }
  5687. fi
  5688. fi
  5689. if test -z "$ac_cv_prog_STRIP"; then
  5690. ac_ct_STRIP=$STRIP
  5691. # Extract the first word of "strip", so it can be a program name with args.
  5692. set dummy strip; ac_word=$2
  5693. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5694. $as_echo_n "checking for $ac_word... " >&6; }
  5695. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  5696. $as_echo_n "(cached) " >&6
  5697. else
  5698. if test -n "$ac_ct_STRIP"; then
  5699. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5700. else
  5701. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5702. for as_dir in $PATH
  5703. do
  5704. IFS=$as_save_IFS
  5705. test -z "$as_dir" && as_dir=.
  5706. for ac_exec_ext in '' $ac_executable_extensions; do
  5707. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5708. ac_cv_prog_ac_ct_STRIP="strip"
  5709. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5710. break 2
  5711. fi
  5712. done
  5713. done
  5714. IFS=$as_save_IFS
  5715. fi
  5716. fi
  5717. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5718. if test -n "$ac_ct_STRIP"; then
  5719. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5720. $as_echo "$ac_ct_STRIP" >&6; }
  5721. else
  5722. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5723. $as_echo "no" >&6; }
  5724. fi
  5725. if test "x$ac_ct_STRIP" = x; then
  5726. STRIP=":"
  5727. else
  5728. case $cross_compiling:$ac_tool_warned in
  5729. yes:)
  5730. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5731. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5732. ac_tool_warned=yes ;;
  5733. esac
  5734. STRIP=$ac_ct_STRIP
  5735. fi
  5736. else
  5737. STRIP="$ac_cv_prog_STRIP"
  5738. fi
  5739. test -z "$STRIP" && STRIP=:
  5740. if test -n "$ac_tool_prefix"; then
  5741. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5742. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5743. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5744. $as_echo_n "checking for $ac_word... " >&6; }
  5745. if test "${ac_cv_prog_RANLIB+set}" = set; then :
  5746. $as_echo_n "(cached) " >&6
  5747. else
  5748. if test -n "$RANLIB"; then
  5749. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5750. else
  5751. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5752. for as_dir in $PATH
  5753. do
  5754. IFS=$as_save_IFS
  5755. test -z "$as_dir" && as_dir=.
  5756. for ac_exec_ext in '' $ac_executable_extensions; do
  5757. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5758. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5759. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5760. break 2
  5761. fi
  5762. done
  5763. done
  5764. IFS=$as_save_IFS
  5765. fi
  5766. fi
  5767. RANLIB=$ac_cv_prog_RANLIB
  5768. if test -n "$RANLIB"; then
  5769. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5770. $as_echo "$RANLIB" >&6; }
  5771. else
  5772. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5773. $as_echo "no" >&6; }
  5774. fi
  5775. fi
  5776. if test -z "$ac_cv_prog_RANLIB"; then
  5777. ac_ct_RANLIB=$RANLIB
  5778. # Extract the first word of "ranlib", so it can be a program name with args.
  5779. set dummy ranlib; ac_word=$2
  5780. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5781. $as_echo_n "checking for $ac_word... " >&6; }
  5782. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  5783. $as_echo_n "(cached) " >&6
  5784. else
  5785. if test -n "$ac_ct_RANLIB"; then
  5786. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5787. else
  5788. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5789. for as_dir in $PATH
  5790. do
  5791. IFS=$as_save_IFS
  5792. test -z "$as_dir" && as_dir=.
  5793. for ac_exec_ext in '' $ac_executable_extensions; do
  5794. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5795. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5796. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5797. break 2
  5798. fi
  5799. done
  5800. done
  5801. IFS=$as_save_IFS
  5802. fi
  5803. fi
  5804. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5805. if test -n "$ac_ct_RANLIB"; then
  5806. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5807. $as_echo "$ac_ct_RANLIB" >&6; }
  5808. else
  5809. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5810. $as_echo "no" >&6; }
  5811. fi
  5812. if test "x$ac_ct_RANLIB" = x; then
  5813. RANLIB=":"
  5814. else
  5815. case $cross_compiling:$ac_tool_warned in
  5816. yes:)
  5817. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5818. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5819. ac_tool_warned=yes ;;
  5820. esac
  5821. RANLIB=$ac_ct_RANLIB
  5822. fi
  5823. else
  5824. RANLIB="$ac_cv_prog_RANLIB"
  5825. fi
  5826. test -z "$RANLIB" && RANLIB=:
  5827. # Determine commands to create old-style static archives.
  5828. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5829. old_postinstall_cmds='chmod 644 $oldlib'
  5830. old_postuninstall_cmds=
  5831. if test -n "$RANLIB"; then
  5832. case $host_os in
  5833. openbsd*)
  5834. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  5835. ;;
  5836. *)
  5837. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  5838. ;;
  5839. esac
  5840. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  5841. fi
  5842. case $host_os in
  5843. darwin*)
  5844. lock_old_archive_extraction=yes ;;
  5845. *)
  5846. lock_old_archive_extraction=no ;;
  5847. esac
  5848. # If no C compiler was specified, use CC.
  5849. LTCC=${LTCC-"$CC"}
  5850. # If no C compiler flags were specified, use CFLAGS.
  5851. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5852. # Allow CC to be a program name with arguments.
  5853. compiler=$CC
  5854. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5855. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5856. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5857. if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
  5858. $as_echo_n "(cached) " >&6
  5859. else
  5860. # These are sane defaults that work on at least a few old systems.
  5861. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5862. # Character class describing NM global symbol codes.
  5863. symcode='[BCDEGRST]'
  5864. # Regexp to match symbols that can be accessed directly from C.
  5865. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5866. # Define system-specific variables.
  5867. case $host_os in
  5868. aix*)
  5869. symcode='[BCDT]'
  5870. ;;
  5871. cygwin* | mingw* | pw32* | cegcc*)
  5872. symcode='[ABCDGISTW]'
  5873. ;;
  5874. hpux*)
  5875. if test "$host_cpu" = ia64; then
  5876. symcode='[ABCDEGRST]'
  5877. fi
  5878. ;;
  5879. irix* | nonstopux*)
  5880. symcode='[BCDEGRST]'
  5881. ;;
  5882. osf*)
  5883. symcode='[BCDEGQRST]'
  5884. ;;
  5885. solaris*)
  5886. symcode='[BDRT]'
  5887. ;;
  5888. sco3.2v5*)
  5889. symcode='[DT]'
  5890. ;;
  5891. sysv4.2uw2*)
  5892. symcode='[DT]'
  5893. ;;
  5894. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5895. symcode='[ABDT]'
  5896. ;;
  5897. sysv4)
  5898. symcode='[DFNSTU]'
  5899. ;;
  5900. esac
  5901. # If we're using GNU nm, then use its standard symbol codes.
  5902. case `$NM -V 2>&1` in
  5903. *GNU* | *'with BFD'*)
  5904. symcode='[ABCDGIRSTW]' ;;
  5905. esac
  5906. # Transform an extracted symbol line into a proper C declaration.
  5907. # Some systems (esp. on ia64) link data and code symbols differently,
  5908. # so use this general approach.
  5909. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5910. # Transform an extracted symbol line into symbol name and symbol address
  5911. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  5912. 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'"
  5913. # Handle CRLF in mingw tool chain
  5914. opt_cr=
  5915. case $build_os in
  5916. mingw*)
  5917. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5918. ;;
  5919. esac
  5920. # Try without a prefix underscore, then with it.
  5921. for ac_symprfx in "" "_"; do
  5922. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5923. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5924. # Write the raw and C identifiers.
  5925. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5926. # Fake it for dumpbin and say T for any non-static function
  5927. # and D for any global variable.
  5928. # Also find C++ and __fastcall symbols from MSVC++,
  5929. # which start with @ or ?.
  5930. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5931. " {last_section=section; section=\$ 3};"\
  5932. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5933. " \$ 0!~/External *\|/{next};"\
  5934. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5935. " {if(hide[section]) next};"\
  5936. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  5937. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  5938. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  5939. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  5940. " ' prfx=^$ac_symprfx"
  5941. else
  5942. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5943. fi
  5944. # Check to see that the pipe works correctly.
  5945. pipe_works=no
  5946. rm -f conftest*
  5947. cat > conftest.$ac_ext <<_LT_EOF
  5948. #ifdef __cplusplus
  5949. extern "C" {
  5950. #endif
  5951. char nm_test_var;
  5952. void nm_test_func(void);
  5953. void nm_test_func(void){}
  5954. #ifdef __cplusplus
  5955. }
  5956. #endif
  5957. int main(){nm_test_var='a';nm_test_func();return(0);}
  5958. _LT_EOF
  5959. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5960. (eval $ac_compile) 2>&5
  5961. ac_status=$?
  5962. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5963. test $ac_status = 0; }; then
  5964. # Now try to grab the symbols.
  5965. nlist=conftest.nm
  5966. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5967. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5968. ac_status=$?
  5969. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5970. test $ac_status = 0; } && test -s "$nlist"; then
  5971. # Try sorting and uniquifying the output.
  5972. if sort "$nlist" | uniq > "$nlist"T; then
  5973. mv -f "$nlist"T "$nlist"
  5974. else
  5975. rm -f "$nlist"T
  5976. fi
  5977. # Make sure that we snagged all the symbols we need.
  5978. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5979. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5980. cat <<_LT_EOF > conftest.$ac_ext
  5981. #ifdef __cplusplus
  5982. extern "C" {
  5983. #endif
  5984. _LT_EOF
  5985. # Now generate the symbol file.
  5986. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5987. cat <<_LT_EOF >> conftest.$ac_ext
  5988. /* The mapping between symbol names and symbols. */
  5989. const struct {
  5990. const char *name;
  5991. void *address;
  5992. }
  5993. lt__PROGRAM__LTX_preloaded_symbols[] =
  5994. {
  5995. { "@PROGRAM@", (void *) 0 },
  5996. _LT_EOF
  5997. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5998. cat <<\_LT_EOF >> conftest.$ac_ext
  5999. {0, (void *) 0}
  6000. };
  6001. /* This works around a problem in FreeBSD linker */
  6002. #ifdef FREEBSD_WORKAROUND
  6003. static const void *lt_preloaded_setup() {
  6004. return lt__PROGRAM__LTX_preloaded_symbols;
  6005. }
  6006. #endif
  6007. #ifdef __cplusplus
  6008. }
  6009. #endif
  6010. _LT_EOF
  6011. # Now try linking the two files.
  6012. mv conftest.$ac_objext conftstm.$ac_objext
  6013. lt_save_LIBS="$LIBS"
  6014. lt_save_CFLAGS="$CFLAGS"
  6015. LIBS="conftstm.$ac_objext"
  6016. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  6017. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  6018. (eval $ac_link) 2>&5
  6019. ac_status=$?
  6020. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6021. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  6022. pipe_works=yes
  6023. fi
  6024. LIBS="$lt_save_LIBS"
  6025. CFLAGS="$lt_save_CFLAGS"
  6026. else
  6027. echo "cannot find nm_test_func in $nlist" >&5
  6028. fi
  6029. else
  6030. echo "cannot find nm_test_var in $nlist" >&5
  6031. fi
  6032. else
  6033. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  6034. fi
  6035. else
  6036. echo "$progname: failed program was:" >&5
  6037. cat conftest.$ac_ext >&5
  6038. fi
  6039. rm -rf conftest* conftst*
  6040. # Do not use the global_symbol_pipe unless it works.
  6041. if test "$pipe_works" = yes; then
  6042. break
  6043. else
  6044. lt_cv_sys_global_symbol_pipe=
  6045. fi
  6046. done
  6047. fi
  6048. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6049. lt_cv_sys_global_symbol_to_cdecl=
  6050. fi
  6051. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6052. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  6053. $as_echo "failed" >&6; }
  6054. else
  6055. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  6056. $as_echo "ok" >&6; }
  6057. fi
  6058. # Check whether --enable-libtool-lock was given.
  6059. if test "${enable_libtool_lock+set}" = set; then :
  6060. enableval=$enable_libtool_lock;
  6061. fi
  6062. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  6063. # Some flags need to be propagated to the compiler or linker for good
  6064. # libtool support.
  6065. case $host in
  6066. ia64-*-hpux*)
  6067. # Find out which ABI we are using.
  6068. echo 'int i;' > conftest.$ac_ext
  6069. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6070. (eval $ac_compile) 2>&5
  6071. ac_status=$?
  6072. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6073. test $ac_status = 0; }; then
  6074. case `/usr/bin/file conftest.$ac_objext` in
  6075. *ELF-32*)
  6076. HPUX_IA64_MODE="32"
  6077. ;;
  6078. *ELF-64*)
  6079. HPUX_IA64_MODE="64"
  6080. ;;
  6081. esac
  6082. fi
  6083. rm -rf conftest*
  6084. ;;
  6085. *-*-irix6*)
  6086. # Find out which ABI we are using.
  6087. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6088. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6089. (eval $ac_compile) 2>&5
  6090. ac_status=$?
  6091. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6092. test $ac_status = 0; }; then
  6093. if test "$lt_cv_prog_gnu_ld" = yes; then
  6094. case `/usr/bin/file conftest.$ac_objext` in
  6095. *32-bit*)
  6096. LD="${LD-ld} -melf32bsmip"
  6097. ;;
  6098. *N32*)
  6099. LD="${LD-ld} -melf32bmipn32"
  6100. ;;
  6101. *64-bit*)
  6102. LD="${LD-ld} -melf64bmip"
  6103. ;;
  6104. esac
  6105. else
  6106. case `/usr/bin/file conftest.$ac_objext` in
  6107. *32-bit*)
  6108. LD="${LD-ld} -32"
  6109. ;;
  6110. *N32*)
  6111. LD="${LD-ld} -n32"
  6112. ;;
  6113. *64-bit*)
  6114. LD="${LD-ld} -64"
  6115. ;;
  6116. esac
  6117. fi
  6118. fi
  6119. rm -rf conftest*
  6120. ;;
  6121. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  6122. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  6123. # Find out which ABI we are using.
  6124. echo 'int i;' > conftest.$ac_ext
  6125. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6126. (eval $ac_compile) 2>&5
  6127. ac_status=$?
  6128. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6129. test $ac_status = 0; }; then
  6130. case `/usr/bin/file conftest.o` in
  6131. *32-bit*)
  6132. case $host in
  6133. x86_64-*kfreebsd*-gnu)
  6134. LD="${LD-ld} -m elf_i386_fbsd"
  6135. ;;
  6136. x86_64-*linux*)
  6137. LD="${LD-ld} -m elf_i386"
  6138. ;;
  6139. ppc64-*linux*|powerpc64-*linux*)
  6140. LD="${LD-ld} -m elf32ppclinux"
  6141. ;;
  6142. s390x-*linux*)
  6143. LD="${LD-ld} -m elf_s390"
  6144. ;;
  6145. sparc64-*linux*)
  6146. LD="${LD-ld} -m elf32_sparc"
  6147. ;;
  6148. esac
  6149. ;;
  6150. *64-bit*)
  6151. case $host in
  6152. x86_64-*kfreebsd*-gnu)
  6153. LD="${LD-ld} -m elf_x86_64_fbsd"
  6154. ;;
  6155. x86_64-*linux*)
  6156. LD="${LD-ld} -m elf_x86_64"
  6157. ;;
  6158. ppc*-*linux*|powerpc*-*linux*)
  6159. LD="${LD-ld} -m elf64ppc"
  6160. ;;
  6161. s390*-*linux*|s390*-*tpf*)
  6162. LD="${LD-ld} -m elf64_s390"
  6163. ;;
  6164. sparc*-*linux*)
  6165. LD="${LD-ld} -m elf64_sparc"
  6166. ;;
  6167. esac
  6168. ;;
  6169. esac
  6170. fi
  6171. rm -rf conftest*
  6172. ;;
  6173. *-*-sco3.2v5*)
  6174. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6175. SAVE_CFLAGS="$CFLAGS"
  6176. CFLAGS="$CFLAGS -belf"
  6177. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  6178. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  6179. if test "${lt_cv_cc_needs_belf+set}" = set; then :
  6180. $as_echo_n "(cached) " >&6
  6181. else
  6182. ac_ext=c
  6183. ac_cpp='$CPP $CPPFLAGS'
  6184. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6185. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6186. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6187. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6188. /* end confdefs.h. */
  6189. int
  6190. main ()
  6191. {
  6192. ;
  6193. return 0;
  6194. }
  6195. _ACEOF
  6196. if ac_fn_c_try_link "$LINENO"; then :
  6197. lt_cv_cc_needs_belf=yes
  6198. else
  6199. lt_cv_cc_needs_belf=no
  6200. fi
  6201. rm -f core conftest.err conftest.$ac_objext \
  6202. conftest$ac_exeext conftest.$ac_ext
  6203. ac_ext=c
  6204. ac_cpp='$CPP $CPPFLAGS'
  6205. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6206. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6207. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6208. fi
  6209. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  6210. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  6211. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  6212. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6213. CFLAGS="$SAVE_CFLAGS"
  6214. fi
  6215. ;;
  6216. sparc*-*solaris*)
  6217. # Find out which ABI we are using.
  6218. echo 'int i;' > conftest.$ac_ext
  6219. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6220. (eval $ac_compile) 2>&5
  6221. ac_status=$?
  6222. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6223. test $ac_status = 0; }; then
  6224. case `/usr/bin/file conftest.o` in
  6225. *64-bit*)
  6226. case $lt_cv_prog_gnu_ld in
  6227. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  6228. *)
  6229. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6230. LD="${LD-ld} -64"
  6231. fi
  6232. ;;
  6233. esac
  6234. ;;
  6235. esac
  6236. fi
  6237. rm -rf conftest*
  6238. ;;
  6239. esac
  6240. need_locks="$enable_libtool_lock"
  6241. case $host_os in
  6242. rhapsody* | darwin*)
  6243. if test -n "$ac_tool_prefix"; then
  6244. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6245. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6246. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6247. $as_echo_n "checking for $ac_word... " >&6; }
  6248. if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
  6249. $as_echo_n "(cached) " >&6
  6250. else
  6251. if test -n "$DSYMUTIL"; then
  6252. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6253. else
  6254. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6255. for as_dir in $PATH
  6256. do
  6257. IFS=$as_save_IFS
  6258. test -z "$as_dir" && as_dir=.
  6259. for ac_exec_ext in '' $ac_executable_extensions; do
  6260. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6261. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6262. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6263. break 2
  6264. fi
  6265. done
  6266. done
  6267. IFS=$as_save_IFS
  6268. fi
  6269. fi
  6270. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6271. if test -n "$DSYMUTIL"; then
  6272. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  6273. $as_echo "$DSYMUTIL" >&6; }
  6274. else
  6275. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6276. $as_echo "no" >&6; }
  6277. fi
  6278. fi
  6279. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6280. ac_ct_DSYMUTIL=$DSYMUTIL
  6281. # Extract the first word of "dsymutil", so it can be a program name with args.
  6282. set dummy dsymutil; ac_word=$2
  6283. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6284. $as_echo_n "checking for $ac_word... " >&6; }
  6285. if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
  6286. $as_echo_n "(cached) " >&6
  6287. else
  6288. if test -n "$ac_ct_DSYMUTIL"; then
  6289. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6290. else
  6291. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6292. for as_dir in $PATH
  6293. do
  6294. IFS=$as_save_IFS
  6295. test -z "$as_dir" && as_dir=.
  6296. for ac_exec_ext in '' $ac_executable_extensions; do
  6297. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6298. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6299. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6300. break 2
  6301. fi
  6302. done
  6303. done
  6304. IFS=$as_save_IFS
  6305. fi
  6306. fi
  6307. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6308. if test -n "$ac_ct_DSYMUTIL"; then
  6309. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  6310. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  6311. else
  6312. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6313. $as_echo "no" >&6; }
  6314. fi
  6315. if test "x$ac_ct_DSYMUTIL" = x; then
  6316. DSYMUTIL=":"
  6317. else
  6318. case $cross_compiling:$ac_tool_warned in
  6319. yes:)
  6320. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6321. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6322. ac_tool_warned=yes ;;
  6323. esac
  6324. DSYMUTIL=$ac_ct_DSYMUTIL
  6325. fi
  6326. else
  6327. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6328. fi
  6329. if test -n "$ac_tool_prefix"; then
  6330. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6331. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6332. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6333. $as_echo_n "checking for $ac_word... " >&6; }
  6334. if test "${ac_cv_prog_NMEDIT+set}" = set; then :
  6335. $as_echo_n "(cached) " >&6
  6336. else
  6337. if test -n "$NMEDIT"; then
  6338. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6339. else
  6340. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6341. for as_dir in $PATH
  6342. do
  6343. IFS=$as_save_IFS
  6344. test -z "$as_dir" && as_dir=.
  6345. for ac_exec_ext in '' $ac_executable_extensions; do
  6346. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6347. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6348. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6349. break 2
  6350. fi
  6351. done
  6352. done
  6353. IFS=$as_save_IFS
  6354. fi
  6355. fi
  6356. NMEDIT=$ac_cv_prog_NMEDIT
  6357. if test -n "$NMEDIT"; then
  6358. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  6359. $as_echo "$NMEDIT" >&6; }
  6360. else
  6361. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6362. $as_echo "no" >&6; }
  6363. fi
  6364. fi
  6365. if test -z "$ac_cv_prog_NMEDIT"; then
  6366. ac_ct_NMEDIT=$NMEDIT
  6367. # Extract the first word of "nmedit", so it can be a program name with args.
  6368. set dummy nmedit; ac_word=$2
  6369. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6370. $as_echo_n "checking for $ac_word... " >&6; }
  6371. if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
  6372. $as_echo_n "(cached) " >&6
  6373. else
  6374. if test -n "$ac_ct_NMEDIT"; then
  6375. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6376. else
  6377. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6378. for as_dir in $PATH
  6379. do
  6380. IFS=$as_save_IFS
  6381. test -z "$as_dir" && as_dir=.
  6382. for ac_exec_ext in '' $ac_executable_extensions; do
  6383. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6384. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6385. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6386. break 2
  6387. fi
  6388. done
  6389. done
  6390. IFS=$as_save_IFS
  6391. fi
  6392. fi
  6393. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6394. if test -n "$ac_ct_NMEDIT"; then
  6395. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  6396. $as_echo "$ac_ct_NMEDIT" >&6; }
  6397. else
  6398. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6399. $as_echo "no" >&6; }
  6400. fi
  6401. if test "x$ac_ct_NMEDIT" = x; then
  6402. NMEDIT=":"
  6403. else
  6404. case $cross_compiling:$ac_tool_warned in
  6405. yes:)
  6406. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6407. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6408. ac_tool_warned=yes ;;
  6409. esac
  6410. NMEDIT=$ac_ct_NMEDIT
  6411. fi
  6412. else
  6413. NMEDIT="$ac_cv_prog_NMEDIT"
  6414. fi
  6415. if test -n "$ac_tool_prefix"; then
  6416. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6417. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6418. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6419. $as_echo_n "checking for $ac_word... " >&6; }
  6420. if test "${ac_cv_prog_LIPO+set}" = set; then :
  6421. $as_echo_n "(cached) " >&6
  6422. else
  6423. if test -n "$LIPO"; then
  6424. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6425. else
  6426. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6427. for as_dir in $PATH
  6428. do
  6429. IFS=$as_save_IFS
  6430. test -z "$as_dir" && as_dir=.
  6431. for ac_exec_ext in '' $ac_executable_extensions; do
  6432. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6433. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6434. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6435. break 2
  6436. fi
  6437. done
  6438. done
  6439. IFS=$as_save_IFS
  6440. fi
  6441. fi
  6442. LIPO=$ac_cv_prog_LIPO
  6443. if test -n "$LIPO"; then
  6444. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  6445. $as_echo "$LIPO" >&6; }
  6446. else
  6447. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6448. $as_echo "no" >&6; }
  6449. fi
  6450. fi
  6451. if test -z "$ac_cv_prog_LIPO"; then
  6452. ac_ct_LIPO=$LIPO
  6453. # Extract the first word of "lipo", so it can be a program name with args.
  6454. set dummy lipo; ac_word=$2
  6455. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6456. $as_echo_n "checking for $ac_word... " >&6; }
  6457. if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
  6458. $as_echo_n "(cached) " >&6
  6459. else
  6460. if test -n "$ac_ct_LIPO"; then
  6461. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6462. else
  6463. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6464. for as_dir in $PATH
  6465. do
  6466. IFS=$as_save_IFS
  6467. test -z "$as_dir" && as_dir=.
  6468. for ac_exec_ext in '' $ac_executable_extensions; do
  6469. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6470. ac_cv_prog_ac_ct_LIPO="lipo"
  6471. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6472. break 2
  6473. fi
  6474. done
  6475. done
  6476. IFS=$as_save_IFS
  6477. fi
  6478. fi
  6479. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6480. if test -n "$ac_ct_LIPO"; then
  6481. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6482. $as_echo "$ac_ct_LIPO" >&6; }
  6483. else
  6484. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6485. $as_echo "no" >&6; }
  6486. fi
  6487. if test "x$ac_ct_LIPO" = x; then
  6488. LIPO=":"
  6489. else
  6490. case $cross_compiling:$ac_tool_warned in
  6491. yes:)
  6492. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6493. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6494. ac_tool_warned=yes ;;
  6495. esac
  6496. LIPO=$ac_ct_LIPO
  6497. fi
  6498. else
  6499. LIPO="$ac_cv_prog_LIPO"
  6500. fi
  6501. if test -n "$ac_tool_prefix"; then
  6502. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6503. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6504. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6505. $as_echo_n "checking for $ac_word... " >&6; }
  6506. if test "${ac_cv_prog_OTOOL+set}" = set; then :
  6507. $as_echo_n "(cached) " >&6
  6508. else
  6509. if test -n "$OTOOL"; then
  6510. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6511. else
  6512. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6513. for as_dir in $PATH
  6514. do
  6515. IFS=$as_save_IFS
  6516. test -z "$as_dir" && as_dir=.
  6517. for ac_exec_ext in '' $ac_executable_extensions; do
  6518. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6519. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6520. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6521. break 2
  6522. fi
  6523. done
  6524. done
  6525. IFS=$as_save_IFS
  6526. fi
  6527. fi
  6528. OTOOL=$ac_cv_prog_OTOOL
  6529. if test -n "$OTOOL"; then
  6530. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6531. $as_echo "$OTOOL" >&6; }
  6532. else
  6533. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6534. $as_echo "no" >&6; }
  6535. fi
  6536. fi
  6537. if test -z "$ac_cv_prog_OTOOL"; then
  6538. ac_ct_OTOOL=$OTOOL
  6539. # Extract the first word of "otool", so it can be a program name with args.
  6540. set dummy otool; ac_word=$2
  6541. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6542. $as_echo_n "checking for $ac_word... " >&6; }
  6543. if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
  6544. $as_echo_n "(cached) " >&6
  6545. else
  6546. if test -n "$ac_ct_OTOOL"; then
  6547. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6548. else
  6549. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6550. for as_dir in $PATH
  6551. do
  6552. IFS=$as_save_IFS
  6553. test -z "$as_dir" && as_dir=.
  6554. for ac_exec_ext in '' $ac_executable_extensions; do
  6555. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6556. ac_cv_prog_ac_ct_OTOOL="otool"
  6557. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6558. break 2
  6559. fi
  6560. done
  6561. done
  6562. IFS=$as_save_IFS
  6563. fi
  6564. fi
  6565. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6566. if test -n "$ac_ct_OTOOL"; then
  6567. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  6568. $as_echo "$ac_ct_OTOOL" >&6; }
  6569. else
  6570. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6571. $as_echo "no" >&6; }
  6572. fi
  6573. if test "x$ac_ct_OTOOL" = x; then
  6574. OTOOL=":"
  6575. else
  6576. case $cross_compiling:$ac_tool_warned in
  6577. yes:)
  6578. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6579. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6580. ac_tool_warned=yes ;;
  6581. esac
  6582. OTOOL=$ac_ct_OTOOL
  6583. fi
  6584. else
  6585. OTOOL="$ac_cv_prog_OTOOL"
  6586. fi
  6587. if test -n "$ac_tool_prefix"; then
  6588. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6589. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6590. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6591. $as_echo_n "checking for $ac_word... " >&6; }
  6592. if test "${ac_cv_prog_OTOOL64+set}" = set; then :
  6593. $as_echo_n "(cached) " >&6
  6594. else
  6595. if test -n "$OTOOL64"; then
  6596. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  6597. else
  6598. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6599. for as_dir in $PATH
  6600. do
  6601. IFS=$as_save_IFS
  6602. test -z "$as_dir" && as_dir=.
  6603. for ac_exec_ext in '' $ac_executable_extensions; do
  6604. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6605. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  6606. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6607. break 2
  6608. fi
  6609. done
  6610. done
  6611. IFS=$as_save_IFS
  6612. fi
  6613. fi
  6614. OTOOL64=$ac_cv_prog_OTOOL64
  6615. if test -n "$OTOOL64"; then
  6616. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  6617. $as_echo "$OTOOL64" >&6; }
  6618. else
  6619. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6620. $as_echo "no" >&6; }
  6621. fi
  6622. fi
  6623. if test -z "$ac_cv_prog_OTOOL64"; then
  6624. ac_ct_OTOOL64=$OTOOL64
  6625. # Extract the first word of "otool64", so it can be a program name with args.
  6626. set dummy otool64; ac_word=$2
  6627. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6628. $as_echo_n "checking for $ac_word... " >&6; }
  6629. if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
  6630. $as_echo_n "(cached) " >&6
  6631. else
  6632. if test -n "$ac_ct_OTOOL64"; then
  6633. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6634. else
  6635. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6636. for as_dir in $PATH
  6637. do
  6638. IFS=$as_save_IFS
  6639. test -z "$as_dir" && as_dir=.
  6640. for ac_exec_ext in '' $ac_executable_extensions; do
  6641. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6642. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6643. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6644. break 2
  6645. fi
  6646. done
  6647. done
  6648. IFS=$as_save_IFS
  6649. fi
  6650. fi
  6651. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6652. if test -n "$ac_ct_OTOOL64"; then
  6653. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6654. $as_echo "$ac_ct_OTOOL64" >&6; }
  6655. else
  6656. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6657. $as_echo "no" >&6; }
  6658. fi
  6659. if test "x$ac_ct_OTOOL64" = x; then
  6660. OTOOL64=":"
  6661. else
  6662. case $cross_compiling:$ac_tool_warned in
  6663. yes:)
  6664. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6665. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6666. ac_tool_warned=yes ;;
  6667. esac
  6668. OTOOL64=$ac_ct_OTOOL64
  6669. fi
  6670. else
  6671. OTOOL64="$ac_cv_prog_OTOOL64"
  6672. fi
  6673. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  6674. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6675. if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
  6676. $as_echo_n "(cached) " >&6
  6677. else
  6678. lt_cv_apple_cc_single_mod=no
  6679. if test -z "${LT_MULTI_MODULE}"; then
  6680. # By default we will add the -single_module flag. You can override
  6681. # by either setting the environment variable LT_MULTI_MODULE
  6682. # non-empty at configure time, or by adding -multi_module to the
  6683. # link flags.
  6684. rm -rf libconftest.dylib*
  6685. echo "int foo(void){return 1;}" > conftest.c
  6686. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6687. -dynamiclib -Wl,-single_module conftest.c" >&5
  6688. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6689. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6690. _lt_result=$?
  6691. if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  6692. lt_cv_apple_cc_single_mod=yes
  6693. else
  6694. cat conftest.err >&5
  6695. fi
  6696. rm -rf libconftest.dylib*
  6697. rm -f conftest.*
  6698. fi
  6699. fi
  6700. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  6701. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6702. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  6703. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6704. if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
  6705. $as_echo_n "(cached) " >&6
  6706. else
  6707. lt_cv_ld_exported_symbols_list=no
  6708. save_LDFLAGS=$LDFLAGS
  6709. echo "_main" > conftest.sym
  6710. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6711. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6712. /* end confdefs.h. */
  6713. int
  6714. main ()
  6715. {
  6716. ;
  6717. return 0;
  6718. }
  6719. _ACEOF
  6720. if ac_fn_c_try_link "$LINENO"; then :
  6721. lt_cv_ld_exported_symbols_list=yes
  6722. else
  6723. lt_cv_ld_exported_symbols_list=no
  6724. fi
  6725. rm -f core conftest.err conftest.$ac_objext \
  6726. conftest$ac_exeext conftest.$ac_ext
  6727. LDFLAGS="$save_LDFLAGS"
  6728. fi
  6729. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  6730. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6731. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  6732. $as_echo_n "checking for -force_load linker flag... " >&6; }
  6733. if test "${lt_cv_ld_force_load+set}" = set; then :
  6734. $as_echo_n "(cached) " >&6
  6735. else
  6736. lt_cv_ld_force_load=no
  6737. cat > conftest.c << _LT_EOF
  6738. int forced_loaded() { return 2;}
  6739. _LT_EOF
  6740. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  6741. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  6742. echo "$AR cru libconftest.a conftest.o" >&5
  6743. $AR cru libconftest.a conftest.o 2>&5
  6744. echo "$RANLIB libconftest.a" >&5
  6745. $RANLIB libconftest.a 2>&5
  6746. cat > conftest.c << _LT_EOF
  6747. int main() { return 0;}
  6748. _LT_EOF
  6749. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  6750. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  6751. _lt_result=$?
  6752. if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
  6753. lt_cv_ld_force_load=yes
  6754. else
  6755. cat conftest.err >&5
  6756. fi
  6757. rm -f conftest.err libconftest.a conftest conftest.c
  6758. rm -rf conftest.dSYM
  6759. fi
  6760. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  6761. $as_echo "$lt_cv_ld_force_load" >&6; }
  6762. case $host_os in
  6763. rhapsody* | darwin1.[012])
  6764. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  6765. darwin1.*)
  6766. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6767. darwin*) # darwin 5.x on
  6768. # if running on 10.5 or later, the deployment target defaults
  6769. # to the OS version, if on x86, and 10.4, the deployment
  6770. # target defaults to 10.4. Don't you love it?
  6771. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  6772. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  6773. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6774. 10.[012]*)
  6775. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6776. 10.*)
  6777. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6778. esac
  6779. ;;
  6780. esac
  6781. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  6782. _lt_dar_single_mod='$single_module'
  6783. fi
  6784. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  6785. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  6786. else
  6787. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6788. fi
  6789. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  6790. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6791. else
  6792. _lt_dsymutil=
  6793. fi
  6794. ;;
  6795. esac
  6796. ac_ext=c
  6797. ac_cpp='$CPP $CPPFLAGS'
  6798. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6799. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6800. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6801. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  6802. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  6803. # On Suns, sometimes $CPP names a directory.
  6804. if test -n "$CPP" && test -d "$CPP"; then
  6805. CPP=
  6806. fi
  6807. if test -z "$CPP"; then
  6808. if test "${ac_cv_prog_CPP+set}" = set; then :
  6809. $as_echo_n "(cached) " >&6
  6810. else
  6811. # Double quotes because CPP needs to be expanded
  6812. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6813. do
  6814. ac_preproc_ok=false
  6815. for ac_c_preproc_warn_flag in '' yes
  6816. do
  6817. # Use a header file that comes with gcc, so configuring glibc
  6818. # with a fresh cross-compiler works.
  6819. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6820. # <limits.h> exists even on freestanding compilers.
  6821. # On the NeXT, cc -E runs the code through the compiler's parser,
  6822. # not just through cpp. "Syntax error" is here to catch this case.
  6823. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6824. /* end confdefs.h. */
  6825. #ifdef __STDC__
  6826. # include <limits.h>
  6827. #else
  6828. # include <assert.h>
  6829. #endif
  6830. Syntax error
  6831. _ACEOF
  6832. if ac_fn_c_try_cpp "$LINENO"; then :
  6833. else
  6834. # Broken: fails on valid input.
  6835. continue
  6836. fi
  6837. rm -f conftest.err conftest.$ac_ext
  6838. # OK, works on sane cases. Now check whether nonexistent headers
  6839. # can be detected and how.
  6840. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6841. /* end confdefs.h. */
  6842. #include <ac_nonexistent.h>
  6843. _ACEOF
  6844. if ac_fn_c_try_cpp "$LINENO"; then :
  6845. # Broken: success on invalid input.
  6846. continue
  6847. else
  6848. # Passes both tests.
  6849. ac_preproc_ok=:
  6850. break
  6851. fi
  6852. rm -f conftest.err conftest.$ac_ext
  6853. done
  6854. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6855. rm -f conftest.err conftest.$ac_ext
  6856. if $ac_preproc_ok; then :
  6857. break
  6858. fi
  6859. done
  6860. ac_cv_prog_CPP=$CPP
  6861. fi
  6862. CPP=$ac_cv_prog_CPP
  6863. else
  6864. ac_cv_prog_CPP=$CPP
  6865. fi
  6866. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  6867. $as_echo "$CPP" >&6; }
  6868. ac_preproc_ok=false
  6869. for ac_c_preproc_warn_flag in '' yes
  6870. do
  6871. # Use a header file that comes with gcc, so configuring glibc
  6872. # with a fresh cross-compiler works.
  6873. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6874. # <limits.h> exists even on freestanding compilers.
  6875. # On the NeXT, cc -E runs the code through the compiler's parser,
  6876. # not just through cpp. "Syntax error" is here to catch this case.
  6877. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6878. /* end confdefs.h. */
  6879. #ifdef __STDC__
  6880. # include <limits.h>
  6881. #else
  6882. # include <assert.h>
  6883. #endif
  6884. Syntax error
  6885. _ACEOF
  6886. if ac_fn_c_try_cpp "$LINENO"; then :
  6887. else
  6888. # Broken: fails on valid input.
  6889. continue
  6890. fi
  6891. rm -f conftest.err conftest.$ac_ext
  6892. # OK, works on sane cases. Now check whether nonexistent headers
  6893. # can be detected and how.
  6894. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6895. /* end confdefs.h. */
  6896. #include <ac_nonexistent.h>
  6897. _ACEOF
  6898. if ac_fn_c_try_cpp "$LINENO"; then :
  6899. # Broken: success on invalid input.
  6900. continue
  6901. else
  6902. # Passes both tests.
  6903. ac_preproc_ok=:
  6904. break
  6905. fi
  6906. rm -f conftest.err conftest.$ac_ext
  6907. done
  6908. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6909. rm -f conftest.err conftest.$ac_ext
  6910. if $ac_preproc_ok; then :
  6911. else
  6912. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6913. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6914. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  6915. See \`config.log' for more details" "$LINENO" 5; }
  6916. fi
  6917. ac_ext=c
  6918. ac_cpp='$CPP $CPPFLAGS'
  6919. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6920. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6921. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6922. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6923. $as_echo_n "checking for ANSI C header files... " >&6; }
  6924. if test "${ac_cv_header_stdc+set}" = set; then :
  6925. $as_echo_n "(cached) " >&6
  6926. else
  6927. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6928. /* end confdefs.h. */
  6929. #include <stdlib.h>
  6930. #include <stdarg.h>
  6931. #include <string.h>
  6932. #include <float.h>
  6933. int
  6934. main ()
  6935. {
  6936. ;
  6937. return 0;
  6938. }
  6939. _ACEOF
  6940. if ac_fn_c_try_compile "$LINENO"; then :
  6941. ac_cv_header_stdc=yes
  6942. else
  6943. ac_cv_header_stdc=no
  6944. fi
  6945. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6946. if test $ac_cv_header_stdc = yes; then
  6947. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6948. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6949. /* end confdefs.h. */
  6950. #include <string.h>
  6951. _ACEOF
  6952. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6953. $EGREP "memchr" >/dev/null 2>&1; then :
  6954. else
  6955. ac_cv_header_stdc=no
  6956. fi
  6957. rm -f conftest*
  6958. fi
  6959. if test $ac_cv_header_stdc = yes; then
  6960. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6961. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6962. /* end confdefs.h. */
  6963. #include <stdlib.h>
  6964. _ACEOF
  6965. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6966. $EGREP "free" >/dev/null 2>&1; then :
  6967. else
  6968. ac_cv_header_stdc=no
  6969. fi
  6970. rm -f conftest*
  6971. fi
  6972. if test $ac_cv_header_stdc = yes; then
  6973. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6974. if test "$cross_compiling" = yes; then :
  6975. :
  6976. else
  6977. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6978. /* end confdefs.h. */
  6979. #include <ctype.h>
  6980. #include <stdlib.h>
  6981. #if ((' ' & 0x0FF) == 0x020)
  6982. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6983. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6984. #else
  6985. # define ISLOWER(c) \
  6986. (('a' <= (c) && (c) <= 'i') \
  6987. || ('j' <= (c) && (c) <= 'r') \
  6988. || ('s' <= (c) && (c) <= 'z'))
  6989. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6990. #endif
  6991. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6992. int
  6993. main ()
  6994. {
  6995. int i;
  6996. for (i = 0; i < 256; i++)
  6997. if (XOR (islower (i), ISLOWER (i))
  6998. || toupper (i) != TOUPPER (i))
  6999. return 2;
  7000. return 0;
  7001. }
  7002. _ACEOF
  7003. if ac_fn_c_try_run "$LINENO"; then :
  7004. else
  7005. ac_cv_header_stdc=no
  7006. fi
  7007. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  7008. conftest.$ac_objext conftest.beam conftest.$ac_ext
  7009. fi
  7010. fi
  7011. fi
  7012. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  7013. $as_echo "$ac_cv_header_stdc" >&6; }
  7014. if test $ac_cv_header_stdc = yes; then
  7015. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  7016. fi
  7017. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  7018. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  7019. inttypes.h stdint.h unistd.h
  7020. do :
  7021. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7022. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  7023. "
  7024. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  7025. cat >>confdefs.h <<_ACEOF
  7026. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7027. _ACEOF
  7028. fi
  7029. done
  7030. for ac_header in dlfcn.h
  7031. do :
  7032. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  7033. "
  7034. if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
  7035. cat >>confdefs.h <<_ACEOF
  7036. #define HAVE_DLFCN_H 1
  7037. _ACEOF
  7038. fi
  7039. done
  7040. # Set options
  7041. enable_dlopen=no
  7042. enable_win32_dll=no
  7043. # Check whether --enable-shared was given.
  7044. if test "${enable_shared+set}" = set; then :
  7045. enableval=$enable_shared; p=${PACKAGE-default}
  7046. case $enableval in
  7047. yes) enable_shared=yes ;;
  7048. no) enable_shared=no ;;
  7049. *)
  7050. enable_shared=no
  7051. # Look at the argument we got. We use all the common list separators.
  7052. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7053. for pkg in $enableval; do
  7054. IFS="$lt_save_ifs"
  7055. if test "X$pkg" = "X$p"; then
  7056. enable_shared=yes
  7057. fi
  7058. done
  7059. IFS="$lt_save_ifs"
  7060. ;;
  7061. esac
  7062. else
  7063. enable_shared=yes
  7064. fi
  7065. # Check whether --with-pic was given.
  7066. if test "${with_pic+set}" = set; then :
  7067. withval=$with_pic; pic_mode="$withval"
  7068. else
  7069. pic_mode=default
  7070. fi
  7071. test -z "$pic_mode" && pic_mode=default
  7072. # Check whether --enable-fast-install was given.
  7073. if test "${enable_fast_install+set}" = set; then :
  7074. enableval=$enable_fast_install; p=${PACKAGE-default}
  7075. case $enableval in
  7076. yes) enable_fast_install=yes ;;
  7077. no) enable_fast_install=no ;;
  7078. *)
  7079. enable_fast_install=no
  7080. # Look at the argument we got. We use all the common list separators.
  7081. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7082. for pkg in $enableval; do
  7083. IFS="$lt_save_ifs"
  7084. if test "X$pkg" = "X$p"; then
  7085. enable_fast_install=yes
  7086. fi
  7087. done
  7088. IFS="$lt_save_ifs"
  7089. ;;
  7090. esac
  7091. else
  7092. enable_fast_install=yes
  7093. fi
  7094. # This can be used to rebuild libtool when needed
  7095. LIBTOOL_DEPS="$ltmain"
  7096. # Always use our own libtool.
  7097. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7098. test -z "$LN_S" && LN_S="ln -s"
  7099. if test -n "${ZSH_VERSION+set}" ; then
  7100. setopt NO_GLOB_SUBST
  7101. fi
  7102. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7103. $as_echo_n "checking for objdir... " >&6; }
  7104. if test "${lt_cv_objdir+set}" = set; then :
  7105. $as_echo_n "(cached) " >&6
  7106. else
  7107. rm -f .libs 2>/dev/null
  7108. mkdir .libs 2>/dev/null
  7109. if test -d .libs; then
  7110. lt_cv_objdir=.libs
  7111. else
  7112. # MS-DOS does not allow filenames that begin with a dot.
  7113. lt_cv_objdir=_libs
  7114. fi
  7115. rmdir .libs 2>/dev/null
  7116. fi
  7117. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7118. $as_echo "$lt_cv_objdir" >&6; }
  7119. objdir=$lt_cv_objdir
  7120. cat >>confdefs.h <<_ACEOF
  7121. #define LT_OBJDIR "$lt_cv_objdir/"
  7122. _ACEOF
  7123. case $host_os in
  7124. aix3*)
  7125. # AIX sometimes has problems with the GCC collect2 program. For some
  7126. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7127. # vanish in a puff of smoke.
  7128. if test "X${COLLECT_NAMES+set}" != Xset; then
  7129. COLLECT_NAMES=
  7130. export COLLECT_NAMES
  7131. fi
  7132. ;;
  7133. esac
  7134. # Global variables:
  7135. ofile=libtool
  7136. can_build_shared=yes
  7137. # All known linkers require a `.a' archive for static linking (except MSVC,
  7138. # which needs '.lib').
  7139. libext=a
  7140. with_gnu_ld="$lt_cv_prog_gnu_ld"
  7141. old_CC="$CC"
  7142. old_CFLAGS="$CFLAGS"
  7143. # Set sane defaults for various variables
  7144. test -z "$CC" && CC=cc
  7145. test -z "$LTCC" && LTCC=$CC
  7146. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7147. test -z "$LD" && LD=ld
  7148. test -z "$ac_objext" && ac_objext=o
  7149. for cc_temp in $compiler""; do
  7150. case $cc_temp in
  7151. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  7152. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  7153. \-*) ;;
  7154. *) break;;
  7155. esac
  7156. done
  7157. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  7158. # Only perform the check for file, if the check method requires it
  7159. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7160. case $deplibs_check_method in
  7161. file_magic*)
  7162. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7163. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7164. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  7165. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  7166. $as_echo_n "(cached) " >&6
  7167. else
  7168. case $MAGIC_CMD in
  7169. [\\/*] | ?:[\\/]*)
  7170. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7171. ;;
  7172. *)
  7173. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7174. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7175. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7176. for ac_dir in $ac_dummy; do
  7177. IFS="$lt_save_ifs"
  7178. test -z "$ac_dir" && ac_dir=.
  7179. if test -f $ac_dir/${ac_tool_prefix}file; then
  7180. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  7181. if test -n "$file_magic_test_file"; then
  7182. case $deplibs_check_method in
  7183. "file_magic "*)
  7184. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7185. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7186. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7187. $EGREP "$file_magic_regex" > /dev/null; then
  7188. :
  7189. else
  7190. cat <<_LT_EOF 1>&2
  7191. *** Warning: the command libtool uses to detect shared libraries,
  7192. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7193. *** The result is that libtool may fail to recognize shared libraries
  7194. *** as such. This will affect the creation of libtool libraries that
  7195. *** depend on shared libraries, but programs linked with such libtool
  7196. *** libraries will work regardless of this problem. Nevertheless, you
  7197. *** may want to report the problem to your system manager and/or to
  7198. *** [email protected]
  7199. _LT_EOF
  7200. fi ;;
  7201. esac
  7202. fi
  7203. break
  7204. fi
  7205. done
  7206. IFS="$lt_save_ifs"
  7207. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7208. ;;
  7209. esac
  7210. fi
  7211. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7212. if test -n "$MAGIC_CMD"; then
  7213. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7214. $as_echo "$MAGIC_CMD" >&6; }
  7215. else
  7216. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7217. $as_echo "no" >&6; }
  7218. fi
  7219. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7220. if test -n "$ac_tool_prefix"; then
  7221. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7222. $as_echo_n "checking for file... " >&6; }
  7223. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  7224. $as_echo_n "(cached) " >&6
  7225. else
  7226. case $MAGIC_CMD in
  7227. [\\/*] | ?:[\\/]*)
  7228. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7229. ;;
  7230. *)
  7231. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7232. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7233. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7234. for ac_dir in $ac_dummy; do
  7235. IFS="$lt_save_ifs"
  7236. test -z "$ac_dir" && ac_dir=.
  7237. if test -f $ac_dir/file; then
  7238. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  7239. if test -n "$file_magic_test_file"; then
  7240. case $deplibs_check_method in
  7241. "file_magic "*)
  7242. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7243. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7244. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7245. $EGREP "$file_magic_regex" > /dev/null; then
  7246. :
  7247. else
  7248. cat <<_LT_EOF 1>&2
  7249. *** Warning: the command libtool uses to detect shared libraries,
  7250. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7251. *** The result is that libtool may fail to recognize shared libraries
  7252. *** as such. This will affect the creation of libtool libraries that
  7253. *** depend on shared libraries, but programs linked with such libtool
  7254. *** libraries will work regardless of this problem. Nevertheless, you
  7255. *** may want to report the problem to your system manager and/or to
  7256. *** [email protected]
  7257. _LT_EOF
  7258. fi ;;
  7259. esac
  7260. fi
  7261. break
  7262. fi
  7263. done
  7264. IFS="$lt_save_ifs"
  7265. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7266. ;;
  7267. esac
  7268. fi
  7269. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7270. if test -n "$MAGIC_CMD"; then
  7271. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7272. $as_echo "$MAGIC_CMD" >&6; }
  7273. else
  7274. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7275. $as_echo "no" >&6; }
  7276. fi
  7277. else
  7278. MAGIC_CMD=:
  7279. fi
  7280. fi
  7281. fi
  7282. ;;
  7283. esac
  7284. # Use C for the default configuration in the libtool script
  7285. lt_save_CC="$CC"
  7286. ac_ext=c
  7287. ac_cpp='$CPP $CPPFLAGS'
  7288. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7289. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7290. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7291. # Source file extension for C test sources.
  7292. ac_ext=c
  7293. # Object file extension for compiled C test sources.
  7294. objext=o
  7295. objext=$objext
  7296. # Code to be used in simple compile tests
  7297. lt_simple_compile_test_code="int some_variable = 0;"
  7298. # Code to be used in simple link tests
  7299. lt_simple_link_test_code='int main(){return(0);}'
  7300. # If no C compiler was specified, use CC.
  7301. LTCC=${LTCC-"$CC"}
  7302. # If no C compiler flags were specified, use CFLAGS.
  7303. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7304. # Allow CC to be a program name with arguments.
  7305. compiler=$CC
  7306. # Save the default compiler, since it gets overwritten when the other
  7307. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7308. compiler_DEFAULT=$CC
  7309. # save warnings/boilerplate of simple test code
  7310. ac_outfile=conftest.$ac_objext
  7311. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7312. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7313. _lt_compiler_boilerplate=`cat conftest.err`
  7314. $RM conftest*
  7315. ac_outfile=conftest.$ac_objext
  7316. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7317. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7318. _lt_linker_boilerplate=`cat conftest.err`
  7319. $RM -r conftest*
  7320. ## CAVEAT EMPTOR:
  7321. ## There is no encapsulation within the following macros, do not change
  7322. ## the running order or otherwise move them around unless you know exactly
  7323. ## what you are doing...
  7324. if test -n "$compiler"; then
  7325. lt_prog_compiler_no_builtin_flag=
  7326. if test "$GCC" = yes; then
  7327. case $cc_basename in
  7328. nvcc*)
  7329. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7330. *)
  7331. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7332. esac
  7333. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7334. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7335. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
  7336. $as_echo_n "(cached) " >&6
  7337. else
  7338. lt_cv_prog_compiler_rtti_exceptions=no
  7339. ac_outfile=conftest.$ac_objext
  7340. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7341. lt_compiler_flag="-fno-rtti -fno-exceptions"
  7342. # Insert the option either (1) after the last *FLAGS variable, or
  7343. # (2) before a word containing "conftest.", or (3) at the end.
  7344. # Note that $ac_compile itself does not contain backslashes and begins
  7345. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7346. # The option is referenced via a variable to avoid confusing sed.
  7347. lt_compile=`echo "$ac_compile" | $SED \
  7348. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7349. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7350. -e 's:$: $lt_compiler_flag:'`
  7351. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7352. (eval "$lt_compile" 2>conftest.err)
  7353. ac_status=$?
  7354. cat conftest.err >&5
  7355. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7356. if (exit $ac_status) && test -s "$ac_outfile"; then
  7357. # The compiler can only warn and ignore the option if not recognized
  7358. # So say no if there are warnings other than the usual output.
  7359. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7360. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7361. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7362. lt_cv_prog_compiler_rtti_exceptions=yes
  7363. fi
  7364. fi
  7365. $RM conftest*
  7366. fi
  7367. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7368. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7369. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  7370. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7371. else
  7372. :
  7373. fi
  7374. fi
  7375. lt_prog_compiler_wl=
  7376. lt_prog_compiler_pic=
  7377. lt_prog_compiler_static=
  7378. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7379. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7380. if test "$GCC" = yes; then
  7381. lt_prog_compiler_wl='-Wl,'
  7382. lt_prog_compiler_static='-static'
  7383. case $host_os in
  7384. aix*)
  7385. # All AIX code is PIC.
  7386. if test "$host_cpu" = ia64; then
  7387. # AIX 5 now supports IA64 processor
  7388. lt_prog_compiler_static='-Bstatic'
  7389. fi
  7390. ;;
  7391. amigaos*)
  7392. case $host_cpu in
  7393. powerpc)
  7394. # see comment about AmigaOS4 .so support
  7395. lt_prog_compiler_pic='-fPIC'
  7396. ;;
  7397. m68k)
  7398. # FIXME: we need at least 68020 code to build shared libraries, but
  7399. # adding the `-m68020' flag to GCC prevents building anything better,
  7400. # like `-m68040'.
  7401. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7402. ;;
  7403. esac
  7404. ;;
  7405. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7406. # PIC is the default for these OSes.
  7407. ;;
  7408. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7409. # This hack is so that the source file can tell whether it is being
  7410. # built for inclusion in a dll (and should export symbols for example).
  7411. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7412. # (--disable-auto-import) libraries
  7413. lt_prog_compiler_pic='-DDLL_EXPORT'
  7414. ;;
  7415. darwin* | rhapsody*)
  7416. # PIC is the default on this platform
  7417. # Common symbols not allowed in MH_DYLIB files
  7418. lt_prog_compiler_pic='-fno-common'
  7419. ;;
  7420. haiku*)
  7421. # PIC is the default for Haiku.
  7422. # The "-static" flag exists, but is broken.
  7423. lt_prog_compiler_static=
  7424. ;;
  7425. hpux*)
  7426. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7427. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7428. # sets the default TLS model and affects inlining.
  7429. case $host_cpu in
  7430. hppa*64*)
  7431. # +Z the default
  7432. ;;
  7433. *)
  7434. lt_prog_compiler_pic='-fPIC'
  7435. ;;
  7436. esac
  7437. ;;
  7438. interix[3-9]*)
  7439. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7440. # Instead, we relocate shared libraries at runtime.
  7441. ;;
  7442. msdosdjgpp*)
  7443. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7444. # on systems that don't support them.
  7445. lt_prog_compiler_can_build_shared=no
  7446. enable_shared=no
  7447. ;;
  7448. *nto* | *qnx*)
  7449. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7450. # it will coredump.
  7451. lt_prog_compiler_pic='-fPIC -shared'
  7452. ;;
  7453. sysv4*MP*)
  7454. if test -d /usr/nec; then
  7455. lt_prog_compiler_pic=-Kconform_pic
  7456. fi
  7457. ;;
  7458. *)
  7459. lt_prog_compiler_pic='-fPIC'
  7460. ;;
  7461. esac
  7462. case $cc_basename in
  7463. nvcc*) # Cuda Compiler Driver 2.2
  7464. lt_prog_compiler_wl='-Xlinker '
  7465. lt_prog_compiler_pic='-Xcompiler -fPIC'
  7466. ;;
  7467. esac
  7468. else
  7469. # PORTME Check for flag to pass linker flags through the system compiler.
  7470. case $host_os in
  7471. aix*)
  7472. lt_prog_compiler_wl='-Wl,'
  7473. if test "$host_cpu" = ia64; then
  7474. # AIX 5 now supports IA64 processor
  7475. lt_prog_compiler_static='-Bstatic'
  7476. else
  7477. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7478. fi
  7479. ;;
  7480. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7481. # This hack is so that the source file can tell whether it is being
  7482. # built for inclusion in a dll (and should export symbols for example).
  7483. lt_prog_compiler_pic='-DDLL_EXPORT'
  7484. ;;
  7485. hpux9* | hpux10* | hpux11*)
  7486. lt_prog_compiler_wl='-Wl,'
  7487. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7488. # not for PA HP-UX.
  7489. case $host_cpu in
  7490. hppa*64*|ia64*)
  7491. # +Z the default
  7492. ;;
  7493. *)
  7494. lt_prog_compiler_pic='+Z'
  7495. ;;
  7496. esac
  7497. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7498. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7499. ;;
  7500. irix5* | irix6* | nonstopux*)
  7501. lt_prog_compiler_wl='-Wl,'
  7502. # PIC (with -KPIC) is the default.
  7503. lt_prog_compiler_static='-non_shared'
  7504. ;;
  7505. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7506. case $cc_basename in
  7507. # old Intel for x86_64 which still supported -KPIC.
  7508. ecc*)
  7509. lt_prog_compiler_wl='-Wl,'
  7510. lt_prog_compiler_pic='-KPIC'
  7511. lt_prog_compiler_static='-static'
  7512. ;;
  7513. # icc used to be incompatible with GCC.
  7514. # ICC 10 doesn't accept -KPIC any more.
  7515. icc* | ifort*)
  7516. lt_prog_compiler_wl='-Wl,'
  7517. lt_prog_compiler_pic='-fPIC'
  7518. lt_prog_compiler_static='-static'
  7519. ;;
  7520. # Lahey Fortran 8.1.
  7521. lf95*)
  7522. lt_prog_compiler_wl='-Wl,'
  7523. lt_prog_compiler_pic='--shared'
  7524. lt_prog_compiler_static='--static'
  7525. ;;
  7526. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7527. # Portland Group compilers (*not* the Pentium gcc compiler,
  7528. # which looks to be a dead project)
  7529. lt_prog_compiler_wl='-Wl,'
  7530. lt_prog_compiler_pic='-fpic'
  7531. lt_prog_compiler_static='-Bstatic'
  7532. ;;
  7533. ccc*)
  7534. lt_prog_compiler_wl='-Wl,'
  7535. # All Alpha code is PIC.
  7536. lt_prog_compiler_static='-non_shared'
  7537. ;;
  7538. xl* | bgxl* | bgf* | mpixl*)
  7539. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7540. lt_prog_compiler_wl='-Wl,'
  7541. lt_prog_compiler_pic='-qpic'
  7542. lt_prog_compiler_static='-qstaticlink'
  7543. ;;
  7544. *)
  7545. case `$CC -V 2>&1 | sed 5q` in
  7546. *Sun\ F* | *Sun*Fortran*)
  7547. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7548. lt_prog_compiler_pic='-KPIC'
  7549. lt_prog_compiler_static='-Bstatic'
  7550. lt_prog_compiler_wl=''
  7551. ;;
  7552. *Sun\ C*)
  7553. # Sun C 5.9
  7554. lt_prog_compiler_pic='-KPIC'
  7555. lt_prog_compiler_static='-Bstatic'
  7556. lt_prog_compiler_wl='-Wl,'
  7557. ;;
  7558. esac
  7559. ;;
  7560. esac
  7561. ;;
  7562. newsos6)
  7563. lt_prog_compiler_pic='-KPIC'
  7564. lt_prog_compiler_static='-Bstatic'
  7565. ;;
  7566. *nto* | *qnx*)
  7567. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7568. # it will coredump.
  7569. lt_prog_compiler_pic='-fPIC -shared'
  7570. ;;
  7571. osf3* | osf4* | osf5*)
  7572. lt_prog_compiler_wl='-Wl,'
  7573. # All OSF/1 code is PIC.
  7574. lt_prog_compiler_static='-non_shared'
  7575. ;;
  7576. rdos*)
  7577. lt_prog_compiler_static='-non_shared'
  7578. ;;
  7579. solaris*)
  7580. lt_prog_compiler_pic='-KPIC'
  7581. lt_prog_compiler_static='-Bstatic'
  7582. case $cc_basename in
  7583. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  7584. lt_prog_compiler_wl='-Qoption ld ';;
  7585. *)
  7586. lt_prog_compiler_wl='-Wl,';;
  7587. esac
  7588. ;;
  7589. sunos4*)
  7590. lt_prog_compiler_wl='-Qoption ld '
  7591. lt_prog_compiler_pic='-PIC'
  7592. lt_prog_compiler_static='-Bstatic'
  7593. ;;
  7594. sysv4 | sysv4.2uw2* | sysv4.3*)
  7595. lt_prog_compiler_wl='-Wl,'
  7596. lt_prog_compiler_pic='-KPIC'
  7597. lt_prog_compiler_static='-Bstatic'
  7598. ;;
  7599. sysv4*MP*)
  7600. if test -d /usr/nec ;then
  7601. lt_prog_compiler_pic='-Kconform_pic'
  7602. lt_prog_compiler_static='-Bstatic'
  7603. fi
  7604. ;;
  7605. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7606. lt_prog_compiler_wl='-Wl,'
  7607. lt_prog_compiler_pic='-KPIC'
  7608. lt_prog_compiler_static='-Bstatic'
  7609. ;;
  7610. unicos*)
  7611. lt_prog_compiler_wl='-Wl,'
  7612. lt_prog_compiler_can_build_shared=no
  7613. ;;
  7614. uts4*)
  7615. lt_prog_compiler_pic='-pic'
  7616. lt_prog_compiler_static='-Bstatic'
  7617. ;;
  7618. *)
  7619. lt_prog_compiler_can_build_shared=no
  7620. ;;
  7621. esac
  7622. fi
  7623. case $host_os in
  7624. # For platforms which do not support PIC, -DPIC is meaningless:
  7625. *djgpp*)
  7626. lt_prog_compiler_pic=
  7627. ;;
  7628. *)
  7629. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7630. ;;
  7631. esac
  7632. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
  7633. $as_echo "$lt_prog_compiler_pic" >&6; }
  7634. #
  7635. # Check to make sure the PIC flag actually works.
  7636. #
  7637. if test -n "$lt_prog_compiler_pic"; then
  7638. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7639. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7640. if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
  7641. $as_echo_n "(cached) " >&6
  7642. else
  7643. lt_cv_prog_compiler_pic_works=no
  7644. ac_outfile=conftest.$ac_objext
  7645. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7646. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7647. # Insert the option either (1) after the last *FLAGS variable, or
  7648. # (2) before a word containing "conftest.", or (3) at the end.
  7649. # Note that $ac_compile itself does not contain backslashes and begins
  7650. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7651. # The option is referenced via a variable to avoid confusing sed.
  7652. lt_compile=`echo "$ac_compile" | $SED \
  7653. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7654. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7655. -e 's:$: $lt_compiler_flag:'`
  7656. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7657. (eval "$lt_compile" 2>conftest.err)
  7658. ac_status=$?
  7659. cat conftest.err >&5
  7660. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7661. if (exit $ac_status) && test -s "$ac_outfile"; then
  7662. # The compiler can only warn and ignore the option if not recognized
  7663. # So say no if there are warnings other than the usual output.
  7664. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7665. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7666. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7667. lt_cv_prog_compiler_pic_works=yes
  7668. fi
  7669. fi
  7670. $RM conftest*
  7671. fi
  7672. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7673. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7674. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7675. case $lt_prog_compiler_pic in
  7676. "" | " "*) ;;
  7677. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7678. esac
  7679. else
  7680. lt_prog_compiler_pic=
  7681. lt_prog_compiler_can_build_shared=no
  7682. fi
  7683. fi
  7684. #
  7685. # Check to make sure the static flag actually works.
  7686. #
  7687. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7688. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7689. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7690. if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
  7691. $as_echo_n "(cached) " >&6
  7692. else
  7693. lt_cv_prog_compiler_static_works=no
  7694. save_LDFLAGS="$LDFLAGS"
  7695. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7696. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7697. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7698. # The linker can only warn and ignore the option if not recognized
  7699. # So say no if there are warnings
  7700. if test -s conftest.err; then
  7701. # Append any errors to the config.log.
  7702. cat conftest.err 1>&5
  7703. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7704. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7705. if diff conftest.exp conftest.er2 >/dev/null; then
  7706. lt_cv_prog_compiler_static_works=yes
  7707. fi
  7708. else
  7709. lt_cv_prog_compiler_static_works=yes
  7710. fi
  7711. fi
  7712. $RM -r conftest*
  7713. LDFLAGS="$save_LDFLAGS"
  7714. fi
  7715. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7716. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7717. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7718. :
  7719. else
  7720. lt_prog_compiler_static=
  7721. fi
  7722. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7723. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7724. if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  7725. $as_echo_n "(cached) " >&6
  7726. else
  7727. lt_cv_prog_compiler_c_o=no
  7728. $RM -r conftest 2>/dev/null
  7729. mkdir conftest
  7730. cd conftest
  7731. mkdir out
  7732. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7733. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7734. # Insert the option either (1) after the last *FLAGS variable, or
  7735. # (2) before a word containing "conftest.", or (3) at the end.
  7736. # Note that $ac_compile itself does not contain backslashes and begins
  7737. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7738. lt_compile=`echo "$ac_compile" | $SED \
  7739. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7740. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7741. -e 's:$: $lt_compiler_flag:'`
  7742. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7743. (eval "$lt_compile" 2>out/conftest.err)
  7744. ac_status=$?
  7745. cat out/conftest.err >&5
  7746. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7747. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7748. then
  7749. # The compiler can only warn and ignore the option if not recognized
  7750. # So say no if there are warnings
  7751. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7752. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7753. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7754. lt_cv_prog_compiler_c_o=yes
  7755. fi
  7756. fi
  7757. chmod u+w . 2>&5
  7758. $RM conftest*
  7759. # SGI C++ compiler will create directory out/ii_files/ for
  7760. # template instantiation
  7761. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7762. $RM out/* && rmdir out
  7763. cd ..
  7764. $RM -r conftest
  7765. $RM conftest*
  7766. fi
  7767. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7768. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7769. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7770. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7771. if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  7772. $as_echo_n "(cached) " >&6
  7773. else
  7774. lt_cv_prog_compiler_c_o=no
  7775. $RM -r conftest 2>/dev/null
  7776. mkdir conftest
  7777. cd conftest
  7778. mkdir out
  7779. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7780. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7781. # Insert the option either (1) after the last *FLAGS variable, or
  7782. # (2) before a word containing "conftest.", or (3) at the end.
  7783. # Note that $ac_compile itself does not contain backslashes and begins
  7784. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7785. lt_compile=`echo "$ac_compile" | $SED \
  7786. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7787. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7788. -e 's:$: $lt_compiler_flag:'`
  7789. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7790. (eval "$lt_compile" 2>out/conftest.err)
  7791. ac_status=$?
  7792. cat out/conftest.err >&5
  7793. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7794. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7795. then
  7796. # The compiler can only warn and ignore the option if not recognized
  7797. # So say no if there are warnings
  7798. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7799. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7800. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7801. lt_cv_prog_compiler_c_o=yes
  7802. fi
  7803. fi
  7804. chmod u+w . 2>&5
  7805. $RM conftest*
  7806. # SGI C++ compiler will create directory out/ii_files/ for
  7807. # template instantiation
  7808. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7809. $RM out/* && rmdir out
  7810. cd ..
  7811. $RM -r conftest
  7812. $RM conftest*
  7813. fi
  7814. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7815. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7816. hard_links="nottested"
  7817. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7818. # do not overwrite the value of need_locks provided by the user
  7819. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7820. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7821. hard_links=yes
  7822. $RM conftest*
  7823. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7824. touch conftest.a
  7825. ln conftest.a conftest.b 2>&5 || hard_links=no
  7826. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7827. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7828. $as_echo "$hard_links" >&6; }
  7829. if test "$hard_links" = no; then
  7830. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7831. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7832. need_locks=warn
  7833. fi
  7834. else
  7835. need_locks=no
  7836. fi
  7837. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7838. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7839. runpath_var=
  7840. allow_undefined_flag=
  7841. always_export_symbols=no
  7842. archive_cmds=
  7843. archive_expsym_cmds=
  7844. compiler_needs_object=no
  7845. enable_shared_with_static_runtimes=no
  7846. export_dynamic_flag_spec=
  7847. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7848. hardcode_automatic=no
  7849. hardcode_direct=no
  7850. hardcode_direct_absolute=no
  7851. hardcode_libdir_flag_spec=
  7852. hardcode_libdir_flag_spec_ld=
  7853. hardcode_libdir_separator=
  7854. hardcode_minus_L=no
  7855. hardcode_shlibpath_var=unsupported
  7856. inherit_rpath=no
  7857. link_all_deplibs=unknown
  7858. module_cmds=
  7859. module_expsym_cmds=
  7860. old_archive_from_new_cmds=
  7861. old_archive_from_expsyms_cmds=
  7862. thread_safe_flag_spec=
  7863. whole_archive_flag_spec=
  7864. # include_expsyms should be a list of space-separated symbols to be *always*
  7865. # included in the symbol list
  7866. include_expsyms=
  7867. # exclude_expsyms can be an extended regexp of symbols to exclude
  7868. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7869. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7870. # as well as any symbol that contains `d'.
  7871. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7872. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7873. # platforms (ab)use it in PIC code, but their linkers get confused if
  7874. # the symbol is explicitly referenced. Since portable code cannot
  7875. # rely on this symbol name, it's probably fine to never include it in
  7876. # preloaded symbol tables.
  7877. # Exclude shared library initialization/finalization symbols.
  7878. extract_expsyms_cmds=
  7879. case $host_os in
  7880. cygwin* | mingw* | pw32* | cegcc*)
  7881. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7882. # When not using gcc, we currently assume that we are using
  7883. # Microsoft Visual C++.
  7884. if test "$GCC" != yes; then
  7885. with_gnu_ld=no
  7886. fi
  7887. ;;
  7888. interix*)
  7889. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7890. with_gnu_ld=yes
  7891. ;;
  7892. openbsd*)
  7893. with_gnu_ld=no
  7894. ;;
  7895. esac
  7896. ld_shlibs=yes
  7897. # On some targets, GNU ld is compatible enough with the native linker
  7898. # that we're better off using the native interface for both.
  7899. lt_use_gnu_ld_interface=no
  7900. if test "$with_gnu_ld" = yes; then
  7901. case $host_os in
  7902. aix*)
  7903. # The AIX port of GNU ld has always aspired to compatibility
  7904. # with the native linker. However, as the warning in the GNU ld
  7905. # block says, versions before 2.19.5* couldn't really create working
  7906. # shared libraries, regardless of the interface used.
  7907. case `$LD -v 2>&1` in
  7908. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  7909. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  7910. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  7911. *)
  7912. lt_use_gnu_ld_interface=yes
  7913. ;;
  7914. esac
  7915. ;;
  7916. *)
  7917. lt_use_gnu_ld_interface=yes
  7918. ;;
  7919. esac
  7920. fi
  7921. if test "$lt_use_gnu_ld_interface" = yes; then
  7922. # If archive_cmds runs LD, not CC, wlarc should be empty
  7923. wlarc='${wl}'
  7924. # Set some defaults for GNU ld with shared library support. These
  7925. # are reset later if shared libraries are not supported. Putting them
  7926. # here allows them to be overridden if necessary.
  7927. runpath_var=LD_RUN_PATH
  7928. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7929. export_dynamic_flag_spec='${wl}--export-dynamic'
  7930. # ancient GNU ld didn't support --whole-archive et. al.
  7931. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7932. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7933. else
  7934. whole_archive_flag_spec=
  7935. fi
  7936. supports_anon_versioning=no
  7937. case `$LD -v 2>&1` in
  7938. *GNU\ gold*) supports_anon_versioning=yes ;;
  7939. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7940. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7941. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7942. *\ 2.11.*) ;; # other 2.11 versions
  7943. *) supports_anon_versioning=yes ;;
  7944. esac
  7945. # See if GNU ld supports shared libraries.
  7946. case $host_os in
  7947. aix[3-9]*)
  7948. # On AIX/PPC, the GNU linker is very broken
  7949. if test "$host_cpu" != ia64; then
  7950. ld_shlibs=no
  7951. cat <<_LT_EOF 1>&2
  7952. *** Warning: the GNU linker, at least up to release 2.19, is reported
  7953. *** to be unable to reliably create shared libraries on AIX.
  7954. *** Therefore, libtool is disabling shared libraries support. If you
  7955. *** really care for shared libraries, you may want to install binutils
  7956. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  7957. *** You will then need to restart the configuration process.
  7958. _LT_EOF
  7959. fi
  7960. ;;
  7961. amigaos*)
  7962. case $host_cpu in
  7963. powerpc)
  7964. # see comment about AmigaOS4 .so support
  7965. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7966. archive_expsym_cmds=''
  7967. ;;
  7968. m68k)
  7969. 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)'
  7970. hardcode_libdir_flag_spec='-L$libdir'
  7971. hardcode_minus_L=yes
  7972. ;;
  7973. esac
  7974. ;;
  7975. beos*)
  7976. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7977. allow_undefined_flag=unsupported
  7978. # Joseph Beckenbach <[email protected]> says some releases of gcc
  7979. # support --undefined. This deserves some investigation. FIXME
  7980. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7981. else
  7982. ld_shlibs=no
  7983. fi
  7984. ;;
  7985. cygwin* | mingw* | pw32* | cegcc*)
  7986. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7987. # as there is no search path for DLLs.
  7988. hardcode_libdir_flag_spec='-L$libdir'
  7989. export_dynamic_flag_spec='${wl}--export-all-symbols'
  7990. allow_undefined_flag=unsupported
  7991. always_export_symbols=no
  7992. enable_shared_with_static_runtimes=yes
  7993. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  7994. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7995. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7996. # If the export-symbols file already is a .def file (1st line
  7997. # is EXPORTS), use it as is; otherwise, prepend...
  7998. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7999. cp $export_symbols $output_objdir/$soname.def;
  8000. else
  8001. echo EXPORTS > $output_objdir/$soname.def;
  8002. cat $export_symbols >> $output_objdir/$soname.def;
  8003. fi~
  8004. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8005. else
  8006. ld_shlibs=no
  8007. fi
  8008. ;;
  8009. haiku*)
  8010. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8011. link_all_deplibs=yes
  8012. ;;
  8013. interix[3-9]*)
  8014. hardcode_direct=no
  8015. hardcode_shlibpath_var=no
  8016. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8017. export_dynamic_flag_spec='${wl}-E'
  8018. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8019. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8020. # default) and relocated if they conflict, which is a slow very memory
  8021. # consuming and fragmenting process. To avoid this, we pick a random,
  8022. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8023. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8024. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8025. 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'
  8026. ;;
  8027. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  8028. tmp_diet=no
  8029. if test "$host_os" = linux-dietlibc; then
  8030. case $cc_basename in
  8031. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8032. esac
  8033. fi
  8034. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8035. && test "$tmp_diet" = no
  8036. then
  8037. tmp_addflag=
  8038. tmp_sharedflag='-shared'
  8039. case $cc_basename,$host_cpu in
  8040. pgcc*) # Portland Group C compiler
  8041. 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'
  8042. tmp_addflag=' $pic_flag'
  8043. ;;
  8044. pgf77* | pgf90* | pgf95* | pgfortran*)
  8045. # Portland Group f77 and f90 compilers
  8046. 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'
  8047. tmp_addflag=' $pic_flag -Mnomain' ;;
  8048. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8049. tmp_addflag=' -i_dynamic' ;;
  8050. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8051. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8052. ifc* | ifort*) # Intel Fortran compiler
  8053. tmp_addflag=' -nofor_main' ;;
  8054. lf95*) # Lahey Fortran 8.1
  8055. whole_archive_flag_spec=
  8056. tmp_sharedflag='--shared' ;;
  8057. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8058. tmp_sharedflag='-qmkshrobj'
  8059. tmp_addflag= ;;
  8060. nvcc*) # Cuda Compiler Driver 2.2
  8061. 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'
  8062. compiler_needs_object=yes
  8063. ;;
  8064. esac
  8065. case `$CC -V 2>&1 | sed 5q` in
  8066. *Sun\ C*) # Sun C 5.9
  8067. 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'
  8068. compiler_needs_object=yes
  8069. tmp_sharedflag='-G' ;;
  8070. *Sun\ F*) # Sun Fortran 8.3
  8071. tmp_sharedflag='-G' ;;
  8072. esac
  8073. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8074. if test "x$supports_anon_versioning" = xyes; then
  8075. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8076. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8077. echo "local: *; };" >> $output_objdir/$libname.ver~
  8078. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  8079. fi
  8080. case $cc_basename in
  8081. xlf* | bgf* | bgxlf* | mpixlf*)
  8082. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8083. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8084. hardcode_libdir_flag_spec=
  8085. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  8086. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  8087. if test "x$supports_anon_versioning" = xyes; then
  8088. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8089. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8090. echo "local: *; };" >> $output_objdir/$libname.ver~
  8091. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8092. fi
  8093. ;;
  8094. esac
  8095. else
  8096. ld_shlibs=no
  8097. fi
  8098. ;;
  8099. netbsd*)
  8100. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8101. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8102. wlarc=
  8103. else
  8104. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8105. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8106. fi
  8107. ;;
  8108. solaris*)
  8109. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8110. ld_shlibs=no
  8111. cat <<_LT_EOF 1>&2
  8112. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8113. *** create shared libraries on Solaris systems. Therefore, libtool
  8114. *** is disabling shared libraries support. We urge you to upgrade GNU
  8115. *** binutils to release 2.9.1 or newer. Another option is to modify
  8116. *** your PATH or compiler configuration so that the native linker is
  8117. *** used, and then restart.
  8118. _LT_EOF
  8119. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8120. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8121. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8122. else
  8123. ld_shlibs=no
  8124. fi
  8125. ;;
  8126. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8127. case `$LD -v 2>&1` in
  8128. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8129. ld_shlibs=no
  8130. cat <<_LT_EOF 1>&2
  8131. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  8132. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8133. *** is disabling shared libraries support. We urge you to upgrade GNU
  8134. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8135. *** your PATH or compiler configuration so that the native linker is
  8136. *** used, and then restart.
  8137. _LT_EOF
  8138. ;;
  8139. *)
  8140. # For security reasons, it is highly recommended that you always
  8141. # use absolute paths for naming shared libraries, and exclude the
  8142. # DT_RUNPATH tag from executables and libraries. But doing so
  8143. # requires that you compile everything twice, which is a pain.
  8144. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8145. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8146. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8147. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8148. else
  8149. ld_shlibs=no
  8150. fi
  8151. ;;
  8152. esac
  8153. ;;
  8154. sunos4*)
  8155. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8156. wlarc=
  8157. hardcode_direct=yes
  8158. hardcode_shlibpath_var=no
  8159. ;;
  8160. *)
  8161. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8162. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8163. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8164. else
  8165. ld_shlibs=no
  8166. fi
  8167. ;;
  8168. esac
  8169. if test "$ld_shlibs" = no; then
  8170. runpath_var=
  8171. hardcode_libdir_flag_spec=
  8172. export_dynamic_flag_spec=
  8173. whole_archive_flag_spec=
  8174. fi
  8175. else
  8176. # PORTME fill in a description of your system's linker (not GNU ld)
  8177. case $host_os in
  8178. aix3*)
  8179. allow_undefined_flag=unsupported
  8180. always_export_symbols=yes
  8181. 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'
  8182. # Note: this linker hardcodes the directories in LIBPATH if there
  8183. # are no directories specified by -L.
  8184. hardcode_minus_L=yes
  8185. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  8186. # Neither direct hardcoding nor static linking is supported with a
  8187. # broken collect2.
  8188. hardcode_direct=unsupported
  8189. fi
  8190. ;;
  8191. aix[4-9]*)
  8192. if test "$host_cpu" = ia64; then
  8193. # On IA64, the linker does run time linking by default, so we don't
  8194. # have to do anything special.
  8195. aix_use_runtimelinking=no
  8196. exp_sym_flag='-Bexport'
  8197. no_entry_flag=""
  8198. else
  8199. # If we're using GNU nm, then we don't want the "-C" option.
  8200. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  8201. # Also, AIX nm treats weak defined symbols like other global
  8202. # defined symbols, whereas GNU nm marks them as "W".
  8203. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8204. 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'
  8205. else
  8206. 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'
  8207. fi
  8208. aix_use_runtimelinking=no
  8209. # Test if we are trying to use run time linking or normal
  8210. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8211. # need to do runtime linking.
  8212. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8213. for ld_flag in $LDFLAGS; do
  8214. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  8215. aix_use_runtimelinking=yes
  8216. break
  8217. fi
  8218. done
  8219. ;;
  8220. esac
  8221. exp_sym_flag='-bexport'
  8222. no_entry_flag='-bnoentry'
  8223. fi
  8224. # When large executables or shared objects are built, AIX ld can
  8225. # have problems creating the table of contents. If linking a library
  8226. # or program results in "error TOC overflow" add -mminimal-toc to
  8227. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8228. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8229. archive_cmds=''
  8230. hardcode_direct=yes
  8231. hardcode_direct_absolute=yes
  8232. hardcode_libdir_separator=':'
  8233. link_all_deplibs=yes
  8234. file_list_spec='${wl}-f,'
  8235. if test "$GCC" = yes; then
  8236. case $host_os in aix4.[012]|aix4.[012].*)
  8237. # We only want to do this on AIX 4.2 and lower, the check
  8238. # below for broken collect2 doesn't work under 4.3+
  8239. collect2name=`${CC} -print-prog-name=collect2`
  8240. if test -f "$collect2name" &&
  8241. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8242. then
  8243. # We have reworked collect2
  8244. :
  8245. else
  8246. # We have old collect2
  8247. hardcode_direct=unsupported
  8248. # It fails to find uninstalled libraries when the uninstalled
  8249. # path is not listed in the libpath. Setting hardcode_minus_L
  8250. # to unsupported forces relinking
  8251. hardcode_minus_L=yes
  8252. hardcode_libdir_flag_spec='-L$libdir'
  8253. hardcode_libdir_separator=
  8254. fi
  8255. ;;
  8256. esac
  8257. shared_flag='-shared'
  8258. if test "$aix_use_runtimelinking" = yes; then
  8259. shared_flag="$shared_flag "'${wl}-G'
  8260. fi
  8261. else
  8262. # not using gcc
  8263. if test "$host_cpu" = ia64; then
  8264. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8265. # chokes on -Wl,-G. The following line is correct:
  8266. shared_flag='-G'
  8267. else
  8268. if test "$aix_use_runtimelinking" = yes; then
  8269. shared_flag='${wl}-G'
  8270. else
  8271. shared_flag='${wl}-bM:SRE'
  8272. fi
  8273. fi
  8274. fi
  8275. export_dynamic_flag_spec='${wl}-bexpall'
  8276. # It seems that -bexpall does not export symbols beginning with
  8277. # underscore (_), so it is better to generate a list of symbols to export.
  8278. always_export_symbols=yes
  8279. if test "$aix_use_runtimelinking" = yes; then
  8280. # Warning - without using the other runtime loading flags (-brtl),
  8281. # -berok will link without error, but may produce a broken library.
  8282. allow_undefined_flag='-berok'
  8283. # Determine the default libpath from the value encoded in an
  8284. # empty executable.
  8285. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8286. /* end confdefs.h. */
  8287. int
  8288. main ()
  8289. {
  8290. ;
  8291. return 0;
  8292. }
  8293. _ACEOF
  8294. if ac_fn_c_try_link "$LINENO"; then :
  8295. lt_aix_libpath_sed='
  8296. /Import File Strings/,/^$/ {
  8297. /^0/ {
  8298. s/^0 *\(.*\)$/\1/
  8299. p
  8300. }
  8301. }'
  8302. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8303. # Check for a 64-bit object if we didn't find anything.
  8304. if test -z "$aix_libpath"; then
  8305. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8306. fi
  8307. fi
  8308. rm -f core conftest.err conftest.$ac_objext \
  8309. conftest$ac_exeext conftest.$ac_ext
  8310. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  8311. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8312. 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"
  8313. else
  8314. if test "$host_cpu" = ia64; then
  8315. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  8316. allow_undefined_flag="-z nodefs"
  8317. 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"
  8318. else
  8319. # Determine the default libpath from the value encoded in an
  8320. # empty executable.
  8321. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8322. /* end confdefs.h. */
  8323. int
  8324. main ()
  8325. {
  8326. ;
  8327. return 0;
  8328. }
  8329. _ACEOF
  8330. if ac_fn_c_try_link "$LINENO"; then :
  8331. lt_aix_libpath_sed='
  8332. /Import File Strings/,/^$/ {
  8333. /^0/ {
  8334. s/^0 *\(.*\)$/\1/
  8335. p
  8336. }
  8337. }'
  8338. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8339. # Check for a 64-bit object if we didn't find anything.
  8340. if test -z "$aix_libpath"; then
  8341. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8342. fi
  8343. fi
  8344. rm -f core conftest.err conftest.$ac_objext \
  8345. conftest$ac_exeext conftest.$ac_ext
  8346. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  8347. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8348. # Warning - without using the other run time loading flags,
  8349. # -berok will link without error, but may produce a broken library.
  8350. no_undefined_flag=' ${wl}-bernotok'
  8351. allow_undefined_flag=' ${wl}-berok'
  8352. if test "$with_gnu_ld" = yes; then
  8353. # We only use this code for GNU lds that support --whole-archive.
  8354. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  8355. else
  8356. # Exported symbols can be pulled into shared objects from archives
  8357. whole_archive_flag_spec='$convenience'
  8358. fi
  8359. archive_cmds_need_lc=yes
  8360. # This is similar to how AIX traditionally builds its shared libraries.
  8361. 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'
  8362. fi
  8363. fi
  8364. ;;
  8365. amigaos*)
  8366. case $host_cpu in
  8367. powerpc)
  8368. # see comment about AmigaOS4 .so support
  8369. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8370. archive_expsym_cmds=''
  8371. ;;
  8372. m68k)
  8373. 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)'
  8374. hardcode_libdir_flag_spec='-L$libdir'
  8375. hardcode_minus_L=yes
  8376. ;;
  8377. esac
  8378. ;;
  8379. bsdi[45]*)
  8380. export_dynamic_flag_spec=-rdynamic
  8381. ;;
  8382. cygwin* | mingw* | pw32* | cegcc*)
  8383. # When not using gcc, we currently assume that we are using
  8384. # Microsoft Visual C++.
  8385. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8386. # no search path for DLLs.
  8387. hardcode_libdir_flag_spec=' '
  8388. allow_undefined_flag=unsupported
  8389. # Tell ltmain to make .lib files, not .a files.
  8390. libext=lib
  8391. # Tell ltmain to make .dll files, not .so files.
  8392. shrext_cmds=".dll"
  8393. # FIXME: Setting linknames here is a bad hack.
  8394. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8395. # The linker will automatically build a .lib file if we build a DLL.
  8396. old_archive_from_new_cmds='true'
  8397. # FIXME: Should let the user specify the lib program.
  8398. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8399. fix_srcfile_path='`cygpath -w "$srcfile"`'
  8400. enable_shared_with_static_runtimes=yes
  8401. ;;
  8402. darwin* | rhapsody*)
  8403. archive_cmds_need_lc=no
  8404. hardcode_direct=no
  8405. hardcode_automatic=yes
  8406. hardcode_shlibpath_var=unsupported
  8407. if test "$lt_cv_ld_force_load" = "yes"; then
  8408. 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\"`'
  8409. else
  8410. whole_archive_flag_spec=''
  8411. fi
  8412. link_all_deplibs=yes
  8413. allow_undefined_flag="$_lt_dar_allow_undefined"
  8414. case $cc_basename in
  8415. ifort*) _lt_dar_can_shared=yes ;;
  8416. *) _lt_dar_can_shared=$GCC ;;
  8417. esac
  8418. if test "$_lt_dar_can_shared" = "yes"; then
  8419. output_verbose_link_cmd=func_echo_all
  8420. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8421. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8422. 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}"
  8423. 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}"
  8424. else
  8425. ld_shlibs=no
  8426. fi
  8427. ;;
  8428. dgux*)
  8429. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8430. hardcode_libdir_flag_spec='-L$libdir'
  8431. hardcode_shlibpath_var=no
  8432. ;;
  8433. freebsd1*)
  8434. ld_shlibs=no
  8435. ;;
  8436. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8437. # support. Future versions do this automatically, but an explicit c++rt0.o
  8438. # does not break anything, and helps significantly (at the cost of a little
  8439. # extra space).
  8440. freebsd2.2*)
  8441. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8442. hardcode_libdir_flag_spec='-R$libdir'
  8443. hardcode_direct=yes
  8444. hardcode_shlibpath_var=no
  8445. ;;
  8446. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8447. freebsd2*)
  8448. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8449. hardcode_direct=yes
  8450. hardcode_minus_L=yes
  8451. hardcode_shlibpath_var=no
  8452. ;;
  8453. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8454. freebsd* | dragonfly*)
  8455. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  8456. hardcode_libdir_flag_spec='-R$libdir'
  8457. hardcode_direct=yes
  8458. hardcode_shlibpath_var=no
  8459. ;;
  8460. hpux9*)
  8461. if test "$GCC" = yes; then
  8462. archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  8463. else
  8464. 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'
  8465. fi
  8466. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8467. hardcode_libdir_separator=:
  8468. hardcode_direct=yes
  8469. # hardcode_minus_L: Not really in the search PATH,
  8470. # but as the default location of the library.
  8471. hardcode_minus_L=yes
  8472. export_dynamic_flag_spec='${wl}-E'
  8473. ;;
  8474. hpux10*)
  8475. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8476. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8477. else
  8478. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8479. fi
  8480. if test "$with_gnu_ld" = no; then
  8481. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8482. hardcode_libdir_flag_spec_ld='+b $libdir'
  8483. hardcode_libdir_separator=:
  8484. hardcode_direct=yes
  8485. hardcode_direct_absolute=yes
  8486. export_dynamic_flag_spec='${wl}-E'
  8487. # hardcode_minus_L: Not really in the search PATH,
  8488. # but as the default location of the library.
  8489. hardcode_minus_L=yes
  8490. fi
  8491. ;;
  8492. hpux11*)
  8493. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8494. case $host_cpu in
  8495. hppa*64*)
  8496. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8497. ;;
  8498. ia64*)
  8499. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8500. ;;
  8501. *)
  8502. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8503. ;;
  8504. esac
  8505. else
  8506. case $host_cpu in
  8507. hppa*64*)
  8508. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8509. ;;
  8510. ia64*)
  8511. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8512. ;;
  8513. *)
  8514. # Older versions of the 11.00 compiler do not understand -b yet
  8515. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8516. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8517. $as_echo_n "checking if $CC understands -b... " >&6; }
  8518. if test "${lt_cv_prog_compiler__b+set}" = set; then :
  8519. $as_echo_n "(cached) " >&6
  8520. else
  8521. lt_cv_prog_compiler__b=no
  8522. save_LDFLAGS="$LDFLAGS"
  8523. LDFLAGS="$LDFLAGS -b"
  8524. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8525. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8526. # The linker can only warn and ignore the option if not recognized
  8527. # So say no if there are warnings
  8528. if test -s conftest.err; then
  8529. # Append any errors to the config.log.
  8530. cat conftest.err 1>&5
  8531. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8532. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8533. if diff conftest.exp conftest.er2 >/dev/null; then
  8534. lt_cv_prog_compiler__b=yes
  8535. fi
  8536. else
  8537. lt_cv_prog_compiler__b=yes
  8538. fi
  8539. fi
  8540. $RM -r conftest*
  8541. LDFLAGS="$save_LDFLAGS"
  8542. fi
  8543. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8544. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8545. if test x"$lt_cv_prog_compiler__b" = xyes; then
  8546. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8547. else
  8548. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8549. fi
  8550. ;;
  8551. esac
  8552. fi
  8553. if test "$with_gnu_ld" = no; then
  8554. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8555. hardcode_libdir_separator=:
  8556. case $host_cpu in
  8557. hppa*64*|ia64*)
  8558. hardcode_direct=no
  8559. hardcode_shlibpath_var=no
  8560. ;;
  8561. *)
  8562. hardcode_direct=yes
  8563. hardcode_direct_absolute=yes
  8564. export_dynamic_flag_spec='${wl}-E'
  8565. # hardcode_minus_L: Not really in the search PATH,
  8566. # but as the default location of the library.
  8567. hardcode_minus_L=yes
  8568. ;;
  8569. esac
  8570. fi
  8571. ;;
  8572. irix5* | irix6* | nonstopux*)
  8573. if test "$GCC" = yes; then
  8574. archive_cmds='$CC -shared $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'
  8575. # Try to use the -exported_symbol ld option, if it does not
  8576. # work, assume that -exports_file does not work either and
  8577. # implicitly export all symbols.
  8578. save_LDFLAGS="$LDFLAGS"
  8579. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8580. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8581. /* end confdefs.h. */
  8582. int foo(void) {}
  8583. _ACEOF
  8584. if ac_fn_c_try_link "$LINENO"; then :
  8585. archive_expsym_cmds='$CC -shared $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'
  8586. fi
  8587. rm -f core conftest.err conftest.$ac_objext \
  8588. conftest$ac_exeext conftest.$ac_ext
  8589. LDFLAGS="$save_LDFLAGS"
  8590. else
  8591. 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'
  8592. 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'
  8593. fi
  8594. archive_cmds_need_lc='no'
  8595. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8596. hardcode_libdir_separator=:
  8597. inherit_rpath=yes
  8598. link_all_deplibs=yes
  8599. ;;
  8600. netbsd*)
  8601. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8602. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8603. else
  8604. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8605. fi
  8606. hardcode_libdir_flag_spec='-R$libdir'
  8607. hardcode_direct=yes
  8608. hardcode_shlibpath_var=no
  8609. ;;
  8610. newsos6)
  8611. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8612. hardcode_direct=yes
  8613. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8614. hardcode_libdir_separator=:
  8615. hardcode_shlibpath_var=no
  8616. ;;
  8617. *nto* | *qnx*)
  8618. ;;
  8619. openbsd*)
  8620. if test -f /usr/libexec/ld.so; then
  8621. hardcode_direct=yes
  8622. hardcode_shlibpath_var=no
  8623. hardcode_direct_absolute=yes
  8624. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8625. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8626. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8627. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8628. export_dynamic_flag_spec='${wl}-E'
  8629. else
  8630. case $host_os in
  8631. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8632. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8633. hardcode_libdir_flag_spec='-R$libdir'
  8634. ;;
  8635. *)
  8636. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8637. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8638. ;;
  8639. esac
  8640. fi
  8641. else
  8642. ld_shlibs=no
  8643. fi
  8644. ;;
  8645. os2*)
  8646. hardcode_libdir_flag_spec='-L$libdir'
  8647. hardcode_minus_L=yes
  8648. allow_undefined_flag=unsupported
  8649. 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'
  8650. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8651. ;;
  8652. osf3*)
  8653. if test "$GCC" = yes; then
  8654. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8655. 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'
  8656. else
  8657. allow_undefined_flag=' -expect_unresolved \*'
  8658. 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'
  8659. fi
  8660. archive_cmds_need_lc='no'
  8661. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8662. hardcode_libdir_separator=:
  8663. ;;
  8664. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8665. if test "$GCC" = yes; then
  8666. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8667. archive_cmds='$CC -shared${allow_undefined_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'
  8668. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8669. else
  8670. allow_undefined_flag=' -expect_unresolved \*'
  8671. 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'
  8672. 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~
  8673. $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'
  8674. # Both c and cxx compiler support -rpath directly
  8675. hardcode_libdir_flag_spec='-rpath $libdir'
  8676. fi
  8677. archive_cmds_need_lc='no'
  8678. hardcode_libdir_separator=:
  8679. ;;
  8680. solaris*)
  8681. no_undefined_flag=' -z defs'
  8682. if test "$GCC" = yes; then
  8683. wlarc='${wl}'
  8684. archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8685. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8686. $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8687. else
  8688. case `$CC -V 2>&1` in
  8689. *"Compilers 5.0"*)
  8690. wlarc=''
  8691. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8692. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8693. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8694. ;;
  8695. *)
  8696. wlarc='${wl}'
  8697. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8698. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8699. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8700. ;;
  8701. esac
  8702. fi
  8703. hardcode_libdir_flag_spec='-R$libdir'
  8704. hardcode_shlibpath_var=no
  8705. case $host_os in
  8706. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8707. *)
  8708. # The compiler driver will combine and reorder linker options,
  8709. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8710. # but is careful enough not to reorder.
  8711. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8712. if test "$GCC" = yes; then
  8713. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8714. else
  8715. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8716. fi
  8717. ;;
  8718. esac
  8719. link_all_deplibs=yes
  8720. ;;
  8721. sunos4*)
  8722. if test "x$host_vendor" = xsequent; then
  8723. # Use $CC to link under sequent, because it throws in some extra .o
  8724. # files that make .init and .fini sections work.
  8725. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8726. else
  8727. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8728. fi
  8729. hardcode_libdir_flag_spec='-L$libdir'
  8730. hardcode_direct=yes
  8731. hardcode_minus_L=yes
  8732. hardcode_shlibpath_var=no
  8733. ;;
  8734. sysv4)
  8735. case $host_vendor in
  8736. sni)
  8737. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8738. hardcode_direct=yes # is this really true???
  8739. ;;
  8740. siemens)
  8741. ## LD is ld it makes a PLAMLIB
  8742. ## CC just makes a GrossModule.
  8743. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8744. reload_cmds='$CC -r -o $output$reload_objs'
  8745. hardcode_direct=no
  8746. ;;
  8747. motorola)
  8748. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8749. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8750. ;;
  8751. esac
  8752. runpath_var='LD_RUN_PATH'
  8753. hardcode_shlibpath_var=no
  8754. ;;
  8755. sysv4.3*)
  8756. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8757. hardcode_shlibpath_var=no
  8758. export_dynamic_flag_spec='-Bexport'
  8759. ;;
  8760. sysv4*MP*)
  8761. if test -d /usr/nec; then
  8762. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8763. hardcode_shlibpath_var=no
  8764. runpath_var=LD_RUN_PATH
  8765. hardcode_runpath_var=yes
  8766. ld_shlibs=yes
  8767. fi
  8768. ;;
  8769. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8770. no_undefined_flag='${wl}-z,text'
  8771. archive_cmds_need_lc=no
  8772. hardcode_shlibpath_var=no
  8773. runpath_var='LD_RUN_PATH'
  8774. if test "$GCC" = yes; then
  8775. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8776. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8777. else
  8778. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8779. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8780. fi
  8781. ;;
  8782. sysv5* | sco3.2v5* | sco5v6*)
  8783. # Note: We can NOT use -z defs as we might desire, because we do not
  8784. # link with -lc, and that would cause any symbols used from libc to
  8785. # always be unresolved, which means just about no library would
  8786. # ever link correctly. If we're not using GNU ld we use -z text
  8787. # though, which does catch some bad symbols but isn't as heavy-handed
  8788. # as -z defs.
  8789. no_undefined_flag='${wl}-z,text'
  8790. allow_undefined_flag='${wl}-z,nodefs'
  8791. archive_cmds_need_lc=no
  8792. hardcode_shlibpath_var=no
  8793. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  8794. hardcode_libdir_separator=':'
  8795. link_all_deplibs=yes
  8796. export_dynamic_flag_spec='${wl}-Bexport'
  8797. runpath_var='LD_RUN_PATH'
  8798. if test "$GCC" = yes; then
  8799. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8800. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8801. else
  8802. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8803. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8804. fi
  8805. ;;
  8806. uts4*)
  8807. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8808. hardcode_libdir_flag_spec='-L$libdir'
  8809. hardcode_shlibpath_var=no
  8810. ;;
  8811. *)
  8812. ld_shlibs=no
  8813. ;;
  8814. esac
  8815. if test x$host_vendor = xsni; then
  8816. case $host in
  8817. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8818. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8819. ;;
  8820. esac
  8821. fi
  8822. fi
  8823. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8824. $as_echo "$ld_shlibs" >&6; }
  8825. test "$ld_shlibs" = no && can_build_shared=no
  8826. with_gnu_ld=$with_gnu_ld
  8827. #
  8828. # Do we need to explicitly link libc?
  8829. #
  8830. case "x$archive_cmds_need_lc" in
  8831. x|xyes)
  8832. # Assume -lc should be added
  8833. archive_cmds_need_lc=yes
  8834. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8835. case $archive_cmds in
  8836. *'~'*)
  8837. # FIXME: we may have to deal with multi-command sequences.
  8838. ;;
  8839. '$CC '*)
  8840. # Test whether the compiler implicitly links with -lc since on some
  8841. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8842. # to ld, don't add -lc before -lgcc.
  8843. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8844. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8845. if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
  8846. $as_echo_n "(cached) " >&6
  8847. else
  8848. $RM conftest*
  8849. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8850. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8851. (eval $ac_compile) 2>&5
  8852. ac_status=$?
  8853. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8854. test $ac_status = 0; } 2>conftest.err; then
  8855. soname=conftest
  8856. lib=conftest
  8857. libobjs=conftest.$ac_objext
  8858. deplibs=
  8859. wl=$lt_prog_compiler_wl
  8860. pic_flag=$lt_prog_compiler_pic
  8861. compiler_flags=-v
  8862. linker_flags=-v
  8863. verstring=
  8864. output_objdir=.
  8865. libname=conftest
  8866. lt_save_allow_undefined_flag=$allow_undefined_flag
  8867. allow_undefined_flag=
  8868. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  8869. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8870. ac_status=$?
  8871. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8872. test $ac_status = 0; }
  8873. then
  8874. lt_cv_archive_cmds_need_lc=no
  8875. else
  8876. lt_cv_archive_cmds_need_lc=yes
  8877. fi
  8878. allow_undefined_flag=$lt_save_allow_undefined_flag
  8879. else
  8880. cat conftest.err 1>&5
  8881. fi
  8882. $RM conftest*
  8883. fi
  8884. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  8885. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  8886. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  8887. ;;
  8888. esac
  8889. fi
  8890. ;;
  8891. esac
  8892. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  8893. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  8894. if test "$GCC" = yes; then
  8895. case $host_os in
  8896. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8897. *) lt_awk_arg="/^libraries:/" ;;
  8898. esac
  8899. case $host_os in
  8900. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  8901. *) lt_sed_strip_eq="s,=/,/,g" ;;
  8902. esac
  8903. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  8904. case $lt_search_path_spec in
  8905. *\;*)
  8906. # if the path contains ";" then we assume it to be the separator
  8907. # otherwise default to the standard path separator (i.e. ":") - it is
  8908. # assumed that no part of a normal pathname contains ";" but that should
  8909. # okay in the real world where ";" in dirpaths is itself problematic.
  8910. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  8911. ;;
  8912. *)
  8913. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  8914. ;;
  8915. esac
  8916. # Ok, now we have the path, separated by spaces, we can step through it
  8917. # and add multilib dir if necessary.
  8918. lt_tmp_lt_search_path_spec=
  8919. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8920. for lt_sys_path in $lt_search_path_spec; do
  8921. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  8922. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  8923. else
  8924. test -d "$lt_sys_path" && \
  8925. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8926. fi
  8927. done
  8928. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  8929. BEGIN {RS=" "; FS="/|\n";} {
  8930. lt_foo="";
  8931. lt_count=0;
  8932. for (lt_i = NF; lt_i > 0; lt_i--) {
  8933. if ($lt_i != "" && $lt_i != ".") {
  8934. if ($lt_i == "..") {
  8935. lt_count++;
  8936. } else {
  8937. if (lt_count == 0) {
  8938. lt_foo="/" $lt_i lt_foo;
  8939. } else {
  8940. lt_count--;
  8941. }
  8942. }
  8943. }
  8944. }
  8945. if (lt_foo != "") { lt_freq[lt_foo]++; }
  8946. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  8947. }'`
  8948. # AWK program above erroneously prepends '/' to C:/dos/paths
  8949. # for these hosts.
  8950. case $host_os in
  8951. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  8952. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  8953. esac
  8954. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  8955. else
  8956. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8957. fi
  8958. library_names_spec=
  8959. libname_spec='lib$name'
  8960. soname_spec=
  8961. shrext_cmds=".so"
  8962. postinstall_cmds=
  8963. postuninstall_cmds=
  8964. finish_cmds=
  8965. finish_eval=
  8966. shlibpath_var=
  8967. shlibpath_overrides_runpath=unknown
  8968. version_type=none
  8969. dynamic_linker="$host_os ld.so"
  8970. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8971. need_lib_prefix=unknown
  8972. hardcode_into_libs=no
  8973. # when you set need_version to no, make sure it does not cause -set_version
  8974. # flags to be left without arguments
  8975. need_version=unknown
  8976. case $host_os in
  8977. aix3*)
  8978. version_type=linux
  8979. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8980. shlibpath_var=LIBPATH
  8981. # AIX 3 has no versioning support, so we append a major version to the name.
  8982. soname_spec='${libname}${release}${shared_ext}$major'
  8983. ;;
  8984. aix[4-9]*)
  8985. version_type=linux
  8986. need_lib_prefix=no
  8987. need_version=no
  8988. hardcode_into_libs=yes
  8989. if test "$host_cpu" = ia64; then
  8990. # AIX 5 supports IA64
  8991. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8992. shlibpath_var=LD_LIBRARY_PATH
  8993. else
  8994. # With GCC up to 2.95.x, collect2 would create an import file
  8995. # for dependence libraries. The import file would start with
  8996. # the line `#! .'. This would cause the generated library to
  8997. # depend on `.', always an invalid library. This was fixed in
  8998. # development snapshots of GCC prior to 3.0.
  8999. case $host_os in
  9000. aix4 | aix4.[01] | aix4.[01].*)
  9001. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9002. echo ' yes '
  9003. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  9004. :
  9005. else
  9006. can_build_shared=no
  9007. fi
  9008. ;;
  9009. esac
  9010. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  9011. # soname into executable. Probably we can add versioning support to
  9012. # collect2, so additional links can be useful in future.
  9013. if test "$aix_use_runtimelinking" = yes; then
  9014. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9015. # instead of lib<name>.a to let people know that these are not
  9016. # typical AIX shared libraries.
  9017. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9018. else
  9019. # We preserve .a as extension for shared libraries through AIX4.2
  9020. # and later when we are not doing run time linking.
  9021. library_names_spec='${libname}${release}.a $libname.a'
  9022. soname_spec='${libname}${release}${shared_ext}$major'
  9023. fi
  9024. shlibpath_var=LIBPATH
  9025. fi
  9026. ;;
  9027. amigaos*)
  9028. case $host_cpu in
  9029. powerpc)
  9030. # Since July 2007 AmigaOS4 officially supports .so libraries.
  9031. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  9032. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9033. ;;
  9034. m68k)
  9035. library_names_spec='$libname.ixlibrary $libname.a'
  9036. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9037. 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'
  9038. ;;
  9039. esac
  9040. ;;
  9041. beos*)
  9042. library_names_spec='${libname}${shared_ext}'
  9043. dynamic_linker="$host_os ld.so"
  9044. shlibpath_var=LIBRARY_PATH
  9045. ;;
  9046. bsdi[45]*)
  9047. version_type=linux
  9048. need_version=no
  9049. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9050. soname_spec='${libname}${release}${shared_ext}$major'
  9051. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9052. shlibpath_var=LD_LIBRARY_PATH
  9053. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9054. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9055. # the default ld.so.conf also contains /usr/contrib/lib and
  9056. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9057. # libtool to hard-code these into programs
  9058. ;;
  9059. cygwin* | mingw* | pw32* | cegcc*)
  9060. version_type=windows
  9061. shrext_cmds=".dll"
  9062. need_version=no
  9063. need_lib_prefix=no
  9064. case $GCC,$host_os in
  9065. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  9066. library_names_spec='$libname.dll.a'
  9067. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9068. postinstall_cmds='base_file=`basename \${file}`~
  9069. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  9070. dldir=$destdir/`dirname \$dlpath`~
  9071. test -d \$dldir || mkdir -p \$dldir~
  9072. $install_prog $dir/$dlname \$dldir/$dlname~
  9073. chmod a+x \$dldir/$dlname~
  9074. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9075. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9076. fi'
  9077. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9078. dlpath=$dir/\$dldll~
  9079. $RM \$dlpath'
  9080. shlibpath_overrides_runpath=yes
  9081. case $host_os in
  9082. cygwin*)
  9083. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  9084. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9085. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  9086. ;;
  9087. mingw* | cegcc*)
  9088. # MinGW DLLs use traditional 'lib' prefix
  9089. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9090. ;;
  9091. pw32*)
  9092. # pw32 DLLs use 'pw' prefix rather than 'lib'
  9093. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9094. ;;
  9095. esac
  9096. ;;
  9097. *)
  9098. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  9099. ;;
  9100. esac
  9101. dynamic_linker='Win32 ld.exe'
  9102. # FIXME: first we should search . and the directory the executable is in
  9103. shlibpath_var=PATH
  9104. ;;
  9105. darwin* | rhapsody*)
  9106. dynamic_linker="$host_os dyld"
  9107. version_type=darwin
  9108. need_lib_prefix=no
  9109. need_version=no
  9110. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  9111. soname_spec='${libname}${release}${major}$shared_ext'
  9112. shlibpath_overrides_runpath=yes
  9113. shlibpath_var=DYLD_LIBRARY_PATH
  9114. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  9115. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  9116. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  9117. ;;
  9118. dgux*)
  9119. version_type=linux
  9120. need_lib_prefix=no
  9121. need_version=no
  9122. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  9123. soname_spec='${libname}${release}${shared_ext}$major'
  9124. shlibpath_var=LD_LIBRARY_PATH
  9125. ;;
  9126. freebsd1*)
  9127. dynamic_linker=no
  9128. ;;
  9129. freebsd* | dragonfly*)
  9130. # DragonFly does not have aout. When/if they implement a new
  9131. # versioning mechanism, adjust this.
  9132. if test -x /usr/bin/objformat; then
  9133. objformat=`/usr/bin/objformat`
  9134. else
  9135. case $host_os in
  9136. freebsd[123]*) objformat=aout ;;
  9137. *) objformat=elf ;;
  9138. esac
  9139. fi
  9140. version_type=freebsd-$objformat
  9141. case $version_type in
  9142. freebsd-elf*)
  9143. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9144. need_version=no
  9145. need_lib_prefix=no
  9146. ;;
  9147. freebsd-*)
  9148. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  9149. need_version=yes
  9150. ;;
  9151. esac
  9152. shlibpath_var=LD_LIBRARY_PATH
  9153. case $host_os in
  9154. freebsd2*)
  9155. shlibpath_overrides_runpath=yes
  9156. ;;
  9157. freebsd3.[01]* | freebsdelf3.[01]*)
  9158. shlibpath_overrides_runpath=yes
  9159. hardcode_into_libs=yes
  9160. ;;
  9161. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  9162. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  9163. shlibpath_overrides_runpath=no
  9164. hardcode_into_libs=yes
  9165. ;;
  9166. *) # from 4.6 on, and DragonFly
  9167. shlibpath_overrides_runpath=yes
  9168. hardcode_into_libs=yes
  9169. ;;
  9170. esac
  9171. ;;
  9172. gnu*)
  9173. version_type=linux
  9174. need_lib_prefix=no
  9175. need_version=no
  9176. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9177. soname_spec='${libname}${release}${shared_ext}$major'
  9178. shlibpath_var=LD_LIBRARY_PATH
  9179. hardcode_into_libs=yes
  9180. ;;
  9181. haiku*)
  9182. version_type=linux
  9183. need_lib_prefix=no
  9184. need_version=no
  9185. dynamic_linker="$host_os runtime_loader"
  9186. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9187. soname_spec='${libname}${release}${shared_ext}$major'
  9188. shlibpath_var=LIBRARY_PATH
  9189. shlibpath_overrides_runpath=yes
  9190. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  9191. hardcode_into_libs=yes
  9192. ;;
  9193. hpux9* | hpux10* | hpux11*)
  9194. # Give a soname corresponding to the major version so that dld.sl refuses to
  9195. # link against other versions.
  9196. version_type=sunos
  9197. need_lib_prefix=no
  9198. need_version=no
  9199. case $host_cpu in
  9200. ia64*)
  9201. shrext_cmds='.so'
  9202. hardcode_into_libs=yes
  9203. dynamic_linker="$host_os dld.so"
  9204. shlibpath_var=LD_LIBRARY_PATH
  9205. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9206. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9207. soname_spec='${libname}${release}${shared_ext}$major'
  9208. if test "X$HPUX_IA64_MODE" = X32; then
  9209. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9210. else
  9211. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9212. fi
  9213. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9214. ;;
  9215. hppa*64*)
  9216. shrext_cmds='.sl'
  9217. hardcode_into_libs=yes
  9218. dynamic_linker="$host_os dld.sl"
  9219. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9220. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9221. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9222. soname_spec='${libname}${release}${shared_ext}$major'
  9223. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9224. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9225. ;;
  9226. *)
  9227. shrext_cmds='.sl'
  9228. dynamic_linker="$host_os dld.sl"
  9229. shlibpath_var=SHLIB_PATH
  9230. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9231. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9232. soname_spec='${libname}${release}${shared_ext}$major'
  9233. ;;
  9234. esac
  9235. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  9236. postinstall_cmds='chmod 555 $lib'
  9237. # or fails outright, so override atomically:
  9238. install_override_mode=555
  9239. ;;
  9240. interix[3-9]*)
  9241. version_type=linux
  9242. need_lib_prefix=no
  9243. need_version=no
  9244. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9245. soname_spec='${libname}${release}${shared_ext}$major'
  9246. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9247. shlibpath_var=LD_LIBRARY_PATH
  9248. shlibpath_overrides_runpath=no
  9249. hardcode_into_libs=yes
  9250. ;;
  9251. irix5* | irix6* | nonstopux*)
  9252. case $host_os in
  9253. nonstopux*) version_type=nonstopux ;;
  9254. *)
  9255. if test "$lt_cv_prog_gnu_ld" = yes; then
  9256. version_type=linux
  9257. else
  9258. version_type=irix
  9259. fi ;;
  9260. esac
  9261. need_lib_prefix=no
  9262. need_version=no
  9263. soname_spec='${libname}${release}${shared_ext}$major'
  9264. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  9265. case $host_os in
  9266. irix5* | nonstopux*)
  9267. libsuff= shlibsuff=
  9268. ;;
  9269. *)
  9270. case $LD in # libtool.m4 will add one of these switches to LD
  9271. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9272. libsuff= shlibsuff= libmagic=32-bit;;
  9273. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9274. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9275. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9276. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9277. *) libsuff= shlibsuff= libmagic=never-match;;
  9278. esac
  9279. ;;
  9280. esac
  9281. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9282. shlibpath_overrides_runpath=no
  9283. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  9284. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  9285. hardcode_into_libs=yes
  9286. ;;
  9287. # No shared lib support for Linux oldld, aout, or coff.
  9288. linux*oldld* | linux*aout* | linux*coff*)
  9289. dynamic_linker=no
  9290. ;;
  9291. # This must be Linux ELF.
  9292. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  9293. version_type=linux
  9294. need_lib_prefix=no
  9295. need_version=no
  9296. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9297. soname_spec='${libname}${release}${shared_ext}$major'
  9298. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9299. shlibpath_var=LD_LIBRARY_PATH
  9300. shlibpath_overrides_runpath=no
  9301. # Some binutils ld are patched to set DT_RUNPATH
  9302. if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
  9303. $as_echo_n "(cached) " >&6
  9304. else
  9305. lt_cv_shlibpath_overrides_runpath=no
  9306. save_LDFLAGS=$LDFLAGS
  9307. save_libdir=$libdir
  9308. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9309. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9310. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9311. /* end confdefs.h. */
  9312. int
  9313. main ()
  9314. {
  9315. ;
  9316. return 0;
  9317. }
  9318. _ACEOF
  9319. if ac_fn_c_try_link "$LINENO"; then :
  9320. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9321. lt_cv_shlibpath_overrides_runpath=yes
  9322. fi
  9323. fi
  9324. rm -f core conftest.err conftest.$ac_objext \
  9325. conftest$ac_exeext conftest.$ac_ext
  9326. LDFLAGS=$save_LDFLAGS
  9327. libdir=$save_libdir
  9328. fi
  9329. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9330. # This implies no fast_install, which is unacceptable.
  9331. # Some rework will be needed to allow for fast_install
  9332. # before this can be enabled.
  9333. hardcode_into_libs=yes
  9334. # Add ABI-specific directories to the system library path.
  9335. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  9336. # Append ld.so.conf contents to the search path
  9337. if test -f /etc/ld.so.conf; then
  9338. 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' ' '`
  9339. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  9340. fi
  9341. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9342. # powerpc, because MkLinux only supported shared libraries with the
  9343. # GNU dynamic linker. Since this was broken with cross compilers,
  9344. # most powerpc-linux boxes support dynamic linking these days and
  9345. # people can always --disable-shared, the test was removed, and we
  9346. # assume the GNU/Linux dynamic linker is in use.
  9347. dynamic_linker='GNU/Linux ld.so'
  9348. ;;
  9349. netbsd*)
  9350. version_type=sunos
  9351. need_lib_prefix=no
  9352. need_version=no
  9353. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9354. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9355. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9356. dynamic_linker='NetBSD (a.out) ld.so'
  9357. else
  9358. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9359. soname_spec='${libname}${release}${shared_ext}$major'
  9360. dynamic_linker='NetBSD ld.elf_so'
  9361. fi
  9362. shlibpath_var=LD_LIBRARY_PATH
  9363. shlibpath_overrides_runpath=yes
  9364. hardcode_into_libs=yes
  9365. ;;
  9366. newsos6)
  9367. version_type=linux
  9368. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9369. shlibpath_var=LD_LIBRARY_PATH
  9370. shlibpath_overrides_runpath=yes
  9371. ;;
  9372. *nto* | *qnx*)
  9373. version_type=qnx
  9374. need_lib_prefix=no
  9375. need_version=no
  9376. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9377. soname_spec='${libname}${release}${shared_ext}$major'
  9378. shlibpath_var=LD_LIBRARY_PATH
  9379. shlibpath_overrides_runpath=no
  9380. hardcode_into_libs=yes
  9381. dynamic_linker='ldqnx.so'
  9382. ;;
  9383. openbsd*)
  9384. version_type=sunos
  9385. sys_lib_dlsearch_path_spec="/usr/lib"
  9386. need_lib_prefix=no
  9387. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9388. case $host_os in
  9389. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9390. *) need_version=no ;;
  9391. esac
  9392. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9393. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9394. shlibpath_var=LD_LIBRARY_PATH
  9395. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9396. case $host_os in
  9397. openbsd2.[89] | openbsd2.[89].*)
  9398. shlibpath_overrides_runpath=no
  9399. ;;
  9400. *)
  9401. shlibpath_overrides_runpath=yes
  9402. ;;
  9403. esac
  9404. else
  9405. shlibpath_overrides_runpath=yes
  9406. fi
  9407. ;;
  9408. os2*)
  9409. libname_spec='$name'
  9410. shrext_cmds=".dll"
  9411. need_lib_prefix=no
  9412. library_names_spec='$libname${shared_ext} $libname.a'
  9413. dynamic_linker='OS/2 ld.exe'
  9414. shlibpath_var=LIBPATH
  9415. ;;
  9416. osf3* | osf4* | osf5*)
  9417. version_type=osf
  9418. need_lib_prefix=no
  9419. need_version=no
  9420. soname_spec='${libname}${release}${shared_ext}$major'
  9421. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9422. shlibpath_var=LD_LIBRARY_PATH
  9423. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9424. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9425. ;;
  9426. rdos*)
  9427. dynamic_linker=no
  9428. ;;
  9429. solaris*)
  9430. version_type=linux
  9431. need_lib_prefix=no
  9432. need_version=no
  9433. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9434. soname_spec='${libname}${release}${shared_ext}$major'
  9435. shlibpath_var=LD_LIBRARY_PATH
  9436. shlibpath_overrides_runpath=yes
  9437. hardcode_into_libs=yes
  9438. # ldd complains unless libraries are executable
  9439. postinstall_cmds='chmod +x $lib'
  9440. ;;
  9441. sunos4*)
  9442. version_type=sunos
  9443. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9444. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9445. shlibpath_var=LD_LIBRARY_PATH
  9446. shlibpath_overrides_runpath=yes
  9447. if test "$with_gnu_ld" = yes; then
  9448. need_lib_prefix=no
  9449. fi
  9450. need_version=yes
  9451. ;;
  9452. sysv4 | sysv4.3*)
  9453. version_type=linux
  9454. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9455. soname_spec='${libname}${release}${shared_ext}$major'
  9456. shlibpath_var=LD_LIBRARY_PATH
  9457. case $host_vendor in
  9458. sni)
  9459. shlibpath_overrides_runpath=no
  9460. need_lib_prefix=no
  9461. runpath_var=LD_RUN_PATH
  9462. ;;
  9463. siemens)
  9464. need_lib_prefix=no
  9465. ;;
  9466. motorola)
  9467. need_lib_prefix=no
  9468. need_version=no
  9469. shlibpath_overrides_runpath=no
  9470. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9471. ;;
  9472. esac
  9473. ;;
  9474. sysv4*MP*)
  9475. if test -d /usr/nec ;then
  9476. version_type=linux
  9477. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9478. soname_spec='$libname${shared_ext}.$major'
  9479. shlibpath_var=LD_LIBRARY_PATH
  9480. fi
  9481. ;;
  9482. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9483. version_type=freebsd-elf
  9484. need_lib_prefix=no
  9485. need_version=no
  9486. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9487. soname_spec='${libname}${release}${shared_ext}$major'
  9488. shlibpath_var=LD_LIBRARY_PATH
  9489. shlibpath_overrides_runpath=yes
  9490. hardcode_into_libs=yes
  9491. if test "$with_gnu_ld" = yes; then
  9492. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9493. else
  9494. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9495. case $host_os in
  9496. sco3.2v5*)
  9497. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9498. ;;
  9499. esac
  9500. fi
  9501. sys_lib_dlsearch_path_spec='/usr/lib'
  9502. ;;
  9503. tpf*)
  9504. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9505. version_type=linux
  9506. need_lib_prefix=no
  9507. need_version=no
  9508. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9509. shlibpath_var=LD_LIBRARY_PATH
  9510. shlibpath_overrides_runpath=no
  9511. hardcode_into_libs=yes
  9512. ;;
  9513. uts4*)
  9514. version_type=linux
  9515. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9516. soname_spec='${libname}${release}${shared_ext}$major'
  9517. shlibpath_var=LD_LIBRARY_PATH
  9518. ;;
  9519. *)
  9520. dynamic_linker=no
  9521. ;;
  9522. esac
  9523. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9524. $as_echo "$dynamic_linker" >&6; }
  9525. test "$dynamic_linker" = no && can_build_shared=no
  9526. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9527. if test "$GCC" = yes; then
  9528. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9529. fi
  9530. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9531. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9532. fi
  9533. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9534. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9535. fi
  9536. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9537. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9538. hardcode_action=
  9539. if test -n "$hardcode_libdir_flag_spec" ||
  9540. test -n "$runpath_var" ||
  9541. test "X$hardcode_automatic" = "Xyes" ; then
  9542. # We can hardcode non-existent directories.
  9543. if test "$hardcode_direct" != no &&
  9544. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9545. # have to relink, otherwise we might link with an installed library
  9546. # when we should be linking with a yet-to-be-installed one
  9547. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9548. test "$hardcode_minus_L" != no; then
  9549. # Linking always hardcodes the temporary library directory.
  9550. hardcode_action=relink
  9551. else
  9552. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9553. hardcode_action=immediate
  9554. fi
  9555. else
  9556. # We cannot hardcode anything, or else we can only hardcode existing
  9557. # directories.
  9558. hardcode_action=unsupported
  9559. fi
  9560. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9561. $as_echo "$hardcode_action" >&6; }
  9562. if test "$hardcode_action" = relink ||
  9563. test "$inherit_rpath" = yes; then
  9564. # Fast installation is not supported
  9565. enable_fast_install=no
  9566. elif test "$shlibpath_overrides_runpath" = yes ||
  9567. test "$enable_shared" = no; then
  9568. # Fast installation is not necessary
  9569. enable_fast_install=needless
  9570. fi
  9571. if test "x$enable_dlopen" != xyes; then
  9572. enable_dlopen=unknown
  9573. enable_dlopen_self=unknown
  9574. enable_dlopen_self_static=unknown
  9575. else
  9576. lt_cv_dlopen=no
  9577. lt_cv_dlopen_libs=
  9578. case $host_os in
  9579. beos*)
  9580. lt_cv_dlopen="load_add_on"
  9581. lt_cv_dlopen_libs=
  9582. lt_cv_dlopen_self=yes
  9583. ;;
  9584. mingw* | pw32* | cegcc*)
  9585. lt_cv_dlopen="LoadLibrary"
  9586. lt_cv_dlopen_libs=
  9587. ;;
  9588. cygwin*)
  9589. lt_cv_dlopen="dlopen"
  9590. lt_cv_dlopen_libs=
  9591. ;;
  9592. darwin*)
  9593. # if libdl is installed we need to link against it
  9594. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9595. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9596. if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  9597. $as_echo_n "(cached) " >&6
  9598. else
  9599. ac_check_lib_save_LIBS=$LIBS
  9600. LIBS="-ldl $LIBS"
  9601. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9602. /* end confdefs.h. */
  9603. /* Override any GCC internal prototype to avoid an error.
  9604. Use char because int might match the return type of a GCC
  9605. builtin and then its argument prototype would still apply. */
  9606. #ifdef __cplusplus
  9607. extern "C"
  9608. #endif
  9609. char dlopen ();
  9610. int
  9611. main ()
  9612. {
  9613. return dlopen ();
  9614. ;
  9615. return 0;
  9616. }
  9617. _ACEOF
  9618. if ac_fn_c_try_link "$LINENO"; then :
  9619. ac_cv_lib_dl_dlopen=yes
  9620. else
  9621. ac_cv_lib_dl_dlopen=no
  9622. fi
  9623. rm -f core conftest.err conftest.$ac_objext \
  9624. conftest$ac_exeext conftest.$ac_ext
  9625. LIBS=$ac_check_lib_save_LIBS
  9626. fi
  9627. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9628. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9629. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  9630. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9631. else
  9632. lt_cv_dlopen="dyld"
  9633. lt_cv_dlopen_libs=
  9634. lt_cv_dlopen_self=yes
  9635. fi
  9636. ;;
  9637. *)
  9638. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9639. if test "x$ac_cv_func_shl_load" = x""yes; then :
  9640. lt_cv_dlopen="shl_load"
  9641. else
  9642. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9643. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9644. if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
  9645. $as_echo_n "(cached) " >&6
  9646. else
  9647. ac_check_lib_save_LIBS=$LIBS
  9648. LIBS="-ldld $LIBS"
  9649. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9650. /* end confdefs.h. */
  9651. /* Override any GCC internal prototype to avoid an error.
  9652. Use char because int might match the return type of a GCC
  9653. builtin and then its argument prototype would still apply. */
  9654. #ifdef __cplusplus
  9655. extern "C"
  9656. #endif
  9657. char shl_load ();
  9658. int
  9659. main ()
  9660. {
  9661. return shl_load ();
  9662. ;
  9663. return 0;
  9664. }
  9665. _ACEOF
  9666. if ac_fn_c_try_link "$LINENO"; then :
  9667. ac_cv_lib_dld_shl_load=yes
  9668. else
  9669. ac_cv_lib_dld_shl_load=no
  9670. fi
  9671. rm -f core conftest.err conftest.$ac_objext \
  9672. conftest$ac_exeext conftest.$ac_ext
  9673. LIBS=$ac_check_lib_save_LIBS
  9674. fi
  9675. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9676. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9677. if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
  9678. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9679. else
  9680. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9681. if test "x$ac_cv_func_dlopen" = x""yes; then :
  9682. lt_cv_dlopen="dlopen"
  9683. else
  9684. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9685. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9686. if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  9687. $as_echo_n "(cached) " >&6
  9688. else
  9689. ac_check_lib_save_LIBS=$LIBS
  9690. LIBS="-ldl $LIBS"
  9691. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9692. /* end confdefs.h. */
  9693. /* Override any GCC internal prototype to avoid an error.
  9694. Use char because int might match the return type of a GCC
  9695. builtin and then its argument prototype would still apply. */
  9696. #ifdef __cplusplus
  9697. extern "C"
  9698. #endif
  9699. char dlopen ();
  9700. int
  9701. main ()
  9702. {
  9703. return dlopen ();
  9704. ;
  9705. return 0;
  9706. }
  9707. _ACEOF
  9708. if ac_fn_c_try_link "$LINENO"; then :
  9709. ac_cv_lib_dl_dlopen=yes
  9710. else
  9711. ac_cv_lib_dl_dlopen=no
  9712. fi
  9713. rm -f core conftest.err conftest.$ac_objext \
  9714. conftest$ac_exeext conftest.$ac_ext
  9715. LIBS=$ac_check_lib_save_LIBS
  9716. fi
  9717. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9718. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9719. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  9720. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9721. else
  9722. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9723. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9724. if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
  9725. $as_echo_n "(cached) " >&6
  9726. else
  9727. ac_check_lib_save_LIBS=$LIBS
  9728. LIBS="-lsvld $LIBS"
  9729. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9730. /* end confdefs.h. */
  9731. /* Override any GCC internal prototype to avoid an error.
  9732. Use char because int might match the return type of a GCC
  9733. builtin and then its argument prototype would still apply. */
  9734. #ifdef __cplusplus
  9735. extern "C"
  9736. #endif
  9737. char dlopen ();
  9738. int
  9739. main ()
  9740. {
  9741. return dlopen ();
  9742. ;
  9743. return 0;
  9744. }
  9745. _ACEOF
  9746. if ac_fn_c_try_link "$LINENO"; then :
  9747. ac_cv_lib_svld_dlopen=yes
  9748. else
  9749. ac_cv_lib_svld_dlopen=no
  9750. fi
  9751. rm -f core conftest.err conftest.$ac_objext \
  9752. conftest$ac_exeext conftest.$ac_ext
  9753. LIBS=$ac_check_lib_save_LIBS
  9754. fi
  9755. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  9756. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9757. if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
  9758. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9759. else
  9760. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  9761. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9762. if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
  9763. $as_echo_n "(cached) " >&6
  9764. else
  9765. ac_check_lib_save_LIBS=$LIBS
  9766. LIBS="-ldld $LIBS"
  9767. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9768. /* end confdefs.h. */
  9769. /* Override any GCC internal prototype to avoid an error.
  9770. Use char because int might match the return type of a GCC
  9771. builtin and then its argument prototype would still apply. */
  9772. #ifdef __cplusplus
  9773. extern "C"
  9774. #endif
  9775. char dld_link ();
  9776. int
  9777. main ()
  9778. {
  9779. return dld_link ();
  9780. ;
  9781. return 0;
  9782. }
  9783. _ACEOF
  9784. if ac_fn_c_try_link "$LINENO"; then :
  9785. ac_cv_lib_dld_dld_link=yes
  9786. else
  9787. ac_cv_lib_dld_dld_link=no
  9788. fi
  9789. rm -f core conftest.err conftest.$ac_objext \
  9790. conftest$ac_exeext conftest.$ac_ext
  9791. LIBS=$ac_check_lib_save_LIBS
  9792. fi
  9793. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  9794. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9795. if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
  9796. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9797. fi
  9798. fi
  9799. fi
  9800. fi
  9801. fi
  9802. fi
  9803. ;;
  9804. esac
  9805. if test "x$lt_cv_dlopen" != xno; then
  9806. enable_dlopen=yes
  9807. else
  9808. enable_dlopen=no
  9809. fi
  9810. case $lt_cv_dlopen in
  9811. dlopen)
  9812. save_CPPFLAGS="$CPPFLAGS"
  9813. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9814. save_LDFLAGS="$LDFLAGS"
  9815. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9816. save_LIBS="$LIBS"
  9817. LIBS="$lt_cv_dlopen_libs $LIBS"
  9818. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  9819. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9820. if test "${lt_cv_dlopen_self+set}" = set; then :
  9821. $as_echo_n "(cached) " >&6
  9822. else
  9823. if test "$cross_compiling" = yes; then :
  9824. lt_cv_dlopen_self=cross
  9825. else
  9826. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9827. lt_status=$lt_dlunknown
  9828. cat > conftest.$ac_ext <<_LT_EOF
  9829. #line $LINENO "configure"
  9830. #include "confdefs.h"
  9831. #if HAVE_DLFCN_H
  9832. #include <dlfcn.h>
  9833. #endif
  9834. #include <stdio.h>
  9835. #ifdef RTLD_GLOBAL
  9836. # define LT_DLGLOBAL RTLD_GLOBAL
  9837. #else
  9838. # ifdef DL_GLOBAL
  9839. # define LT_DLGLOBAL DL_GLOBAL
  9840. # else
  9841. # define LT_DLGLOBAL 0
  9842. # endif
  9843. #endif
  9844. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9845. find out it does not work in some platform. */
  9846. #ifndef LT_DLLAZY_OR_NOW
  9847. # ifdef RTLD_LAZY
  9848. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9849. # else
  9850. # ifdef DL_LAZY
  9851. # define LT_DLLAZY_OR_NOW DL_LAZY
  9852. # else
  9853. # ifdef RTLD_NOW
  9854. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9855. # else
  9856. # ifdef DL_NOW
  9857. # define LT_DLLAZY_OR_NOW DL_NOW
  9858. # else
  9859. # define LT_DLLAZY_OR_NOW 0
  9860. # endif
  9861. # endif
  9862. # endif
  9863. # endif
  9864. #endif
  9865. /* When -fvisbility=hidden is used, assume the code has been annotated
  9866. correspondingly for the symbols needed. */
  9867. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9868. void fnord () __attribute__((visibility("default")));
  9869. #endif
  9870. void fnord () { int i=42; }
  9871. int main ()
  9872. {
  9873. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9874. int status = $lt_dlunknown;
  9875. if (self)
  9876. {
  9877. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9878. else
  9879. {
  9880. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9881. else puts (dlerror ());
  9882. }
  9883. /* dlclose (self); */
  9884. }
  9885. else
  9886. puts (dlerror ());
  9887. return status;
  9888. }
  9889. _LT_EOF
  9890. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9891. (eval $ac_link) 2>&5
  9892. ac_status=$?
  9893. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9894. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9895. (./conftest; exit; ) >&5 2>/dev/null
  9896. lt_status=$?
  9897. case x$lt_status in
  9898. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9899. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9900. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9901. esac
  9902. else :
  9903. # compilation failed
  9904. lt_cv_dlopen_self=no
  9905. fi
  9906. fi
  9907. rm -fr conftest*
  9908. fi
  9909. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  9910. $as_echo "$lt_cv_dlopen_self" >&6; }
  9911. if test "x$lt_cv_dlopen_self" = xyes; then
  9912. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9913. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  9914. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  9915. if test "${lt_cv_dlopen_self_static+set}" = set; then :
  9916. $as_echo_n "(cached) " >&6
  9917. else
  9918. if test "$cross_compiling" = yes; then :
  9919. lt_cv_dlopen_self_static=cross
  9920. else
  9921. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9922. lt_status=$lt_dlunknown
  9923. cat > conftest.$ac_ext <<_LT_EOF
  9924. #line $LINENO "configure"
  9925. #include "confdefs.h"
  9926. #if HAVE_DLFCN_H
  9927. #include <dlfcn.h>
  9928. #endif
  9929. #include <stdio.h>
  9930. #ifdef RTLD_GLOBAL
  9931. # define LT_DLGLOBAL RTLD_GLOBAL
  9932. #else
  9933. # ifdef DL_GLOBAL
  9934. # define LT_DLGLOBAL DL_GLOBAL
  9935. # else
  9936. # define LT_DLGLOBAL 0
  9937. # endif
  9938. #endif
  9939. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9940. find out it does not work in some platform. */
  9941. #ifndef LT_DLLAZY_OR_NOW
  9942. # ifdef RTLD_LAZY
  9943. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9944. # else
  9945. # ifdef DL_LAZY
  9946. # define LT_DLLAZY_OR_NOW DL_LAZY
  9947. # else
  9948. # ifdef RTLD_NOW
  9949. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9950. # else
  9951. # ifdef DL_NOW
  9952. # define LT_DLLAZY_OR_NOW DL_NOW
  9953. # else
  9954. # define LT_DLLAZY_OR_NOW 0
  9955. # endif
  9956. # endif
  9957. # endif
  9958. # endif
  9959. #endif
  9960. /* When -fvisbility=hidden is used, assume the code has been annotated
  9961. correspondingly for the symbols needed. */
  9962. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9963. void fnord () __attribute__((visibility("default")));
  9964. #endif
  9965. void fnord () { int i=42; }
  9966. int main ()
  9967. {
  9968. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9969. int status = $lt_dlunknown;
  9970. if (self)
  9971. {
  9972. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9973. else
  9974. {
  9975. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9976. else puts (dlerror ());
  9977. }
  9978. /* dlclose (self); */
  9979. }
  9980. else
  9981. puts (dlerror ());
  9982. return status;
  9983. }
  9984. _LT_EOF
  9985. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9986. (eval $ac_link) 2>&5
  9987. ac_status=$?
  9988. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9989. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9990. (./conftest; exit; ) >&5 2>/dev/null
  9991. lt_status=$?
  9992. case x$lt_status in
  9993. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9994. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9995. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9996. esac
  9997. else :
  9998. # compilation failed
  9999. lt_cv_dlopen_self_static=no
  10000. fi
  10001. fi
  10002. rm -fr conftest*
  10003. fi
  10004. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  10005. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  10006. fi
  10007. CPPFLAGS="$save_CPPFLAGS"
  10008. LDFLAGS="$save_LDFLAGS"
  10009. LIBS="$save_LIBS"
  10010. ;;
  10011. esac
  10012. case $lt_cv_dlopen_self in
  10013. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  10014. *) enable_dlopen_self=unknown ;;
  10015. esac
  10016. case $lt_cv_dlopen_self_static in
  10017. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  10018. *) enable_dlopen_self_static=unknown ;;
  10019. esac
  10020. fi
  10021. striplib=
  10022. old_striplib=
  10023. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  10024. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  10025. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  10026. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  10027. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  10028. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10029. $as_echo "yes" >&6; }
  10030. else
  10031. # FIXME - insert some real tests, host_os isn't really good enough
  10032. case $host_os in
  10033. darwin*)
  10034. if test -n "$STRIP" ; then
  10035. striplib="$STRIP -x"
  10036. old_striplib="$STRIP -S"
  10037. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10038. $as_echo "yes" >&6; }
  10039. else
  10040. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10041. $as_echo "no" >&6; }
  10042. fi
  10043. ;;
  10044. *)
  10045. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10046. $as_echo "no" >&6; }
  10047. ;;
  10048. esac
  10049. fi
  10050. # Report which library types will actually be built
  10051. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  10052. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  10053. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  10054. $as_echo "$can_build_shared" >&6; }
  10055. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  10056. $as_echo_n "checking whether to build shared libraries... " >&6; }
  10057. test "$can_build_shared" = "no" && enable_shared=no
  10058. # On AIX, shared libraries and static libraries use the same namespace, and
  10059. # are all built from PIC.
  10060. case $host_os in
  10061. aix3*)
  10062. test "$enable_shared" = yes && enable_static=no
  10063. if test -n "$RANLIB"; then
  10064. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  10065. postinstall_cmds='$RANLIB $lib'
  10066. fi
  10067. ;;
  10068. aix[4-9]*)
  10069. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  10070. test "$enable_shared" = yes && enable_static=no
  10071. fi
  10072. ;;
  10073. esac
  10074. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  10075. $as_echo "$enable_shared" >&6; }
  10076. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  10077. $as_echo_n "checking whether to build static libraries... " >&6; }
  10078. # Make sure either enable_shared or enable_static is yes.
  10079. test "$enable_shared" = yes || enable_static=yes
  10080. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  10081. $as_echo "$enable_static" >&6; }
  10082. fi
  10083. ac_ext=c
  10084. ac_cpp='$CPP $CPPFLAGS'
  10085. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10086. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10087. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10088. CC="$lt_save_CC"
  10089. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  10090. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  10091. (test "X$CXX" != "Xg++"))) ; then
  10092. ac_ext=cpp
  10093. ac_cpp='$CXXCPP $CPPFLAGS'
  10094. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10095. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10096. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10097. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  10098. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  10099. if test -z "$CXXCPP"; then
  10100. if test "${ac_cv_prog_CXXCPP+set}" = set; then :
  10101. $as_echo_n "(cached) " >&6
  10102. else
  10103. # Double quotes because CXXCPP needs to be expanded
  10104. for CXXCPP in "$CXX -E" "/lib/cpp"
  10105. do
  10106. ac_preproc_ok=false
  10107. for ac_cxx_preproc_warn_flag in '' yes
  10108. do
  10109. # Use a header file that comes with gcc, so configuring glibc
  10110. # with a fresh cross-compiler works.
  10111. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10112. # <limits.h> exists even on freestanding compilers.
  10113. # On the NeXT, cc -E runs the code through the compiler's parser,
  10114. # not just through cpp. "Syntax error" is here to catch this case.
  10115. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10116. /* end confdefs.h. */
  10117. #ifdef __STDC__
  10118. # include <limits.h>
  10119. #else
  10120. # include <assert.h>
  10121. #endif
  10122. Syntax error
  10123. _ACEOF
  10124. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10125. else
  10126. # Broken: fails on valid input.
  10127. continue
  10128. fi
  10129. rm -f conftest.err conftest.$ac_ext
  10130. # OK, works on sane cases. Now check whether nonexistent headers
  10131. # can be detected and how.
  10132. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10133. /* end confdefs.h. */
  10134. #include <ac_nonexistent.h>
  10135. _ACEOF
  10136. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10137. # Broken: success on invalid input.
  10138. continue
  10139. else
  10140. # Passes both tests.
  10141. ac_preproc_ok=:
  10142. break
  10143. fi
  10144. rm -f conftest.err conftest.$ac_ext
  10145. done
  10146. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10147. rm -f conftest.err conftest.$ac_ext
  10148. if $ac_preproc_ok; then :
  10149. break
  10150. fi
  10151. done
  10152. ac_cv_prog_CXXCPP=$CXXCPP
  10153. fi
  10154. CXXCPP=$ac_cv_prog_CXXCPP
  10155. else
  10156. ac_cv_prog_CXXCPP=$CXXCPP
  10157. fi
  10158. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  10159. $as_echo "$CXXCPP" >&6; }
  10160. ac_preproc_ok=false
  10161. for ac_cxx_preproc_warn_flag in '' yes
  10162. do
  10163. # Use a header file that comes with gcc, so configuring glibc
  10164. # with a fresh cross-compiler works.
  10165. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10166. # <limits.h> exists even on freestanding compilers.
  10167. # On the NeXT, cc -E runs the code through the compiler's parser,
  10168. # not just through cpp. "Syntax error" is here to catch this case.
  10169. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10170. /* end confdefs.h. */
  10171. #ifdef __STDC__
  10172. # include <limits.h>
  10173. #else
  10174. # include <assert.h>
  10175. #endif
  10176. Syntax error
  10177. _ACEOF
  10178. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10179. else
  10180. # Broken: fails on valid input.
  10181. continue
  10182. fi
  10183. rm -f conftest.err conftest.$ac_ext
  10184. # OK, works on sane cases. Now check whether nonexistent headers
  10185. # can be detected and how.
  10186. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10187. /* end confdefs.h. */
  10188. #include <ac_nonexistent.h>
  10189. _ACEOF
  10190. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10191. # Broken: success on invalid input.
  10192. continue
  10193. else
  10194. # Passes both tests.
  10195. ac_preproc_ok=:
  10196. break
  10197. fi
  10198. rm -f conftest.err conftest.$ac_ext
  10199. done
  10200. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10201. rm -f conftest.err conftest.$ac_ext
  10202. if $ac_preproc_ok; then :
  10203. else
  10204. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10205. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10206. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  10207. See \`config.log' for more details" "$LINENO" 5; }
  10208. fi
  10209. ac_ext=c
  10210. ac_cpp='$CPP $CPPFLAGS'
  10211. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10212. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10213. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10214. else
  10215. _lt_caught_CXX_error=yes
  10216. fi
  10217. ac_ext=cpp
  10218. ac_cpp='$CXXCPP $CPPFLAGS'
  10219. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10220. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10221. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10222. archive_cmds_need_lc_CXX=no
  10223. allow_undefined_flag_CXX=
  10224. always_export_symbols_CXX=no
  10225. archive_expsym_cmds_CXX=
  10226. compiler_needs_object_CXX=no
  10227. export_dynamic_flag_spec_CXX=
  10228. hardcode_direct_CXX=no
  10229. hardcode_direct_absolute_CXX=no
  10230. hardcode_libdir_flag_spec_CXX=
  10231. hardcode_libdir_flag_spec_ld_CXX=
  10232. hardcode_libdir_separator_CXX=
  10233. hardcode_minus_L_CXX=no
  10234. hardcode_shlibpath_var_CXX=unsupported
  10235. hardcode_automatic_CXX=no
  10236. inherit_rpath_CXX=no
  10237. module_cmds_CXX=
  10238. module_expsym_cmds_CXX=
  10239. link_all_deplibs_CXX=unknown
  10240. old_archive_cmds_CXX=$old_archive_cmds
  10241. reload_flag_CXX=$reload_flag
  10242. reload_cmds_CXX=$reload_cmds
  10243. no_undefined_flag_CXX=
  10244. whole_archive_flag_spec_CXX=
  10245. enable_shared_with_static_runtimes_CXX=no
  10246. # Source file extension for C++ test sources.
  10247. ac_ext=cpp
  10248. # Object file extension for compiled C++ test sources.
  10249. objext=o
  10250. objext_CXX=$objext
  10251. # No sense in running all these tests if we already determined that
  10252. # the CXX compiler isn't working. Some variables (like enable_shared)
  10253. # are currently assumed to apply to all compilers on this platform,
  10254. # and will be corrupted by setting them based on a non-working compiler.
  10255. if test "$_lt_caught_CXX_error" != yes; then
  10256. # Code to be used in simple compile tests
  10257. lt_simple_compile_test_code="int some_variable = 0;"
  10258. # Code to be used in simple link tests
  10259. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  10260. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10261. # If no C compiler was specified, use CC.
  10262. LTCC=${LTCC-"$CC"}
  10263. # If no C compiler flags were specified, use CFLAGS.
  10264. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10265. # Allow CC to be a program name with arguments.
  10266. compiler=$CC
  10267. # save warnings/boilerplate of simple test code
  10268. ac_outfile=conftest.$ac_objext
  10269. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10270. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10271. _lt_compiler_boilerplate=`cat conftest.err`
  10272. $RM conftest*
  10273. ac_outfile=conftest.$ac_objext
  10274. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10275. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10276. _lt_linker_boilerplate=`cat conftest.err`
  10277. $RM -r conftest*
  10278. # Allow CC to be a program name with arguments.
  10279. lt_save_CC=$CC
  10280. lt_save_LD=$LD
  10281. lt_save_GCC=$GCC
  10282. GCC=$GXX
  10283. lt_save_with_gnu_ld=$with_gnu_ld
  10284. lt_save_path_LD=$lt_cv_path_LD
  10285. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  10286. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  10287. else
  10288. $as_unset lt_cv_prog_gnu_ld
  10289. fi
  10290. if test -n "${lt_cv_path_LDCXX+set}"; then
  10291. lt_cv_path_LD=$lt_cv_path_LDCXX
  10292. else
  10293. $as_unset lt_cv_path_LD
  10294. fi
  10295. test -z "${LDCXX+set}" || LD=$LDCXX
  10296. CC=${CXX-"c++"}
  10297. compiler=$CC
  10298. compiler_CXX=$CC
  10299. for cc_temp in $compiler""; do
  10300. case $cc_temp in
  10301. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  10302. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  10303. \-*) ;;
  10304. *) break;;
  10305. esac
  10306. done
  10307. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  10308. if test -n "$compiler"; then
  10309. # We don't want -fno-exception when compiling C++ code, so set the
  10310. # no_builtin_flag separately
  10311. if test "$GXX" = yes; then
  10312. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  10313. else
  10314. lt_prog_compiler_no_builtin_flag_CXX=
  10315. fi
  10316. if test "$GXX" = yes; then
  10317. # Set up default GNU C++ configuration
  10318. # Check whether --with-gnu-ld was given.
  10319. if test "${with_gnu_ld+set}" = set; then :
  10320. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  10321. else
  10322. with_gnu_ld=no
  10323. fi
  10324. ac_prog=ld
  10325. if test "$GCC" = yes; then
  10326. # Check if gcc -print-prog-name=ld gives a path.
  10327. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  10328. $as_echo_n "checking for ld used by $CC... " >&6; }
  10329. case $host in
  10330. *-*-mingw*)
  10331. # gcc leaves a trailing carriage return which upsets mingw
  10332. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  10333. *)
  10334. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  10335. esac
  10336. case $ac_prog in
  10337. # Accept absolute paths.
  10338. [\\/]* | ?:[\\/]*)
  10339. re_direlt='/[^/][^/]*/\.\./'
  10340. # Canonicalize the pathname of ld
  10341. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  10342. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  10343. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  10344. done
  10345. test -z "$LD" && LD="$ac_prog"
  10346. ;;
  10347. "")
  10348. # If it fails, then pretend we aren't using GCC.
  10349. ac_prog=ld
  10350. ;;
  10351. *)
  10352. # If it is relative, then search for the first ld in PATH.
  10353. with_gnu_ld=unknown
  10354. ;;
  10355. esac
  10356. elif test "$with_gnu_ld" = yes; then
  10357. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  10358. $as_echo_n "checking for GNU ld... " >&6; }
  10359. else
  10360. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  10361. $as_echo_n "checking for non-GNU ld... " >&6; }
  10362. fi
  10363. if test "${lt_cv_path_LD+set}" = set; then :
  10364. $as_echo_n "(cached) " >&6
  10365. else
  10366. if test -z "$LD"; then
  10367. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  10368. for ac_dir in $PATH; do
  10369. IFS="$lt_save_ifs"
  10370. test -z "$ac_dir" && ac_dir=.
  10371. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  10372. lt_cv_path_LD="$ac_dir/$ac_prog"
  10373. # Check to see if the program is GNU ld. I'd rather use --version,
  10374. # but apparently some variants of GNU ld only accept -v.
  10375. # Break only if it was the GNU/non-GNU ld that we prefer.
  10376. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  10377. *GNU* | *'with BFD'*)
  10378. test "$with_gnu_ld" != no && break
  10379. ;;
  10380. *)
  10381. test "$with_gnu_ld" != yes && break
  10382. ;;
  10383. esac
  10384. fi
  10385. done
  10386. IFS="$lt_save_ifs"
  10387. else
  10388. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  10389. fi
  10390. fi
  10391. LD="$lt_cv_path_LD"
  10392. if test -n "$LD"; then
  10393. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  10394. $as_echo "$LD" >&6; }
  10395. else
  10396. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10397. $as_echo "no" >&6; }
  10398. fi
  10399. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  10400. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  10401. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  10402. if test "${lt_cv_prog_gnu_ld+set}" = set; then :
  10403. $as_echo_n "(cached) " >&6
  10404. else
  10405. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  10406. case `$LD -v 2>&1 </dev/null` in
  10407. *GNU* | *'with BFD'*)
  10408. lt_cv_prog_gnu_ld=yes
  10409. ;;
  10410. *)
  10411. lt_cv_prog_gnu_ld=no
  10412. ;;
  10413. esac
  10414. fi
  10415. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  10416. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  10417. with_gnu_ld=$lt_cv_prog_gnu_ld
  10418. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  10419. # archiving commands below assume that GNU ld is being used.
  10420. if test "$with_gnu_ld" = yes; then
  10421. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10422. archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  10423. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10424. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10425. # If archive_cmds runs LD, not CC, wlarc should be empty
  10426. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  10427. # investigate it a little bit more. (MM)
  10428. wlarc='${wl}'
  10429. # ancient GNU ld didn't support --whole-archive et. al.
  10430. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  10431. $GREP 'no-whole-archive' > /dev/null; then
  10432. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10433. else
  10434. whole_archive_flag_spec_CXX=
  10435. fi
  10436. else
  10437. with_gnu_ld=no
  10438. wlarc=
  10439. # A generic and very simple default shared library creation
  10440. # command for GNU C++ for the case where it uses the native
  10441. # linker, instead of GNU ld. If possible, this setting should
  10442. # overridden to take advantage of the native linker features on
  10443. # the platform it is being used on.
  10444. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10445. fi
  10446. # Commands to make compiler produce verbose output that lists
  10447. # what "hidden" libraries, object files and flags are used when
  10448. # linking a shared library.
  10449. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  10450. else
  10451. GXX=no
  10452. with_gnu_ld=no
  10453. wlarc=
  10454. fi
  10455. # PORTME: fill in a description of your system's C++ link characteristics
  10456. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  10457. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  10458. ld_shlibs_CXX=yes
  10459. case $host_os in
  10460. aix3*)
  10461. # FIXME: insert proper C++ library support
  10462. ld_shlibs_CXX=no
  10463. ;;
  10464. aix[4-9]*)
  10465. if test "$host_cpu" = ia64; then
  10466. # On IA64, the linker does run time linking by default, so we don't
  10467. # have to do anything special.
  10468. aix_use_runtimelinking=no
  10469. exp_sym_flag='-Bexport'
  10470. no_entry_flag=""
  10471. else
  10472. aix_use_runtimelinking=no
  10473. # Test if we are trying to use run time linking or normal
  10474. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  10475. # need to do runtime linking.
  10476. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  10477. for ld_flag in $LDFLAGS; do
  10478. case $ld_flag in
  10479. *-brtl*)
  10480. aix_use_runtimelinking=yes
  10481. break
  10482. ;;
  10483. esac
  10484. done
  10485. ;;
  10486. esac
  10487. exp_sym_flag='-bexport'
  10488. no_entry_flag='-bnoentry'
  10489. fi
  10490. # When large executables or shared objects are built, AIX ld can
  10491. # have problems creating the table of contents. If linking a library
  10492. # or program results in "error TOC overflow" add -mminimal-toc to
  10493. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  10494. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  10495. archive_cmds_CXX=''
  10496. hardcode_direct_CXX=yes
  10497. hardcode_direct_absolute_CXX=yes
  10498. hardcode_libdir_separator_CXX=':'
  10499. link_all_deplibs_CXX=yes
  10500. file_list_spec_CXX='${wl}-f,'
  10501. if test "$GXX" = yes; then
  10502. case $host_os in aix4.[012]|aix4.[012].*)
  10503. # We only want to do this on AIX 4.2 and lower, the check
  10504. # below for broken collect2 doesn't work under 4.3+
  10505. collect2name=`${CC} -print-prog-name=collect2`
  10506. if test -f "$collect2name" &&
  10507. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  10508. then
  10509. # We have reworked collect2
  10510. :
  10511. else
  10512. # We have old collect2
  10513. hardcode_direct_CXX=unsupported
  10514. # It fails to find uninstalled libraries when the uninstalled
  10515. # path is not listed in the libpath. Setting hardcode_minus_L
  10516. # to unsupported forces relinking
  10517. hardcode_minus_L_CXX=yes
  10518. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10519. hardcode_libdir_separator_CXX=
  10520. fi
  10521. esac
  10522. shared_flag='-shared'
  10523. if test "$aix_use_runtimelinking" = yes; then
  10524. shared_flag="$shared_flag "'${wl}-G'
  10525. fi
  10526. else
  10527. # not using gcc
  10528. if test "$host_cpu" = ia64; then
  10529. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  10530. # chokes on -Wl,-G. The following line is correct:
  10531. shared_flag='-G'
  10532. else
  10533. if test "$aix_use_runtimelinking" = yes; then
  10534. shared_flag='${wl}-G'
  10535. else
  10536. shared_flag='${wl}-bM:SRE'
  10537. fi
  10538. fi
  10539. fi
  10540. export_dynamic_flag_spec_CXX='${wl}-bexpall'
  10541. # It seems that -bexpall does not export symbols beginning with
  10542. # underscore (_), so it is better to generate a list of symbols to
  10543. # export.
  10544. always_export_symbols_CXX=yes
  10545. if test "$aix_use_runtimelinking" = yes; then
  10546. # Warning - without using the other runtime loading flags (-brtl),
  10547. # -berok will link without error, but may produce a broken library.
  10548. allow_undefined_flag_CXX='-berok'
  10549. # Determine the default libpath from the value encoded in an empty
  10550. # executable.
  10551. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10552. /* end confdefs.h. */
  10553. int
  10554. main ()
  10555. {
  10556. ;
  10557. return 0;
  10558. }
  10559. _ACEOF
  10560. if ac_fn_cxx_try_link "$LINENO"; then :
  10561. lt_aix_libpath_sed='
  10562. /Import File Strings/,/^$/ {
  10563. /^0/ {
  10564. s/^0 *\(.*\)$/\1/
  10565. p
  10566. }
  10567. }'
  10568. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10569. # Check for a 64-bit object if we didn't find anything.
  10570. if test -z "$aix_libpath"; then
  10571. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10572. fi
  10573. fi
  10574. rm -f core conftest.err conftest.$ac_objext \
  10575. conftest$ac_exeext conftest.$ac_ext
  10576. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  10577. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  10578. 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"
  10579. else
  10580. if test "$host_cpu" = ia64; then
  10581. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  10582. allow_undefined_flag_CXX="-z nodefs"
  10583. 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"
  10584. else
  10585. # Determine the default libpath from the value encoded in an
  10586. # empty executable.
  10587. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10588. /* end confdefs.h. */
  10589. int
  10590. main ()
  10591. {
  10592. ;
  10593. return 0;
  10594. }
  10595. _ACEOF
  10596. if ac_fn_cxx_try_link "$LINENO"; then :
  10597. lt_aix_libpath_sed='
  10598. /Import File Strings/,/^$/ {
  10599. /^0/ {
  10600. s/^0 *\(.*\)$/\1/
  10601. p
  10602. }
  10603. }'
  10604. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10605. # Check for a 64-bit object if we didn't find anything.
  10606. if test -z "$aix_libpath"; then
  10607. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10608. fi
  10609. fi
  10610. rm -f core conftest.err conftest.$ac_objext \
  10611. conftest$ac_exeext conftest.$ac_ext
  10612. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  10613. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  10614. # Warning - without using the other run time loading flags,
  10615. # -berok will link without error, but may produce a broken library.
  10616. no_undefined_flag_CXX=' ${wl}-bernotok'
  10617. allow_undefined_flag_CXX=' ${wl}-berok'
  10618. if test "$with_gnu_ld" = yes; then
  10619. # We only use this code for GNU lds that support --whole-archive.
  10620. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  10621. else
  10622. # Exported symbols can be pulled into shared objects from archives
  10623. whole_archive_flag_spec_CXX='$convenience'
  10624. fi
  10625. archive_cmds_need_lc_CXX=yes
  10626. # This is similar to how AIX traditionally builds its shared
  10627. # libraries.
  10628. 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'
  10629. fi
  10630. fi
  10631. ;;
  10632. beos*)
  10633. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  10634. allow_undefined_flag_CXX=unsupported
  10635. # Joseph Beckenbach <[email protected]> says some releases of gcc
  10636. # support --undefined. This deserves some investigation. FIXME
  10637. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10638. else
  10639. ld_shlibs_CXX=no
  10640. fi
  10641. ;;
  10642. chorus*)
  10643. case $cc_basename in
  10644. *)
  10645. # FIXME: insert proper C++ library support
  10646. ld_shlibs_CXX=no
  10647. ;;
  10648. esac
  10649. ;;
  10650. cygwin* | mingw* | pw32* | cegcc*)
  10651. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  10652. # as there is no search path for DLLs.
  10653. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10654. export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
  10655. allow_undefined_flag_CXX=unsupported
  10656. always_export_symbols_CXX=no
  10657. enable_shared_with_static_runtimes_CXX=yes
  10658. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  10659. 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'
  10660. # If the export-symbols file already is a .def file (1st line
  10661. # is EXPORTS), use it as is; otherwise, prepend...
  10662. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  10663. cp $export_symbols $output_objdir/$soname.def;
  10664. else
  10665. echo EXPORTS > $output_objdir/$soname.def;
  10666. cat $export_symbols >> $output_objdir/$soname.def;
  10667. fi~
  10668. $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'
  10669. else
  10670. ld_shlibs_CXX=no
  10671. fi
  10672. ;;
  10673. darwin* | rhapsody*)
  10674. archive_cmds_need_lc_CXX=no
  10675. hardcode_direct_CXX=no
  10676. hardcode_automatic_CXX=yes
  10677. hardcode_shlibpath_var_CXX=unsupported
  10678. if test "$lt_cv_ld_force_load" = "yes"; then
  10679. 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\"`'
  10680. else
  10681. whole_archive_flag_spec_CXX=''
  10682. fi
  10683. link_all_deplibs_CXX=yes
  10684. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  10685. case $cc_basename in
  10686. ifort*) _lt_dar_can_shared=yes ;;
  10687. *) _lt_dar_can_shared=$GCC ;;
  10688. esac
  10689. if test "$_lt_dar_can_shared" = "yes"; then
  10690. output_verbose_link_cmd=func_echo_all
  10691. 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}"
  10692. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  10693. 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}"
  10694. 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}"
  10695. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  10696. 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}"
  10697. 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}"
  10698. fi
  10699. else
  10700. ld_shlibs_CXX=no
  10701. fi
  10702. ;;
  10703. dgux*)
  10704. case $cc_basename in
  10705. ec++*)
  10706. # FIXME: insert proper C++ library support
  10707. ld_shlibs_CXX=no
  10708. ;;
  10709. ghcx*)
  10710. # Green Hills C++ Compiler
  10711. # FIXME: insert proper C++ library support
  10712. ld_shlibs_CXX=no
  10713. ;;
  10714. *)
  10715. # FIXME: insert proper C++ library support
  10716. ld_shlibs_CXX=no
  10717. ;;
  10718. esac
  10719. ;;
  10720. freebsd[12]*)
  10721. # C++ shared libraries reported to be fairly broken before
  10722. # switch to ELF
  10723. ld_shlibs_CXX=no
  10724. ;;
  10725. freebsd-elf*)
  10726. archive_cmds_need_lc_CXX=no
  10727. ;;
  10728. freebsd* | dragonfly*)
  10729. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  10730. # conventions
  10731. ld_shlibs_CXX=yes
  10732. ;;
  10733. gnu*)
  10734. ;;
  10735. haiku*)
  10736. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10737. link_all_deplibs_CXX=yes
  10738. ;;
  10739. hpux9*)
  10740. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  10741. hardcode_libdir_separator_CXX=:
  10742. export_dynamic_flag_spec_CXX='${wl}-E'
  10743. hardcode_direct_CXX=yes
  10744. hardcode_minus_L_CXX=yes # Not in the search PATH,
  10745. # but as the default
  10746. # location of the library.
  10747. case $cc_basename in
  10748. CC*)
  10749. # FIXME: insert proper C++ library support
  10750. ld_shlibs_CXX=no
  10751. ;;
  10752. aCC*)
  10753. 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'
  10754. # Commands to make compiler produce verbose output that lists
  10755. # what "hidden" libraries, object files and flags are used when
  10756. # linking a shared library.
  10757. #
  10758. # There doesn't appear to be a way to prevent this compiler from
  10759. # explicitly linking system object files so we need to strip them
  10760. # from the output so that they don't get included in the library
  10761. # dependencies.
  10762. 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"'
  10763. ;;
  10764. *)
  10765. if test "$GXX" = yes; then
  10766. archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  10767. else
  10768. # FIXME: insert proper C++ library support
  10769. ld_shlibs_CXX=no
  10770. fi
  10771. ;;
  10772. esac
  10773. ;;
  10774. hpux10*|hpux11*)
  10775. if test $with_gnu_ld = no; then
  10776. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  10777. hardcode_libdir_separator_CXX=:
  10778. case $host_cpu in
  10779. hppa*64*|ia64*)
  10780. ;;
  10781. *)
  10782. export_dynamic_flag_spec_CXX='${wl}-E'
  10783. ;;
  10784. esac
  10785. fi
  10786. case $host_cpu in
  10787. hppa*64*|ia64*)
  10788. hardcode_direct_CXX=no
  10789. hardcode_shlibpath_var_CXX=no
  10790. ;;
  10791. *)
  10792. hardcode_direct_CXX=yes
  10793. hardcode_direct_absolute_CXX=yes
  10794. hardcode_minus_L_CXX=yes # Not in the search PATH,
  10795. # but as the default
  10796. # location of the library.
  10797. ;;
  10798. esac
  10799. case $cc_basename in
  10800. CC*)
  10801. # FIXME: insert proper C++ library support
  10802. ld_shlibs_CXX=no
  10803. ;;
  10804. aCC*)
  10805. case $host_cpu in
  10806. hppa*64*)
  10807. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10808. ;;
  10809. ia64*)
  10810. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10811. ;;
  10812. *)
  10813. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10814. ;;
  10815. esac
  10816. # Commands to make compiler produce verbose output that lists
  10817. # what "hidden" libraries, object files and flags are used when
  10818. # linking a shared library.
  10819. #
  10820. # There doesn't appear to be a way to prevent this compiler from
  10821. # explicitly linking system object files so we need to strip them
  10822. # from the output so that they don't get included in the library
  10823. # dependencies.
  10824. 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"'
  10825. ;;
  10826. *)
  10827. if test "$GXX" = yes; then
  10828. if test $with_gnu_ld = no; then
  10829. case $host_cpu in
  10830. hppa*64*)
  10831. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10832. ;;
  10833. ia64*)
  10834. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10835. ;;
  10836. *)
  10837. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10838. ;;
  10839. esac
  10840. fi
  10841. else
  10842. # FIXME: insert proper C++ library support
  10843. ld_shlibs_CXX=no
  10844. fi
  10845. ;;
  10846. esac
  10847. ;;
  10848. interix[3-9]*)
  10849. hardcode_direct_CXX=no
  10850. hardcode_shlibpath_var_CXX=no
  10851. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10852. export_dynamic_flag_spec_CXX='${wl}-E'
  10853. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  10854. # Instead, shared libraries are loaded at an image base (0x10000000 by
  10855. # default) and relocated if they conflict, which is a slow very memory
  10856. # consuming and fragmenting process. To avoid this, we pick a random,
  10857. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  10858. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  10859. 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'
  10860. 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'
  10861. ;;
  10862. irix5* | irix6*)
  10863. case $cc_basename in
  10864. CC*)
  10865. # SGI C++
  10866. 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'
  10867. # Archives containing C++ object files must be created using
  10868. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  10869. # necessary to make sure instantiated templates are included
  10870. # in the archive.
  10871. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  10872. ;;
  10873. *)
  10874. if test "$GXX" = yes; then
  10875. if test "$with_gnu_ld" = no; then
  10876. archive_cmds_CXX='$CC -shared -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'
  10877. else
  10878. archive_cmds_CXX='$CC -shared -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'
  10879. fi
  10880. fi
  10881. link_all_deplibs_CXX=yes
  10882. ;;
  10883. esac
  10884. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10885. hardcode_libdir_separator_CXX=:
  10886. inherit_rpath_CXX=yes
  10887. ;;
  10888. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  10889. case $cc_basename in
  10890. KCC*)
  10891. # Kuck and Associates, Inc. (KAI) C++ Compiler
  10892. # KCC will only create a shared library if the output file
  10893. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  10894. # to its proper name (with version) after linking.
  10895. 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'
  10896. 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'
  10897. # Commands to make compiler produce verbose output that lists
  10898. # what "hidden" libraries, object files and flags are used when
  10899. # linking a shared library.
  10900. #
  10901. # There doesn't appear to be a way to prevent this compiler from
  10902. # explicitly linking system object files so we need to strip them
  10903. # from the output so that they don't get included in the library
  10904. # dependencies.
  10905. 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"'
  10906. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10907. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10908. # Archives containing C++ object files must be created using
  10909. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  10910. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  10911. ;;
  10912. icpc* | ecpc* )
  10913. # Intel C++
  10914. with_gnu_ld=yes
  10915. # version 8.0 and above of icpc choke on multiply defined symbols
  10916. # if we add $predep_objects and $postdep_objects, however 7.1 and
  10917. # earlier do not add the objects themselves.
  10918. case `$CC -V 2>&1` in
  10919. *"Version 7."*)
  10920. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10921. 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'
  10922. ;;
  10923. *) # Version 8.0 or newer
  10924. tmp_idyn=
  10925. case $host_cpu in
  10926. ia64*) tmp_idyn=' -i_dynamic';;
  10927. esac
  10928. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10929. 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'
  10930. ;;
  10931. esac
  10932. archive_cmds_need_lc_CXX=no
  10933. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10934. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10935. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  10936. ;;
  10937. pgCC* | pgcpp*)
  10938. # Portland Group C++ compiler
  10939. case `$CC -V` in
  10940. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  10941. prelink_cmds_CXX='tpldir=Template.dir~
  10942. rm -rf $tpldir~
  10943. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  10944. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  10945. old_archive_cmds_CXX='tpldir=Template.dir~
  10946. rm -rf $tpldir~
  10947. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  10948. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  10949. $RANLIB $oldlib'
  10950. archive_cmds_CXX='tpldir=Template.dir~
  10951. rm -rf $tpldir~
  10952. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  10953. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  10954. archive_expsym_cmds_CXX='tpldir=Template.dir~
  10955. rm -rf $tpldir~
  10956. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  10957. $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'
  10958. ;;
  10959. *) # Version 6 and above use weak symbols
  10960. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  10961. 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'
  10962. ;;
  10963. esac
  10964. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  10965. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10966. 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'
  10967. ;;
  10968. cxx*)
  10969. # Compaq C++
  10970. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10971. 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'
  10972. runpath_var=LD_RUN_PATH
  10973. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  10974. hardcode_libdir_separator_CXX=:
  10975. # Commands to make compiler produce verbose output that lists
  10976. # what "hidden" libraries, object files and flags are used when
  10977. # linking a shared library.
  10978. #
  10979. # There doesn't appear to be a way to prevent this compiler from
  10980. # explicitly linking system object files so we need to strip them
  10981. # from the output so that they don't get included in the library
  10982. # dependencies.
  10983. 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'
  10984. ;;
  10985. xl* | mpixl* | bgxl*)
  10986. # IBM XL 8.0 on PPC, with GNU ld
  10987. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10988. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10989. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10990. if test "x$supports_anon_versioning" = xyes; then
  10991. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  10992. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  10993. echo "local: *; };" >> $output_objdir/$libname.ver~
  10994. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  10995. fi
  10996. ;;
  10997. *)
  10998. case `$CC -V 2>&1 | sed 5q` in
  10999. *Sun\ C*)
  11000. # Sun C++ 5.9
  11001. no_undefined_flag_CXX=' -zdefs'
  11002. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11003. 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'
  11004. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11005. 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'
  11006. compiler_needs_object_CXX=yes
  11007. # Not sure whether something based on
  11008. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  11009. # would be better.
  11010. output_verbose_link_cmd='func_echo_all'
  11011. # Archives containing C++ object files must be created using
  11012. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11013. # necessary to make sure instantiated templates are included
  11014. # in the archive.
  11015. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11016. ;;
  11017. esac
  11018. ;;
  11019. esac
  11020. ;;
  11021. lynxos*)
  11022. # FIXME: insert proper C++ library support
  11023. ld_shlibs_CXX=no
  11024. ;;
  11025. m88k*)
  11026. # FIXME: insert proper C++ library support
  11027. ld_shlibs_CXX=no
  11028. ;;
  11029. mvs*)
  11030. case $cc_basename in
  11031. cxx*)
  11032. # FIXME: insert proper C++ library support
  11033. ld_shlibs_CXX=no
  11034. ;;
  11035. *)
  11036. # FIXME: insert proper C++ library support
  11037. ld_shlibs_CXX=no
  11038. ;;
  11039. esac
  11040. ;;
  11041. netbsd*)
  11042. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11043. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  11044. wlarc=
  11045. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11046. hardcode_direct_CXX=yes
  11047. hardcode_shlibpath_var_CXX=no
  11048. fi
  11049. # Workaround some broken pre-1.5 toolchains
  11050. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  11051. ;;
  11052. *nto* | *qnx*)
  11053. ld_shlibs_CXX=yes
  11054. ;;
  11055. openbsd2*)
  11056. # C++ shared libraries are fairly broken
  11057. ld_shlibs_CXX=no
  11058. ;;
  11059. openbsd*)
  11060. if test -f /usr/libexec/ld.so; then
  11061. hardcode_direct_CXX=yes
  11062. hardcode_shlibpath_var_CXX=no
  11063. hardcode_direct_absolute_CXX=yes
  11064. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11065. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11066. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11067. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  11068. export_dynamic_flag_spec_CXX='${wl}-E'
  11069. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11070. fi
  11071. output_verbose_link_cmd=func_echo_all
  11072. else
  11073. ld_shlibs_CXX=no
  11074. fi
  11075. ;;
  11076. osf3* | osf4* | osf5*)
  11077. case $cc_basename in
  11078. KCC*)
  11079. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11080. # KCC will only create a shared library if the output file
  11081. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11082. # to its proper name (with version) after linking.
  11083. 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'
  11084. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11085. hardcode_libdir_separator_CXX=:
  11086. # Archives containing C++ object files must be created using
  11087. # the KAI C++ compiler.
  11088. case $host in
  11089. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  11090. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  11091. esac
  11092. ;;
  11093. RCC*)
  11094. # Rational C++ 2.4.1
  11095. # FIXME: insert proper C++ library support
  11096. ld_shlibs_CXX=no
  11097. ;;
  11098. cxx*)
  11099. case $host in
  11100. osf3*)
  11101. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11102. 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'
  11103. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11104. ;;
  11105. *)
  11106. allow_undefined_flag_CXX=' -expect_unresolved \*'
  11107. 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'
  11108. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  11109. echo "-hidden">> $lib.exp~
  11110. $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~
  11111. $RM $lib.exp'
  11112. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11113. ;;
  11114. esac
  11115. hardcode_libdir_separator_CXX=:
  11116. # Commands to make compiler produce verbose output that lists
  11117. # what "hidden" libraries, object files and flags are used when
  11118. # linking a shared library.
  11119. #
  11120. # There doesn't appear to be a way to prevent this compiler from
  11121. # explicitly linking system object files so we need to strip them
  11122. # from the output so that they don't get included in the library
  11123. # dependencies.
  11124. 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"'
  11125. ;;
  11126. *)
  11127. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11128. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11129. case $host in
  11130. osf3*)
  11131. 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'
  11132. ;;
  11133. *)
  11134. archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  11135. ;;
  11136. esac
  11137. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11138. hardcode_libdir_separator_CXX=:
  11139. # Commands to make compiler produce verbose output that lists
  11140. # what "hidden" libraries, object files and flags are used when
  11141. # linking a shared library.
  11142. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11143. else
  11144. # FIXME: insert proper C++ library support
  11145. ld_shlibs_CXX=no
  11146. fi
  11147. ;;
  11148. esac
  11149. ;;
  11150. psos*)
  11151. # FIXME: insert proper C++ library support
  11152. ld_shlibs_CXX=no
  11153. ;;
  11154. sunos4*)
  11155. case $cc_basename in
  11156. CC*)
  11157. # Sun C++ 4.x
  11158. # FIXME: insert proper C++ library support
  11159. ld_shlibs_CXX=no
  11160. ;;
  11161. lcc*)
  11162. # Lucid
  11163. # FIXME: insert proper C++ library support
  11164. ld_shlibs_CXX=no
  11165. ;;
  11166. *)
  11167. # FIXME: insert proper C++ library support
  11168. ld_shlibs_CXX=no
  11169. ;;
  11170. esac
  11171. ;;
  11172. solaris*)
  11173. case $cc_basename in
  11174. CC* | sunCC*)
  11175. # Sun C++ 4.2, 5.x and Centerline C++
  11176. archive_cmds_need_lc_CXX=yes
  11177. no_undefined_flag_CXX=' -zdefs'
  11178. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11179. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11180. $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'
  11181. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11182. hardcode_shlibpath_var_CXX=no
  11183. case $host_os in
  11184. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11185. *)
  11186. # The compiler driver will combine and reorder linker options,
  11187. # but understands `-z linker_flag'.
  11188. # Supported since Solaris 2.6 (maybe 2.5.1?)
  11189. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  11190. ;;
  11191. esac
  11192. link_all_deplibs_CXX=yes
  11193. output_verbose_link_cmd='func_echo_all'
  11194. # Archives containing C++ object files must be created using
  11195. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11196. # necessary to make sure instantiated templates are included
  11197. # in the archive.
  11198. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11199. ;;
  11200. gcx*)
  11201. # Green Hills C++ Compiler
  11202. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11203. # The C++ compiler must be used to create the archive.
  11204. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  11205. ;;
  11206. *)
  11207. # GNU C++ compiler with Solaris linker
  11208. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11209. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  11210. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  11211. archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11212. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11213. $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11214. # Commands to make compiler produce verbose output that lists
  11215. # what "hidden" libraries, object files and flags are used when
  11216. # linking a shared library.
  11217. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11218. else
  11219. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  11220. # platform.
  11221. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11222. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11223. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11224. # Commands to make compiler produce verbose output that lists
  11225. # what "hidden" libraries, object files and flags are used when
  11226. # linking a shared library.
  11227. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11228. fi
  11229. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  11230. case $host_os in
  11231. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11232. *)
  11233. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  11234. ;;
  11235. esac
  11236. fi
  11237. ;;
  11238. esac
  11239. ;;
  11240. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  11241. no_undefined_flag_CXX='${wl}-z,text'
  11242. archive_cmds_need_lc_CXX=no
  11243. hardcode_shlibpath_var_CXX=no
  11244. runpath_var='LD_RUN_PATH'
  11245. case $cc_basename in
  11246. CC*)
  11247. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11248. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11249. ;;
  11250. *)
  11251. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11252. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11253. ;;
  11254. esac
  11255. ;;
  11256. sysv5* | sco3.2v5* | sco5v6*)
  11257. # Note: We can NOT use -z defs as we might desire, because we do not
  11258. # link with -lc, and that would cause any symbols used from libc to
  11259. # always be unresolved, which means just about no library would
  11260. # ever link correctly. If we're not using GNU ld we use -z text
  11261. # though, which does catch some bad symbols but isn't as heavy-handed
  11262. # as -z defs.
  11263. no_undefined_flag_CXX='${wl}-z,text'
  11264. allow_undefined_flag_CXX='${wl}-z,nodefs'
  11265. archive_cmds_need_lc_CXX=no
  11266. hardcode_shlibpath_var_CXX=no
  11267. hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  11268. hardcode_libdir_separator_CXX=':'
  11269. link_all_deplibs_CXX=yes
  11270. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  11271. runpath_var='LD_RUN_PATH'
  11272. case $cc_basename in
  11273. CC*)
  11274. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11275. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11276. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  11277. '"$old_archive_cmds_CXX"
  11278. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  11279. '"$reload_cmds_CXX"
  11280. ;;
  11281. *)
  11282. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11283. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11284. ;;
  11285. esac
  11286. ;;
  11287. tandem*)
  11288. case $cc_basename in
  11289. NCC*)
  11290. # NonStop-UX NCC 3.20
  11291. # FIXME: insert proper C++ library support
  11292. ld_shlibs_CXX=no
  11293. ;;
  11294. *)
  11295. # FIXME: insert proper C++ library support
  11296. ld_shlibs_CXX=no
  11297. ;;
  11298. esac
  11299. ;;
  11300. vxworks*)
  11301. # FIXME: insert proper C++ library support
  11302. ld_shlibs_CXX=no
  11303. ;;
  11304. *)
  11305. # FIXME: insert proper C++ library support
  11306. ld_shlibs_CXX=no
  11307. ;;
  11308. esac
  11309. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  11310. $as_echo "$ld_shlibs_CXX" >&6; }
  11311. test "$ld_shlibs_CXX" = no && can_build_shared=no
  11312. GCC_CXX="$GXX"
  11313. LD_CXX="$LD"
  11314. ## CAVEAT EMPTOR:
  11315. ## There is no encapsulation within the following macros, do not change
  11316. ## the running order or otherwise move them around unless you know exactly
  11317. ## what you are doing...
  11318. # Dependencies to place before and after the object being linked:
  11319. predep_objects_CXX=
  11320. postdep_objects_CXX=
  11321. predeps_CXX=
  11322. postdeps_CXX=
  11323. compiler_lib_search_path_CXX=
  11324. cat > conftest.$ac_ext <<_LT_EOF
  11325. class Foo
  11326. {
  11327. public:
  11328. Foo (void) { a = 0; }
  11329. private:
  11330. int a;
  11331. };
  11332. _LT_EOF
  11333. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11334. (eval $ac_compile) 2>&5
  11335. ac_status=$?
  11336. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11337. test $ac_status = 0; }; then
  11338. # Parse the compiler output and extract the necessary
  11339. # objects, libraries and library flags.
  11340. # Sentinel used to keep track of whether or not we are before
  11341. # the conftest object file.
  11342. pre_test_object_deps_done=no
  11343. for p in `eval "$output_verbose_link_cmd"`; do
  11344. case $p in
  11345. -L* | -R* | -l*)
  11346. # Some compilers place space between "-{L,R}" and the path.
  11347. # Remove the space.
  11348. if test $p = "-L" ||
  11349. test $p = "-R"; then
  11350. prev=$p
  11351. continue
  11352. else
  11353. prev=
  11354. fi
  11355. if test "$pre_test_object_deps_done" = no; then
  11356. case $p in
  11357. -L* | -R*)
  11358. # Internal compiler library paths should come after those
  11359. # provided the user. The postdeps already come after the
  11360. # user supplied libs so there is no need to process them.
  11361. if test -z "$compiler_lib_search_path_CXX"; then
  11362. compiler_lib_search_path_CXX="${prev}${p}"
  11363. else
  11364. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  11365. fi
  11366. ;;
  11367. # The "-l" case would never come before the object being
  11368. # linked, so don't bother handling this case.
  11369. esac
  11370. else
  11371. if test -z "$postdeps_CXX"; then
  11372. postdeps_CXX="${prev}${p}"
  11373. else
  11374. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  11375. fi
  11376. fi
  11377. ;;
  11378. *.$objext)
  11379. # This assumes that the test object file only shows up
  11380. # once in the compiler output.
  11381. if test "$p" = "conftest.$objext"; then
  11382. pre_test_object_deps_done=yes
  11383. continue
  11384. fi
  11385. if test "$pre_test_object_deps_done" = no; then
  11386. if test -z "$predep_objects_CXX"; then
  11387. predep_objects_CXX="$p"
  11388. else
  11389. predep_objects_CXX="$predep_objects_CXX $p"
  11390. fi
  11391. else
  11392. if test -z "$postdep_objects_CXX"; then
  11393. postdep_objects_CXX="$p"
  11394. else
  11395. postdep_objects_CXX="$postdep_objects_CXX $p"
  11396. fi
  11397. fi
  11398. ;;
  11399. *) ;; # Ignore the rest.
  11400. esac
  11401. done
  11402. # Clean up.
  11403. rm -f a.out a.exe
  11404. else
  11405. echo "libtool.m4: error: problem compiling CXX test program"
  11406. fi
  11407. $RM -f confest.$objext
  11408. # PORTME: override above test on systems where it is broken
  11409. case $host_os in
  11410. interix[3-9]*)
  11411. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  11412. # hack all around it, let's just trust "g++" to DTRT.
  11413. predep_objects_CXX=
  11414. postdep_objects_CXX=
  11415. postdeps_CXX=
  11416. ;;
  11417. linux*)
  11418. case `$CC -V 2>&1 | sed 5q` in
  11419. *Sun\ C*)
  11420. # Sun C++ 5.9
  11421. # The more standards-conforming stlport4 library is
  11422. # incompatible with the Cstd library. Avoid specifying
  11423. # it if it's in CXXFLAGS. Ignore libCrun as
  11424. # -library=stlport4 depends on it.
  11425. case " $CXX $CXXFLAGS " in
  11426. *" -library=stlport4 "*)
  11427. solaris_use_stlport4=yes
  11428. ;;
  11429. esac
  11430. if test "$solaris_use_stlport4" != yes; then
  11431. postdeps_CXX='-library=Cstd -library=Crun'
  11432. fi
  11433. ;;
  11434. esac
  11435. ;;
  11436. solaris*)
  11437. case $cc_basename in
  11438. CC* | sunCC*)
  11439. # The more standards-conforming stlport4 library is
  11440. # incompatible with the Cstd library. Avoid specifying
  11441. # it if it's in CXXFLAGS. Ignore libCrun as
  11442. # -library=stlport4 depends on it.
  11443. case " $CXX $CXXFLAGS " in
  11444. *" -library=stlport4 "*)
  11445. solaris_use_stlport4=yes
  11446. ;;
  11447. esac
  11448. # Adding this requires a known-good setup of shared libraries for
  11449. # Sun compiler versions before 5.6, else PIC objects from an old
  11450. # archive will be linked into the output, leading to subtle bugs.
  11451. if test "$solaris_use_stlport4" != yes; then
  11452. postdeps_CXX='-library=Cstd -library=Crun'
  11453. fi
  11454. ;;
  11455. esac
  11456. ;;
  11457. esac
  11458. case " $postdeps_CXX " in
  11459. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  11460. esac
  11461. compiler_lib_search_dirs_CXX=
  11462. if test -n "${compiler_lib_search_path_CXX}"; then
  11463. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  11464. fi
  11465. lt_prog_compiler_wl_CXX=
  11466. lt_prog_compiler_pic_CXX=
  11467. lt_prog_compiler_static_CXX=
  11468. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  11469. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  11470. # C++ specific cases for pic, static, wl, etc.
  11471. if test "$GXX" = yes; then
  11472. lt_prog_compiler_wl_CXX='-Wl,'
  11473. lt_prog_compiler_static_CXX='-static'
  11474. case $host_os in
  11475. aix*)
  11476. # All AIX code is PIC.
  11477. if test "$host_cpu" = ia64; then
  11478. # AIX 5 now supports IA64 processor
  11479. lt_prog_compiler_static_CXX='-Bstatic'
  11480. fi
  11481. ;;
  11482. amigaos*)
  11483. case $host_cpu in
  11484. powerpc)
  11485. # see comment about AmigaOS4 .so support
  11486. lt_prog_compiler_pic_CXX='-fPIC'
  11487. ;;
  11488. m68k)
  11489. # FIXME: we need at least 68020 code to build shared libraries, but
  11490. # adding the `-m68020' flag to GCC prevents building anything better,
  11491. # like `-m68040'.
  11492. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  11493. ;;
  11494. esac
  11495. ;;
  11496. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  11497. # PIC is the default for these OSes.
  11498. ;;
  11499. mingw* | cygwin* | os2* | pw32* | cegcc*)
  11500. # This hack is so that the source file can tell whether it is being
  11501. # built for inclusion in a dll (and should export symbols for example).
  11502. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  11503. # (--disable-auto-import) libraries
  11504. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  11505. ;;
  11506. darwin* | rhapsody*)
  11507. # PIC is the default on this platform
  11508. # Common symbols not allowed in MH_DYLIB files
  11509. lt_prog_compiler_pic_CXX='-fno-common'
  11510. ;;
  11511. *djgpp*)
  11512. # DJGPP does not support shared libraries at all
  11513. lt_prog_compiler_pic_CXX=
  11514. ;;
  11515. haiku*)
  11516. # PIC is the default for Haiku.
  11517. # The "-static" flag exists, but is broken.
  11518. lt_prog_compiler_static_CXX=
  11519. ;;
  11520. interix[3-9]*)
  11521. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  11522. # Instead, we relocate shared libraries at runtime.
  11523. ;;
  11524. sysv4*MP*)
  11525. if test -d /usr/nec; then
  11526. lt_prog_compiler_pic_CXX=-Kconform_pic
  11527. fi
  11528. ;;
  11529. hpux*)
  11530. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  11531. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  11532. # sets the default TLS model and affects inlining.
  11533. case $host_cpu in
  11534. hppa*64*)
  11535. ;;
  11536. *)
  11537. lt_prog_compiler_pic_CXX='-fPIC'
  11538. ;;
  11539. esac
  11540. ;;
  11541. *qnx* | *nto*)
  11542. # QNX uses GNU C++, but need to define -shared option too, otherwise
  11543. # it will coredump.
  11544. lt_prog_compiler_pic_CXX='-fPIC -shared'
  11545. ;;
  11546. *)
  11547. lt_prog_compiler_pic_CXX='-fPIC'
  11548. ;;
  11549. esac
  11550. else
  11551. case $host_os in
  11552. aix[4-9]*)
  11553. # All AIX code is PIC.
  11554. if test "$host_cpu" = ia64; then
  11555. # AIX 5 now supports IA64 processor
  11556. lt_prog_compiler_static_CXX='-Bstatic'
  11557. else
  11558. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  11559. fi
  11560. ;;
  11561. chorus*)
  11562. case $cc_basename in
  11563. cxch68*)
  11564. # Green Hills C++ Compiler
  11565. # _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"
  11566. ;;
  11567. esac
  11568. ;;
  11569. dgux*)
  11570. case $cc_basename in
  11571. ec++*)
  11572. lt_prog_compiler_pic_CXX='-KPIC'
  11573. ;;
  11574. ghcx*)
  11575. # Green Hills C++ Compiler
  11576. lt_prog_compiler_pic_CXX='-pic'
  11577. ;;
  11578. *)
  11579. ;;
  11580. esac
  11581. ;;
  11582. freebsd* | dragonfly*)
  11583. # FreeBSD uses GNU C++
  11584. ;;
  11585. hpux9* | hpux10* | hpux11*)
  11586. case $cc_basename in
  11587. CC*)
  11588. lt_prog_compiler_wl_CXX='-Wl,'
  11589. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  11590. if test "$host_cpu" != ia64; then
  11591. lt_prog_compiler_pic_CXX='+Z'
  11592. fi
  11593. ;;
  11594. aCC*)
  11595. lt_prog_compiler_wl_CXX='-Wl,'
  11596. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  11597. case $host_cpu in
  11598. hppa*64*|ia64*)
  11599. # +Z the default
  11600. ;;
  11601. *)
  11602. lt_prog_compiler_pic_CXX='+Z'
  11603. ;;
  11604. esac
  11605. ;;
  11606. *)
  11607. ;;
  11608. esac
  11609. ;;
  11610. interix*)
  11611. # This is c89, which is MS Visual C++ (no shared libs)
  11612. # Anyone wants to do a port?
  11613. ;;
  11614. irix5* | irix6* | nonstopux*)
  11615. case $cc_basename in
  11616. CC*)
  11617. lt_prog_compiler_wl_CXX='-Wl,'
  11618. lt_prog_compiler_static_CXX='-non_shared'
  11619. # CC pic flag -KPIC is the default.
  11620. ;;
  11621. *)
  11622. ;;
  11623. esac
  11624. ;;
  11625. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  11626. case $cc_basename in
  11627. KCC*)
  11628. # KAI C++ Compiler
  11629. lt_prog_compiler_wl_CXX='--backend -Wl,'
  11630. lt_prog_compiler_pic_CXX='-fPIC'
  11631. ;;
  11632. ecpc* )
  11633. # old Intel C++ for x86_64 which still supported -KPIC.
  11634. lt_prog_compiler_wl_CXX='-Wl,'
  11635. lt_prog_compiler_pic_CXX='-KPIC'
  11636. lt_prog_compiler_static_CXX='-static'
  11637. ;;
  11638. icpc* )
  11639. # Intel C++, used to be incompatible with GCC.
  11640. # ICC 10 doesn't accept -KPIC any more.
  11641. lt_prog_compiler_wl_CXX='-Wl,'
  11642. lt_prog_compiler_pic_CXX='-fPIC'
  11643. lt_prog_compiler_static_CXX='-static'
  11644. ;;
  11645. pgCC* | pgcpp*)
  11646. # Portland Group C++ compiler
  11647. lt_prog_compiler_wl_CXX='-Wl,'
  11648. lt_prog_compiler_pic_CXX='-fpic'
  11649. lt_prog_compiler_static_CXX='-Bstatic'
  11650. ;;
  11651. cxx*)
  11652. # Compaq C++
  11653. # Make sure the PIC flag is empty. It appears that all Alpha
  11654. # Linux and Compaq Tru64 Unix objects are PIC.
  11655. lt_prog_compiler_pic_CXX=
  11656. lt_prog_compiler_static_CXX='-non_shared'
  11657. ;;
  11658. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  11659. # IBM XL 8.0, 9.0 on PPC and BlueGene
  11660. lt_prog_compiler_wl_CXX='-Wl,'
  11661. lt_prog_compiler_pic_CXX='-qpic'
  11662. lt_prog_compiler_static_CXX='-qstaticlink'
  11663. ;;
  11664. *)
  11665. case `$CC -V 2>&1 | sed 5q` in
  11666. *Sun\ C*)
  11667. # Sun C++ 5.9
  11668. lt_prog_compiler_pic_CXX='-KPIC'
  11669. lt_prog_compiler_static_CXX='-Bstatic'
  11670. lt_prog_compiler_wl_CXX='-Qoption ld '
  11671. ;;
  11672. esac
  11673. ;;
  11674. esac
  11675. ;;
  11676. lynxos*)
  11677. ;;
  11678. m88k*)
  11679. ;;
  11680. mvs*)
  11681. case $cc_basename in
  11682. cxx*)
  11683. lt_prog_compiler_pic_CXX='-W c,exportall'
  11684. ;;
  11685. *)
  11686. ;;
  11687. esac
  11688. ;;
  11689. netbsd*)
  11690. ;;
  11691. *qnx* | *nto*)
  11692. # QNX uses GNU C++, but need to define -shared option too, otherwise
  11693. # it will coredump.
  11694. lt_prog_compiler_pic_CXX='-fPIC -shared'
  11695. ;;
  11696. osf3* | osf4* | osf5*)
  11697. case $cc_basename in
  11698. KCC*)
  11699. lt_prog_compiler_wl_CXX='--backend -Wl,'
  11700. ;;
  11701. RCC*)
  11702. # Rational C++ 2.4.1
  11703. lt_prog_compiler_pic_CXX='-pic'
  11704. ;;
  11705. cxx*)
  11706. # Digital/Compaq C++
  11707. lt_prog_compiler_wl_CXX='-Wl,'
  11708. # Make sure the PIC flag is empty. It appears that all Alpha
  11709. # Linux and Compaq Tru64 Unix objects are PIC.
  11710. lt_prog_compiler_pic_CXX=
  11711. lt_prog_compiler_static_CXX='-non_shared'
  11712. ;;
  11713. *)
  11714. ;;
  11715. esac
  11716. ;;
  11717. psos*)
  11718. ;;
  11719. solaris*)
  11720. case $cc_basename in
  11721. CC* | sunCC*)
  11722. # Sun C++ 4.2, 5.x and Centerline C++
  11723. lt_prog_compiler_pic_CXX='-KPIC'
  11724. lt_prog_compiler_static_CXX='-Bstatic'
  11725. lt_prog_compiler_wl_CXX='-Qoption ld '
  11726. ;;
  11727. gcx*)
  11728. # Green Hills C++ Compiler
  11729. lt_prog_compiler_pic_CXX='-PIC'
  11730. ;;
  11731. *)
  11732. ;;
  11733. esac
  11734. ;;
  11735. sunos4*)
  11736. case $cc_basename in
  11737. CC*)
  11738. # Sun C++ 4.x
  11739. lt_prog_compiler_pic_CXX='-pic'
  11740. lt_prog_compiler_static_CXX='-Bstatic'
  11741. ;;
  11742. lcc*)
  11743. # Lucid
  11744. lt_prog_compiler_pic_CXX='-pic'
  11745. ;;
  11746. *)
  11747. ;;
  11748. esac
  11749. ;;
  11750. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  11751. case $cc_basename in
  11752. CC*)
  11753. lt_prog_compiler_wl_CXX='-Wl,'
  11754. lt_prog_compiler_pic_CXX='-KPIC'
  11755. lt_prog_compiler_static_CXX='-Bstatic'
  11756. ;;
  11757. esac
  11758. ;;
  11759. tandem*)
  11760. case $cc_basename in
  11761. NCC*)
  11762. # NonStop-UX NCC 3.20
  11763. lt_prog_compiler_pic_CXX='-KPIC'
  11764. ;;
  11765. *)
  11766. ;;
  11767. esac
  11768. ;;
  11769. vxworks*)
  11770. ;;
  11771. *)
  11772. lt_prog_compiler_can_build_shared_CXX=no
  11773. ;;
  11774. esac
  11775. fi
  11776. case $host_os in
  11777. # For platforms which do not support PIC, -DPIC is meaningless:
  11778. *djgpp*)
  11779. lt_prog_compiler_pic_CXX=
  11780. ;;
  11781. *)
  11782. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  11783. ;;
  11784. esac
  11785. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
  11786. $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
  11787. #
  11788. # Check to make sure the PIC flag actually works.
  11789. #
  11790. if test -n "$lt_prog_compiler_pic_CXX"; then
  11791. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  11792. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  11793. if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
  11794. $as_echo_n "(cached) " >&6
  11795. else
  11796. lt_cv_prog_compiler_pic_works_CXX=no
  11797. ac_outfile=conftest.$ac_objext
  11798. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11799. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  11800. # Insert the option either (1) after the last *FLAGS variable, or
  11801. # (2) before a word containing "conftest.", or (3) at the end.
  11802. # Note that $ac_compile itself does not contain backslashes and begins
  11803. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11804. # The option is referenced via a variable to avoid confusing sed.
  11805. lt_compile=`echo "$ac_compile" | $SED \
  11806. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11807. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11808. -e 's:$: $lt_compiler_flag:'`
  11809. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  11810. (eval "$lt_compile" 2>conftest.err)
  11811. ac_status=$?
  11812. cat conftest.err >&5
  11813. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11814. if (exit $ac_status) && test -s "$ac_outfile"; then
  11815. # The compiler can only warn and ignore the option if not recognized
  11816. # So say no if there are warnings other than the usual output.
  11817. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  11818. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  11819. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  11820. lt_cv_prog_compiler_pic_works_CXX=yes
  11821. fi
  11822. fi
  11823. $RM conftest*
  11824. fi
  11825. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  11826. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  11827. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  11828. case $lt_prog_compiler_pic_CXX in
  11829. "" | " "*) ;;
  11830. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  11831. esac
  11832. else
  11833. lt_prog_compiler_pic_CXX=
  11834. lt_prog_compiler_can_build_shared_CXX=no
  11835. fi
  11836. fi
  11837. #
  11838. # Check to make sure the static flag actually works.
  11839. #
  11840. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  11841. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  11842. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  11843. if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
  11844. $as_echo_n "(cached) " >&6
  11845. else
  11846. lt_cv_prog_compiler_static_works_CXX=no
  11847. save_LDFLAGS="$LDFLAGS"
  11848. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  11849. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  11850. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  11851. # The linker can only warn and ignore the option if not recognized
  11852. # So say no if there are warnings
  11853. if test -s conftest.err; then
  11854. # Append any errors to the config.log.
  11855. cat conftest.err 1>&5
  11856. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  11857. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  11858. if diff conftest.exp conftest.er2 >/dev/null; then
  11859. lt_cv_prog_compiler_static_works_CXX=yes
  11860. fi
  11861. else
  11862. lt_cv_prog_compiler_static_works_CXX=yes
  11863. fi
  11864. fi
  11865. $RM -r conftest*
  11866. LDFLAGS="$save_LDFLAGS"
  11867. fi
  11868. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  11869. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  11870. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  11871. :
  11872. else
  11873. lt_prog_compiler_static_CXX=
  11874. fi
  11875. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  11876. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  11877. if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
  11878. $as_echo_n "(cached) " >&6
  11879. else
  11880. lt_cv_prog_compiler_c_o_CXX=no
  11881. $RM -r conftest 2>/dev/null
  11882. mkdir conftest
  11883. cd conftest
  11884. mkdir out
  11885. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11886. lt_compiler_flag="-o out/conftest2.$ac_objext"
  11887. # Insert the option either (1) after the last *FLAGS variable, or
  11888. # (2) before a word containing "conftest.", or (3) at the end.
  11889. # Note that $ac_compile itself does not contain backslashes and begins
  11890. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11891. lt_compile=`echo "$ac_compile" | $SED \
  11892. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11893. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11894. -e 's:$: $lt_compiler_flag:'`
  11895. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  11896. (eval "$lt_compile" 2>out/conftest.err)
  11897. ac_status=$?
  11898. cat out/conftest.err >&5
  11899. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11900. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  11901. then
  11902. # The compiler can only warn and ignore the option if not recognized
  11903. # So say no if there are warnings
  11904. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  11905. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  11906. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  11907. lt_cv_prog_compiler_c_o_CXX=yes
  11908. fi
  11909. fi
  11910. chmod u+w . 2>&5
  11911. $RM conftest*
  11912. # SGI C++ compiler will create directory out/ii_files/ for
  11913. # template instantiation
  11914. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  11915. $RM out/* && rmdir out
  11916. cd ..
  11917. $RM -r conftest
  11918. $RM conftest*
  11919. fi
  11920. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  11921. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  11922. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  11923. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  11924. if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
  11925. $as_echo_n "(cached) " >&6
  11926. else
  11927. lt_cv_prog_compiler_c_o_CXX=no
  11928. $RM -r conftest 2>/dev/null
  11929. mkdir conftest
  11930. cd conftest
  11931. mkdir out
  11932. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11933. lt_compiler_flag="-o out/conftest2.$ac_objext"
  11934. # Insert the option either (1) after the last *FLAGS variable, or
  11935. # (2) before a word containing "conftest.", or (3) at the end.
  11936. # Note that $ac_compile itself does not contain backslashes and begins
  11937. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11938. lt_compile=`echo "$ac_compile" | $SED \
  11939. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11940. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11941. -e 's:$: $lt_compiler_flag:'`
  11942. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  11943. (eval "$lt_compile" 2>out/conftest.err)
  11944. ac_status=$?
  11945. cat out/conftest.err >&5
  11946. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11947. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  11948. then
  11949. # The compiler can only warn and ignore the option if not recognized
  11950. # So say no if there are warnings
  11951. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  11952. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  11953. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  11954. lt_cv_prog_compiler_c_o_CXX=yes
  11955. fi
  11956. fi
  11957. chmod u+w . 2>&5
  11958. $RM conftest*
  11959. # SGI C++ compiler will create directory out/ii_files/ for
  11960. # template instantiation
  11961. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  11962. $RM out/* && rmdir out
  11963. cd ..
  11964. $RM -r conftest
  11965. $RM conftest*
  11966. fi
  11967. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  11968. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  11969. hard_links="nottested"
  11970. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  11971. # do not overwrite the value of need_locks provided by the user
  11972. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  11973. $as_echo_n "checking if we can lock with hard links... " >&6; }
  11974. hard_links=yes
  11975. $RM conftest*
  11976. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  11977. touch conftest.a
  11978. ln conftest.a conftest.b 2>&5 || hard_links=no
  11979. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  11980. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  11981. $as_echo "$hard_links" >&6; }
  11982. if test "$hard_links" = no; then
  11983. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  11984. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  11985. need_locks=warn
  11986. fi
  11987. else
  11988. need_locks=no
  11989. fi
  11990. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  11991. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  11992. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  11993. case $host_os in
  11994. aix[4-9]*)
  11995. # If we're using GNU nm, then we don't want the "-C" option.
  11996. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  11997. # Also, AIX nm treats weak defined symbols like other global defined
  11998. # symbols, whereas GNU nm marks them as "W".
  11999. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  12000. 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'
  12001. else
  12002. 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'
  12003. fi
  12004. ;;
  12005. pw32*)
  12006. export_symbols_cmds_CXX="$ltdll_cmds"
  12007. ;;
  12008. cygwin* | mingw* | cegcc*)
  12009. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
  12010. ;;
  12011. *)
  12012. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12013. ;;
  12014. esac
  12015. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  12016. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12017. $as_echo "$ld_shlibs_CXX" >&6; }
  12018. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12019. with_gnu_ld_CXX=$with_gnu_ld
  12020. #
  12021. # Do we need to explicitly link libc?
  12022. #
  12023. case "x$archive_cmds_need_lc_CXX" in
  12024. x|xyes)
  12025. # Assume -lc should be added
  12026. archive_cmds_need_lc_CXX=yes
  12027. if test "$enable_shared" = yes && test "$GCC" = yes; then
  12028. case $archive_cmds_CXX in
  12029. *'~'*)
  12030. # FIXME: we may have to deal with multi-command sequences.
  12031. ;;
  12032. '$CC '*)
  12033. # Test whether the compiler implicitly links with -lc since on some
  12034. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  12035. # to ld, don't add -lc before -lgcc.
  12036. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  12037. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  12038. if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
  12039. $as_echo_n "(cached) " >&6
  12040. else
  12041. $RM conftest*
  12042. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12043. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12044. (eval $ac_compile) 2>&5
  12045. ac_status=$?
  12046. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12047. test $ac_status = 0; } 2>conftest.err; then
  12048. soname=conftest
  12049. lib=conftest
  12050. libobjs=conftest.$ac_objext
  12051. deplibs=
  12052. wl=$lt_prog_compiler_wl_CXX
  12053. pic_flag=$lt_prog_compiler_pic_CXX
  12054. compiler_flags=-v
  12055. linker_flags=-v
  12056. verstring=
  12057. output_objdir=.
  12058. libname=conftest
  12059. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  12060. allow_undefined_flag_CXX=
  12061. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  12062. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  12063. ac_status=$?
  12064. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12065. test $ac_status = 0; }
  12066. then
  12067. lt_cv_archive_cmds_need_lc_CXX=no
  12068. else
  12069. lt_cv_archive_cmds_need_lc_CXX=yes
  12070. fi
  12071. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  12072. else
  12073. cat conftest.err 1>&5
  12074. fi
  12075. $RM conftest*
  12076. fi
  12077. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  12078. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  12079. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  12080. ;;
  12081. esac
  12082. fi
  12083. ;;
  12084. esac
  12085. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  12086. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  12087. library_names_spec=
  12088. libname_spec='lib$name'
  12089. soname_spec=
  12090. shrext_cmds=".so"
  12091. postinstall_cmds=
  12092. postuninstall_cmds=
  12093. finish_cmds=
  12094. finish_eval=
  12095. shlibpath_var=
  12096. shlibpath_overrides_runpath=unknown
  12097. version_type=none
  12098. dynamic_linker="$host_os ld.so"
  12099. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  12100. need_lib_prefix=unknown
  12101. hardcode_into_libs=no
  12102. # when you set need_version to no, make sure it does not cause -set_version
  12103. # flags to be left without arguments
  12104. need_version=unknown
  12105. case $host_os in
  12106. aix3*)
  12107. version_type=linux
  12108. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  12109. shlibpath_var=LIBPATH
  12110. # AIX 3 has no versioning support, so we append a major version to the name.
  12111. soname_spec='${libname}${release}${shared_ext}$major'
  12112. ;;
  12113. aix[4-9]*)
  12114. version_type=linux
  12115. need_lib_prefix=no
  12116. need_version=no
  12117. hardcode_into_libs=yes
  12118. if test "$host_cpu" = ia64; then
  12119. # AIX 5 supports IA64
  12120. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  12121. shlibpath_var=LD_LIBRARY_PATH
  12122. else
  12123. # With GCC up to 2.95.x, collect2 would create an import file
  12124. # for dependence libraries. The import file would start with
  12125. # the line `#! .'. This would cause the generated library to
  12126. # depend on `.', always an invalid library. This was fixed in
  12127. # development snapshots of GCC prior to 3.0.
  12128. case $host_os in
  12129. aix4 | aix4.[01] | aix4.[01].*)
  12130. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  12131. echo ' yes '
  12132. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  12133. :
  12134. else
  12135. can_build_shared=no
  12136. fi
  12137. ;;
  12138. esac
  12139. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  12140. # soname into executable. Probably we can add versioning support to
  12141. # collect2, so additional links can be useful in future.
  12142. if test "$aix_use_runtimelinking" = yes; then
  12143. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  12144. # instead of lib<name>.a to let people know that these are not
  12145. # typical AIX shared libraries.
  12146. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12147. else
  12148. # We preserve .a as extension for shared libraries through AIX4.2
  12149. # and later when we are not doing run time linking.
  12150. library_names_spec='${libname}${release}.a $libname.a'
  12151. soname_spec='${libname}${release}${shared_ext}$major'
  12152. fi
  12153. shlibpath_var=LIBPATH
  12154. fi
  12155. ;;
  12156. amigaos*)
  12157. case $host_cpu in
  12158. powerpc)
  12159. # Since July 2007 AmigaOS4 officially supports .so libraries.
  12160. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  12161. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12162. ;;
  12163. m68k)
  12164. library_names_spec='$libname.ixlibrary $libname.a'
  12165. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  12166. 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'
  12167. ;;
  12168. esac
  12169. ;;
  12170. beos*)
  12171. library_names_spec='${libname}${shared_ext}'
  12172. dynamic_linker="$host_os ld.so"
  12173. shlibpath_var=LIBRARY_PATH
  12174. ;;
  12175. bsdi[45]*)
  12176. version_type=linux
  12177. need_version=no
  12178. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12179. soname_spec='${libname}${release}${shared_ext}$major'
  12180. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  12181. shlibpath_var=LD_LIBRARY_PATH
  12182. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  12183. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  12184. # the default ld.so.conf also contains /usr/contrib/lib and
  12185. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  12186. # libtool to hard-code these into programs
  12187. ;;
  12188. cygwin* | mingw* | pw32* | cegcc*)
  12189. version_type=windows
  12190. shrext_cmds=".dll"
  12191. need_version=no
  12192. need_lib_prefix=no
  12193. case $GCC,$host_os in
  12194. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  12195. library_names_spec='$libname.dll.a'
  12196. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12197. postinstall_cmds='base_file=`basename \${file}`~
  12198. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12199. dldir=$destdir/`dirname \$dlpath`~
  12200. test -d \$dldir || mkdir -p \$dldir~
  12201. $install_prog $dir/$dlname \$dldir/$dlname~
  12202. chmod a+x \$dldir/$dlname~
  12203. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  12204. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  12205. fi'
  12206. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12207. dlpath=$dir/\$dldll~
  12208. $RM \$dlpath'
  12209. shlibpath_overrides_runpath=yes
  12210. case $host_os in
  12211. cygwin*)
  12212. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  12213. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12214. ;;
  12215. mingw* | cegcc*)
  12216. # MinGW DLLs use traditional 'lib' prefix
  12217. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12218. ;;
  12219. pw32*)
  12220. # pw32 DLLs use 'pw' prefix rather than 'lib'
  12221. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12222. ;;
  12223. esac
  12224. ;;
  12225. *)
  12226. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  12227. ;;
  12228. esac
  12229. dynamic_linker='Win32 ld.exe'
  12230. # FIXME: first we should search . and the directory the executable is in
  12231. shlibpath_var=PATH
  12232. ;;
  12233. darwin* | rhapsody*)
  12234. dynamic_linker="$host_os dyld"
  12235. version_type=darwin
  12236. need_lib_prefix=no
  12237. need_version=no
  12238. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  12239. soname_spec='${libname}${release}${major}$shared_ext'
  12240. shlibpath_overrides_runpath=yes
  12241. shlibpath_var=DYLD_LIBRARY_PATH
  12242. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  12243. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  12244. ;;
  12245. dgux*)
  12246. version_type=linux
  12247. need_lib_prefix=no
  12248. need_version=no
  12249. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  12250. soname_spec='${libname}${release}${shared_ext}$major'
  12251. shlibpath_var=LD_LIBRARY_PATH
  12252. ;;
  12253. freebsd1*)
  12254. dynamic_linker=no
  12255. ;;
  12256. freebsd* | dragonfly*)
  12257. # DragonFly does not have aout. When/if they implement a new
  12258. # versioning mechanism, adjust this.
  12259. if test -x /usr/bin/objformat; then
  12260. objformat=`/usr/bin/objformat`
  12261. else
  12262. case $host_os in
  12263. freebsd[123]*) objformat=aout ;;
  12264. *) objformat=elf ;;
  12265. esac
  12266. fi
  12267. version_type=freebsd-$objformat
  12268. case $version_type in
  12269. freebsd-elf*)
  12270. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12271. need_version=no
  12272. need_lib_prefix=no
  12273. ;;
  12274. freebsd-*)
  12275. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  12276. need_version=yes
  12277. ;;
  12278. esac
  12279. shlibpath_var=LD_LIBRARY_PATH
  12280. case $host_os in
  12281. freebsd2*)
  12282. shlibpath_overrides_runpath=yes
  12283. ;;
  12284. freebsd3.[01]* | freebsdelf3.[01]*)
  12285. shlibpath_overrides_runpath=yes
  12286. hardcode_into_libs=yes
  12287. ;;
  12288. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  12289. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  12290. shlibpath_overrides_runpath=no
  12291. hardcode_into_libs=yes
  12292. ;;
  12293. *) # from 4.6 on, and DragonFly
  12294. shlibpath_overrides_runpath=yes
  12295. hardcode_into_libs=yes
  12296. ;;
  12297. esac
  12298. ;;
  12299. gnu*)
  12300. version_type=linux
  12301. need_lib_prefix=no
  12302. need_version=no
  12303. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12304. soname_spec='${libname}${release}${shared_ext}$major'
  12305. shlibpath_var=LD_LIBRARY_PATH
  12306. hardcode_into_libs=yes
  12307. ;;
  12308. haiku*)
  12309. version_type=linux
  12310. need_lib_prefix=no
  12311. need_version=no
  12312. dynamic_linker="$host_os runtime_loader"
  12313. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12314. soname_spec='${libname}${release}${shared_ext}$major'
  12315. shlibpath_var=LIBRARY_PATH
  12316. shlibpath_overrides_runpath=yes
  12317. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  12318. hardcode_into_libs=yes
  12319. ;;
  12320. hpux9* | hpux10* | hpux11*)
  12321. # Give a soname corresponding to the major version so that dld.sl refuses to
  12322. # link against other versions.
  12323. version_type=sunos
  12324. need_lib_prefix=no
  12325. need_version=no
  12326. case $host_cpu in
  12327. ia64*)
  12328. shrext_cmds='.so'
  12329. hardcode_into_libs=yes
  12330. dynamic_linker="$host_os dld.so"
  12331. shlibpath_var=LD_LIBRARY_PATH
  12332. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12333. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12334. soname_spec='${libname}${release}${shared_ext}$major'
  12335. if test "X$HPUX_IA64_MODE" = X32; then
  12336. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  12337. else
  12338. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  12339. fi
  12340. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12341. ;;
  12342. hppa*64*)
  12343. shrext_cmds='.sl'
  12344. hardcode_into_libs=yes
  12345. dynamic_linker="$host_os dld.sl"
  12346. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  12347. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12348. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12349. soname_spec='${libname}${release}${shared_ext}$major'
  12350. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  12351. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12352. ;;
  12353. *)
  12354. shrext_cmds='.sl'
  12355. dynamic_linker="$host_os dld.sl"
  12356. shlibpath_var=SHLIB_PATH
  12357. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  12358. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12359. soname_spec='${libname}${release}${shared_ext}$major'
  12360. ;;
  12361. esac
  12362. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  12363. postinstall_cmds='chmod 555 $lib'
  12364. # or fails outright, so override atomically:
  12365. install_override_mode=555
  12366. ;;
  12367. interix[3-9]*)
  12368. version_type=linux
  12369. need_lib_prefix=no
  12370. need_version=no
  12371. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12372. soname_spec='${libname}${release}${shared_ext}$major'
  12373. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  12374. shlibpath_var=LD_LIBRARY_PATH
  12375. shlibpath_overrides_runpath=no
  12376. hardcode_into_libs=yes
  12377. ;;
  12378. irix5* | irix6* | nonstopux*)
  12379. case $host_os in
  12380. nonstopux*) version_type=nonstopux ;;
  12381. *)
  12382. if test "$lt_cv_prog_gnu_ld" = yes; then
  12383. version_type=linux
  12384. else
  12385. version_type=irix
  12386. fi ;;
  12387. esac
  12388. need_lib_prefix=no
  12389. need_version=no
  12390. soname_spec='${libname}${release}${shared_ext}$major'
  12391. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  12392. case $host_os in
  12393. irix5* | nonstopux*)
  12394. libsuff= shlibsuff=
  12395. ;;
  12396. *)
  12397. case $LD in # libtool.m4 will add one of these switches to LD
  12398. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  12399. libsuff= shlibsuff= libmagic=32-bit;;
  12400. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  12401. libsuff=32 shlibsuff=N32 libmagic=N32;;
  12402. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  12403. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  12404. *) libsuff= shlibsuff= libmagic=never-match;;
  12405. esac
  12406. ;;
  12407. esac
  12408. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  12409. shlibpath_overrides_runpath=no
  12410. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  12411. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  12412. hardcode_into_libs=yes
  12413. ;;
  12414. # No shared lib support for Linux oldld, aout, or coff.
  12415. linux*oldld* | linux*aout* | linux*coff*)
  12416. dynamic_linker=no
  12417. ;;
  12418. # This must be Linux ELF.
  12419. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  12420. version_type=linux
  12421. need_lib_prefix=no
  12422. need_version=no
  12423. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12424. soname_spec='${libname}${release}${shared_ext}$major'
  12425. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  12426. shlibpath_var=LD_LIBRARY_PATH
  12427. shlibpath_overrides_runpath=no
  12428. # Some binutils ld are patched to set DT_RUNPATH
  12429. if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
  12430. $as_echo_n "(cached) " >&6
  12431. else
  12432. lt_cv_shlibpath_overrides_runpath=no
  12433. save_LDFLAGS=$LDFLAGS
  12434. save_libdir=$libdir
  12435. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  12436. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  12437. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12438. /* end confdefs.h. */
  12439. int
  12440. main ()
  12441. {
  12442. ;
  12443. return 0;
  12444. }
  12445. _ACEOF
  12446. if ac_fn_cxx_try_link "$LINENO"; then :
  12447. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  12448. lt_cv_shlibpath_overrides_runpath=yes
  12449. fi
  12450. fi
  12451. rm -f core conftest.err conftest.$ac_objext \
  12452. conftest$ac_exeext conftest.$ac_ext
  12453. LDFLAGS=$save_LDFLAGS
  12454. libdir=$save_libdir
  12455. fi
  12456. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  12457. # This implies no fast_install, which is unacceptable.
  12458. # Some rework will be needed to allow for fast_install
  12459. # before this can be enabled.
  12460. hardcode_into_libs=yes
  12461. # Add ABI-specific directories to the system library path.
  12462. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  12463. # Append ld.so.conf contents to the search path
  12464. if test -f /etc/ld.so.conf; then
  12465. 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' ' '`
  12466. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  12467. fi
  12468. # We used to test for /lib/ld.so.1 and disable shared libraries on
  12469. # powerpc, because MkLinux only supported shared libraries with the
  12470. # GNU dynamic linker. Since this was broken with cross compilers,
  12471. # most powerpc-linux boxes support dynamic linking these days and
  12472. # people can always --disable-shared, the test was removed, and we
  12473. # assume the GNU/Linux dynamic linker is in use.
  12474. dynamic_linker='GNU/Linux ld.so'
  12475. ;;
  12476. netbsd*)
  12477. version_type=sunos
  12478. need_lib_prefix=no
  12479. need_version=no
  12480. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  12481. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12482. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  12483. dynamic_linker='NetBSD (a.out) ld.so'
  12484. else
  12485. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12486. soname_spec='${libname}${release}${shared_ext}$major'
  12487. dynamic_linker='NetBSD ld.elf_so'
  12488. fi
  12489. shlibpath_var=LD_LIBRARY_PATH
  12490. shlibpath_overrides_runpath=yes
  12491. hardcode_into_libs=yes
  12492. ;;
  12493. newsos6)
  12494. version_type=linux
  12495. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12496. shlibpath_var=LD_LIBRARY_PATH
  12497. shlibpath_overrides_runpath=yes
  12498. ;;
  12499. *nto* | *qnx*)
  12500. version_type=qnx
  12501. need_lib_prefix=no
  12502. need_version=no
  12503. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12504. soname_spec='${libname}${release}${shared_ext}$major'
  12505. shlibpath_var=LD_LIBRARY_PATH
  12506. shlibpath_overrides_runpath=no
  12507. hardcode_into_libs=yes
  12508. dynamic_linker='ldqnx.so'
  12509. ;;
  12510. openbsd*)
  12511. version_type=sunos
  12512. sys_lib_dlsearch_path_spec="/usr/lib"
  12513. need_lib_prefix=no
  12514. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  12515. case $host_os in
  12516. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  12517. *) need_version=no ;;
  12518. esac
  12519. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12520. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  12521. shlibpath_var=LD_LIBRARY_PATH
  12522. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  12523. case $host_os in
  12524. openbsd2.[89] | openbsd2.[89].*)
  12525. shlibpath_overrides_runpath=no
  12526. ;;
  12527. *)
  12528. shlibpath_overrides_runpath=yes
  12529. ;;
  12530. esac
  12531. else
  12532. shlibpath_overrides_runpath=yes
  12533. fi
  12534. ;;
  12535. os2*)
  12536. libname_spec='$name'
  12537. shrext_cmds=".dll"
  12538. need_lib_prefix=no
  12539. library_names_spec='$libname${shared_ext} $libname.a'
  12540. dynamic_linker='OS/2 ld.exe'
  12541. shlibpath_var=LIBPATH
  12542. ;;
  12543. osf3* | osf4* | osf5*)
  12544. version_type=osf
  12545. need_lib_prefix=no
  12546. need_version=no
  12547. soname_spec='${libname}${release}${shared_ext}$major'
  12548. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12549. shlibpath_var=LD_LIBRARY_PATH
  12550. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  12551. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  12552. ;;
  12553. rdos*)
  12554. dynamic_linker=no
  12555. ;;
  12556. solaris*)
  12557. version_type=linux
  12558. need_lib_prefix=no
  12559. need_version=no
  12560. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12561. soname_spec='${libname}${release}${shared_ext}$major'
  12562. shlibpath_var=LD_LIBRARY_PATH
  12563. shlibpath_overrides_runpath=yes
  12564. hardcode_into_libs=yes
  12565. # ldd complains unless libraries are executable
  12566. postinstall_cmds='chmod +x $lib'
  12567. ;;
  12568. sunos4*)
  12569. version_type=sunos
  12570. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12571. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  12572. shlibpath_var=LD_LIBRARY_PATH
  12573. shlibpath_overrides_runpath=yes
  12574. if test "$with_gnu_ld" = yes; then
  12575. need_lib_prefix=no
  12576. fi
  12577. need_version=yes
  12578. ;;
  12579. sysv4 | sysv4.3*)
  12580. version_type=linux
  12581. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12582. soname_spec='${libname}${release}${shared_ext}$major'
  12583. shlibpath_var=LD_LIBRARY_PATH
  12584. case $host_vendor in
  12585. sni)
  12586. shlibpath_overrides_runpath=no
  12587. need_lib_prefix=no
  12588. runpath_var=LD_RUN_PATH
  12589. ;;
  12590. siemens)
  12591. need_lib_prefix=no
  12592. ;;
  12593. motorola)
  12594. need_lib_prefix=no
  12595. need_version=no
  12596. shlibpath_overrides_runpath=no
  12597. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  12598. ;;
  12599. esac
  12600. ;;
  12601. sysv4*MP*)
  12602. if test -d /usr/nec ;then
  12603. version_type=linux
  12604. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  12605. soname_spec='$libname${shared_ext}.$major'
  12606. shlibpath_var=LD_LIBRARY_PATH
  12607. fi
  12608. ;;
  12609. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  12610. version_type=freebsd-elf
  12611. need_lib_prefix=no
  12612. need_version=no
  12613. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12614. soname_spec='${libname}${release}${shared_ext}$major'
  12615. shlibpath_var=LD_LIBRARY_PATH
  12616. shlibpath_overrides_runpath=yes
  12617. hardcode_into_libs=yes
  12618. if test "$with_gnu_ld" = yes; then
  12619. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  12620. else
  12621. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  12622. case $host_os in
  12623. sco3.2v5*)
  12624. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  12625. ;;
  12626. esac
  12627. fi
  12628. sys_lib_dlsearch_path_spec='/usr/lib'
  12629. ;;
  12630. tpf*)
  12631. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  12632. version_type=linux
  12633. need_lib_prefix=no
  12634. need_version=no
  12635. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12636. shlibpath_var=LD_LIBRARY_PATH
  12637. shlibpath_overrides_runpath=no
  12638. hardcode_into_libs=yes
  12639. ;;
  12640. uts4*)
  12641. version_type=linux
  12642. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12643. soname_spec='${libname}${release}${shared_ext}$major'
  12644. shlibpath_var=LD_LIBRARY_PATH
  12645. ;;
  12646. *)
  12647. dynamic_linker=no
  12648. ;;
  12649. esac
  12650. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  12651. $as_echo "$dynamic_linker" >&6; }
  12652. test "$dynamic_linker" = no && can_build_shared=no
  12653. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  12654. if test "$GCC" = yes; then
  12655. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  12656. fi
  12657. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  12658. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  12659. fi
  12660. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  12661. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  12662. fi
  12663. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  12664. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  12665. hardcode_action_CXX=
  12666. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  12667. test -n "$runpath_var_CXX" ||
  12668. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  12669. # We can hardcode non-existent directories.
  12670. if test "$hardcode_direct_CXX" != no &&
  12671. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  12672. # have to relink, otherwise we might link with an installed library
  12673. # when we should be linking with a yet-to-be-installed one
  12674. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  12675. test "$hardcode_minus_L_CXX" != no; then
  12676. # Linking always hardcodes the temporary library directory.
  12677. hardcode_action_CXX=relink
  12678. else
  12679. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  12680. hardcode_action_CXX=immediate
  12681. fi
  12682. else
  12683. # We cannot hardcode anything, or else we can only hardcode existing
  12684. # directories.
  12685. hardcode_action_CXX=unsupported
  12686. fi
  12687. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  12688. $as_echo "$hardcode_action_CXX" >&6; }
  12689. if test "$hardcode_action_CXX" = relink ||
  12690. test "$inherit_rpath_CXX" = yes; then
  12691. # Fast installation is not supported
  12692. enable_fast_install=no
  12693. elif test "$shlibpath_overrides_runpath" = yes ||
  12694. test "$enable_shared" = no; then
  12695. # Fast installation is not necessary
  12696. enable_fast_install=needless
  12697. fi
  12698. fi # test -n "$compiler"
  12699. CC=$lt_save_CC
  12700. LDCXX=$LD
  12701. LD=$lt_save_LD
  12702. GCC=$lt_save_GCC
  12703. with_gnu_ld=$lt_save_with_gnu_ld
  12704. lt_cv_path_LDCXX=$lt_cv_path_LD
  12705. lt_cv_path_LD=$lt_save_path_LD
  12706. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  12707. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  12708. fi # test "$_lt_caught_CXX_error" != yes
  12709. ac_ext=c
  12710. ac_cpp='$CPP $CPPFLAGS'
  12711. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12712. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12713. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12714. ac_config_commands="$ac_config_commands libtool"
  12715. # Only expand once:
  12716. # Checks for header files.
  12717. ac_header_dirent=no
  12718. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  12719. as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  12720. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
  12721. $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
  12722. if eval "test \"\${$as_ac_Header+set}\"" = set; then :
  12723. $as_echo_n "(cached) " >&6
  12724. else
  12725. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12726. /* end confdefs.h. */
  12727. #include <sys/types.h>
  12728. #include <$ac_hdr>
  12729. int
  12730. main ()
  12731. {
  12732. if ((DIR *) 0)
  12733. return 0;
  12734. ;
  12735. return 0;
  12736. }
  12737. _ACEOF
  12738. if ac_fn_c_try_compile "$LINENO"; then :
  12739. eval "$as_ac_Header=yes"
  12740. else
  12741. eval "$as_ac_Header=no"
  12742. fi
  12743. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12744. fi
  12745. eval ac_res=\$$as_ac_Header
  12746. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  12747. $as_echo "$ac_res" >&6; }
  12748. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  12749. cat >>confdefs.h <<_ACEOF
  12750. #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  12751. _ACEOF
  12752. ac_header_dirent=$ac_hdr; break
  12753. fi
  12754. done
  12755. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  12756. if test $ac_header_dirent = dirent.h; then
  12757. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
  12758. $as_echo_n "checking for library containing opendir... " >&6; }
  12759. if test "${ac_cv_search_opendir+set}" = set; then :
  12760. $as_echo_n "(cached) " >&6
  12761. else
  12762. ac_func_search_save_LIBS=$LIBS
  12763. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12764. /* end confdefs.h. */
  12765. /* Override any GCC internal prototype to avoid an error.
  12766. Use char because int might match the return type of a GCC
  12767. builtin and then its argument prototype would still apply. */
  12768. #ifdef __cplusplus
  12769. extern "C"
  12770. #endif
  12771. char opendir ();
  12772. int
  12773. main ()
  12774. {
  12775. return opendir ();
  12776. ;
  12777. return 0;
  12778. }
  12779. _ACEOF
  12780. for ac_lib in '' dir; do
  12781. if test -z "$ac_lib"; then
  12782. ac_res="none required"
  12783. else
  12784. ac_res=-l$ac_lib
  12785. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  12786. fi
  12787. if ac_fn_c_try_link "$LINENO"; then :
  12788. ac_cv_search_opendir=$ac_res
  12789. fi
  12790. rm -f core conftest.err conftest.$ac_objext \
  12791. conftest$ac_exeext
  12792. if test "${ac_cv_search_opendir+set}" = set; then :
  12793. break
  12794. fi
  12795. done
  12796. if test "${ac_cv_search_opendir+set}" = set; then :
  12797. else
  12798. ac_cv_search_opendir=no
  12799. fi
  12800. rm conftest.$ac_ext
  12801. LIBS=$ac_func_search_save_LIBS
  12802. fi
  12803. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
  12804. $as_echo "$ac_cv_search_opendir" >&6; }
  12805. ac_res=$ac_cv_search_opendir
  12806. if test "$ac_res" != no; then :
  12807. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  12808. fi
  12809. else
  12810. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
  12811. $as_echo_n "checking for library containing opendir... " >&6; }
  12812. if test "${ac_cv_search_opendir+set}" = set; then :
  12813. $as_echo_n "(cached) " >&6
  12814. else
  12815. ac_func_search_save_LIBS=$LIBS
  12816. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12817. /* end confdefs.h. */
  12818. /* Override any GCC internal prototype to avoid an error.
  12819. Use char because int might match the return type of a GCC
  12820. builtin and then its argument prototype would still apply. */
  12821. #ifdef __cplusplus
  12822. extern "C"
  12823. #endif
  12824. char opendir ();
  12825. int
  12826. main ()
  12827. {
  12828. return opendir ();
  12829. ;
  12830. return 0;
  12831. }
  12832. _ACEOF
  12833. for ac_lib in '' x; do
  12834. if test -z "$ac_lib"; then
  12835. ac_res="none required"
  12836. else
  12837. ac_res=-l$ac_lib
  12838. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  12839. fi
  12840. if ac_fn_c_try_link "$LINENO"; then :
  12841. ac_cv_search_opendir=$ac_res
  12842. fi
  12843. rm -f core conftest.err conftest.$ac_objext \
  12844. conftest$ac_exeext
  12845. if test "${ac_cv_search_opendir+set}" = set; then :
  12846. break
  12847. fi
  12848. done
  12849. if test "${ac_cv_search_opendir+set}" = set; then :
  12850. else
  12851. ac_cv_search_opendir=no
  12852. fi
  12853. rm conftest.$ac_ext
  12854. LIBS=$ac_func_search_save_LIBS
  12855. fi
  12856. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
  12857. $as_echo "$ac_cv_search_opendir" >&6; }
  12858. ac_res=$ac_cv_search_opendir
  12859. if test "$ac_res" != no; then :
  12860. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  12861. fi
  12862. fi
  12863. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  12864. $as_echo_n "checking for ANSI C header files... " >&6; }
  12865. if test "${ac_cv_header_stdc+set}" = set; then :
  12866. $as_echo_n "(cached) " >&6
  12867. else
  12868. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12869. /* end confdefs.h. */
  12870. #include <stdlib.h>
  12871. #include <stdarg.h>
  12872. #include <string.h>
  12873. #include <float.h>
  12874. int
  12875. main ()
  12876. {
  12877. ;
  12878. return 0;
  12879. }
  12880. _ACEOF
  12881. if ac_fn_c_try_compile "$LINENO"; then :
  12882. ac_cv_header_stdc=yes
  12883. else
  12884. ac_cv_header_stdc=no
  12885. fi
  12886. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12887. if test $ac_cv_header_stdc = yes; then
  12888. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  12889. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12890. /* end confdefs.h. */
  12891. #include <string.h>
  12892. _ACEOF
  12893. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  12894. $EGREP "memchr" >/dev/null 2>&1; then :
  12895. else
  12896. ac_cv_header_stdc=no
  12897. fi
  12898. rm -f conftest*
  12899. fi
  12900. if test $ac_cv_header_stdc = yes; then
  12901. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  12902. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12903. /* end confdefs.h. */
  12904. #include <stdlib.h>
  12905. _ACEOF
  12906. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  12907. $EGREP "free" >/dev/null 2>&1; then :
  12908. else
  12909. ac_cv_header_stdc=no
  12910. fi
  12911. rm -f conftest*
  12912. fi
  12913. if test $ac_cv_header_stdc = yes; then
  12914. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  12915. if test "$cross_compiling" = yes; then :
  12916. :
  12917. else
  12918. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12919. /* end confdefs.h. */
  12920. #include <ctype.h>
  12921. #include <stdlib.h>
  12922. #if ((' ' & 0x0FF) == 0x020)
  12923. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  12924. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  12925. #else
  12926. # define ISLOWER(c) \
  12927. (('a' <= (c) && (c) <= 'i') \
  12928. || ('j' <= (c) && (c) <= 'r') \
  12929. || ('s' <= (c) && (c) <= 'z'))
  12930. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  12931. #endif
  12932. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  12933. int
  12934. main ()
  12935. {
  12936. int i;
  12937. for (i = 0; i < 256; i++)
  12938. if (XOR (islower (i), ISLOWER (i))
  12939. || toupper (i) != TOUPPER (i))
  12940. return 2;
  12941. return 0;
  12942. }
  12943. _ACEOF
  12944. if ac_fn_c_try_run "$LINENO"; then :
  12945. else
  12946. ac_cv_header_stdc=no
  12947. fi
  12948. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12949. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12950. fi
  12951. fi
  12952. fi
  12953. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  12954. $as_echo "$ac_cv_header_stdc" >&6; }
  12955. if test $ac_cv_header_stdc = yes; then
  12956. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  12957. fi
  12958. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
  12959. $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
  12960. if test "${ac_cv_header_sys_wait_h+set}" = set; then :
  12961. $as_echo_n "(cached) " >&6
  12962. else
  12963. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12964. /* end confdefs.h. */
  12965. #include <sys/types.h>
  12966. #include <sys/wait.h>
  12967. #ifndef WEXITSTATUS
  12968. # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
  12969. #endif
  12970. #ifndef WIFEXITED
  12971. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  12972. #endif
  12973. int
  12974. main ()
  12975. {
  12976. int s;
  12977. wait (&s);
  12978. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  12979. ;
  12980. return 0;
  12981. }
  12982. _ACEOF
  12983. if ac_fn_c_try_compile "$LINENO"; then :
  12984. ac_cv_header_sys_wait_h=yes
  12985. else
  12986. ac_cv_header_sys_wait_h=no
  12987. fi
  12988. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12989. fi
  12990. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
  12991. $as_echo "$ac_cv_header_sys_wait_h" >&6; }
  12992. if test $ac_cv_header_sys_wait_h = yes; then
  12993. $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
  12994. fi
  12995. 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
  12996. do :
  12997. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  12998. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  12999. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  13000. cat >>confdefs.h <<_ACEOF
  13001. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  13002. _ACEOF
  13003. fi
  13004. done
  13005. # Checks for typedefs, structures, and compiler characteristics.
  13006. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
  13007. $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
  13008. if test "${ac_cv_header_stat_broken+set}" = set; then :
  13009. $as_echo_n "(cached) " >&6
  13010. else
  13011. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13012. /* end confdefs.h. */
  13013. #include <sys/types.h>
  13014. #include <sys/stat.h>
  13015. #if defined S_ISBLK && defined S_IFDIR
  13016. extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
  13017. #endif
  13018. #if defined S_ISBLK && defined S_IFCHR
  13019. extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
  13020. #endif
  13021. #if defined S_ISLNK && defined S_IFREG
  13022. extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
  13023. #endif
  13024. #if defined S_ISSOCK && defined S_IFREG
  13025. extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
  13026. #endif
  13027. _ACEOF
  13028. if ac_fn_c_try_compile "$LINENO"; then :
  13029. ac_cv_header_stat_broken=no
  13030. else
  13031. ac_cv_header_stat_broken=yes
  13032. fi
  13033. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13034. fi
  13035. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
  13036. $as_echo "$ac_cv_header_stat_broken" >&6; }
  13037. if test $ac_cv_header_stat_broken = yes; then
  13038. $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
  13039. fi
  13040. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  13041. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  13042. if test "${ac_cv_c_const+set}" = set; then :
  13043. $as_echo_n "(cached) " >&6
  13044. else
  13045. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13046. /* end confdefs.h. */
  13047. int
  13048. main ()
  13049. {
  13050. /* FIXME: Include the comments suggested by Paul. */
  13051. #ifndef __cplusplus
  13052. /* Ultrix mips cc rejects this. */
  13053. typedef int charset[2];
  13054. const charset cs;
  13055. /* SunOS 4.1.1 cc rejects this. */
  13056. char const *const *pcpcc;
  13057. char **ppc;
  13058. /* NEC SVR4.0.2 mips cc rejects this. */
  13059. struct point {int x, y;};
  13060. static struct point const zero = {0,0};
  13061. /* AIX XL C 1.02.0.0 rejects this.
  13062. It does not let you subtract one const X* pointer from another in
  13063. an arm of an if-expression whose if-part is not a constant
  13064. expression */
  13065. const char *g = "string";
  13066. pcpcc = &g + (g ? g-g : 0);
  13067. /* HPUX 7.0 cc rejects these. */
  13068. ++pcpcc;
  13069. ppc = (char**) pcpcc;
  13070. pcpcc = (char const *const *) ppc;
  13071. { /* SCO 3.2v4 cc rejects this. */
  13072. char *t;
  13073. char const *s = 0 ? (char *) 0 : (char const *) 0;
  13074. *t++ = 0;
  13075. if (s) return 0;
  13076. }
  13077. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  13078. int x[] = {25, 17};
  13079. const int *foo = &x[0];
  13080. ++foo;
  13081. }
  13082. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  13083. typedef const int *iptr;
  13084. iptr p = 0;
  13085. ++p;
  13086. }
  13087. { /* AIX XL C 1.02.0.0 rejects this saying
  13088. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  13089. struct s { int j; const int *ap[3]; };
  13090. struct s *b; b->j = 5;
  13091. }
  13092. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  13093. const int foo = 10;
  13094. if (!foo) return 0;
  13095. }
  13096. return !cs[0] && !zero.x;
  13097. #endif
  13098. ;
  13099. return 0;
  13100. }
  13101. _ACEOF
  13102. if ac_fn_c_try_compile "$LINENO"; then :
  13103. ac_cv_c_const=yes
  13104. else
  13105. ac_cv_c_const=no
  13106. fi
  13107. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13108. fi
  13109. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  13110. $as_echo "$ac_cv_c_const" >&6; }
  13111. if test $ac_cv_c_const = no; then
  13112. $as_echo "#define const /**/" >>confdefs.h
  13113. fi
  13114. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
  13115. $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
  13116. if test "${ac_cv_header_stdbool_h+set}" = set; then :
  13117. $as_echo_n "(cached) " >&6
  13118. else
  13119. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13120. /* end confdefs.h. */
  13121. #include <stdbool.h>
  13122. #ifndef bool
  13123. "error: bool is not defined"
  13124. #endif
  13125. #ifndef false
  13126. "error: false is not defined"
  13127. #endif
  13128. #if false
  13129. "error: false is not 0"
  13130. #endif
  13131. #ifndef true
  13132. "error: true is not defined"
  13133. #endif
  13134. #if true != 1
  13135. "error: true is not 1"
  13136. #endif
  13137. #ifndef __bool_true_false_are_defined
  13138. "error: __bool_true_false_are_defined is not defined"
  13139. #endif
  13140. struct s { _Bool s: 1; _Bool t; } s;
  13141. char a[true == 1 ? 1 : -1];
  13142. char b[false == 0 ? 1 : -1];
  13143. char c[__bool_true_false_are_defined == 1 ? 1 : -1];
  13144. char d[(bool) 0.5 == true ? 1 : -1];
  13145. bool e = &s;
  13146. char f[(_Bool) 0.0 == false ? 1 : -1];
  13147. char g[true];
  13148. char h[sizeof (_Bool)];
  13149. char i[sizeof s.t];
  13150. enum { j = false, k = true, l = false * true, m = true * 256 };
  13151. /* The following fails for
  13152. HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
  13153. _Bool n[m];
  13154. char o[sizeof n == m * sizeof n[0] ? 1 : -1];
  13155. char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
  13156. # if defined __xlc__ || defined __GNUC__
  13157. /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
  13158. reported by James Lemley on 2005-10-05; see
  13159. http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
  13160. This test is not quite right, since xlc is allowed to
  13161. reject this program, as the initializer for xlcbug is
  13162. not one of the forms that C requires support for.
  13163. However, doing the test right would require a runtime
  13164. test, and that would make cross-compilation harder.
  13165. Let us hope that IBM fixes the xlc bug, and also adds
  13166. support for this kind of constant expression. In the
  13167. meantime, this test will reject xlc, which is OK, since
  13168. our stdbool.h substitute should suffice. We also test
  13169. this with GCC, where it should work, to detect more
  13170. quickly whether someone messes up the test in the
  13171. future. */
  13172. char digs[] = "0123456789";
  13173. int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
  13174. # endif
  13175. /* Catch a bug in an HP-UX C compiler. See
  13176. http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
  13177. http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
  13178. */
  13179. _Bool q = true;
  13180. _Bool *pq = &q;
  13181. int
  13182. main ()
  13183. {
  13184. *pq |= q;
  13185. *pq |= ! q;
  13186. /* Refer to every declared value, to avoid compiler optimizations. */
  13187. return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
  13188. + !m + !n + !o + !p + !q + !pq);
  13189. ;
  13190. return 0;
  13191. }
  13192. _ACEOF
  13193. if ac_fn_c_try_compile "$LINENO"; then :
  13194. ac_cv_header_stdbool_h=yes
  13195. else
  13196. ac_cv_header_stdbool_h=no
  13197. fi
  13198. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13199. fi
  13200. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
  13201. $as_echo "$ac_cv_header_stdbool_h" >&6; }
  13202. ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
  13203. if test "x$ac_cv_type__Bool" = x""yes; then :
  13204. cat >>confdefs.h <<_ACEOF
  13205. #define HAVE__BOOL 1
  13206. _ACEOF
  13207. fi
  13208. if test $ac_cv_header_stdbool_h = yes; then
  13209. $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
  13210. fi
  13211. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
  13212. $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
  13213. if test "${ac_cv_type_uid_t+set}" = set; then :
  13214. $as_echo_n "(cached) " >&6
  13215. else
  13216. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13217. /* end confdefs.h. */
  13218. #include <sys/types.h>
  13219. _ACEOF
  13220. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13221. $EGREP "uid_t" >/dev/null 2>&1; then :
  13222. ac_cv_type_uid_t=yes
  13223. else
  13224. ac_cv_type_uid_t=no
  13225. fi
  13226. rm -f conftest*
  13227. fi
  13228. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
  13229. $as_echo "$ac_cv_type_uid_t" >&6; }
  13230. if test $ac_cv_type_uid_t = no; then
  13231. $as_echo "#define uid_t int" >>confdefs.h
  13232. $as_echo "#define gid_t int" >>confdefs.h
  13233. fi
  13234. ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
  13235. if test "x$ac_cv_type_pid_t" = x""yes; then :
  13236. else
  13237. cat >>confdefs.h <<_ACEOF
  13238. #define pid_t int
  13239. _ACEOF
  13240. fi
  13241. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  13242. if test "x$ac_cv_type_size_t" = x""yes; then :
  13243. else
  13244. cat >>confdefs.h <<_ACEOF
  13245. #define size_t unsigned int
  13246. _ACEOF
  13247. fi
  13248. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
  13249. $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
  13250. if test "${ac_cv_header_time+set}" = set; then :
  13251. $as_echo_n "(cached) " >&6
  13252. else
  13253. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13254. /* end confdefs.h. */
  13255. #include <sys/types.h>
  13256. #include <sys/time.h>
  13257. #include <time.h>
  13258. int
  13259. main ()
  13260. {
  13261. if ((struct tm *) 0)
  13262. return 0;
  13263. ;
  13264. return 0;
  13265. }
  13266. _ACEOF
  13267. if ac_fn_c_try_compile "$LINENO"; then :
  13268. ac_cv_header_time=yes
  13269. else
  13270. ac_cv_header_time=no
  13271. fi
  13272. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13273. fi
  13274. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
  13275. $as_echo "$ac_cv_header_time" >&6; }
  13276. if test $ac_cv_header_time = yes; then
  13277. $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
  13278. fi
  13279. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
  13280. $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
  13281. if test "${ac_cv_struct_tm+set}" = set; then :
  13282. $as_echo_n "(cached) " >&6
  13283. else
  13284. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13285. /* end confdefs.h. */
  13286. #include <sys/types.h>
  13287. #include <time.h>
  13288. int
  13289. main ()
  13290. {
  13291. struct tm tm;
  13292. int *p = &tm.tm_sec;
  13293. return !p;
  13294. ;
  13295. return 0;
  13296. }
  13297. _ACEOF
  13298. if ac_fn_c_try_compile "$LINENO"; then :
  13299. ac_cv_struct_tm=time.h
  13300. else
  13301. ac_cv_struct_tm=sys/time.h
  13302. fi
  13303. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13304. fi
  13305. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
  13306. $as_echo "$ac_cv_struct_tm" >&6; }
  13307. if test $ac_cv_struct_tm = sys/time.h; then
  13308. $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
  13309. fi
  13310. # Checks for library functions.
  13311. for ac_header in unistd.h
  13312. do :
  13313. ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
  13314. if test "x$ac_cv_header_unistd_h" = x""yes; then :
  13315. cat >>confdefs.h <<_ACEOF
  13316. #define HAVE_UNISTD_H 1
  13317. _ACEOF
  13318. fi
  13319. done
  13320. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5
  13321. $as_echo_n "checking for working chown... " >&6; }
  13322. if test "${ac_cv_func_chown_works+set}" = set; then :
  13323. $as_echo_n "(cached) " >&6
  13324. else
  13325. if test "$cross_compiling" = yes; then :
  13326. ac_cv_func_chown_works=no
  13327. else
  13328. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13329. /* end confdefs.h. */
  13330. $ac_includes_default
  13331. #include <fcntl.h>
  13332. int
  13333. main ()
  13334. {
  13335. char *f = "conftest.chown";
  13336. struct stat before, after;
  13337. if (creat (f, 0600) < 0)
  13338. return 1;
  13339. if (stat (f, &before) < 0)
  13340. return 1;
  13341. if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
  13342. return 1;
  13343. if (stat (f, &after) < 0)
  13344. return 1;
  13345. return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
  13346. ;
  13347. return 0;
  13348. }
  13349. _ACEOF
  13350. if ac_fn_c_try_run "$LINENO"; then :
  13351. ac_cv_func_chown_works=yes
  13352. else
  13353. ac_cv_func_chown_works=no
  13354. fi
  13355. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13356. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13357. fi
  13358. rm -f conftest.chown
  13359. fi
  13360. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5
  13361. $as_echo "$ac_cv_func_chown_works" >&6; }
  13362. if test $ac_cv_func_chown_works = yes; then
  13363. $as_echo "#define HAVE_CHOWN 1" >>confdefs.h
  13364. fi
  13365. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
  13366. $as_echo_n "checking whether closedir returns void... " >&6; }
  13367. if test "${ac_cv_func_closedir_void+set}" = set; then :
  13368. $as_echo_n "(cached) " >&6
  13369. else
  13370. if test "$cross_compiling" = yes; then :
  13371. ac_cv_func_closedir_void=yes
  13372. else
  13373. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13374. /* end confdefs.h. */
  13375. $ac_includes_default
  13376. #include <$ac_header_dirent>
  13377. #ifndef __cplusplus
  13378. int closedir ();
  13379. #endif
  13380. int
  13381. main ()
  13382. {
  13383. return closedir (opendir (".")) != 0;
  13384. ;
  13385. return 0;
  13386. }
  13387. _ACEOF
  13388. if ac_fn_c_try_run "$LINENO"; then :
  13389. ac_cv_func_closedir_void=no
  13390. else
  13391. ac_cv_func_closedir_void=yes
  13392. fi
  13393. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13394. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13395. fi
  13396. fi
  13397. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
  13398. $as_echo "$ac_cv_func_closedir_void" >&6; }
  13399. if test $ac_cv_func_closedir_void = yes; then
  13400. $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
  13401. fi
  13402. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
  13403. $as_echo_n "checking for error_at_line... " >&6; }
  13404. if test "${ac_cv_lib_error_at_line+set}" = set; then :
  13405. $as_echo_n "(cached) " >&6
  13406. else
  13407. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13408. /* end confdefs.h. */
  13409. #include <error.h>
  13410. int
  13411. main ()
  13412. {
  13413. error_at_line (0, 0, "", 0, "an error occurred");
  13414. ;
  13415. return 0;
  13416. }
  13417. _ACEOF
  13418. if ac_fn_c_try_link "$LINENO"; then :
  13419. ac_cv_lib_error_at_line=yes
  13420. else
  13421. ac_cv_lib_error_at_line=no
  13422. fi
  13423. rm -f core conftest.err conftest.$ac_objext \
  13424. conftest$ac_exeext conftest.$ac_ext
  13425. fi
  13426. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
  13427. $as_echo "$ac_cv_lib_error_at_line" >&6; }
  13428. if test $ac_cv_lib_error_at_line = no; then
  13429. case " $LIBOBJS " in
  13430. *" error.$ac_objext "* ) ;;
  13431. *) LIBOBJS="$LIBOBJS error.$ac_objext"
  13432. ;;
  13433. esac
  13434. fi
  13435. for ac_header in vfork.h
  13436. do :
  13437. ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
  13438. if test "x$ac_cv_header_vfork_h" = x""yes; then :
  13439. cat >>confdefs.h <<_ACEOF
  13440. #define HAVE_VFORK_H 1
  13441. _ACEOF
  13442. fi
  13443. done
  13444. for ac_func in fork vfork
  13445. do :
  13446. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  13447. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  13448. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  13449. cat >>confdefs.h <<_ACEOF
  13450. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  13451. _ACEOF
  13452. fi
  13453. done
  13454. if test "x$ac_cv_func_fork" = xyes; then
  13455. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
  13456. $as_echo_n "checking for working fork... " >&6; }
  13457. if test "${ac_cv_func_fork_works+set}" = set; then :
  13458. $as_echo_n "(cached) " >&6
  13459. else
  13460. if test "$cross_compiling" = yes; then :
  13461. ac_cv_func_fork_works=cross
  13462. else
  13463. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13464. /* end confdefs.h. */
  13465. $ac_includes_default
  13466. int
  13467. main ()
  13468. {
  13469. /* By Ruediger Kuhlmann. */
  13470. return fork () < 0;
  13471. ;
  13472. return 0;
  13473. }
  13474. _ACEOF
  13475. if ac_fn_c_try_run "$LINENO"; then :
  13476. ac_cv_func_fork_works=yes
  13477. else
  13478. ac_cv_func_fork_works=no
  13479. fi
  13480. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13481. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13482. fi
  13483. fi
  13484. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
  13485. $as_echo "$ac_cv_func_fork_works" >&6; }
  13486. else
  13487. ac_cv_func_fork_works=$ac_cv_func_fork
  13488. fi
  13489. if test "x$ac_cv_func_fork_works" = xcross; then
  13490. case $host in
  13491. *-*-amigaos* | *-*-msdosdjgpp*)
  13492. # Override, as these systems have only a dummy fork() stub
  13493. ac_cv_func_fork_works=no
  13494. ;;
  13495. *)
  13496. ac_cv_func_fork_works=yes
  13497. ;;
  13498. esac
  13499. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  13500. $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  13501. fi
  13502. ac_cv_func_vfork_works=$ac_cv_func_vfork
  13503. if test "x$ac_cv_func_vfork" = xyes; then
  13504. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
  13505. $as_echo_n "checking for working vfork... " >&6; }
  13506. if test "${ac_cv_func_vfork_works+set}" = set; then :
  13507. $as_echo_n "(cached) " >&6
  13508. else
  13509. if test "$cross_compiling" = yes; then :
  13510. ac_cv_func_vfork_works=cross
  13511. else
  13512. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13513. /* end confdefs.h. */
  13514. /* Thanks to Paul Eggert for this test. */
  13515. $ac_includes_default
  13516. #include <sys/wait.h>
  13517. #ifdef HAVE_VFORK_H
  13518. # include <vfork.h>
  13519. #endif
  13520. /* On some sparc systems, changes by the child to local and incoming
  13521. argument registers are propagated back to the parent. The compiler
  13522. is told about this with #include <vfork.h>, but some compilers
  13523. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  13524. static variable whose address is put into a register that is
  13525. clobbered by the vfork. */
  13526. static void
  13527. #ifdef __cplusplus
  13528. sparc_address_test (int arg)
  13529. # else
  13530. sparc_address_test (arg) int arg;
  13531. #endif
  13532. {
  13533. static pid_t child;
  13534. if (!child) {
  13535. child = vfork ();
  13536. if (child < 0) {
  13537. perror ("vfork");
  13538. _exit(2);
  13539. }
  13540. if (!child) {
  13541. arg = getpid();
  13542. write(-1, "", 0);
  13543. _exit (arg);
  13544. }
  13545. }
  13546. }
  13547. int
  13548. main ()
  13549. {
  13550. pid_t parent = getpid ();
  13551. pid_t child;
  13552. sparc_address_test (0);
  13553. child = vfork ();
  13554. if (child == 0) {
  13555. /* Here is another test for sparc vfork register problems. This
  13556. test uses lots of local variables, at least as many local
  13557. variables as main has allocated so far including compiler
  13558. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  13559. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  13560. reuse the register of parent for one of the local variables,
  13561. since it will think that parent can't possibly be used any more
  13562. in this routine. Assigning to the local variable will thus
  13563. munge parent in the parent process. */
  13564. pid_t
  13565. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  13566. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  13567. /* Convince the compiler that p..p7 are live; otherwise, it might
  13568. use the same hardware register for all 8 local variables. */
  13569. if (p != p1 || p != p2 || p != p3 || p != p4
  13570. || p != p5 || p != p6 || p != p7)
  13571. _exit(1);
  13572. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  13573. from child file descriptors. If the child closes a descriptor
  13574. before it execs or exits, this munges the parent's descriptor
  13575. as well. Test for this by closing stdout in the child. */
  13576. _exit(close(fileno(stdout)) != 0);
  13577. } else {
  13578. int status;
  13579. struct stat st;
  13580. while (wait(&status) != child)
  13581. ;
  13582. return (
  13583. /* Was there some problem with vforking? */
  13584. child < 0
  13585. /* Did the child fail? (This shouldn't happen.) */
  13586. || status
  13587. /* Did the vfork/compiler bug occur? */
  13588. || parent != getpid()
  13589. /* Did the file descriptor bug occur? */
  13590. || fstat(fileno(stdout), &st) != 0
  13591. );
  13592. }
  13593. }
  13594. _ACEOF
  13595. if ac_fn_c_try_run "$LINENO"; then :
  13596. ac_cv_func_vfork_works=yes
  13597. else
  13598. ac_cv_func_vfork_works=no
  13599. fi
  13600. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13601. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13602. fi
  13603. fi
  13604. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
  13605. $as_echo "$ac_cv_func_vfork_works" >&6; }
  13606. fi;
  13607. if test "x$ac_cv_func_fork_works" = xcross; then
  13608. ac_cv_func_vfork_works=$ac_cv_func_vfork
  13609. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  13610. $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  13611. fi
  13612. if test "x$ac_cv_func_vfork_works" = xyes; then
  13613. $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
  13614. else
  13615. $as_echo "#define vfork fork" >>confdefs.h
  13616. fi
  13617. if test "x$ac_cv_func_fork_works" = xyes; then
  13618. $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
  13619. fi
  13620. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
  13621. $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
  13622. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
  13623. $as_echo_n "(cached) " >&6
  13624. else
  13625. rm -f conftest.sym conftest.file
  13626. echo >conftest.file
  13627. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  13628. if test "$cross_compiling" = yes; then :
  13629. ac_cv_func_lstat_dereferences_slashed_symlink=no
  13630. else
  13631. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13632. /* end confdefs.h. */
  13633. $ac_includes_default
  13634. int
  13635. main ()
  13636. {
  13637. struct stat sbuf;
  13638. /* Linux will dereference the symlink and fail, as required by POSIX.
  13639. That is better in the sense that it means we will not
  13640. have to compile and use the lstat wrapper. */
  13641. return lstat ("conftest.sym/", &sbuf) == 0;
  13642. ;
  13643. return 0;
  13644. }
  13645. _ACEOF
  13646. if ac_fn_c_try_run "$LINENO"; then :
  13647. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  13648. else
  13649. ac_cv_func_lstat_dereferences_slashed_symlink=no
  13650. fi
  13651. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13652. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13653. fi
  13654. else
  13655. # If the `ln -s' command failed, then we probably don't even
  13656. # have an lstat function.
  13657. ac_cv_func_lstat_dereferences_slashed_symlink=no
  13658. fi
  13659. rm -f conftest.sym conftest.file
  13660. fi
  13661. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  13662. $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  13663. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  13664. cat >>confdefs.h <<_ACEOF
  13665. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  13666. _ACEOF
  13667. if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
  13668. case " $LIBOBJS " in
  13669. *" lstat.$ac_objext "* ) ;;
  13670. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  13671. ;;
  13672. esac
  13673. fi
  13674. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat accepts an empty string" >&5
  13675. $as_echo_n "checking whether lstat accepts an empty string... " >&6; }
  13676. if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then :
  13677. $as_echo_n "(cached) " >&6
  13678. else
  13679. if test "$cross_compiling" = yes; then :
  13680. ac_cv_func_lstat_empty_string_bug=yes
  13681. else
  13682. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13683. /* end confdefs.h. */
  13684. $ac_includes_default
  13685. int
  13686. main ()
  13687. {
  13688. struct stat sbuf;
  13689. return lstat ("", &sbuf) == 0;
  13690. ;
  13691. return 0;
  13692. }
  13693. _ACEOF
  13694. if ac_fn_c_try_run "$LINENO"; then :
  13695. ac_cv_func_lstat_empty_string_bug=no
  13696. else
  13697. ac_cv_func_lstat_empty_string_bug=yes
  13698. fi
  13699. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13700. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13701. fi
  13702. fi
  13703. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_empty_string_bug" >&5
  13704. $as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
  13705. if test $ac_cv_func_lstat_empty_string_bug = yes; then
  13706. case " $LIBOBJS " in
  13707. *" lstat.$ac_objext "* ) ;;
  13708. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  13709. ;;
  13710. esac
  13711. cat >>confdefs.h <<_ACEOF
  13712. #define HAVE_LSTAT_EMPTY_STRING_BUG 1
  13713. _ACEOF
  13714. fi
  13715. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
  13716. $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
  13717. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
  13718. $as_echo_n "(cached) " >&6
  13719. else
  13720. rm -f conftest.sym conftest.file
  13721. echo >conftest.file
  13722. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  13723. if test "$cross_compiling" = yes; then :
  13724. ac_cv_func_lstat_dereferences_slashed_symlink=no
  13725. else
  13726. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13727. /* end confdefs.h. */
  13728. $ac_includes_default
  13729. int
  13730. main ()
  13731. {
  13732. struct stat sbuf;
  13733. /* Linux will dereference the symlink and fail, as required by POSIX.
  13734. That is better in the sense that it means we will not
  13735. have to compile and use the lstat wrapper. */
  13736. return lstat ("conftest.sym/", &sbuf) == 0;
  13737. ;
  13738. return 0;
  13739. }
  13740. _ACEOF
  13741. if ac_fn_c_try_run "$LINENO"; then :
  13742. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  13743. else
  13744. ac_cv_func_lstat_dereferences_slashed_symlink=no
  13745. fi
  13746. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13747. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13748. fi
  13749. else
  13750. # If the `ln -s' command failed, then we probably don't even
  13751. # have an lstat function.
  13752. ac_cv_func_lstat_dereferences_slashed_symlink=no
  13753. fi
  13754. rm -f conftest.sym conftest.file
  13755. fi
  13756. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  13757. $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  13758. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  13759. cat >>confdefs.h <<_ACEOF
  13760. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  13761. _ACEOF
  13762. if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
  13763. case " $LIBOBJS " in
  13764. *" lstat.$ac_objext "* ) ;;
  13765. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  13766. ;;
  13767. esac
  13768. fi
  13769. for ac_header in stdlib.h
  13770. do :
  13771. ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
  13772. if test "x$ac_cv_header_stdlib_h" = x""yes; then :
  13773. cat >>confdefs.h <<_ACEOF
  13774. #define HAVE_STDLIB_H 1
  13775. _ACEOF
  13776. fi
  13777. done
  13778. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
  13779. $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
  13780. if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then :
  13781. $as_echo_n "(cached) " >&6
  13782. else
  13783. if test "$cross_compiling" = yes; then :
  13784. ac_cv_func_malloc_0_nonnull=no
  13785. else
  13786. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13787. /* end confdefs.h. */
  13788. #if defined STDC_HEADERS || defined HAVE_STDLIB_H
  13789. # include <stdlib.h>
  13790. #else
  13791. char *malloc ();
  13792. #endif
  13793. int
  13794. main ()
  13795. {
  13796. return ! malloc (0);
  13797. ;
  13798. return 0;
  13799. }
  13800. _ACEOF
  13801. if ac_fn_c_try_run "$LINENO"; then :
  13802. ac_cv_func_malloc_0_nonnull=yes
  13803. else
  13804. ac_cv_func_malloc_0_nonnull=no
  13805. fi
  13806. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13807. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13808. fi
  13809. fi
  13810. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
  13811. $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
  13812. if test $ac_cv_func_malloc_0_nonnull = yes; then :
  13813. $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
  13814. else
  13815. $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
  13816. case " $LIBOBJS " in
  13817. *" malloc.$ac_objext "* ) ;;
  13818. *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
  13819. ;;
  13820. esac
  13821. $as_echo "#define malloc rpl_malloc" >>confdefs.h
  13822. fi
  13823. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
  13824. $as_echo_n "checking for working memcmp... " >&6; }
  13825. if test "${ac_cv_func_memcmp_working+set}" = set; then :
  13826. $as_echo_n "(cached) " >&6
  13827. else
  13828. if test "$cross_compiling" = yes; then :
  13829. ac_cv_func_memcmp_working=no
  13830. else
  13831. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13832. /* end confdefs.h. */
  13833. $ac_includes_default
  13834. int
  13835. main ()
  13836. {
  13837. /* Some versions of memcmp are not 8-bit clean. */
  13838. char c0 = '\100', c1 = '\200', c2 = '\201';
  13839. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  13840. return 1;
  13841. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  13842. or more and with at least one buffer not starting on a 4-byte boundary.
  13843. William Lewis provided this test program. */
  13844. {
  13845. char foo[21];
  13846. char bar[21];
  13847. int i;
  13848. for (i = 0; i < 4; i++)
  13849. {
  13850. char *a = foo + i;
  13851. char *b = bar + i;
  13852. strcpy (a, "--------01111111");
  13853. strcpy (b, "--------10000000");
  13854. if (memcmp (a, b, 16) >= 0)
  13855. return 1;
  13856. }
  13857. return 0;
  13858. }
  13859. ;
  13860. return 0;
  13861. }
  13862. _ACEOF
  13863. if ac_fn_c_try_run "$LINENO"; then :
  13864. ac_cv_func_memcmp_working=yes
  13865. else
  13866. ac_cv_func_memcmp_working=no
  13867. fi
  13868. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13869. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13870. fi
  13871. fi
  13872. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
  13873. $as_echo "$ac_cv_func_memcmp_working" >&6; }
  13874. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  13875. *" memcmp.$ac_objext "* ) ;;
  13876. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  13877. ;;
  13878. esac
  13879. for ac_header in $ac_header_list
  13880. do :
  13881. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  13882. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  13883. "
  13884. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  13885. cat >>confdefs.h <<_ACEOF
  13886. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  13887. _ACEOF
  13888. fi
  13889. done
  13890. for ac_func in getpagesize
  13891. do :
  13892. ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
  13893. if test "x$ac_cv_func_getpagesize" = x""yes; then :
  13894. cat >>confdefs.h <<_ACEOF
  13895. #define HAVE_GETPAGESIZE 1
  13896. _ACEOF
  13897. fi
  13898. done
  13899. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
  13900. $as_echo_n "checking for working mmap... " >&6; }
  13901. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
  13902. $as_echo_n "(cached) " >&6
  13903. else
  13904. if test "$cross_compiling" = yes; then :
  13905. ac_cv_func_mmap_fixed_mapped=no
  13906. else
  13907. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13908. /* end confdefs.h. */
  13909. $ac_includes_default
  13910. /* malloc might have been renamed as rpl_malloc. */
  13911. #undef malloc
  13912. /* Thanks to Mike Haertel and Jim Avera for this test.
  13913. Here is a matrix of mmap possibilities:
  13914. mmap private not fixed
  13915. mmap private fixed at somewhere currently unmapped
  13916. mmap private fixed at somewhere already mapped
  13917. mmap shared not fixed
  13918. mmap shared fixed at somewhere currently unmapped
  13919. mmap shared fixed at somewhere already mapped
  13920. For private mappings, we should verify that changes cannot be read()
  13921. back from the file, nor mmap's back from the file at a different
  13922. address. (There have been systems where private was not correctly
  13923. implemented like the infamous i386 svr4.0, and systems where the
  13924. VM page cache was not coherent with the file system buffer cache
  13925. like early versions of FreeBSD and possibly contemporary NetBSD.)
  13926. For shared mappings, we should conversely verify that changes get
  13927. propagated back to all the places they're supposed to be.
  13928. Grep wants private fixed already mapped.
  13929. The main things grep needs to know about mmap are:
  13930. * does it exist and is it safe to write into the mmap'd area
  13931. * how to use it (BSD variants) */
  13932. #include <fcntl.h>
  13933. #include <sys/mman.h>
  13934. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  13935. char *malloc ();
  13936. #endif
  13937. /* This mess was copied from the GNU getpagesize.h. */
  13938. #ifndef HAVE_GETPAGESIZE
  13939. # ifdef _SC_PAGESIZE
  13940. # define getpagesize() sysconf(_SC_PAGESIZE)
  13941. # else /* no _SC_PAGESIZE */
  13942. # ifdef HAVE_SYS_PARAM_H
  13943. # include <sys/param.h>
  13944. # ifdef EXEC_PAGESIZE
  13945. # define getpagesize() EXEC_PAGESIZE
  13946. # else /* no EXEC_PAGESIZE */
  13947. # ifdef NBPG
  13948. # define getpagesize() NBPG * CLSIZE
  13949. # ifndef CLSIZE
  13950. # define CLSIZE 1
  13951. # endif /* no CLSIZE */
  13952. # else /* no NBPG */
  13953. # ifdef NBPC
  13954. # define getpagesize() NBPC
  13955. # else /* no NBPC */
  13956. # ifdef PAGESIZE
  13957. # define getpagesize() PAGESIZE
  13958. # endif /* PAGESIZE */
  13959. # endif /* no NBPC */
  13960. # endif /* no NBPG */
  13961. # endif /* no EXEC_PAGESIZE */
  13962. # else /* no HAVE_SYS_PARAM_H */
  13963. # define getpagesize() 8192 /* punt totally */
  13964. # endif /* no HAVE_SYS_PARAM_H */
  13965. # endif /* no _SC_PAGESIZE */
  13966. #endif /* no HAVE_GETPAGESIZE */
  13967. int
  13968. main ()
  13969. {
  13970. char *data, *data2, *data3;
  13971. const char *cdata2;
  13972. int i, pagesize;
  13973. int fd, fd2;
  13974. pagesize = getpagesize ();
  13975. /* First, make a file with some known garbage in it. */
  13976. data = (char *) malloc (pagesize);
  13977. if (!data)
  13978. return 1;
  13979. for (i = 0; i < pagesize; ++i)
  13980. *(data + i) = rand ();
  13981. umask (0);
  13982. fd = creat ("conftest.mmap", 0600);
  13983. if (fd < 0)
  13984. return 2;
  13985. if (write (fd, data, pagesize) != pagesize)
  13986. return 3;
  13987. close (fd);
  13988. /* Next, check that the tail of a page is zero-filled. File must have
  13989. non-zero length, otherwise we risk SIGBUS for entire page. */
  13990. fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
  13991. if (fd2 < 0)
  13992. return 4;
  13993. cdata2 = "";
  13994. if (write (fd2, cdata2, 1) != 1)
  13995. return 5;
  13996. data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
  13997. if (data2 == MAP_FAILED)
  13998. return 6;
  13999. for (i = 0; i < pagesize; ++i)
  14000. if (*(data2 + i))
  14001. return 7;
  14002. close (fd2);
  14003. if (munmap (data2, pagesize))
  14004. return 8;
  14005. /* Next, try to mmap the file at a fixed address which already has
  14006. something else allocated at it. If we can, also make sure that
  14007. we see the same garbage. */
  14008. fd = open ("conftest.mmap", O_RDWR);
  14009. if (fd < 0)
  14010. return 9;
  14011. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  14012. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  14013. return 10;
  14014. for (i = 0; i < pagesize; ++i)
  14015. if (*(data + i) != *(data2 + i))
  14016. return 11;
  14017. /* Finally, make sure that changes to the mapped area do not
  14018. percolate back to the file as seen by read(). (This is a bug on
  14019. some variants of i386 svr4.0.) */
  14020. for (i = 0; i < pagesize; ++i)
  14021. *(data2 + i) = *(data2 + i) + 1;
  14022. data3 = (char *) malloc (pagesize);
  14023. if (!data3)
  14024. return 12;
  14025. if (read (fd, data3, pagesize) != pagesize)
  14026. return 13;
  14027. for (i = 0; i < pagesize; ++i)
  14028. if (*(data + i) != *(data3 + i))
  14029. return 14;
  14030. close (fd);
  14031. return 0;
  14032. }
  14033. _ACEOF
  14034. if ac_fn_c_try_run "$LINENO"; then :
  14035. ac_cv_func_mmap_fixed_mapped=yes
  14036. else
  14037. ac_cv_func_mmap_fixed_mapped=no
  14038. fi
  14039. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14040. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14041. fi
  14042. fi
  14043. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
  14044. $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
  14045. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  14046. $as_echo "#define HAVE_MMAP 1" >>confdefs.h
  14047. fi
  14048. rm -f conftest.mmap conftest.txt
  14049. { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
  14050. $as_echo_n "checking return type of signal handlers... " >&6; }
  14051. if test "${ac_cv_type_signal+set}" = set; then :
  14052. $as_echo_n "(cached) " >&6
  14053. else
  14054. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14055. /* end confdefs.h. */
  14056. #include <sys/types.h>
  14057. #include <signal.h>
  14058. int
  14059. main ()
  14060. {
  14061. return *(signal (0, 0)) (0) == 1;
  14062. ;
  14063. return 0;
  14064. }
  14065. _ACEOF
  14066. if ac_fn_c_try_compile "$LINENO"; then :
  14067. ac_cv_type_signal=int
  14068. else
  14069. ac_cv_type_signal=void
  14070. fi
  14071. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14072. fi
  14073. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
  14074. $as_echo "$ac_cv_type_signal" >&6; }
  14075. cat >>confdefs.h <<_ACEOF
  14076. #define RETSIGTYPE $ac_cv_type_signal
  14077. _ACEOF
  14078. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
  14079. $as_echo_n "checking whether stat accepts an empty string... " >&6; }
  14080. if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then :
  14081. $as_echo_n "(cached) " >&6
  14082. else
  14083. if test "$cross_compiling" = yes; then :
  14084. ac_cv_func_stat_empty_string_bug=yes
  14085. else
  14086. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14087. /* end confdefs.h. */
  14088. $ac_includes_default
  14089. int
  14090. main ()
  14091. {
  14092. struct stat sbuf;
  14093. return stat ("", &sbuf) == 0;
  14094. ;
  14095. return 0;
  14096. }
  14097. _ACEOF
  14098. if ac_fn_c_try_run "$LINENO"; then :
  14099. ac_cv_func_stat_empty_string_bug=no
  14100. else
  14101. ac_cv_func_stat_empty_string_bug=yes
  14102. fi
  14103. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14104. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14105. fi
  14106. fi
  14107. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
  14108. $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
  14109. if test $ac_cv_func_stat_empty_string_bug = yes; then
  14110. case " $LIBOBJS " in
  14111. *" stat.$ac_objext "* ) ;;
  14112. *) LIBOBJS="$LIBOBJS stat.$ac_objext"
  14113. ;;
  14114. esac
  14115. cat >>confdefs.h <<_ACEOF
  14116. #define HAVE_STAT_EMPTY_STRING_BUG 1
  14117. _ACEOF
  14118. fi
  14119. ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
  14120. if test "x$ac_cv_have_decl_strerror_r" = x""yes; then :
  14121. ac_have_decl=1
  14122. else
  14123. ac_have_decl=0
  14124. fi
  14125. cat >>confdefs.h <<_ACEOF
  14126. #define HAVE_DECL_STRERROR_R $ac_have_decl
  14127. _ACEOF
  14128. for ac_func in strerror_r
  14129. do :
  14130. ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
  14131. if test "x$ac_cv_func_strerror_r" = x""yes; then :
  14132. cat >>confdefs.h <<_ACEOF
  14133. #define HAVE_STRERROR_R 1
  14134. _ACEOF
  14135. fi
  14136. done
  14137. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
  14138. $as_echo_n "checking whether strerror_r returns char *... " >&6; }
  14139. if test "${ac_cv_func_strerror_r_char_p+set}" = set; then :
  14140. $as_echo_n "(cached) " >&6
  14141. else
  14142. ac_cv_func_strerror_r_char_p=no
  14143. if test $ac_cv_have_decl_strerror_r = yes; then
  14144. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14145. /* end confdefs.h. */
  14146. $ac_includes_default
  14147. int
  14148. main ()
  14149. {
  14150. char buf[100];
  14151. char x = *strerror_r (0, buf, sizeof buf);
  14152. char *p = strerror_r (0, buf, sizeof buf);
  14153. return !p || x;
  14154. ;
  14155. return 0;
  14156. }
  14157. _ACEOF
  14158. if ac_fn_c_try_compile "$LINENO"; then :
  14159. ac_cv_func_strerror_r_char_p=yes
  14160. fi
  14161. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14162. else
  14163. # strerror_r is not declared. Choose between
  14164. # systems that have relatively inaccessible declarations for the
  14165. # function. BeOS and DEC UNIX 4.0 fall in this category, but the
  14166. # former has a strerror_r that returns char*, while the latter
  14167. # has a strerror_r that returns `int'.
  14168. # This test should segfault on the DEC system.
  14169. if test "$cross_compiling" = yes; then :
  14170. :
  14171. else
  14172. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14173. /* end confdefs.h. */
  14174. $ac_includes_default
  14175. extern char *strerror_r ();
  14176. int
  14177. main ()
  14178. {
  14179. char buf[100];
  14180. char x = *strerror_r (0, buf, sizeof buf);
  14181. return ! isalpha (x);
  14182. ;
  14183. return 0;
  14184. }
  14185. _ACEOF
  14186. if ac_fn_c_try_run "$LINENO"; then :
  14187. ac_cv_func_strerror_r_char_p=yes
  14188. fi
  14189. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14190. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14191. fi
  14192. fi
  14193. fi
  14194. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
  14195. $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
  14196. if test $ac_cv_func_strerror_r_char_p = yes; then
  14197. $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
  14198. fi
  14199. for ac_func in strftime
  14200. do :
  14201. ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
  14202. if test "x$ac_cv_func_strftime" = x""yes; then :
  14203. cat >>confdefs.h <<_ACEOF
  14204. #define HAVE_STRFTIME 1
  14205. _ACEOF
  14206. else
  14207. # strftime is in -lintl on SCO UNIX.
  14208. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
  14209. $as_echo_n "checking for strftime in -lintl... " >&6; }
  14210. if test "${ac_cv_lib_intl_strftime+set}" = set; then :
  14211. $as_echo_n "(cached) " >&6
  14212. else
  14213. ac_check_lib_save_LIBS=$LIBS
  14214. LIBS="-lintl $LIBS"
  14215. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14216. /* end confdefs.h. */
  14217. /* Override any GCC internal prototype to avoid an error.
  14218. Use char because int might match the return type of a GCC
  14219. builtin and then its argument prototype would still apply. */
  14220. #ifdef __cplusplus
  14221. extern "C"
  14222. #endif
  14223. char strftime ();
  14224. int
  14225. main ()
  14226. {
  14227. return strftime ();
  14228. ;
  14229. return 0;
  14230. }
  14231. _ACEOF
  14232. if ac_fn_c_try_link "$LINENO"; then :
  14233. ac_cv_lib_intl_strftime=yes
  14234. else
  14235. ac_cv_lib_intl_strftime=no
  14236. fi
  14237. rm -f core conftest.err conftest.$ac_objext \
  14238. conftest$ac_exeext conftest.$ac_ext
  14239. LIBS=$ac_check_lib_save_LIBS
  14240. fi
  14241. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
  14242. $as_echo "$ac_cv_lib_intl_strftime" >&6; }
  14243. if test "x$ac_cv_lib_intl_strftime" = x""yes; then :
  14244. $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
  14245. LIBS="-lintl $LIBS"
  14246. fi
  14247. fi
  14248. done
  14249. for ac_func in vprintf
  14250. do :
  14251. ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
  14252. if test "x$ac_cv_func_vprintf" = x""yes; then :
  14253. cat >>confdefs.h <<_ACEOF
  14254. #define HAVE_VPRINTF 1
  14255. _ACEOF
  14256. ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
  14257. if test "x$ac_cv_func__doprnt" = x""yes; then :
  14258. $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
  14259. fi
  14260. fi
  14261. done
  14262. 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
  14263. do :
  14264. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14265. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14266. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14267. cat >>confdefs.h <<_ACEOF
  14268. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14269. _ACEOF
  14270. fi
  14271. done
  14272. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-debug" >&5
  14273. $as_echo_n "checking for --enable-debug... " >&6; }
  14274. # Check whether --enable-debug was given.
  14275. if test "${enable_debug+set}" = set; then :
  14276. enableval=$enable_debug;
  14277. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14278. $as_echo "yes" >&6; }
  14279. debug_defs="-DDEBUG -DMCC_DEBUG"
  14280. else
  14281. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14282. $as_echo "no" >&6; }
  14283. debug_defs=""
  14284. fi
  14285. # Used for legacy style packaging where we bundle all of the dependencies.
  14286. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-bundle" >&5
  14287. $as_echo_n "checking for --enable-bundle... " >&6; }
  14288. # Check whether --enable-bundle was given.
  14289. if test "${enable_bundle+set}" = set; then :
  14290. enableval=$enable_bundle;
  14291. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14292. $as_echo "yes" >&6; }
  14293. bundle="1";
  14294. else
  14295. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14296. $as_echo "no" >&6; }
  14297. bundle="";
  14298. fi
  14299. if test "$bundle" = "1"; then
  14300. BUNDLE_TRUE=
  14301. BUNDLE_FALSE='#'
  14302. else
  14303. BUNDLE_TRUE='#'
  14304. BUNDLE_FALSE=
  14305. fi
  14306. # these enables are for optional or experimental features
  14307. if test -z "$enable_pam_passthru" ; then
  14308. enable_pam_passthru=yes # if not set on cmdline, set default
  14309. fi
  14310. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-pam-passthru" >&5
  14311. $as_echo_n "checking for --enable-pam-passthru... " >&6; }
  14312. # Check whether --enable-pam-passthru was given.
  14313. if test "${enable_pam_passthru+set}" = set; then :
  14314. enableval=$enable_pam_passthru;
  14315. fi
  14316. if test "$enable_pam_passthru" = yes ; then
  14317. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14318. $as_echo "yes" >&6; }
  14319. $as_echo "#define ENABLE_PAM_PASSTHRU 1" >>confdefs.h
  14320. else
  14321. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14322. $as_echo "no" >&6; }
  14323. fi
  14324. if test "$enable_pam_passthru" = "yes"; then
  14325. enable_pam_passthru_TRUE=
  14326. enable_pam_passthru_FALSE='#'
  14327. else
  14328. enable_pam_passthru_TRUE='#'
  14329. enable_pam_passthru_FALSE=
  14330. fi
  14331. if test -z "$enable_dna" ; then
  14332. enable_dna=yes # if not set on cmdline, set default
  14333. fi
  14334. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-dna" >&5
  14335. $as_echo_n "checking for --enable-dna... " >&6; }
  14336. # Check whether --enable-dna was given.
  14337. if test "${enable_dna+set}" = set; then :
  14338. enableval=$enable_dna;
  14339. fi
  14340. if test "$enable_dna" = yes ; then
  14341. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14342. $as_echo "yes" >&6; }
  14343. $as_echo "#define ENABLE_DNA 1" >>confdefs.h
  14344. else
  14345. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14346. $as_echo "no" >&6; }
  14347. fi
  14348. if test "$enable_dna" = "yes"; then
  14349. enable_dna_TRUE=
  14350. enable_dna_FALSE='#'
  14351. else
  14352. enable_dna_TRUE='#'
  14353. enable_dna_FALSE=
  14354. fi
  14355. if test -z "$enable_ldapi" ; then
  14356. enable_ldapi=yes # if not set on cmdline, set default
  14357. fi
  14358. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-ldapi" >&5
  14359. $as_echo_n "checking for --enable-ldapi... " >&6; }
  14360. # Check whether --enable-ldapi was given.
  14361. if test "${enable_ldapi+set}" = set; then :
  14362. enableval=$enable_ldapi;
  14363. fi
  14364. if test "$enable_ldapi" = yes ; then
  14365. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14366. $as_echo "yes" >&6; }
  14367. $as_echo "#define ENABLE_LDAPI 1" >>confdefs.h
  14368. else
  14369. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14370. $as_echo "no" >&6; }
  14371. fi
  14372. if test "$enable_ldapi" = "yes"; then
  14373. enable_ldapi_TRUE=
  14374. enable_ldapi_FALSE='#'
  14375. else
  14376. enable_ldapi_TRUE='#'
  14377. enable_ldapi_FALSE=
  14378. fi
  14379. if test -z "$enable_autobind" ; then
  14380. enable_autobind=no # if not set on cmdline, set default
  14381. fi
  14382. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-autobind" >&5
  14383. $as_echo_n "checking for --enable-autobind... " >&6; }
  14384. # Check whether --enable-autobind was given.
  14385. if test "${enable_autobind+set}" = set; then :
  14386. enableval=$enable_autobind;
  14387. fi
  14388. if test "$enable_ldapi" = yes -a "$enable_autobind" = yes ; then
  14389. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14390. $as_echo "yes" >&6; }
  14391. $as_echo "#define ENABLE_AUTOBIND 1" >>confdefs.h
  14392. else
  14393. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14394. $as_echo "no" >&6; }
  14395. fi
  14396. if test "$enable_autobind" = "yes"; then
  14397. enable_autobind_TRUE=
  14398. enable_autobind_FALSE='#'
  14399. else
  14400. enable_autobind_TRUE='#'
  14401. enable_autobind_FALSE=
  14402. fi
  14403. if test -z "$enable_auto_dn_suffix" ; then
  14404. enable_auto_dn_suffix=no # if not set on cmdline, set default
  14405. fi
  14406. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-auto-dn-suffix" >&5
  14407. $as_echo_n "checking for --enable-auto-dn-suffix... " >&6; }
  14408. # Check whether --enable-autobind was given.
  14409. if test "${enable_autobind+set}" = set; then :
  14410. enableval=$enable_autobind;
  14411. fi
  14412. if test "$enable_ldapi" = yes -a "$enable_autobind" = yes -a "$enable_auto_dn_suffix" = "yes"; then
  14413. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14414. $as_echo "yes" >&6; }
  14415. $as_echo "#define ENABLE_AUTO_DN_SUFFIX 1" >>confdefs.h
  14416. else
  14417. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14418. $as_echo "no" >&6; }
  14419. fi
  14420. if test "$enable_auto_dn_suffix" = "yes"; then
  14421. enable_auto_dn_suffix_TRUE=
  14422. enable_auto_dn_suffix_FALSE='#'
  14423. else
  14424. enable_auto_dn_suffix_TRUE='#'
  14425. enable_auto_dn_suffix_FALSE=
  14426. fi
  14427. if test -z "$enable_bitwise" ; then
  14428. enable_bitwise=yes # if not set on cmdline, set default
  14429. fi
  14430. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-bitwise" >&5
  14431. $as_echo_n "checking for --enable-bitwise... " >&6; }
  14432. # Check whether --enable-bitwise was given.
  14433. if test "${enable_bitwise+set}" = set; then :
  14434. enableval=$enable_bitwise;
  14435. fi
  14436. if test "$enable_bitwise" = yes ; then
  14437. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14438. $as_echo "yes" >&6; }
  14439. $as_echo "#define ENABLE_BITWISE 1" >>confdefs.h
  14440. else
  14441. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14442. $as_echo "no" >&6; }
  14443. fi
  14444. if test "$enable_bitwise" = "yes"; then
  14445. enable_bitwise_TRUE=
  14446. enable_bitwise_FALSE='#'
  14447. else
  14448. enable_bitwise_TRUE='#'
  14449. enable_bitwise_FALSE=
  14450. fi
  14451. if test -z "$enable_presence" ; then
  14452. enable_presence=no # if not set on cmdline, set default
  14453. fi
  14454. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-presence" >&5
  14455. $as_echo_n "checking for --enable-presence... " >&6; }
  14456. # Check whether --enable-presence was given.
  14457. if test "${enable_presence+set}" = set; then :
  14458. enableval=$enable_presence;
  14459. fi
  14460. if test "$enable_presence" = yes ; then
  14461. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14462. $as_echo "yes" >&6; }
  14463. $as_echo "#define ENABLE_PRESENCE 1" >>confdefs.h
  14464. else
  14465. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14466. $as_echo "no" >&6; }
  14467. fi
  14468. if test "$enable_presence" = "yes"; then
  14469. enable_presence_TRUE=
  14470. enable_presence_FALSE='#'
  14471. else
  14472. enable_presence_TRUE='#'
  14473. enable_presence_FALSE=
  14474. fi
  14475. if test -z "$enable_acctpolicy" ; then
  14476. enable_acctpolicy=yes # if not set on cmdline, set default
  14477. fi
  14478. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-acctpolicy" >&5
  14479. $as_echo_n "checking for --enable-acctpolicy... " >&6; }
  14480. # Check whether --enable-acctpolicy was given.
  14481. if test "${enable_acctpolicy+set}" = set; then :
  14482. enableval=$enable_acctpolicy;
  14483. fi
  14484. if test "$enable_acctpolicy" = yes ; then
  14485. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14486. $as_echo "yes" >&6; }
  14487. $as_echo "#define ENABLE_ACCTPOLICY 1" >>confdefs.h
  14488. else
  14489. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14490. $as_echo "no" >&6; }
  14491. fi
  14492. if test "$enable_acctpolicy" = "yes"; then
  14493. enable_acctpolicy_TRUE=
  14494. enable_acctpolicy_FALSE='#'
  14495. else
  14496. enable_acctpolicy_TRUE='#'
  14497. enable_acctpolicy_FALSE=
  14498. fi
  14499. # the default prefix - override with --prefix or --with-fhs
  14500. # BEGIN COPYRIGHT BLOCK
  14501. # Copyright (C) 2006 Red Hat, Inc.
  14502. # All rights reserved.
  14503. #
  14504. # This program is free software; you can redistribute it and/or
  14505. # modify it under the terms of the GNU General Public License
  14506. # as published by the Free Software Foundation; either version 2
  14507. # of the License, or (at your option) any later version.
  14508. #
  14509. # This program is distributed in the hope that it will be useful,
  14510. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  14511. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14512. # GNU General Public License for more details.
  14513. #
  14514. # You should have received a copy of the GNU General Public License
  14515. # along with this program; if not, write to the Free Software
  14516. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  14517. #
  14518. # END COPYRIGHT BLOCK
  14519. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FHS..." >&5
  14520. $as_echo "$as_me: checking for FHS..." >&6;}
  14521. # check for --with-fhs
  14522. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-fhs" >&5
  14523. $as_echo_n "checking for --with-fhs... " >&6; }
  14524. # Check whether --with-fhs was given.
  14525. if test "${with_fhs+set}" = set; then :
  14526. withval=$with_fhs;
  14527. with_fhs=yes
  14528. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14529. $as_echo "yes" >&6; }
  14530. else
  14531. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14532. $as_echo "no" >&6; }
  14533. fi
  14534. if test "$with_fhs" = "yes"; then
  14535. $as_echo "#define IS_FHS 1" >>confdefs.h
  14536. fi
  14537. # check for --with-fhs-opt
  14538. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-fhs-opt" >&5
  14539. $as_echo_n "checking for --with-fhs-opt... " >&6; }
  14540. # Check whether --with-fhs-opt was given.
  14541. if test "${with_fhs_opt+set}" = set; then :
  14542. withval=$with_fhs_opt;
  14543. with_fhs_opt=yes
  14544. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14545. $as_echo "yes" >&6; }
  14546. else
  14547. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14548. $as_echo "no" >&6; }
  14549. fi
  14550. if test "$with_fhs_opt" = "yes"; then
  14551. $as_echo "#define IS_FHS_OPT 1" >>confdefs.h
  14552. fi
  14553. if test "$with_fhs" = "yes" -a "$with_fhs_opt" = "yes"; then
  14554. as_fn_error $? "Can't set both --with-fhs and --with-fhs-opt. Please only use one of these options." "$LINENO" 5
  14555. fi
  14556. # installation paths - by default, we store everything
  14557. # under the prefix. The with-fhs option will use /usr,
  14558. # /etc, and /var. The with-fhs-opt option will use the
  14559. # prefix, but it's sysconfdir and localstatedir will be
  14560. # /etc/opt, and /var/opt.
  14561. if test "$with_fhs_opt" = "yes"; then
  14562. # Override sysconfdir and localstatedir if FHS optional
  14563. # package was requested.
  14564. sysconfdir='/etc/opt'
  14565. localstatedir='/var/opt'
  14566. # relative to datadir
  14567. sampledatadir=/data
  14568. # relative to datadir
  14569. scripttemplatedir=/script-templates
  14570. # relative to datadir
  14571. updatedir=/updates
  14572. # relative to libdir
  14573. serverdir=
  14574. # relative to includedir
  14575. serverincdir=
  14576. # relative to libdir
  14577. serverplugindir=/plugins
  14578. # relative to datadir
  14579. infdir=/inf
  14580. # relative to datadir
  14581. mibdir=/mibs
  14582. # location of property/resource files, relative to datadir
  14583. propertydir=/properties
  14584. # relative to libdir
  14585. perldir=/perl
  14586. else
  14587. if test "$with_fhs" = "yes"; then
  14588. ac_default_prefix=/usr
  14589. prefix=$ac_default_prefix
  14590. exec_prefix=$prefix
  14591. sysconfdir='/etc'
  14592. localstatedir='/var'
  14593. fi
  14594. # relative to datadir
  14595. sampledatadir=/$PACKAGE_NAME/data
  14596. # relative to datadir
  14597. scripttemplatedir=/$PACKAGE_NAME/script-templates
  14598. # relative to datadir
  14599. updatedir=/$PACKAGE_NAME/updates
  14600. # relative to libdir
  14601. serverdir=/$PACKAGE_NAME
  14602. # relative to includedir
  14603. serverincdir=/$PACKAGE_NAME
  14604. # relative to libdir
  14605. serverplugindir=/$PACKAGE_NAME/plugins
  14606. # relative to datadir
  14607. infdir=/$PACKAGE_NAME/inf
  14608. # relative to datadir
  14609. mibdir=/$PACKAGE_NAME/mibs
  14610. # location of property/resource files, relative to datadir
  14611. propertydir=/$PACKAGE_NAME/properties
  14612. # relative to libdir
  14613. perldir=/$PACKAGE_NAME/perl
  14614. fi
  14615. # if mandir is the default value, override it
  14616. # otherwise, the user must have set it - just use it
  14617. if test X"$mandir" = X'${prefix}/man' ; then
  14618. mandir='$(datadir)/man'
  14619. fi
  14620. # Shared paths for all layouts
  14621. # relative to sysconfdir
  14622. configdir=/$PACKAGE_NAME/config
  14623. # relative to sysconfdir
  14624. schemadir=/$PACKAGE_NAME/schema
  14625. # default user, group
  14626. defaultuser=nobody
  14627. defaultgroup=nobody
  14628. # check for --with-instconfigdir
  14629. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-instconfigdir" >&5
  14630. $as_echo_n "checking for --with-instconfigdir... " >&6; }
  14631. # Check whether --with-instconfigdir was given.
  14632. if test "${with_instconfigdir+set}" = set; then :
  14633. withval=$with_instconfigdir;
  14634. if test $withval = yes ; then
  14635. as_fn_error $? "Please specify a full path with --with-instconfigdir" "$LINENO" 5
  14636. fi
  14637. instconfigdir="$withval"
  14638. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
  14639. $as_echo "$withval" >&6; }
  14640. else
  14641. instconfigdir='$(sysconfdir)/$(PACKAGE_NAME)'
  14642. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14643. $as_echo "no" >&6; }
  14644. fi
  14645. # WINNT should be true if building on Windows system not using
  14646. # cygnus, mingw, or the like and using cmd.exe as the shell
  14647. if false; then
  14648. WINNT_TRUE=
  14649. WINNT_FALSE='#'
  14650. else
  14651. WINNT_TRUE='#'
  14652. WINNT_FALSE=
  14653. fi
  14654. # Deal with platform dependent defines
  14655. # initdir is the location for the SysV init scripts - very heavily platform
  14656. # dependent and not specified in fhs or lsb
  14657. initdir='$(sysconfdir)/rc.d'
  14658. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-initddir" >&5
  14659. $as_echo_n "checking for --with-initddir... " >&6; }
  14660. # Check whether --with-initddir was given.
  14661. if test "${with_initddir+set}" = set; then :
  14662. withval=$with_initddir;
  14663. if test "$withval" = yes -o "$withval" = no ; then
  14664. as_fn_error $? "Please specify a full path with --with-initddir" "$LINENO" 5
  14665. fi
  14666. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
  14667. $as_echo "$withval" >&6; }
  14668. else
  14669. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14670. $as_echo "no" >&6; }
  14671. fi
  14672. # on most platforms, we will just use perl from PATH
  14673. # On some platforms, we cannot. Why not just use any old
  14674. # perl? Because of perldap. We use a perldap that is
  14675. # compiled to either 32bit or 64bit, so we must use a native
  14676. # perl binary compiled with the same bitsize. On Solaris
  14677. # and HP-UX, /usr/bin/perl is 32 bit, so we cannot use
  14678. # those with our 64 bit compiled product.
  14679. perlexec='/usr/bin/env perl'
  14680. # we use stty in perl scripts to disable password echo
  14681. # this doesn't work unless the full absolute path of the
  14682. # stty command is used e.g. system("stty -echo") does not
  14683. # work but system("/bin/stty -echo") does work
  14684. # since the path of stty may not be the same on all
  14685. # platforms, we set the default here to /bin/stty and
  14686. # allow that value to be overridden in the platform
  14687. # specific section below
  14688. sttyexec=/bin/stty
  14689. case $host in
  14690. *-*-linux*)
  14691. $as_echo "#define XP_UNIX 1" >>confdefs.h
  14692. $as_echo "#define Linux 1" >>confdefs.h
  14693. $as_echo "#define LINUX 1" >>confdefs.h
  14694. $as_echo "#define LINUX2_0 1" >>confdefs.h
  14695. $as_echo "#define LINUX2_2 1" >>confdefs.h
  14696. $as_echo "#define LINUX2_4 1" >>confdefs.h
  14697. $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
  14698. platform="linux"
  14699. initdir='$(sysconfdir)/rc.d/init.d'
  14700. # do arch specific linux stuff here
  14701. case $host in
  14702. i*86-*-linux*)
  14703. $as_echo "#define CPU_x86 /**/" >>confdefs.h
  14704. $as_echo "#define ATOMIC_64BIT_OPERATIONS 1" >>confdefs.h
  14705. ac_fn_c_check_decl "$LINENO" "__sync_add_and_fetch" "ac_cv_have_decl___sync_add_and_fetch" "$ac_includes_default"
  14706. if test "x$ac_cv_have_decl___sync_add_and_fetch" = x""yes; then :
  14707. ac_have_decl=1
  14708. else
  14709. ac_have_decl=0
  14710. fi
  14711. cat >>confdefs.h <<_ACEOF
  14712. #define HAVE_DECL___SYNC_ADD_AND_FETCH $ac_have_decl
  14713. _ACEOF
  14714. ;;
  14715. x86_64-*-linux*)
  14716. $as_echo "#define CPU_x86_64 /**/" >>confdefs.h
  14717. $as_echo "#define ATOMIC_64BIT_OPERATIONS 1" >>confdefs.h
  14718. ac_fn_c_check_decl "$LINENO" "__sync_add_and_fetch" "ac_cv_have_decl___sync_add_and_fetch" "$ac_includes_default"
  14719. if test "x$ac_cv_have_decl___sync_add_and_fetch" = x""yes; then :
  14720. ac_have_decl=1
  14721. else
  14722. ac_have_decl=0
  14723. fi
  14724. cat >>confdefs.h <<_ACEOF
  14725. #define HAVE_DECL___SYNC_ADD_AND_FETCH $ac_have_decl
  14726. _ACEOF
  14727. ;;
  14728. esac
  14729. # some programs use the native thread library directly
  14730. THREADLIB=-lpthread
  14731. THREADLIB=$THREADLIB
  14732. LIBCRYPT=-lcrypt
  14733. LIBCRYPT=$LIBCRYPT
  14734. ;;
  14735. ia64-hp-hpux*)
  14736. $as_echo "#define XP_UNIX 1" >>confdefs.h
  14737. $as_echo "#define hpux 1" >>confdefs.h
  14738. $as_echo "#define HPUX 1" >>confdefs.h
  14739. $as_echo "#define HPUX11 1" >>confdefs.h
  14740. $as_echo "#define HPUX11_23 1" >>confdefs.h
  14741. $as_echo "#define CPU_ia64 /**/" >>confdefs.h
  14742. $as_echo "#define OS_hpux 1" >>confdefs.h
  14743. $as_echo "#define _POSIX_C_SOURCE 199506L" >>confdefs.h
  14744. $as_echo "#define _HPUX_SOURCE 1" >>confdefs.h
  14745. $as_echo "#define _INCLUDE_STDC__SOURCE_199901 1" >>confdefs.h
  14746. # assume 64 bit
  14747. perlexec='/opt/perl_64/bin/perl'
  14748. platform="hpux"
  14749. initconfigdir="/$PACKAGE_NAME/config"
  14750. # HPUX doesn't use /etc for this
  14751. initdir=/init.d
  14752. ;;
  14753. hppa*-hp-hpux*)
  14754. $as_echo "#define XP_UNIX 1" >>confdefs.h
  14755. $as_echo "#define hpux 1" >>confdefs.h
  14756. $as_echo "#define HPUX 1" >>confdefs.h
  14757. $as_echo "#define HPUX11 1" >>confdefs.h
  14758. $as_echo "#define HPUX11_11 1" >>confdefs.h
  14759. $as_echo "#define CPU_hppa /**/" >>confdefs.h
  14760. $as_echo "#define OS_hpux 1" >>confdefs.h
  14761. $as_echo "#define _POSIX_C_SOURCE 199506L" >>confdefs.h
  14762. $as_echo "#define _HPUX_SOURCE 1" >>confdefs.h
  14763. $as_echo "#define _INCLUDE_STDC__SOURCE_199901 1" >>confdefs.h
  14764. $as_echo "#define ATOMIC_64BIT_OPERATIONS 1" >>confdefs.h
  14765. # assume 64 bit
  14766. initconfigdir="/$PACKAGE_NAME/config"
  14767. perlexec='/opt/perl_64/bin/perl'
  14768. platform="hpux"
  14769. # HPUX doesn't use /etc for this
  14770. initdir=/init.d
  14771. ;;
  14772. sparc-sun-solaris*)
  14773. $as_echo "#define XP_UNIX 1" >>confdefs.h
  14774. $as_echo "#define SVR4 1" >>confdefs.h
  14775. $as_echo "#define __svr4 1" >>confdefs.h
  14776. $as_echo "#define __svr4__ 1" >>confdefs.h
  14777. $as_echo "#define _SVID_GETTOD 1" >>confdefs.h
  14778. $as_echo "#define SOLARIS 1" >>confdefs.h
  14779. $as_echo "#define CPU_sparc /**/" >>confdefs.h
  14780. $as_echo "#define OS_solaris 1" >>confdefs.h
  14781. $as_echo "#define sunos5 1" >>confdefs.h
  14782. $as_echo "#define OSVERSION 509" >>confdefs.h
  14783. $as_echo "#define _REENTRANT 1" >>confdefs.h
  14784. $as_echo "#define NO_DOMAINNAME 1" >>confdefs.h
  14785. $as_echo "#define ATOMIC_64BIT_OPERATIONS 1" >>confdefs.h
  14786. LIBSOCKET=-lsocket
  14787. LIBSOCKET=$LIBSOCKET
  14788. LIBNSL=-lnsl
  14789. LIBNSL=$LIBNSL
  14790. LIBDL=-ldl
  14791. LIBDL=$LIBDL
  14792. LIBCSTD=-lCstd
  14793. LIBCSTD=$LIBCSTD
  14794. LIBCRUN=-lCrun
  14795. LIBCRUN=$LIBCRUN
  14796. platform="solaris"
  14797. # assume 64 bit
  14798. perlexec='/usr/lib/sparcv9/dirsec/perl5x/bin/perl'
  14799. initdir='$(sysconfdir)/init.d'
  14800. ;;
  14801. *)
  14802. platform=""
  14803. ;;
  14804. esac
  14805. # cmd line overrides default setting above
  14806. if test -n "$with_initddir" ; then
  14807. initdir="$with_initddir"
  14808. fi
  14809. # set default initconfigdir if not already set
  14810. # value will be set so as to be relative to $(sysconfdir)
  14811. if test -z "$initconfigdir" ; then
  14812. if test -d /etc/sysconfig ; then
  14813. initconfigdir=/sysconfig
  14814. elif test -d /etc/default ; then
  14815. initconfigdir=/default
  14816. else
  14817. initconfigdir="/$PACKAGE_NAME/config"
  14818. fi
  14819. fi
  14820. if test "$platform" = "hpux"; then
  14821. HPUX_TRUE=
  14822. HPUX_FALSE='#'
  14823. else
  14824. HPUX_TRUE='#'
  14825. HPUX_FALSE=
  14826. fi
  14827. if test "$platform" = "solaris"; then
  14828. SOLARIS_TRUE=
  14829. SOLARIS_FALSE='#'
  14830. else
  14831. SOLARIS_TRUE='#'
  14832. SOLARIS_FALSE=
  14833. fi
  14834. # Check for library dependencies
  14835. # BEGIN COPYRIGHT BLOCK
  14836. # Copyright (C) 2007 Red Hat, Inc.
  14837. # All rights reserved.
  14838. #
  14839. # This program is free software; you can redistribute it and/or
  14840. # modify it under the terms of the GNU General Public License
  14841. # as published by the Free Software Foundation; either version 2
  14842. # of the License, or (at your option) any later version.
  14843. #
  14844. # This program is distributed in the hope that it will be useful,
  14845. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  14846. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14847. # GNU General Public License for more details.
  14848. #
  14849. # You should have received a copy of the GNU General Public License
  14850. # along with this program; if not, write to the Free Software
  14851. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  14852. #
  14853. # END COPYRIGHT BLOCK
  14854. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NSPR..." >&5
  14855. $as_echo "$as_me: checking for NSPR..." >&6;}
  14856. # check for --with-nspr
  14857. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-nspr" >&5
  14858. $as_echo_n "checking for --with-nspr... " >&6; }
  14859. # Check whether --with-nspr was given.
  14860. if test "${with_nspr+set}" = set; then :
  14861. withval=$with_nspr;
  14862. if test "$withval" = "yes"
  14863. then
  14864. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14865. $as_echo "yes" >&6; }
  14866. elif test "$withval" = "no"
  14867. then
  14868. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14869. $as_echo "no" >&6; }
  14870. as_fn_error $? "NSPR is required." "$LINENO" 5
  14871. elif test -e "$withval"/include/nspr.h -a -d "$withval"/lib
  14872. then
  14873. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  14874. $as_echo "using $withval" >&6; }
  14875. NSPRDIR=$withval
  14876. nspr_inc="-I$NSPRDIR/include"
  14877. nspr_lib="-L$NSPRDIR/lib"
  14878. nspr_libdir="$NSPRDIR/lib"
  14879. else
  14880. echo
  14881. as_fn_error $? "$withval not found" "$LINENO" 5
  14882. fi
  14883. else
  14884. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14885. $as_echo "yes" >&6; }
  14886. fi
  14887. # check for --with-nspr-inc
  14888. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-nspr-inc" >&5
  14889. $as_echo_n "checking for --with-nspr-inc... " >&6; }
  14890. # Check whether --with-nspr-inc was given.
  14891. if test "${with_nspr_inc+set}" = set; then :
  14892. withval=$with_nspr_inc;
  14893. if test -e "$withval"/nspr.h
  14894. then
  14895. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  14896. $as_echo "using $withval" >&6; }
  14897. nspr_inc="-I$withval"
  14898. else
  14899. echo
  14900. as_fn_error $? "$withval not found" "$LINENO" 5
  14901. fi
  14902. else
  14903. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14904. $as_echo "no" >&6; }
  14905. fi
  14906. # check for --with-nspr-lib
  14907. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-nspr-lib" >&5
  14908. $as_echo_n "checking for --with-nspr-lib... " >&6; }
  14909. # Check whether --with-nspr-lib was given.
  14910. if test "${with_nspr_lib+set}" = set; then :
  14911. withval=$with_nspr_lib;
  14912. if test -d "$withval"
  14913. then
  14914. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  14915. $as_echo "using $withval" >&6; }
  14916. nspr_lib="-L$withval"
  14917. nspr_libdir="$withval"
  14918. else
  14919. echo
  14920. as_fn_error $? "$withval not found" "$LINENO" 5
  14921. fi
  14922. else
  14923. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14924. $as_echo "no" >&6; }
  14925. fi
  14926. # if NSPR is not found yet, try pkg-config
  14927. # last resort
  14928. if test -z "$nspr_inc" -o -z "$nspr_lib" -o -z "$nspr_libdir"; then
  14929. # Extract the first word of "pkg-config", so it can be a program name with args.
  14930. set dummy pkg-config; ac_word=$2
  14931. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14932. $as_echo_n "checking for $ac_word... " >&6; }
  14933. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
  14934. $as_echo_n "(cached) " >&6
  14935. else
  14936. case $PKG_CONFIG in
  14937. [\\/]* | ?:[\\/]*)
  14938. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  14939. ;;
  14940. *)
  14941. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14942. for as_dir in $PATH
  14943. do
  14944. IFS=$as_save_IFS
  14945. test -z "$as_dir" && as_dir=.
  14946. for ac_exec_ext in '' $ac_executable_extensions; do
  14947. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  14948. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  14949. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14950. break 2
  14951. fi
  14952. done
  14953. done
  14954. IFS=$as_save_IFS
  14955. ;;
  14956. esac
  14957. fi
  14958. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  14959. if test -n "$PKG_CONFIG"; then
  14960. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  14961. $as_echo "$PKG_CONFIG" >&6; }
  14962. else
  14963. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14964. $as_echo "no" >&6; }
  14965. fi
  14966. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nspr with pkg-config" >&5
  14967. $as_echo_n "checking for nspr with pkg-config... " >&6; }
  14968. if test -n "$PKG_CONFIG"; then
  14969. if $PKG_CONFIG --exists nspr; then
  14970. nspr_inc=`$PKG_CONFIG --cflags-only-I nspr`
  14971. nspr_lib=`$PKG_CONFIG --libs-only-L nspr`
  14972. nspr_libdir=`$PKG_CONFIG --libs-only-L nspr | sed -e s/-L// | sed -e s/\ .*$//`
  14973. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using system NSPR" >&5
  14974. $as_echo "using system NSPR" >&6; }
  14975. elif $PKG_CONFIG --exists dirsec-nspr; then
  14976. nspr_inc=`$PKG_CONFIG --cflags-only-I dirsec-nspr`
  14977. nspr_lib=`$PKG_CONFIG --libs-only-L dirsec-nspr`
  14978. nspr_libdir=`$PKG_CONFIG --libs-only-L dirsec-nspr | sed -e s/-L// | sed -e s/\ .*$//`
  14979. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using system dirsec NSPR" >&5
  14980. $as_echo "using system dirsec NSPR" >&6; }
  14981. else
  14982. as_fn_error $? "NSPR not found, specify with --with-nspr." "$LINENO" 5
  14983. fi
  14984. fi
  14985. fi
  14986. # BEGIN COPYRIGHT BLOCK
  14987. # Copyright (C) 2007 Red Hat, Inc.
  14988. # All rights reserved.
  14989. #
  14990. # This program is free software; you can redistribute it and/or
  14991. # modify it under the terms of the GNU General Public License
  14992. # as published by the Free Software Foundation; either version 2
  14993. # of the License, or (at your option) any later version.
  14994. #
  14995. # This program is distributed in the hope that it will be useful,
  14996. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  14997. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14998. # GNU General Public License for more details.
  14999. #
  15000. # You should have received a copy of the GNU General Public License
  15001. # along with this program; if not, write to the Free Software
  15002. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  15003. #
  15004. # END COPYRIGHT BLOCK
  15005. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NSS..." >&5
  15006. $as_echo "$as_me: checking for NSS..." >&6;}
  15007. # check for --with-nss
  15008. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-nss" >&5
  15009. $as_echo_n "checking for --with-nss... " >&6; }
  15010. # Check whether --with-nss was given.
  15011. if test "${with_nss+set}" = set; then :
  15012. withval=$with_nss;
  15013. if test "$withval" = "yes"
  15014. then
  15015. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15016. $as_echo "yes" >&6; }
  15017. elif test "$withval" = "no"
  15018. then
  15019. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15020. $as_echo "no" >&6; }
  15021. as_fn_error $? "NSS is required." "$LINENO" 5
  15022. elif test -e "$withval"/include/nss.h -a -d "$withval"/lib
  15023. then
  15024. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  15025. $as_echo "using $withval" >&6; }
  15026. NSSDIR=$withval
  15027. nss_inc="-I$NSSDIR/include"
  15028. nss_lib="-L$NSSDIR/lib"
  15029. nss_libdir="$NSSDIR/lib"
  15030. else
  15031. echo
  15032. as_fn_error $? "$withval not found" "$LINENO" 5
  15033. fi
  15034. else
  15035. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15036. $as_echo "yes" >&6; }
  15037. fi
  15038. # check for --with-nss-inc
  15039. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-nss-inc" >&5
  15040. $as_echo_n "checking for --with-nss-inc... " >&6; }
  15041. # Check whether --with-nss-inc was given.
  15042. if test "${with_nss_inc+set}" = set; then :
  15043. withval=$with_nss_inc;
  15044. if test -e "$withval"/nss.h
  15045. then
  15046. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  15047. $as_echo "using $withval" >&6; }
  15048. nss_inc="-I$withval"
  15049. else
  15050. echo
  15051. as_fn_error $? "$withval not found" "$LINENO" 5
  15052. fi
  15053. else
  15054. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15055. $as_echo "no" >&6; }
  15056. fi
  15057. # check for --with-nss-lib
  15058. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-nss-lib" >&5
  15059. $as_echo_n "checking for --with-nss-lib... " >&6; }
  15060. # Check whether --with-nss-lib was given.
  15061. if test "${with_nss_lib+set}" = set; then :
  15062. withval=$with_nss_lib;
  15063. if test -d "$withval"
  15064. then
  15065. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  15066. $as_echo "using $withval" >&6; }
  15067. nss_lib="-L$withval"
  15068. nss_libdir="$withval"
  15069. else
  15070. echo
  15071. as_fn_error $? "$withval not found" "$LINENO" 5
  15072. fi
  15073. else
  15074. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15075. $as_echo "no" >&6; }
  15076. fi
  15077. # if NSS is not found yet, try pkg-config
  15078. # last resort
  15079. if test -z "$nss_inc" -o -z "$nss_lib" -o -z "$nss_libdir"; then
  15080. # Extract the first word of "pkg-config", so it can be a program name with args.
  15081. set dummy pkg-config; ac_word=$2
  15082. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15083. $as_echo_n "checking for $ac_word... " >&6; }
  15084. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
  15085. $as_echo_n "(cached) " >&6
  15086. else
  15087. case $PKG_CONFIG in
  15088. [\\/]* | ?:[\\/]*)
  15089. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  15090. ;;
  15091. *)
  15092. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15093. for as_dir in $PATH
  15094. do
  15095. IFS=$as_save_IFS
  15096. test -z "$as_dir" && as_dir=.
  15097. for ac_exec_ext in '' $ac_executable_extensions; do
  15098. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  15099. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  15100. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15101. break 2
  15102. fi
  15103. done
  15104. done
  15105. IFS=$as_save_IFS
  15106. ;;
  15107. esac
  15108. fi
  15109. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  15110. if test -n "$PKG_CONFIG"; then
  15111. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  15112. $as_echo "$PKG_CONFIG" >&6; }
  15113. else
  15114. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15115. $as_echo "no" >&6; }
  15116. fi
  15117. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nss with pkg-config" >&5
  15118. $as_echo_n "checking for nss with pkg-config... " >&6; }
  15119. if test -n "$PKG_CONFIG"; then
  15120. if $PKG_CONFIG --exists nss; then
  15121. nss_inc=`$PKG_CONFIG --cflags-only-I nss`
  15122. nss_lib=`$PKG_CONFIG --libs-only-L nss`
  15123. nss_libdir=`$PKG_CONFIG --libs-only-L nss | sed -e s/-L// | sed -e s/\ .*$//`
  15124. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using system NSS" >&5
  15125. $as_echo "using system NSS" >&6; }
  15126. elif $PKG_CONFIG --exists dirsec-nss; then
  15127. nss_inc=`$PKG_CONFIG --cflags-only-I dirsec-nss`
  15128. nss_lib=`$PKG_CONFIG --libs-only-L dirsec-nss`
  15129. nss_libdir=`$PKG_CONFIG --libs-only-L dirsec-nss | sed -e s/-L// | sed -e s/\ .*$//`
  15130. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using system dirsec NSS" >&5
  15131. $as_echo "using system dirsec NSS" >&6; }
  15132. else
  15133. as_fn_error $? "NSS not found, specify with --with-nss." "$LINENO" 5
  15134. fi
  15135. fi
  15136. fi
  15137. # BEGIN COPYRIGHT BLOCK
  15138. # Copyright (C) 2009 Red Hat, Inc.
  15139. # All rights reserved.
  15140. #
  15141. # This program is free software; you can redistribute it and/or
  15142. # modify it under the terms of the GNU General Public License
  15143. # as published by the Free Software Foundation; either version 2
  15144. # of the License, or (at your option) any later version.
  15145. #
  15146. # This program is distributed in the hope that it will be useful,
  15147. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  15148. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15149. # GNU General Public License for more details.
  15150. #
  15151. # You should have received a copy of the GNU General Public License
  15152. # along with this program; if not, write to the Free Software
  15153. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  15154. #
  15155. # END COPYRIGHT BLOCK
  15156. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenLDAP..." >&5
  15157. $as_echo "$as_me: checking for OpenLDAP..." >&6;}
  15158. # check for --with-openldap
  15159. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-openldap" >&5
  15160. $as_echo_n "checking for --with-openldap... " >&6; }
  15161. # Check whether --with-openldap was given.
  15162. if test "${with_openldap+set}" = set; then :
  15163. withval=$with_openldap;
  15164. if test "$withval" = yes
  15165. then
  15166. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using system OpenLDAP" >&5
  15167. $as_echo "using system OpenLDAP" >&6; }
  15168. elif test "$withval" = no
  15169. then
  15170. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15171. $as_echo "no" >&6; }
  15172. elif test -e "$withval"/include/ldap.h -a -d "$withval"/lib
  15173. then
  15174. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  15175. $as_echo "using $withval" >&6; }
  15176. OPENLDAPDIR=$withval
  15177. openldap_incdir="$OPENLDAPDIR/include"
  15178. openldap_inc="-I$openldap_incdir"
  15179. openldap_lib="-L$OPENLDAPDIR/lib"
  15180. openldap_libdir="$OPENLDAPDIR/lib"
  15181. openldap_bindir="$OPENLDAPDIR/bin"
  15182. with_openldap=yes
  15183. else
  15184. echo
  15185. as_fn_error $? "$withval not found" "$LINENO" 5
  15186. fi
  15187. else
  15188. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15189. $as_echo "no" >&6; }
  15190. fi
  15191. # check for --with-openldap-inc
  15192. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-openldap-inc" >&5
  15193. $as_echo_n "checking for --with-openldap-inc... " >&6; }
  15194. # Check whether --with-openldap-inc was given.
  15195. if test "${with_openldap_inc+set}" = set; then :
  15196. withval=$with_openldap_inc;
  15197. if test -e "$withval"/ldap.h
  15198. then
  15199. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  15200. $as_echo "using $withval" >&6; }
  15201. openldap_incdir="$withval"
  15202. openldap_inc="-I$withval"
  15203. with_openldap=yes
  15204. else
  15205. echo
  15206. as_fn_error $? "$withval not found" "$LINENO" 5
  15207. fi
  15208. else
  15209. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15210. $as_echo "no" >&6; }
  15211. fi
  15212. # check for --with-openldap-lib
  15213. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-openldap-lib" >&5
  15214. $as_echo_n "checking for --with-openldap-lib... " >&6; }
  15215. # Check whether --with-openldap-lib was given.
  15216. if test "${with_openldap_lib+set}" = set; then :
  15217. withval=$with_openldap_lib;
  15218. if test -d "$withval"
  15219. then
  15220. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  15221. $as_echo "using $withval" >&6; }
  15222. openldap_lib="-L$withval"
  15223. openldap_libdir="$withval"
  15224. with_openldap=yes
  15225. else
  15226. echo
  15227. as_fn_error $? "$withval not found" "$LINENO" 5
  15228. fi
  15229. else
  15230. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15231. $as_echo "no" >&6; }
  15232. fi
  15233. # check for --with-openldap-bin
  15234. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-openldap-bin" >&5
  15235. $as_echo_n "checking for --with-openldap-bin... " >&6; }
  15236. # Check whether --with-openldap-bin was given.
  15237. if test "${with_openldap_bin+set}" = set; then :
  15238. withval=$with_openldap_bin;
  15239. if test -d "$withval"
  15240. then
  15241. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  15242. $as_echo "using $withval" >&6; }
  15243. openldap_bindir="$withval"
  15244. with_openldap=yes
  15245. else
  15246. echo
  15247. as_fn_error $? "$withval not found" "$LINENO" 5
  15248. fi
  15249. else
  15250. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15251. $as_echo "no" >&6; }
  15252. fi
  15253. # if OPENLDAP is not found yet, try pkg-config
  15254. if test "$with_openldap" = yes ; then # user wants to use openldap, but didn't specify paths
  15255. if test -z "$openldap_inc" -o -z "$openldap_lib" -o -z "$openldap_libdir" -o -z "$openldap_bindir"; then
  15256. # Extract the first word of "pkg-config", so it can be a program name with args.
  15257. set dummy pkg-config; ac_word=$2
  15258. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15259. $as_echo_n "checking for $ac_word... " >&6; }
  15260. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
  15261. $as_echo_n "(cached) " >&6
  15262. else
  15263. case $PKG_CONFIG in
  15264. [\\/]* | ?:[\\/]*)
  15265. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  15266. ;;
  15267. *)
  15268. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15269. for as_dir in $PATH
  15270. do
  15271. IFS=$as_save_IFS
  15272. test -z "$as_dir" && as_dir=.
  15273. for ac_exec_ext in '' $ac_executable_extensions; do
  15274. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  15275. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  15276. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15277. break 2
  15278. fi
  15279. done
  15280. done
  15281. IFS=$as_save_IFS
  15282. ;;
  15283. esac
  15284. fi
  15285. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  15286. if test -n "$PKG_CONFIG"; then
  15287. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  15288. $as_echo "$PKG_CONFIG" >&6; }
  15289. else
  15290. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15291. $as_echo "no" >&6; }
  15292. fi
  15293. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenLDAP with pkg-config" >&5
  15294. $as_echo_n "checking for OpenLDAP with pkg-config... " >&6; }
  15295. if test -n "$PKG_CONFIG" && $PKG_CONFIG --exists openldap; then
  15296. openldap_inc=`$PKG_CONFIG --cflags-only-I openldap`
  15297. openldap_lib=`$PKG_CONFIG --libs-only-L openldap`
  15298. openldap_libdir=`$PKG_CONFIG --libs-only-L openldap | sed -e s/-L// | sed -e s/\ .*$//`
  15299. openldap_bindir=`$PKG_CONFIG --variable=bindir openldap`
  15300. openldap_incdir=`$PKG_CONFIG --variable=includedir openldap`
  15301. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using system OpenLDAP from pkg-config" >&5
  15302. $as_echo "using system OpenLDAP from pkg-config" >&6; }
  15303. else
  15304. openldap_incdir="/usr/include"
  15305. openldap_inc="-I$openldap_incdir"
  15306. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no OpenLDAP pkg-config files" >&5
  15307. $as_echo "no OpenLDAP pkg-config files" >&6; }
  15308. fi
  15309. fi
  15310. fi
  15311. if test "$with_openldap" = yes ; then
  15312. save_cppflags="$CPPFLAGS"
  15313. CPPFLAGS="$openldap_inc $nss_inc $nspr_inc"
  15314. ac_fn_c_check_header_mongrel "$LINENO" "ldap_features.h" "ac_cv_header_ldap_features_h" "$ac_includes_default"
  15315. if test "x$ac_cv_header_ldap_features_h" = x""yes; then :
  15316. else
  15317. as_fn_error $? "specified with-openldap but ldap_features.h not found" "$LINENO" 5
  15318. fi
  15319. ol_ver_maj=`grep LDAP_VENDOR_VERSION_MAJOR $openldap_incdir/ldap_features.h | awk '{print $3}'`
  15320. ol_ver_min=`grep LDAP_VENDOR_VERSION_MINOR $openldap_incdir/ldap_features.h | awk '{print $3}'`
  15321. ol_ver_pat=`grep LDAP_VENDOR_VERSION_PATCH $openldap_incdir/ldap_features.h | awk '{print $3}'`
  15322. ol_libver="-${ol_ver_maj}.${ol_ver_min}"
  15323. save_ldflags="$LDFLAGS"
  15324. LDFLAGS="$openldap_lib $LDFLAGS"
  15325. as_ac_Lib=`$as_echo "ac_cv_lib_ldap$ol_libver''_ldap_initialize" | $as_tr_sh`
  15326. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_initialize in -lldap$ol_libver" >&5
  15327. $as_echo_n "checking for ldap_initialize in -lldap$ol_libver... " >&6; }
  15328. if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
  15329. $as_echo_n "(cached) " >&6
  15330. else
  15331. ac_check_lib_save_LIBS=$LIBS
  15332. LIBS="-lldap$ol_libver $LIBS"
  15333. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15334. /* end confdefs.h. */
  15335. /* Override any GCC internal prototype to avoid an error.
  15336. Use char because int might match the return type of a GCC
  15337. builtin and then its argument prototype would still apply. */
  15338. #ifdef __cplusplus
  15339. extern "C"
  15340. #endif
  15341. char ldap_initialize ();
  15342. int
  15343. main ()
  15344. {
  15345. return ldap_initialize ();
  15346. ;
  15347. return 0;
  15348. }
  15349. _ACEOF
  15350. if ac_fn_c_try_link "$LINENO"; then :
  15351. eval "$as_ac_Lib=yes"
  15352. else
  15353. eval "$as_ac_Lib=no"
  15354. fi
  15355. rm -f core conftest.err conftest.$ac_objext \
  15356. conftest$ac_exeext conftest.$ac_ext
  15357. LIBS=$ac_check_lib_save_LIBS
  15358. fi
  15359. eval ac_res=\$$as_ac_Lib
  15360. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  15361. $as_echo "$ac_res" >&6; }
  15362. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  15363. have_ldap_lib=1
  15364. fi
  15365. if test -z "$have_ldap_lib" ; then
  15366. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_initialize in -lldap" >&5
  15367. $as_echo_n "checking for ldap_initialize in -lldap... " >&6; }
  15368. if test "${ac_cv_lib_ldap_ldap_initialize+set}" = set; then :
  15369. $as_echo_n "(cached) " >&6
  15370. else
  15371. ac_check_lib_save_LIBS=$LIBS
  15372. LIBS="-lldap $LIBS"
  15373. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15374. /* end confdefs.h. */
  15375. /* Override any GCC internal prototype to avoid an error.
  15376. Use char because int might match the return type of a GCC
  15377. builtin and then its argument prototype would still apply. */
  15378. #ifdef __cplusplus
  15379. extern "C"
  15380. #endif
  15381. char ldap_initialize ();
  15382. int
  15383. main ()
  15384. {
  15385. return ldap_initialize ();
  15386. ;
  15387. return 0;
  15388. }
  15389. _ACEOF
  15390. if ac_fn_c_try_link "$LINENO"; then :
  15391. ac_cv_lib_ldap_ldap_initialize=yes
  15392. else
  15393. ac_cv_lib_ldap_ldap_initialize=no
  15394. fi
  15395. rm -f core conftest.err conftest.$ac_objext \
  15396. conftest$ac_exeext conftest.$ac_ext
  15397. LIBS=$ac_check_lib_save_LIBS
  15398. fi
  15399. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_ldap_initialize" >&5
  15400. $as_echo "$ac_cv_lib_ldap_ldap_initialize" >&6; }
  15401. if test "x$ac_cv_lib_ldap_ldap_initialize" = x""yes; then :
  15402. unset ol_libver
  15403. else
  15404. as_fn_error $? "specified with-openldap but libldap not found" "$LINENO" 5
  15405. fi
  15406. fi
  15407. as_ac_Lib=`$as_echo "ac_cv_lib_ldap$ol_libver''_ldap_url_parse_ext" | $as_tr_sh`
  15408. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_url_parse_ext in -lldap$ol_libver" >&5
  15409. $as_echo_n "checking for ldap_url_parse_ext in -lldap$ol_libver... " >&6; }
  15410. if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
  15411. $as_echo_n "(cached) " >&6
  15412. else
  15413. ac_check_lib_save_LIBS=$LIBS
  15414. LIBS="-lldap$ol_libver $LIBS"
  15415. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15416. /* end confdefs.h. */
  15417. /* Override any GCC internal prototype to avoid an error.
  15418. Use char because int might match the return type of a GCC
  15419. builtin and then its argument prototype would still apply. */
  15420. #ifdef __cplusplus
  15421. extern "C"
  15422. #endif
  15423. char ldap_url_parse_ext ();
  15424. int
  15425. main ()
  15426. {
  15427. return ldap_url_parse_ext ();
  15428. ;
  15429. return 0;
  15430. }
  15431. _ACEOF
  15432. if ac_fn_c_try_link "$LINENO"; then :
  15433. eval "$as_ac_Lib=yes"
  15434. else
  15435. eval "$as_ac_Lib=no"
  15436. fi
  15437. rm -f core conftest.err conftest.$ac_objext \
  15438. conftest$ac_exeext conftest.$ac_ext
  15439. LIBS=$ac_check_lib_save_LIBS
  15440. fi
  15441. eval ac_res=\$$as_ac_Lib
  15442. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  15443. $as_echo "$ac_res" >&6; }
  15444. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  15445. $as_echo "#define HAVE_LDAP_URL_PARSE_EXT 1" >>confdefs.h
  15446. fi
  15447. LDFLAGS="$save_ldflags"
  15448. CPPFLAGS="$save_cppflags"
  15449. $as_echo "#define USE_OPENLDAP 1" >>confdefs.h
  15450. # where to find ldapsearch, et. al.
  15451. ldaptool_bindir=$openldap_bindir
  15452. # default options to pass to the tools
  15453. # use -x because all of our scripts use simple bind
  15454. ldaptool_opts=-x
  15455. # get plain output from ldapsearch - no version, no comments
  15456. plainldif_opts=-LLL
  15457. fi
  15458. # BEGIN COPYRIGHT BLOCK
  15459. # Copyright (C) 2007 Red Hat, Inc.
  15460. # All rights reserved.
  15461. #
  15462. # This program is free software; you can redistribute it and/or
  15463. # modify it under the terms of the GNU General Public License
  15464. # as published by the Free Software Foundation; either version 2
  15465. # of the License, or (at your option) any later version.
  15466. #
  15467. # This program is distributed in the hope that it will be useful,
  15468. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  15469. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15470. # GNU General Public License for more details.
  15471. #
  15472. # You should have received a copy of the GNU General Public License
  15473. # along with this program; if not, write to the Free Software
  15474. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  15475. #
  15476. # END COPYRIGHT BLOCK
  15477. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mozilla LDAPSDK..." >&5
  15478. $as_echo "$as_me: checking for Mozilla LDAPSDK..." >&6;}
  15479. # check for --with-ldapsdk
  15480. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-ldapsdk" >&5
  15481. $as_echo_n "checking for --with-ldapsdk... " >&6; }
  15482. # Check whether --with-ldapsdk was given.
  15483. if test "${with_ldapsdk+set}" = set; then :
  15484. withval=$with_ldapsdk;
  15485. if test "$withval" = yes
  15486. then
  15487. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15488. $as_echo "yes" >&6; }
  15489. elif test "$withval" = no
  15490. then
  15491. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15492. $as_echo "no" >&6; }
  15493. elif test -e "$withval"/include/ldap.h -a -d "$withval"/lib
  15494. then
  15495. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  15496. $as_echo "using $withval" >&6; }
  15497. LDAPSDKDIR=$withval
  15498. ldapsdk_inc="-I$LDAPSDKDIR/include"
  15499. ldapsdk_lib="-L$LDAPSDKDIR/lib"
  15500. ldapsdk_libdir="$LDAPSDKDIR/lib"
  15501. ldapsdk_bindir="$LDAPSDKDIR/bin"
  15502. with_ldapsdk=yes
  15503. else
  15504. echo
  15505. as_fn_error $? "$withval not found" "$LINENO" 5
  15506. fi
  15507. if test "$with_ldapsdk" = yes -a "$with_openldap" = yes
  15508. then
  15509. as_fn_error $? "Cannot use both LDAPSDK and OpenLDAP." "$LINENO" 5
  15510. fi
  15511. if test "$with_ldapsdk" != yes -a "$with_openldap" != yes
  15512. then
  15513. as_fn_error $? "Either LDAPSDK or OpenLDAP must be used." "$LINENO" 5
  15514. fi
  15515. else
  15516. if test "$with_openldap" = yes
  15517. then
  15518. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15519. $as_echo "no" >&6; }
  15520. else
  15521. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15522. $as_echo "yes" >&6; }
  15523. with_ldapsdk=yes
  15524. fi
  15525. fi
  15526. # check for --with-ldapsdk-inc
  15527. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-ldapsdk-inc" >&5
  15528. $as_echo_n "checking for --with-ldapsdk-inc... " >&6; }
  15529. # Check whether --with-ldapsdk-inc was given.
  15530. if test "${with_ldapsdk_inc+set}" = set; then :
  15531. withval=$with_ldapsdk_inc;
  15532. if test -e "$withval"/ldap.h
  15533. then
  15534. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  15535. $as_echo "using $withval" >&6; }
  15536. ldapsdk_inc="-I$withval"
  15537. with_ldapsdk=yes
  15538. else
  15539. echo
  15540. as_fn_error $? "$withval not found" "$LINENO" 5
  15541. fi
  15542. else
  15543. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15544. $as_echo "no" >&6; }
  15545. fi
  15546. # check for --with-ldapsdk-lib
  15547. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-ldapsdk-lib" >&5
  15548. $as_echo_n "checking for --with-ldapsdk-lib... " >&6; }
  15549. # Check whether --with-ldapsdk-lib was given.
  15550. if test "${with_ldapsdk_lib+set}" = set; then :
  15551. withval=$with_ldapsdk_lib;
  15552. if test -d "$withval"
  15553. then
  15554. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  15555. $as_echo "using $withval" >&6; }
  15556. ldapsdk_lib="-L$withval"
  15557. ldapsdk_libdir="$withval"
  15558. with_ldapsdk=yes
  15559. else
  15560. echo
  15561. as_fn_error $? "$withval not found" "$LINENO" 5
  15562. fi
  15563. else
  15564. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15565. $as_echo "no" >&6; }
  15566. fi
  15567. # check for --with-ldapsdk-bin
  15568. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-ldapsdk-bin" >&5
  15569. $as_echo_n "checking for --with-ldapsdk-bin... " >&6; }
  15570. # Check whether --with-ldapsdk-bin was given.
  15571. if test "${with_ldapsdk_bin+set}" = set; then :
  15572. withval=$with_ldapsdk_bin;
  15573. if test -d "$withval"
  15574. then
  15575. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  15576. $as_echo "using $withval" >&6; }
  15577. ldapsdk_bindir="$withval"
  15578. with_ldapsdk=yes
  15579. else
  15580. echo
  15581. as_fn_error $? "$withval not found" "$LINENO" 5
  15582. fi
  15583. else
  15584. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15585. $as_echo "no" >&6; }
  15586. fi
  15587. # if LDAPSDK is not found yet, try pkg-config
  15588. # last resort
  15589. if test "$with_ldapsdk" = yes ; then
  15590. if test -z "$ldapsdk_inc" -o -z "$ldapsdk_lib" -o -z "$ldapsdk_libdir" -o -z "$ldapsdk_bindir"; then
  15591. # Extract the first word of "pkg-config", so it can be a program name with args.
  15592. set dummy pkg-config; ac_word=$2
  15593. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15594. $as_echo_n "checking for $ac_word... " >&6; }
  15595. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
  15596. $as_echo_n "(cached) " >&6
  15597. else
  15598. case $PKG_CONFIG in
  15599. [\\/]* | ?:[\\/]*)
  15600. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  15601. ;;
  15602. *)
  15603. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15604. for as_dir in $PATH
  15605. do
  15606. IFS=$as_save_IFS
  15607. test -z "$as_dir" && as_dir=.
  15608. for ac_exec_ext in '' $ac_executable_extensions; do
  15609. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  15610. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  15611. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15612. break 2
  15613. fi
  15614. done
  15615. done
  15616. IFS=$as_save_IFS
  15617. ;;
  15618. esac
  15619. fi
  15620. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  15621. if test -n "$PKG_CONFIG"; then
  15622. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  15623. $as_echo "$PKG_CONFIG" >&6; }
  15624. else
  15625. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15626. $as_echo "no" >&6; }
  15627. fi
  15628. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mozldap with pkg-config" >&5
  15629. $as_echo_n "checking for mozldap with pkg-config... " >&6; }
  15630. if test -n "$PKG_CONFIG"; then
  15631. if $PKG_CONFIG --exists mozldap6; then
  15632. mozldappkg=mozldap6
  15633. elif $PKG_CONFIG --exists mozldap; then
  15634. mozldappkg=mozldap
  15635. else
  15636. as_fn_error $? "LDAPSDK not found, specify with --with-ldapsdk-inc|-lib|-bin." "$LINENO" 5
  15637. fi
  15638. ldapsdk_inc=`$PKG_CONFIG --cflags-only-I $mozldappkg`
  15639. ldapsdk_lib=`$PKG_CONFIG --libs-only-L $mozldappkg`
  15640. ldapsdk_libdir=`$PKG_CONFIG --libs-only-L $mozldappkg | sed -e s/-L// | sed -e s/\ .*$//`
  15641. ldapsdk_bindir=`$PKG_CONFIG --variable=bindir $mozldappkg`
  15642. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using system $mozldappkg" >&5
  15643. $as_echo "using system $mozldappkg" >&6; }
  15644. fi
  15645. fi
  15646. fi
  15647. if test "$with_ldapsdk" = yes ; then
  15648. if test -z "$ldapsdk_inc" -o -z "$ldapsdk_lib"; then
  15649. as_fn_error $? "LDAPSDK not found, specify with --with-ldapsdk-inc|-lib|-bin." "$LINENO" 5
  15650. fi
  15651. if test -z "$ldapsdk_bindir" ; then
  15652. if -d $libdir/mozldap6 ; then
  15653. ldapsdk_bindir=$libdir/mozldap6
  15654. else
  15655. ldapsdk_bindir=$libdir/mozldap
  15656. fi
  15657. fi
  15658. save_cppflags="$CPPFLAGS"
  15659. CPPFLAGS="$ldapsdk_inc $nss_inc $nspr_inc"
  15660. ac_fn_c_check_header_compile "$LINENO" "ldap.h" "ac_cv_header_ldap_h" "#include <ldap-standard.h>
  15661. #if LDAP_VENDOR_VERSION < 600
  15662. #error The LDAP C SDK version is not supported
  15663. #endif
  15664. "
  15665. if test "x$ac_cv_header_ldap_h" = x""yes; then :
  15666. isversion6=1
  15667. else
  15668. isversion6=
  15669. fi
  15670. CPPFLAGS="$save_cppflags"
  15671. if test -z "$isversion6" ; then
  15672. as_fn_error $? "The LDAPSDK version in $ldapsdk_inc/ldap-standard.h is not supported" "$LINENO" 5
  15673. fi
  15674. $as_echo "#define USE_MOZLDAP 1" >>confdefs.h
  15675. $as_echo "#define HAVE_LDAP_URL_PARSE_NO_DEFAULTS 1" >>confdefs.h
  15676. # where to find ldapsearch, et. al.
  15677. ldaptool_bindir=$ldapsdk_bindir
  15678. # default options to pass to the tools
  15679. ldaptool_opts=
  15680. # get plain output from ldapsearch - no version
  15681. plainldif_opts=-1
  15682. fi
  15683. # BEGIN COPYRIGHT BLOCK
  15684. # Copyright (C) 2007 Red Hat, Inc.
  15685. # All rights reserved.
  15686. #
  15687. # This program is free software; you can redistribute it and/or
  15688. # modify it under the terms of the GNU General Public License
  15689. # as published by the Free Software Foundation; either version 2
  15690. # of the License, or (at your option) any later version.
  15691. #
  15692. # This program is distributed in the hope that it will be useful,
  15693. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  15694. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15695. # GNU General Public License for more details.
  15696. #
  15697. # You should have received a copy of the GNU General Public License
  15698. # along with this program; if not, write to the Free Software
  15699. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  15700. #
  15701. # END COPYRIGHT BLOCK
  15702. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for db..." >&5
  15703. $as_echo "$as_me: checking for db..." >&6;}
  15704. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-db" >&5
  15705. $as_echo_n "checking for --with-db... " >&6; }
  15706. # Check whether --with-db was given.
  15707. if test "${with_db+set}" = set; then :
  15708. withval=$with_db;
  15709. if test "$withval" = "yes"; then
  15710. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15711. $as_echo "yes" >&6; }
  15712. elif test "$withval" = "no"; then
  15713. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15714. $as_echo "no" >&6; }
  15715. as_fn_error $? "db is required." "$LINENO" 5
  15716. elif test -d "$withval"/include -a -d "$withval"/lib; then
  15717. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  15718. $as_echo "using $withval" >&6; }
  15719. DBDIR=$withval
  15720. db_lib="-L$DBDIR/lib"
  15721. db_libdir="$DBDIR/lib"
  15722. db_incdir="$DBDIR/include"
  15723. if ! test -e "$db_incdir/db.h" ; then
  15724. as_fn_error $? "$withval include dir not found" "$LINENO" 5
  15725. fi
  15726. db_inc="-I$db_incdir"
  15727. else
  15728. echo
  15729. as_fn_error $? "$withval not found" "$LINENO" 5
  15730. fi
  15731. else
  15732. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15733. $as_echo "yes" >&6; }
  15734. fi
  15735. # check for --with-db-inc
  15736. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-db-inc" >&5
  15737. $as_echo_n "checking for --with-db-inc... " >&6; }
  15738. # Check whether --with-db-inc was given.
  15739. if test "${with_db_inc+set}" = set; then :
  15740. withval=$with_db_inc;
  15741. if test -e "$withval"/db.h
  15742. then
  15743. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  15744. $as_echo "using $withval" >&6; }
  15745. db_incdir="$withval"
  15746. db_inc="-I$withval"
  15747. else
  15748. echo
  15749. as_fn_error $? "$withval not found" "$LINENO" 5
  15750. fi
  15751. else
  15752. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15753. $as_echo "no" >&6; }
  15754. fi
  15755. # check for --with-db-lib
  15756. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-db-lib" >&5
  15757. $as_echo_n "checking for --with-db-lib... " >&6; }
  15758. # Check whether --with-db-lib was given.
  15759. if test "${with_db_lib+set}" = set; then :
  15760. withval=$with_db_lib;
  15761. if test -d "$withval"
  15762. then
  15763. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  15764. $as_echo "using $withval" >&6; }
  15765. db_lib="-L$withval"
  15766. db_libdir="$withval"
  15767. else
  15768. echo
  15769. as_fn_error $? "$withval not found" "$LINENO" 5
  15770. fi
  15771. else
  15772. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15773. $as_echo "no" >&6; }
  15774. fi
  15775. if test -z "$db_inc"; then
  15776. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for db.h" >&5
  15777. $as_echo_n "checking for db.h... " >&6; }
  15778. if test -f "/usr/include/db4/db.h"; then
  15779. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using /usr/include/db4/db.h" >&5
  15780. $as_echo "using /usr/include/db4/db.h" >&6; }
  15781. db_incdir="/usr/include/db4"
  15782. db_inc="-I/usr/include/db4"
  15783. db_lib='-L$(libdir)'
  15784. db_libdir='$(libdir)'
  15785. elif test -f "/usr/include/db.h"; then
  15786. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using /usr/include/db.h" >&5
  15787. $as_echo "using /usr/include/db.h" >&6; }
  15788. db_incdir="/usr/include"
  15789. db_inc="-I/usr/include"
  15790. db_lib='-L$(libdir)'
  15791. db_libdir='$(libdir)'
  15792. else
  15793. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15794. $as_echo "no" >&6; }
  15795. as_fn_error $? "db not found, specify with --with-db." "$LINENO" 5
  15796. fi
  15797. fi
  15798. db_ver_maj=`grep DB_VERSION_MAJOR $db_incdir/db.h | awk '{print $3}'`
  15799. db_ver_min=`grep DB_VERSION_MINOR $db_incdir/db.h | awk '{print $3}'`
  15800. db_ver_pat=`grep DB_VERSION_PATCH $db_incdir/db.h | awk '{print $3}'`
  15801. db_libver=${db_ver_maj}.${db_ver_min}
  15802. save_ldflags="$LDFLAGS"
  15803. LDFLAGS="$db_lib $LDFLAGS"
  15804. as_ac_Lib=`$as_echo "ac_cv_lib_db-$db_libver''_db_create" | $as_tr_sh`
  15805. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for db_create in -ldb-$db_libver" >&5
  15806. $as_echo_n "checking for db_create in -ldb-$db_libver... " >&6; }
  15807. if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
  15808. $as_echo_n "(cached) " >&6
  15809. else
  15810. ac_check_lib_save_LIBS=$LIBS
  15811. LIBS="-ldb-$db_libver $LIBNSL $LIBS"
  15812. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15813. /* end confdefs.h. */
  15814. /* Override any GCC internal prototype to avoid an error.
  15815. Use char because int might match the return type of a GCC
  15816. builtin and then its argument prototype would still apply. */
  15817. #ifdef __cplusplus
  15818. extern "C"
  15819. #endif
  15820. char db_create ();
  15821. int
  15822. main ()
  15823. {
  15824. return db_create ();
  15825. ;
  15826. return 0;
  15827. }
  15828. _ACEOF
  15829. if ac_fn_c_try_link "$LINENO"; then :
  15830. eval "$as_ac_Lib=yes"
  15831. else
  15832. eval "$as_ac_Lib=no"
  15833. fi
  15834. rm -f core conftest.err conftest.$ac_objext \
  15835. conftest$ac_exeext conftest.$ac_ext
  15836. LIBS=$ac_check_lib_save_LIBS
  15837. fi
  15838. eval ac_res=\$$as_ac_Lib
  15839. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  15840. $as_echo "$ac_res" >&6; }
  15841. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  15842. true
  15843. else
  15844. as_fn_error $? "$db_incdir/db.h is version $db_libver but libdb-$db_libver not found" "$LINENO" 5
  15845. fi
  15846. LDFLAGS="$save_ldflags"
  15847. # if DB is not found yet, try pkg-config
  15848. # last resort
  15849. # Although the other db_* variables are correctly assigned at this point,
  15850. # db_bindir needs to be set by pkg-config if possible (e.g., on 64-bit Solaris)
  15851. if test -n "$PKG_CONFIG"; then
  15852. if $PKG_CONFIG --exists db; then
  15853. db_bindir=`$PKG_CONFIG --variable=bindir db`
  15854. else
  15855. db_bindir=/usr/bin
  15856. fi
  15857. else
  15858. db_bindir=/usr/bin
  15859. fi
  15860. # BEGIN COPYRIGHT BLOCK
  15861. # Copyright (C) 2007 Red Hat, Inc.
  15862. # All rights reserved.
  15863. #
  15864. # This program is free software; you can redistribute it and/or
  15865. # modify it under the terms of the GNU General Public License
  15866. # as published by the Free Software Foundation; either version 2
  15867. # of the License, or (at your option) any later version.
  15868. #
  15869. # This program is distributed in the hope that it will be useful,
  15870. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  15871. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15872. # GNU General Public License for more details.
  15873. #
  15874. # You should have received a copy of the GNU General Public License
  15875. # along with this program; if not, write to the Free Software
  15876. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  15877. #
  15878. # END COPYRIGHT BLOCK
  15879. # -*- tab-width: 4; -*-
  15880. # Configure paths for SASL
  15881. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SASL..." >&5
  15882. $as_echo "$as_me: checking for SASL..." >&6;}
  15883. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-sasl" >&5
  15884. $as_echo_n "checking for --with-sasl... " >&6; }
  15885. # Check whether --with-sasl was given.
  15886. if test "${with_sasl+set}" = set; then :
  15887. withval=$with_sasl;
  15888. if test "$withval" = "yes"; then
  15889. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15890. $as_echo "yes" >&6; }
  15891. elif test "$withval" = "no"; then
  15892. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15893. $as_echo "no" >&6; }
  15894. as_fn_error $? "SASL is required." "$LINENO" 5
  15895. elif test -d "$withval" -a -d "$withval/lib" -a -d "$withval/include" ; then
  15896. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  15897. $as_echo "using $withval" >&6; }
  15898. if test -f "$withval/include/sasl/sasl.h"; then
  15899. sasl_inc="-I$withval/include/sasl"
  15900. elif test -f "$withval/include/sasl.h"; then
  15901. sasl_inc="-I$withval/include"
  15902. else
  15903. as_fn_error $? "sasl.h not found" "$LINENO" 5
  15904. fi
  15905. sasl_lib="-L$withval/lib"
  15906. sasl_libdir="$withval/lib"
  15907. else
  15908. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15909. $as_echo "yes" >&6; }
  15910. as_fn_error $? "SASL not found in $withval" "$LINENO" 5
  15911. fi
  15912. else
  15913. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15914. $as_echo "yes" >&6; }
  15915. fi
  15916. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-sasl-inc" >&5
  15917. $as_echo_n "checking for --with-sasl-inc... " >&6; }
  15918. # Check whether --with-sasl-inc was given.
  15919. if test "${with_sasl_inc+set}" = set; then :
  15920. withval=$with_sasl_inc;
  15921. if test -f "$withval"/sasl.h; then
  15922. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  15923. $as_echo "using $withval" >&6; }
  15924. sasl_inc="-I$withval"
  15925. else
  15926. echo
  15927. as_fn_error $? "$withval/sasl.h not found" "$LINENO" 5
  15928. fi
  15929. else
  15930. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15931. $as_echo "no" >&6; }
  15932. fi
  15933. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-sasl-lib" >&5
  15934. $as_echo_n "checking for --with-sasl-lib... " >&6; }
  15935. # Check whether --with-sasl-lib was given.
  15936. if test "${with_sasl_lib+set}" = set; then :
  15937. withval=$with_sasl_lib;
  15938. if test -d "$withval"; then
  15939. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  15940. $as_echo "using $withval" >&6; }
  15941. sasl_lib="-L$withval"
  15942. sasl_libdir="$withval"
  15943. else
  15944. echo
  15945. as_fn_error $? "$withval not found" "$LINENO" 5
  15946. fi
  15947. else
  15948. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15949. $as_echo "no" >&6; }
  15950. fi
  15951. if test -z "$sasl_inc"; then
  15952. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sasl.h" >&5
  15953. $as_echo_n "checking for sasl.h... " >&6; }
  15954. if test -f /usr/include/sasl/sasl.h; then
  15955. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using /usr/include/sasl/sasl.h" >&5
  15956. $as_echo "using /usr/include/sasl/sasl.h" >&6; }
  15957. sasl_inc="-I/usr/include/sasl"
  15958. elif test -f /usr/include/sasl.h; then
  15959. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using /usr/include/sasl.h" >&5
  15960. $as_echo "using /usr/include/sasl.h" >&6; }
  15961. sasl_inc="-I/usr/include"
  15962. else
  15963. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15964. $as_echo "no" >&6; }
  15965. as_fn_error $? "SASL not found, specify with --with-sasl." "$LINENO" 5
  15966. fi
  15967. fi
  15968. # BEGIN COPYRIGHT BLOCK
  15969. # Copyright (C) 2007 Red Hat, Inc.
  15970. # All rights reserved.
  15971. #
  15972. # This program is free software; you can redistribute it and/or
  15973. # modify it under the terms of the GNU General Public License
  15974. # as published by the Free Software Foundation; either version 2
  15975. # of the License, or (at your option) any later version.
  15976. #
  15977. # This program is distributed in the hope that it will be useful,
  15978. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  15979. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15980. # GNU General Public License for more details.
  15981. #
  15982. # You should have received a copy of the GNU General Public License
  15983. # along with this program; if not, write to the Free Software
  15984. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  15985. #
  15986. # END COPYRIGHT BLOCK
  15987. #
  15988. # Configure paths for SVRCORE
  15989. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SVRCORE..." >&5
  15990. $as_echo "$as_me: checking for SVRCORE..." >&6;}
  15991. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-svrcore" >&5
  15992. $as_echo_n "checking for --with-svrcore... " >&6; }
  15993. # Check whether --with-svrcore was given.
  15994. if test "${with_svrcore+set}" = set; then :
  15995. withval=$with_svrcore;
  15996. if test "$withval" = "yes"; then
  15997. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15998. $as_echo "yes" >&6; }
  15999. elif test "$withval" = "no"; then
  16000. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16001. $as_echo "no" >&6; }
  16002. as_fn_error $? "SVRCORE is required." "$LINENO" 5
  16003. elif test -d "$withval" -a -d "$withval/lib" -a -d "$withval/include" ; then
  16004. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16005. $as_echo "using $withval" >&6; }
  16006. if test -f "$withval/include/svrcore.h"; then
  16007. svrcore_inc="-I$withval/include"
  16008. else
  16009. as_fn_error $? "svrcore.h not found" "$LINENO" 5
  16010. fi
  16011. svrcore_lib="-L$withval/lib"
  16012. else
  16013. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16014. $as_echo "yes" >&6; }
  16015. as_fn_error $? "SVRCORE not found in $withval" "$LINENO" 5
  16016. fi
  16017. else
  16018. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16019. $as_echo "yes" >&6; }
  16020. fi
  16021. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-svrcore-inc" >&5
  16022. $as_echo_n "checking for --with-svrcore-inc... " >&6; }
  16023. # Check whether --with-svrcore-inc was given.
  16024. if test "${with_svrcore_inc+set}" = set; then :
  16025. withval=$with_svrcore_inc;
  16026. if test -f "$withval"/svrcore.h; then
  16027. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16028. $as_echo "using $withval" >&6; }
  16029. svrcore_inc="-I$withval"
  16030. else
  16031. echo
  16032. as_fn_error $? "$withval/svrcore.h not found" "$LINENO" 5
  16033. fi
  16034. else
  16035. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16036. $as_echo "no" >&6; }
  16037. fi
  16038. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-svrcore-lib" >&5
  16039. $as_echo_n "checking for --with-svrcore-lib... " >&6; }
  16040. # Check whether --with-svrcore-lib was given.
  16041. if test "${with_svrcore_lib+set}" = set; then :
  16042. withval=$with_svrcore_lib;
  16043. if test -d "$withval"; then
  16044. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16045. $as_echo "using $withval" >&6; }
  16046. svrcore_lib="-L$withval"
  16047. else
  16048. echo
  16049. as_fn_error $? "$withval not found" "$LINENO" 5
  16050. fi
  16051. else
  16052. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16053. $as_echo "no" >&6; }
  16054. fi
  16055. if test -z "$svrcore_inc" -o -z "$svrcore_lib"; then
  16056. # Extract the first word of "pkg-config", so it can be a program name with args.
  16057. set dummy pkg-config; ac_word=$2
  16058. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16059. $as_echo_n "checking for $ac_word... " >&6; }
  16060. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
  16061. $as_echo_n "(cached) " >&6
  16062. else
  16063. case $PKG_CONFIG in
  16064. [\\/]* | ?:[\\/]*)
  16065. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  16066. ;;
  16067. *)
  16068. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16069. for as_dir in $PATH
  16070. do
  16071. IFS=$as_save_IFS
  16072. test -z "$as_dir" && as_dir=.
  16073. for ac_exec_ext in '' $ac_executable_extensions; do
  16074. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  16075. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  16076. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16077. break 2
  16078. fi
  16079. done
  16080. done
  16081. IFS=$as_save_IFS
  16082. ;;
  16083. esac
  16084. fi
  16085. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  16086. if test -n "$PKG_CONFIG"; then
  16087. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  16088. $as_echo "$PKG_CONFIG" >&6; }
  16089. else
  16090. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16091. $as_echo "no" >&6; }
  16092. fi
  16093. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SVRCORE with pkg-config" >&5
  16094. $as_echo_n "checking for SVRCORE with pkg-config... " >&6; }
  16095. if test -n "$PKG_CONFIG"; then
  16096. if $PKG_CONFIG --exists svrcore; then
  16097. svrcore_inc=`$PKG_CONFIG --cflags-only-I svrcore`
  16098. svrcore_lib=`$PKG_CONFIG --libs-only-L svrcore`
  16099. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using system svrcore" >&5
  16100. $as_echo "using system svrcore" >&6; }
  16101. fi
  16102. fi
  16103. fi
  16104. if test -z "$svrcore_inc" -o -z "$svrcore_lib"; then
  16105. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SVRCORE_GetRegisteredPinObj in -lsvrcore" >&5
  16106. $as_echo_n "checking for SVRCORE_GetRegisteredPinObj in -lsvrcore... " >&6; }
  16107. if test "${ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj+set}" = set; then :
  16108. $as_echo_n "(cached) " >&6
  16109. else
  16110. ac_check_lib_save_LIBS=$LIBS
  16111. LIBS="-lsvrcore $nss_inc $nspr_inc $nss_lib -lnss3 -lsoftokn3 $nspr_lib -lplds4 -lplc4 -lnspr4 $LIBS"
  16112. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16113. /* end confdefs.h. */
  16114. /* Override any GCC internal prototype to avoid an error.
  16115. Use char because int might match the return type of a GCC
  16116. builtin and then its argument prototype would still apply. */
  16117. #ifdef __cplusplus
  16118. extern "C"
  16119. #endif
  16120. char SVRCORE_GetRegisteredPinObj ();
  16121. int
  16122. main ()
  16123. {
  16124. return SVRCORE_GetRegisteredPinObj ();
  16125. ;
  16126. return 0;
  16127. }
  16128. _ACEOF
  16129. if ac_fn_c_try_link "$LINENO"; then :
  16130. ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj=yes
  16131. else
  16132. ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj=no
  16133. fi
  16134. rm -f core conftest.err conftest.$ac_objext \
  16135. conftest$ac_exeext conftest.$ac_ext
  16136. LIBS=$ac_check_lib_save_LIBS
  16137. fi
  16138. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj" >&5
  16139. $as_echo "$ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj" >&6; }
  16140. if test "x$ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj" = x""yes; then :
  16141. havesvrcore=1
  16142. fi
  16143. if test -n "$havesvrcore" ; then
  16144. save_cppflags="$CPPFLAGS"
  16145. CPPFLAGS="$nss_inc $nspr_inc"
  16146. ac_fn_c_check_header_mongrel "$LINENO" "svrcore.h" "ac_cv_header_svrcore_h" "$ac_includes_default"
  16147. if test "x$ac_cv_header_svrcore_h" = x""yes; then :
  16148. havesvrcore=1
  16149. else
  16150. havesvrcore=
  16151. fi
  16152. CPPFLAGS="$save_cppflags"
  16153. fi
  16154. if test -z "$havesvrcore" ; then
  16155. as_fn_error $? "SVRCORE not found, specify with --with-svrcore." "$LINENO" 5
  16156. fi
  16157. fi
  16158. if test -z "$svrcore_inc" -o -z "$svrcore_lib"; then
  16159. if test -f /usr/include/svrcore.h; then
  16160. svrcore_inc="-I/usr/include"
  16161. svrcore_lib="-L/usr/lib"
  16162. else
  16163. as_fn_error $? "SVRCORE not found, specify with --with-svrcore." "$LINENO" 5
  16164. fi
  16165. fi
  16166. # BEGIN COPYRIGHT BLOCK
  16167. # Copyright (C) 2006 Red Hat, Inc.
  16168. # All rights reserved.
  16169. #
  16170. # This program is free software; you can redistribute it and/or
  16171. # modify it under the terms of the GNU General Public License
  16172. # as published by the Free Software Foundation; either version 2
  16173. # of the License, or (at your option) any later version.
  16174. #
  16175. # This program is distributed in the hope that it will be useful,
  16176. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  16177. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16178. # GNU General Public License for more details.
  16179. #
  16180. # You should have received a copy of the GNU General Public License
  16181. # along with this program; if not, write to the Free Software
  16182. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  16183. #
  16184. # END COPYRIGHT BLOCK
  16185. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBICU..." >&5
  16186. $as_echo "$as_me: checking for LIBICU..." >&6;}
  16187. # check for --with-icu
  16188. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-icu" >&5
  16189. $as_echo_n "checking for --with-icu... " >&6; }
  16190. # Check whether --with-icu was given.
  16191. if test "${with_icu+set}" = set; then :
  16192. withval=$with_icu;
  16193. if test "$withval" = "yes"
  16194. then
  16195. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16196. $as_echo "yes" >&6; }
  16197. elif test "$withval" = "no"
  16198. then
  16199. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16200. $as_echo "no" >&6; }
  16201. as_fn_error $? "ICU is required." "$LINENO" 5
  16202. elif test -d "$withval"/lib
  16203. then
  16204. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16205. $as_echo "using $withval" >&6; }
  16206. ICUDIR=$withval
  16207. icu_lib="-L$ICUDIR/lib"
  16208. icu_inc="-I$withval/include"
  16209. icu_bin="$withval/bin"
  16210. else
  16211. echo
  16212. as_fn_error $? "$withval not found" "$LINENO" 5
  16213. fi
  16214. else
  16215. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16216. $as_echo "yes" >&6; }
  16217. fi
  16218. # check for --with-icu-inc
  16219. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-icu-inc" >&5
  16220. $as_echo_n "checking for --with-icu-inc... " >&6; }
  16221. # Check whether --with-icu-inc was given.
  16222. if test "${with_icu_inc+set}" = set; then :
  16223. withval=$with_icu_inc;
  16224. if test -d "$withval"
  16225. then
  16226. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16227. $as_echo "using $withval" >&6; }
  16228. icu_inc="-I$withval"
  16229. else
  16230. echo
  16231. as_fn_error $? "$withval not found" "$LINENO" 5
  16232. fi
  16233. else
  16234. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16235. $as_echo "no" >&6; }
  16236. fi
  16237. # check for --with-icu-lib
  16238. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-icu-lib" >&5
  16239. $as_echo_n "checking for --with-icu-lib... " >&6; }
  16240. # Check whether --with-icu-lib was given.
  16241. if test "${with_icu_lib+set}" = set; then :
  16242. withval=$with_icu_lib;
  16243. if test -d "$withval"
  16244. then
  16245. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16246. $as_echo "using $withval" >&6; }
  16247. icu_lib="-L$withval"
  16248. else
  16249. echo
  16250. as_fn_error $? "$withval not found" "$LINENO" 5
  16251. fi
  16252. else
  16253. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16254. $as_echo "no" >&6; }
  16255. fi
  16256. # check for --with-icu-bin
  16257. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-icu-bin" >&5
  16258. $as_echo_n "checking for --with-icu-bin... " >&6; }
  16259. # Check whether --with-icu-bin was given.
  16260. if test "${with_icu_bin+set}" = set; then :
  16261. withval=$with_icu_bin;
  16262. if test -d "$withval"
  16263. then
  16264. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16265. $as_echo "using $withval" >&6; }
  16266. icu_bin="$withval"
  16267. else
  16268. echo
  16269. as_fn_error $? "$withval not found" "$LINENO" 5
  16270. fi
  16271. else
  16272. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16273. $as_echo "no" >&6; }
  16274. fi
  16275. # if ICU is not found yet, try pkg-config
  16276. # last resort
  16277. if test -z "$icu_lib"; then
  16278. # Extract the first word of "icu-config", so it can be a program name with args.
  16279. set dummy icu-config; ac_word=$2
  16280. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16281. $as_echo_n "checking for $ac_word... " >&6; }
  16282. if test "${ac_cv_path_ICU_CONFIG+set}" = set; then :
  16283. $as_echo_n "(cached) " >&6
  16284. else
  16285. case $ICU_CONFIG in
  16286. [\\/]* | ?:[\\/]*)
  16287. ac_cv_path_ICU_CONFIG="$ICU_CONFIG" # Let the user override the test with a path.
  16288. ;;
  16289. *)
  16290. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16291. for as_dir in $PATH
  16292. do
  16293. IFS=$as_save_IFS
  16294. test -z "$as_dir" && as_dir=.
  16295. for ac_exec_ext in '' $ac_executable_extensions; do
  16296. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  16297. ac_cv_path_ICU_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  16298. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16299. break 2
  16300. fi
  16301. done
  16302. done
  16303. IFS=$as_save_IFS
  16304. ;;
  16305. esac
  16306. fi
  16307. ICU_CONFIG=$ac_cv_path_ICU_CONFIG
  16308. if test -n "$ICU_CONFIG"; then
  16309. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICU_CONFIG" >&5
  16310. $as_echo "$ICU_CONFIG" >&6; }
  16311. else
  16312. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16313. $as_echo "no" >&6; }
  16314. fi
  16315. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for icu with icu-config" >&5
  16316. $as_echo_n "checking for icu with icu-config... " >&6; }
  16317. if test -n "$ICU_CONFIG"; then
  16318. icu_lib=`$ICU_CONFIG --ldflags-searchpath`
  16319. icu_inc=`$ICU_CONFIG --cppflags-searchpath`
  16320. icu_bin=`$ICU_CONFIG --bindir`
  16321. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using system ICU" >&5
  16322. $as_echo "using system ICU" >&6; }
  16323. else
  16324. as_fn_error $? "ICU not found, specify with --with-icu." "$LINENO" 5
  16325. fi
  16326. fi
  16327. # BEGIN COPYRIGHT BLOCK
  16328. # Copyright (C) 2006 Red Hat, Inc.
  16329. # All rights reserved.
  16330. #
  16331. # This program is free software; you can redistribute it and/or
  16332. # modify it under the terms of the GNU General Public License
  16333. # as published by the Free Software Foundation; either version 2
  16334. # of the License, or (at your option) any later version.
  16335. #
  16336. # This program is distributed in the hope that it will be useful,
  16337. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  16338. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16339. # GNU General Public License for more details.
  16340. #
  16341. # You should have received a copy of the GNU General Public License
  16342. # along with this program; if not, write to the Free Software
  16343. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  16344. #
  16345. # END COPYRIGHT BLOCK
  16346. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Net-SNMP..." >&5
  16347. $as_echo "$as_me: checking for Net-SNMP..." >&6;}
  16348. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-netsnmp" >&5
  16349. $as_echo_n "checking for --with-netsnmp... " >&6; }
  16350. # Check whether --with-netsnmp was given.
  16351. if test "${with_netsnmp+set}" = set; then :
  16352. withval=$with_netsnmp;
  16353. if test "$withval" = "yes"; then
  16354. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16355. $as_echo "yes" >&6; }
  16356. elif test "$withval" = "no"; then
  16357. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16358. $as_echo "no" >&6; }
  16359. as_fn_error $? "Net-SNMP is required." "$LINENO" 5
  16360. elif test -d "$withval" -a -d "$withval/lib" -a -d "$withval/include"; then
  16361. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16362. $as_echo "using $withval" >&6; }
  16363. NETSNMPDIR=$withval
  16364. if test -f "$withval/include/net-snmp/net-snmp-includes.h"; then
  16365. netsnmp_inc="-I$withval/include"
  16366. else
  16367. as_fn_error $? "net-snmp-config.h not found" "$LINENO" 5
  16368. fi
  16369. netsnmp_lib="-L$withval/lib"
  16370. netsnmp_libdir="$withval/lib"
  16371. else
  16372. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16373. $as_echo "yes" >&6; }
  16374. as_fn_error $? "$withval not found" "$LINENO" 5
  16375. fi
  16376. else
  16377. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16378. $as_echo "yes" >&6; }
  16379. fi
  16380. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-netsnmp-inc" >&5
  16381. $as_echo_n "checking for --with-netsnmp-inc... " >&6; }
  16382. # Check whether --with-netsnmp-inc was given.
  16383. if test "${with_netsnmp_inc+set}" = set; then :
  16384. withval=$with_netsnmp_inc;
  16385. if test -f "$withval/net-snmp/net-snmp-includes.h"; then
  16386. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16387. $as_echo "using $withval" >&6; }
  16388. netsnmp_inc="-I$withval"
  16389. else
  16390. echo
  16391. as_fn_error $? "$withval/net-snmp/net-snmp-includes.h not found" "$LINENO" 5
  16392. fi
  16393. else
  16394. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16395. $as_echo "no" >&6; }
  16396. fi
  16397. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-netsnmp-lib" >&5
  16398. $as_echo_n "checking for --with-netsnmp-lib... " >&6; }
  16399. # Check whether --with-netsnmp-lib was given.
  16400. if test "${with_netsnmp_lib+set}" = set; then :
  16401. withval=$with_netsnmp_lib;
  16402. if test -d "$withval"
  16403. then
  16404. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16405. $as_echo "using $withval" >&6; }
  16406. netsnmp_lib="-L$withval"
  16407. netsnmp_libdir="$withval"
  16408. else
  16409. echo
  16410. as_fn_error $? "$withval not found" "$LINENO" 5
  16411. fi
  16412. else
  16413. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16414. $as_echo "no" >&6; }
  16415. fi
  16416. if test -z "$netsnmp_inc" -o -z "$netsnmp_lib"; then
  16417. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for net-snmp-includes.h" >&5
  16418. $as_echo_n "checking for net-snmp-includes.h... " >&6; }
  16419. if test -f /usr/include/net-snmp/net-snmp-includes.h; then
  16420. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using /usr/include/net-snmp/net-snmp-includes.h" >&5
  16421. $as_echo "using /usr/include/net-snmp/net-snmp-includes.h" >&6; }
  16422. netsnmp_inc="-I/usr/include"
  16423. else
  16424. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16425. $as_echo "no" >&6; }
  16426. as_fn_error $? "net-snmp not found, specify with --with-netsnmp." "$LINENO" 5
  16427. fi
  16428. fi
  16429. if test -n "$netsnmp_inc"; then
  16430. if test -x "$NETSNMPDIR/bin/net-snmp-config"; then
  16431. NETSNMP_CONFIG=$NETSNMPDIR/bin/net-snmp-config
  16432. else
  16433. # Extract the first word of "net-snmp-config", so it can be a program name with args.
  16434. set dummy net-snmp-config; ac_word=$2
  16435. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16436. $as_echo_n "checking for $ac_word... " >&6; }
  16437. if test "${ac_cv_path_NETSNMP_CONFIG+set}" = set; then :
  16438. $as_echo_n "(cached) " >&6
  16439. else
  16440. case $NETSNMP_CONFIG in
  16441. [\\/]* | ?:[\\/]*)
  16442. ac_cv_path_NETSNMP_CONFIG="$NETSNMP_CONFIG" # Let the user override the test with a path.
  16443. ;;
  16444. *)
  16445. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16446. for as_dir in $PATH
  16447. do
  16448. IFS=$as_save_IFS
  16449. test -z "$as_dir" && as_dir=.
  16450. for ac_exec_ext in '' $ac_executable_extensions; do
  16451. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  16452. ac_cv_path_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  16453. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16454. break 2
  16455. fi
  16456. done
  16457. done
  16458. IFS=$as_save_IFS
  16459. ;;
  16460. esac
  16461. fi
  16462. NETSNMP_CONFIG=$ac_cv_path_NETSNMP_CONFIG
  16463. if test -n "$NETSNMP_CONFIG"; then
  16464. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NETSNMP_CONFIG" >&5
  16465. $as_echo "$NETSNMP_CONFIG" >&6; }
  16466. else
  16467. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16468. $as_echo "no" >&6; }
  16469. fi
  16470. fi
  16471. if test -n "$NETSNMP_CONFIG"; then
  16472. netsnmp_link=`$NETSNMP_CONFIG --agent-libs`
  16473. else
  16474. as_fn_error $? "net-snmp-config not found, specify with --with-netsnmp." "$LINENO" 5
  16475. fi
  16476. else
  16477. as_fn_error $? "Net-SNMP not found, specify with --with-netsnmp." "$LINENO" 5
  16478. fi
  16479. # BEGIN COPYRIGHT BLOCK
  16480. # Copyright (C) 2008 Red Hat, Inc.
  16481. # All rights reserved.
  16482. #
  16483. # This program is free software; you can redistribute it and/or
  16484. # modify it under the terms of the GNU General Public License
  16485. # as published by the Free Software Foundation; either version 2
  16486. # of the License, or (at your option) any later version.
  16487. #
  16488. # This program is distributed in the hope that it will be useful,
  16489. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  16490. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16491. # GNU General Public License for more details.
  16492. #
  16493. # You should have received a copy of the GNU General Public License
  16494. # along with this program; if not, write to the Free Software
  16495. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  16496. #
  16497. # END COPYRIGHT BLOCK
  16498. # -*- tab-width: 4; -*-
  16499. # Configure paths for Kerberos
  16500. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Kerberos..." >&5
  16501. $as_echo "$as_me: checking for Kerberos..." >&6;}
  16502. if test -z "$with_kerberos" ; then
  16503. with_kerberos=yes # if not set on cmdline, set default
  16504. fi
  16505. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-kerberos" >&5
  16506. $as_echo_n "checking for --with-kerberos... " >&6; }
  16507. # Check whether --with-kerberos was given.
  16508. if test "${with_kerberos+set}" = set; then :
  16509. withval=$with_kerberos;
  16510. if test "x$withval" = "xyes"; then
  16511. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16512. $as_echo "yes" >&6; }
  16513. elif test "x$withval" = "xno"; then
  16514. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16515. $as_echo "no" >&6; }
  16516. with_kerberos=
  16517. elif test -d "$withval" -a -d "$withval/lib" -a -d "$withval/include" ; then
  16518. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16519. $as_echo "using $withval" >&6; }
  16520. kerberos_incdir="$withval/include"
  16521. kerberos_libdir="$withval/lib"
  16522. else
  16523. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16524. $as_echo "yes" >&6; }
  16525. as_fn_error $? "kerberos not found in $withval" "$LINENO" 5
  16526. fi
  16527. else
  16528. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16529. $as_echo "no" >&6; }
  16530. with_kerberos=
  16531. fi
  16532. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-kerberos-inc" >&5
  16533. $as_echo_n "checking for --with-kerberos-inc... " >&6; }
  16534. # Check whether --with-kerberos-inc was given.
  16535. if test "${with_kerberos_inc+set}" = set; then :
  16536. withval=$with_kerberos_inc;
  16537. if test -f "$withval"/krb5.h; then
  16538. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16539. $as_echo "using $withval" >&6; }
  16540. kerberos_incdir="$withval"
  16541. with_kerberos=yes # implies use of kerberos
  16542. else
  16543. echo
  16544. as_fn_error $? "$withval/krb5.h not found" "$LINENO" 5
  16545. fi
  16546. else
  16547. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16548. $as_echo "no" >&6; }
  16549. fi
  16550. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-kerberos-lib" >&5
  16551. $as_echo_n "checking for --with-kerberos-lib... " >&6; }
  16552. # Check whether --with-kerberos-lib was given.
  16553. if test "${with_kerberos_lib+set}" = set; then :
  16554. withval=$with_kerberos_lib;
  16555. if test -d "$withval"; then
  16556. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16557. $as_echo "using $withval" >&6; }
  16558. kerberos_libdir="$withval"
  16559. with_kerberos=yes # implies use of kerberos
  16560. else
  16561. echo
  16562. as_fn_error $? "$withval not found" "$LINENO" 5
  16563. fi
  16564. else
  16565. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16566. $as_echo "no" >&6; }
  16567. fi
  16568. if test -n "$with_kerberos" ; then
  16569. if test -z "$kerberos_incdir" -o -z "$kerberos_libdir" ; then
  16570. if test -z "$KRB5_CONFIG_BIN" ; then
  16571. # Extract the first word of "krb5-config", so it can be a program name with args.
  16572. set dummy krb5-config; ac_word=$2
  16573. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16574. $as_echo_n "checking for $ac_word... " >&6; }
  16575. if test "${ac_cv_path_KRB5_CONFIG_BIN+set}" = set; then :
  16576. $as_echo_n "(cached) " >&6
  16577. else
  16578. case $KRB5_CONFIG_BIN in
  16579. [\\/]* | ?:[\\/]*)
  16580. ac_cv_path_KRB5_CONFIG_BIN="$KRB5_CONFIG_BIN" # Let the user override the test with a path.
  16581. ;;
  16582. *)
  16583. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16584. for as_dir in $PATH
  16585. do
  16586. IFS=$as_save_IFS
  16587. test -z "$as_dir" && as_dir=.
  16588. for ac_exec_ext in '' $ac_executable_extensions; do
  16589. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  16590. ac_cv_path_KRB5_CONFIG_BIN="$as_dir/$ac_word$ac_exec_ext"
  16591. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16592. break 2
  16593. fi
  16594. done
  16595. done
  16596. IFS=$as_save_IFS
  16597. ;;
  16598. esac
  16599. fi
  16600. KRB5_CONFIG_BIN=$ac_cv_path_KRB5_CONFIG_BIN
  16601. if test -n "$KRB5_CONFIG_BIN"; then
  16602. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KRB5_CONFIG_BIN" >&5
  16603. $as_echo "$KRB5_CONFIG_BIN" >&6; }
  16604. else
  16605. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16606. $as_echo "no" >&6; }
  16607. fi
  16608. fi
  16609. if test -n "$KRB5_CONFIG_BIN" ; then
  16610. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kerberos with $KRB5_CONFIG_BIN" >&5
  16611. $as_echo_n "checking for kerberos with $KRB5_CONFIG_BIN... " >&6; }
  16612. if test -z "$kerberos_libdir" ; then
  16613. kerberos_lib=`$KRB5_CONFIG_BIN --libs krb5`
  16614. fi
  16615. if test -z "$kerberos_incdir" ; then
  16616. kerberos_inc=`$KRB5_CONFIG_BIN --cflags krb5`
  16617. fi
  16618. if test -n "$kerberos_lib" ; then
  16619. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using kerberos found with $KRB5_CONFIG_BIN" >&5
  16620. $as_echo "using kerberos found with $KRB5_CONFIG_BIN" >&6; }
  16621. have_krb5=yes
  16622. fi
  16623. fi
  16624. fi
  16625. fi
  16626. if test -n "$with_kerberos" -a -z "$kerberos_lib" ; then
  16627. # save these in order to set them to use the check macros below
  16628. # like AC_CHECK_HEADERS, AC_CHECK_LIB, and AC_CHECK_FUNCS
  16629. save_CPPFLAGS="$CPPFLAGS"
  16630. if test -n "$kerberos_incdir" ; then
  16631. CPPFLAGS="-I$kerberos_incdir $CPPFLAGS"
  16632. fi
  16633. save_LDFLAGS="$LDFLAGS"
  16634. if test -n "$kerberos_libdir" ; then
  16635. LDFLAGS="-L$kerberos_libdir $LDFLAGS"
  16636. fi
  16637. krb5_impl=mit
  16638. for ac_header in heim_err.h
  16639. do :
  16640. ac_fn_c_check_header_mongrel "$LINENO" "heim_err.h" "ac_cv_header_heim_err_h" "$ac_includes_default"
  16641. if test "x$ac_cv_header_heim_err_h" = x""yes; then :
  16642. cat >>confdefs.h <<_ACEOF
  16643. #define HAVE_HEIM_ERR_H 1
  16644. _ACEOF
  16645. fi
  16646. done
  16647. if test $ac_cv_header_heim_err_h = yes ; then
  16648. krb5_impl=heimdal
  16649. fi
  16650. if test "x$krb5_impl" = "xmit"; then
  16651. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lk5crypto" >&5
  16652. $as_echo_n "checking for main in -lk5crypto... " >&6; }
  16653. if test "${ac_cv_lib_k5crypto_main+set}" = set; then :
  16654. $as_echo_n "(cached) " >&6
  16655. else
  16656. ac_check_lib_save_LIBS=$LIBS
  16657. LIBS="-lk5crypto $LIBS"
  16658. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16659. /* end confdefs.h. */
  16660. int
  16661. main ()
  16662. {
  16663. return main ();
  16664. ;
  16665. return 0;
  16666. }
  16667. _ACEOF
  16668. if ac_fn_c_try_link "$LINENO"; then :
  16669. ac_cv_lib_k5crypto_main=yes
  16670. else
  16671. ac_cv_lib_k5crypto_main=no
  16672. fi
  16673. rm -f core conftest.err conftest.$ac_objext \
  16674. conftest$ac_exeext conftest.$ac_ext
  16675. LIBS=$ac_check_lib_save_LIBS
  16676. fi
  16677. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_main" >&5
  16678. $as_echo "$ac_cv_lib_k5crypto_main" >&6; }
  16679. if test "x$ac_cv_lib_k5crypto_main" = x""yes; then :
  16680. krb5crypto=k5crypto
  16681. else
  16682. krb5crypto=crypto
  16683. fi
  16684. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lkrb5" >&5
  16685. $as_echo_n "checking for main in -lkrb5... " >&6; }
  16686. if test "${ac_cv_lib_krb5_main+set}" = set; then :
  16687. $as_echo_n "(cached) " >&6
  16688. else
  16689. ac_check_lib_save_LIBS=$LIBS
  16690. LIBS="-lkrb5 -l$krb5crypto -lcom_err $LIBS"
  16691. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16692. /* end confdefs.h. */
  16693. int
  16694. main ()
  16695. {
  16696. return main ();
  16697. ;
  16698. return 0;
  16699. }
  16700. _ACEOF
  16701. if ac_fn_c_try_link "$LINENO"; then :
  16702. ac_cv_lib_krb5_main=yes
  16703. else
  16704. ac_cv_lib_krb5_main=no
  16705. fi
  16706. rm -f core conftest.err conftest.$ac_objext \
  16707. conftest$ac_exeext conftest.$ac_ext
  16708. LIBS=$ac_check_lib_save_LIBS
  16709. fi
  16710. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_main" >&5
  16711. $as_echo "$ac_cv_lib_krb5_main" >&6; }
  16712. if test "x$ac_cv_lib_krb5_main" = x""yes; then :
  16713. have_krb5=yes
  16714. kerberos_lib="-lkrb5 -l$krb5crypto -lcom_err"
  16715. else
  16716. have_krb5=no
  16717. fi
  16718. elif test "x$krb5_impl" = "xheimdal"; then
  16719. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ldes" >&5
  16720. $as_echo_n "checking for main in -ldes... " >&6; }
  16721. if test "${ac_cv_lib_des_main+set}" = set; then :
  16722. $as_echo_n "(cached) " >&6
  16723. else
  16724. ac_check_lib_save_LIBS=$LIBS
  16725. LIBS="-ldes $LIBS"
  16726. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16727. /* end confdefs.h. */
  16728. int
  16729. main ()
  16730. {
  16731. return main ();
  16732. ;
  16733. return 0;
  16734. }
  16735. _ACEOF
  16736. if ac_fn_c_try_link "$LINENO"; then :
  16737. ac_cv_lib_des_main=yes
  16738. else
  16739. ac_cv_lib_des_main=no
  16740. fi
  16741. rm -f core conftest.err conftest.$ac_objext \
  16742. conftest$ac_exeext conftest.$ac_ext
  16743. LIBS=$ac_check_lib_save_LIBS
  16744. fi
  16745. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_main" >&5
  16746. $as_echo "$ac_cv_lib_des_main" >&6; }
  16747. if test "x$ac_cv_lib_des_main" = x""yes; then :
  16748. krb5crypto=des
  16749. else
  16750. krb5crypto=crypto
  16751. fi
  16752. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lkrb5" >&5
  16753. $as_echo_n "checking for main in -lkrb5... " >&6; }
  16754. if test "${ac_cv_lib_krb5_main+set}" = set; then :
  16755. $as_echo_n "(cached) " >&6
  16756. else
  16757. ac_check_lib_save_LIBS=$LIBS
  16758. LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
  16759. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16760. /* end confdefs.h. */
  16761. int
  16762. main ()
  16763. {
  16764. return main ();
  16765. ;
  16766. return 0;
  16767. }
  16768. _ACEOF
  16769. if ac_fn_c_try_link "$LINENO"; then :
  16770. ac_cv_lib_krb5_main=yes
  16771. else
  16772. ac_cv_lib_krb5_main=no
  16773. fi
  16774. rm -f core conftest.err conftest.$ac_objext \
  16775. conftest$ac_exeext conftest.$ac_ext
  16776. LIBS=$ac_check_lib_save_LIBS
  16777. fi
  16778. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_main" >&5
  16779. $as_echo "$ac_cv_lib_krb5_main" >&6; }
  16780. if test "x$ac_cv_lib_krb5_main" = x""yes; then :
  16781. have_krb5=yes
  16782. kerberos_lib="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err"
  16783. else
  16784. have_krb5=no
  16785. fi
  16786. $as_echo "#define HAVE_HEIMDAL_KERBEROS 1" >>confdefs.h
  16787. else
  16788. have_krb5=no
  16789. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unrecognized Kerberos5 Implementation" >&5
  16790. $as_echo "$as_me: WARNING: Unrecognized Kerberos5 Implementation" >&2;}
  16791. fi
  16792. # reset to original values
  16793. CPPFLAGS="$save_CPPFLAGS"
  16794. LDFLAGS="$save_LDFLAGS"
  16795. if test -n "$kerberos_incdir" ; then
  16796. kerberos_inc="-I$kerberos_incdir"
  16797. fi
  16798. if test -n "$kerberos_libdir" ; then
  16799. kerberos_lib="-L$kerberos_libdir $kerberos_lib"
  16800. fi
  16801. fi
  16802. if test -n "$with_kerberos" ; then
  16803. if test "x$have_krb5" = "xyes" ; then
  16804. $as_echo "#define HAVE_KRB5 1" >>confdefs.h
  16805. else
  16806. as_fn_error $? "Required Kerberos 5 support not available" "$LINENO" 5
  16807. fi
  16808. save_LIBS="$LIBS"
  16809. LIBS="$kerberos_lib"
  16810. save_CPPFLAGS="$CPPFLAGS"
  16811. CPPFLAGS="$kerberos_inc $CPPFLAGS"
  16812. for ac_func in krb5_cc_new_unique
  16813. do :
  16814. ac_fn_c_check_func "$LINENO" "krb5_cc_new_unique" "ac_cv_func_krb5_cc_new_unique"
  16815. if test "x$ac_cv_func_krb5_cc_new_unique" = x""yes; then :
  16816. cat >>confdefs.h <<_ACEOF
  16817. #define HAVE_KRB5_CC_NEW_UNIQUE 1
  16818. _ACEOF
  16819. fi
  16820. done
  16821. LIBS="$save_LIBS"
  16822. CPPFLAGS="$save_CPPFLAGS"
  16823. fi
  16824. # BEGIN COPYRIGHT BLOCK
  16825. # Copyright (C) 2007 Red Hat, Inc.
  16826. # All rights reserved.
  16827. #
  16828. # This program is free software; you can redistribute it and/or
  16829. # modify it under the terms of the GNU General Public License
  16830. # as published by the Free Software Foundation; either version 2
  16831. # of the License, or (at your option) any later version.
  16832. #
  16833. # This program is distributed in the hope that it will be useful,
  16834. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  16835. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16836. # GNU General Public License for more details.
  16837. #
  16838. # You should have received a copy of the GNU General Public License
  16839. # along with this program; if not, write to the Free Software
  16840. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  16841. #
  16842. # END COPYRIGHT BLOCK
  16843. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCRE..." >&5
  16844. $as_echo "$as_me: checking for PCRE..." >&6;}
  16845. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pcre" >&5
  16846. $as_echo_n "checking for --with-pcre... " >&6; }
  16847. # Check whether --with-pcre was given.
  16848. if test "${with_pcre+set}" = set; then :
  16849. withval=$with_pcre;
  16850. if test "$withval" = "yes"; then
  16851. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16852. $as_echo "yes" >&6; }
  16853. elif test "$withval" = "no"; then
  16854. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16855. $as_echo "no" >&6; }
  16856. as_fn_error $? "PCRE is required." "$LINENO" 5
  16857. elif test -d "$withval"/include -a -d "$withval"/lib; then
  16858. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16859. $as_echo "using $withval" >&6; }
  16860. PCREDIR=$withval
  16861. pcre_lib="-L$PCREDIR/lib"
  16862. pcre_libdir="$PCREDIR/lib"
  16863. pcre_incdir="$PCREDIR/include"
  16864. if ! test -e "$pcre_incdir/pcre.h" ; then
  16865. as_fn_error $? "$withval include dir not found" "$LINENO" 5
  16866. fi
  16867. pcre_inc="-I$pcre_incdir"
  16868. else
  16869. echo
  16870. as_fn_error $? "$withval not found" "$LINENO" 5
  16871. fi
  16872. else
  16873. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16874. $as_echo "yes" >&6; }
  16875. fi
  16876. #
  16877. # if PCRE is not found yet, try pkg-config
  16878. if test -z "$pcre_inc" -o -z "$pcre_lib" -o -z "$pcre_libdir"; then
  16879. # Extract the first word of "pkg-config", so it can be a program name with args.
  16880. set dummy pkg-config; ac_word=$2
  16881. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16882. $as_echo_n "checking for $ac_word... " >&6; }
  16883. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
  16884. $as_echo_n "(cached) " >&6
  16885. else
  16886. case $PKG_CONFIG in
  16887. [\\/]* | ?:[\\/]*)
  16888. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  16889. ;;
  16890. *)
  16891. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16892. for as_dir in $PATH
  16893. do
  16894. IFS=$as_save_IFS
  16895. test -z "$as_dir" && as_dir=.
  16896. for ac_exec_ext in '' $ac_executable_extensions; do
  16897. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  16898. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  16899. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16900. break 2
  16901. fi
  16902. done
  16903. done
  16904. IFS=$as_save_IFS
  16905. ;;
  16906. esac
  16907. fi
  16908. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  16909. if test -n "$PKG_CONFIG"; then
  16910. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  16911. $as_echo "$PKG_CONFIG" >&6; }
  16912. else
  16913. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16914. $as_echo "no" >&6; }
  16915. fi
  16916. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcre with pkg-config" >&5
  16917. $as_echo_n "checking for pcre with pkg-config... " >&6; }
  16918. if test -n "$PKG_CONFIG"; then
  16919. if $PKG_CONFIG --exists pcre; then
  16920. pcre_inc=`$PKG_CONFIG --cflags-only-I pcre`
  16921. pcre_lib=`$PKG_CONFIG --libs-only-L pcre`
  16922. pcre_libdir=`$PKG_CONFIG --libs-only-L pcre | sed -e s/-L// | sed -e s/\ .*$//`
  16923. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using system PCRE" >&5
  16924. $as_echo "using system PCRE" >&6; }
  16925. elif $PKG_CONFIG --exists libpcre; then
  16926. pcre_inc=`$PKG_CONFIG --cflags-only-I libpcre`
  16927. pcre_lib=`$PKG_CONFIG --libs-only-L libpcre`
  16928. pcre_libdir=`$PKG_CONFIG --libs-only-L libpcre | sed -e s/-L// | sed -e s/\ .*$//`
  16929. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using system PCRE" >&5
  16930. $as_echo "using system PCRE" >&6; }
  16931. else
  16932. as_fn_error $? "PCRE not found, specify with --with-pcre." "$LINENO" 5
  16933. fi
  16934. fi
  16935. fi
  16936. if test -z "$pcre_inc"; then
  16937. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcre.h" >&5
  16938. $as_echo_n "checking for pcre.h... " >&6; }
  16939. if test -f "/usr/include/pcre/pcre.h"; then
  16940. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using /usr/include/pcre/pcre.h" >&5
  16941. $as_echo "using /usr/include/pcre/pcre.h" >&6; }
  16942. pcre_incdir="/usr/include/pcre"
  16943. pcre_inc="-I/usr/include/pcre"
  16944. pcre_lib='-L$(libdir)'
  16945. pcre_libdir='$(libdir)'
  16946. elif test -f "/usr/include/pcre.h"; then
  16947. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using /usr/include/pcre.h" >&5
  16948. $as_echo "using /usr/include/pcre.h" >&6; }
  16949. pcre_incdir="/usr/include"
  16950. pcre_inc="-I/usr/include"
  16951. pcre_lib='-L$(libdir)'
  16952. pcre_libdir='$(libdir)'
  16953. else
  16954. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16955. $as_echo "no" >&6; }
  16956. as_fn_error $? "PCRE not found, specify with --with-pcre." "$LINENO" 5
  16957. fi
  16958. fi
  16959. # BEGIN COPYRIGHT BLOCK
  16960. # Copyright (C) 2009 Red Hat, Inc.
  16961. # All rights reserved.
  16962. #
  16963. # This program is free software; you can redistribute it and/or
  16964. # modify it under the terms of the GNU General Public License
  16965. # as published by the Free Software Foundation; either version 2
  16966. # of the License, or (at your option) any later version.
  16967. #
  16968. # This program is distributed in the hope that it will be useful,
  16969. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  16970. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16971. # GNU General Public License for more details.
  16972. #
  16973. # You should have received a copy of the GNU General Public License
  16974. # along with this program; if not, write to the Free Software
  16975. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  16976. #
  16977. # END COPYRIGHT BLOCK
  16978. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SELinux..." >&5
  16979. $as_echo "$as_me: checking for SELinux..." >&6;}
  16980. # check for --with-selinux
  16981. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-selinux" >&5
  16982. $as_echo_n "checking for --with-selinux... " >&6; }
  16983. # Check whether --with-selinux was given.
  16984. if test "${with_selinux+set}" = set; then :
  16985. withval=$with_selinux;
  16986. if test "$withval" = "no"; then
  16987. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16988. $as_echo "no" >&6; }
  16989. else
  16990. with_selinux=yes
  16991. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16992. $as_echo "yes" >&6; }
  16993. fi
  16994. else
  16995. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16996. $as_echo "no" >&6; }
  16997. fi
  16998. PACKAGE_BASE_VERSION=`echo $PACKAGE_VERSION | awk -F\. '{print $1"."$2}'`
  16999. # set sasl_path for wrapper scripts
  17000. if test -z "$sasl_libdir" ; then
  17001. sasl_path="$libdir/sasl2"
  17002. else
  17003. sasl_path="$sasl_libdir/sasl2"
  17004. fi
  17005. if test "$with_selinux" = "yes"; then
  17006. SELINUX_TRUE=
  17007. SELINUX_FALSE='#'
  17008. else
  17009. SELINUX_TRUE='#'
  17010. SELINUX_FALSE=
  17011. fi
  17012. if test "$with_openldap" = "yes"; then
  17013. OPENLDAP_TRUE=
  17014. OPENLDAP_FALSE='#'
  17015. else
  17016. OPENLDAP_TRUE='#'
  17017. OPENLDAP_FALSE=
  17018. fi
  17019. # write out paths for binary components
  17020. $as_echo "#define LDAP_DEBUG 1" >>confdefs.h
  17021. $as_echo "#define LDAP_DONT_USE_SMARTHEAP 1" >>confdefs.h
  17022. # libtool on fedora/rhel contains some gcc-isms which cause problems
  17023. # if not using gcc (e.g. Forte on Solaris, aCC on HP-UX)
  17024. # we remove them here
  17025. if test "$GCC" != yes ; then
  17026. { $as_echo "$as_me:${as_lineno-$LINENO}: Not using gcc - fixing libtool to remove gcc-isms . . ." >&5
  17027. $as_echo "$as_me: Not using gcc - fixing libtool to remove gcc-isms . . ." >&6;}
  17028. cp -p libtool libtool.orig
  17029. cp -p libtool libtool.tmp
  17030. # dnl note the special chars [ and ] - since m4 treats [ and ] specially,
  17031. # we have to use the quadrigraph [ for [ and ] for ] - and you thought
  17032. # perl produced write-only code . . .
  17033. sed -e '/^gcc_dir/ d' \
  17034. -e '/^gcc_ver/ d' \
  17035. -e 's/^predep_objects=.*echo \("[^"]*"\).*$/predep_objects=\1/' \
  17036. -e 's/^postdep_objects=.*echo \("[^"]*"\).*$/postdep_objects=\1/' \
  17037. -e 's/^compiler_lib_search_path=.*echo \("[^"]*"\).*$/compiler_lib_search_path=\1/' \
  17038. -e 's/^sys_lib_search_path_spec=.*echo \("[^"]*"\).*$/sys_lib_search_path_spec=\1/' \
  17039. libtool > libtool.tmp
  17040. cp -p libtool.tmp libtool
  17041. rm -f libtool.tmp
  17042. fi
  17043. ac_config_files="$ac_config_files Makefile"
  17044. cat >confcache <<\_ACEOF
  17045. # This file is a shell script that caches the results of configure
  17046. # tests run on this system so they can be shared between configure
  17047. # scripts and configure runs, see configure's option --config-cache.
  17048. # It is not useful on other systems. If it contains results you don't
  17049. # want to keep, you may remove or edit it.
  17050. #
  17051. # config.status only pays attention to the cache file if you give it
  17052. # the --recheck option to rerun configure.
  17053. #
  17054. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  17055. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  17056. # following values.
  17057. _ACEOF
  17058. # The following way of writing the cache mishandles newlines in values,
  17059. # but we know of no workaround that is simple, portable, and efficient.
  17060. # So, we kill variables containing newlines.
  17061. # Ultrix sh set writes to stderr and can't be redirected directly,
  17062. # and sets the high bit in the cache file unless we assign to the vars.
  17063. (
  17064. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  17065. eval ac_val=\$$ac_var
  17066. case $ac_val in #(
  17067. *${as_nl}*)
  17068. case $ac_var in #(
  17069. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  17070. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  17071. esac
  17072. case $ac_var in #(
  17073. _ | IFS | as_nl) ;; #(
  17074. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  17075. *) { eval $ac_var=; unset $ac_var;} ;;
  17076. esac ;;
  17077. esac
  17078. done
  17079. (set) 2>&1 |
  17080. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  17081. *${as_nl}ac_space=\ *)
  17082. # `set' does not quote correctly, so add quotes: double-quote
  17083. # substitution turns \\\\ into \\, and sed turns \\ into \.
  17084. sed -n \
  17085. "s/'/'\\\\''/g;
  17086. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  17087. ;; #(
  17088. *)
  17089. # `set' quotes correctly as required by POSIX, so do not add quotes.
  17090. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  17091. ;;
  17092. esac |
  17093. sort
  17094. ) |
  17095. sed '
  17096. /^ac_cv_env_/b end
  17097. t clear
  17098. :clear
  17099. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  17100. t end
  17101. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  17102. :end' >>confcache
  17103. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  17104. if test -w "$cache_file"; then
  17105. test "x$cache_file" != "x/dev/null" &&
  17106. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  17107. $as_echo "$as_me: updating cache $cache_file" >&6;}
  17108. cat confcache >$cache_file
  17109. else
  17110. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  17111. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  17112. fi
  17113. fi
  17114. rm -f confcache
  17115. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  17116. # Let make expand exec_prefix.
  17117. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  17118. DEFS=-DHAVE_CONFIG_H
  17119. ac_libobjs=
  17120. ac_ltlibobjs=
  17121. U=
  17122. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  17123. # 1. Remove the extension, and $U if already installed.
  17124. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  17125. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  17126. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  17127. # will be set to the directory where LIBOBJS objects are built.
  17128. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  17129. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  17130. done
  17131. LIBOBJS=$ac_libobjs
  17132. LTLIBOBJS=$ac_ltlibobjs
  17133. if test -n "$EXEEXT"; then
  17134. am__EXEEXT_TRUE=
  17135. am__EXEEXT_FALSE='#'
  17136. else
  17137. am__EXEEXT_TRUE='#'
  17138. am__EXEEXT_FALSE=
  17139. fi
  17140. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  17141. as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
  17142. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17143. fi
  17144. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  17145. as_fn_error $? "conditional \"AMDEP\" was never defined.
  17146. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17147. fi
  17148. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  17149. as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
  17150. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17151. fi
  17152. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  17153. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  17154. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17155. fi
  17156. if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
  17157. as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
  17158. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17159. fi
  17160. if test -z "${BUNDLE_TRUE}" && test -z "${BUNDLE_FALSE}"; then
  17161. as_fn_error $? "conditional \"BUNDLE\" was never defined.
  17162. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17163. fi
  17164. if test -z "${enable_pam_passthru_TRUE}" && test -z "${enable_pam_passthru_FALSE}"; then
  17165. as_fn_error $? "conditional \"enable_pam_passthru\" was never defined.
  17166. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17167. fi
  17168. if test -z "${enable_dna_TRUE}" && test -z "${enable_dna_FALSE}"; then
  17169. as_fn_error $? "conditional \"enable_dna\" was never defined.
  17170. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17171. fi
  17172. if test -z "${enable_ldapi_TRUE}" && test -z "${enable_ldapi_FALSE}"; then
  17173. as_fn_error $? "conditional \"enable_ldapi\" was never defined.
  17174. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17175. fi
  17176. if test -z "${enable_autobind_TRUE}" && test -z "${enable_autobind_FALSE}"; then
  17177. as_fn_error $? "conditional \"enable_autobind\" was never defined.
  17178. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17179. fi
  17180. if test -z "${enable_auto_dn_suffix_TRUE}" && test -z "${enable_auto_dn_suffix_FALSE}"; then
  17181. as_fn_error $? "conditional \"enable_auto_dn_suffix\" was never defined.
  17182. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17183. fi
  17184. if test -z "${enable_bitwise_TRUE}" && test -z "${enable_bitwise_FALSE}"; then
  17185. as_fn_error $? "conditional \"enable_bitwise\" was never defined.
  17186. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17187. fi
  17188. if test -z "${enable_presence_TRUE}" && test -z "${enable_presence_FALSE}"; then
  17189. as_fn_error $? "conditional \"enable_presence\" was never defined.
  17190. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17191. fi
  17192. if test -z "${enable_acctpolicy_TRUE}" && test -z "${enable_acctpolicy_FALSE}"; then
  17193. as_fn_error $? "conditional \"enable_acctpolicy\" was never defined.
  17194. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17195. fi
  17196. if test -z "${WINNT_TRUE}" && test -z "${WINNT_FALSE}"; then
  17197. as_fn_error $? "conditional \"WINNT\" was never defined.
  17198. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17199. fi
  17200. if test -z "${HPUX_TRUE}" && test -z "${HPUX_FALSE}"; then
  17201. as_fn_error $? "conditional \"HPUX\" was never defined.
  17202. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17203. fi
  17204. if test -z "${SOLARIS_TRUE}" && test -z "${SOLARIS_FALSE}"; then
  17205. as_fn_error $? "conditional \"SOLARIS\" was never defined.
  17206. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17207. fi
  17208. if test -z "${SELINUX_TRUE}" && test -z "${SELINUX_FALSE}"; then
  17209. as_fn_error $? "conditional \"SELINUX\" was never defined.
  17210. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17211. fi
  17212. if test -z "${OPENLDAP_TRUE}" && test -z "${OPENLDAP_FALSE}"; then
  17213. as_fn_error $? "conditional \"OPENLDAP\" was never defined.
  17214. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17215. fi
  17216. : ${CONFIG_STATUS=./config.status}
  17217. ac_write_fail=0
  17218. ac_clean_files_save=$ac_clean_files
  17219. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  17220. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  17221. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  17222. as_write_fail=0
  17223. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  17224. #! $SHELL
  17225. # Generated by $as_me.
  17226. # Run this file to recreate the current configuration.
  17227. # Compiler output produced by configure, useful for debugging
  17228. # configure, is in config.log if it exists.
  17229. debug=false
  17230. ac_cs_recheck=false
  17231. ac_cs_silent=false
  17232. SHELL=\${CONFIG_SHELL-$SHELL}
  17233. export SHELL
  17234. _ASEOF
  17235. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  17236. ## -------------------- ##
  17237. ## M4sh Initialization. ##
  17238. ## -------------------- ##
  17239. # Be more Bourne compatible
  17240. DUALCASE=1; export DUALCASE # for MKS sh
  17241. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  17242. emulate sh
  17243. NULLCMD=:
  17244. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  17245. # is contrary to our usage. Disable this feature.
  17246. alias -g '${1+"$@"}'='"$@"'
  17247. setopt NO_GLOB_SUBST
  17248. else
  17249. case `(set -o) 2>/dev/null` in #(
  17250. *posix*) :
  17251. set -o posix ;; #(
  17252. *) :
  17253. ;;
  17254. esac
  17255. fi
  17256. as_nl='
  17257. '
  17258. export as_nl
  17259. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  17260. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  17261. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  17262. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  17263. # Prefer a ksh shell builtin over an external printf program on Solaris,
  17264. # but without wasting forks for bash or zsh.
  17265. if test -z "$BASH_VERSION$ZSH_VERSION" \
  17266. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  17267. as_echo='print -r --'
  17268. as_echo_n='print -rn --'
  17269. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  17270. as_echo='printf %s\n'
  17271. as_echo_n='printf %s'
  17272. else
  17273. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  17274. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  17275. as_echo_n='/usr/ucb/echo -n'
  17276. else
  17277. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  17278. as_echo_n_body='eval
  17279. arg=$1;
  17280. case $arg in #(
  17281. *"$as_nl"*)
  17282. expr "X$arg" : "X\\(.*\\)$as_nl";
  17283. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  17284. esac;
  17285. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  17286. '
  17287. export as_echo_n_body
  17288. as_echo_n='sh -c $as_echo_n_body as_echo'
  17289. fi
  17290. export as_echo_body
  17291. as_echo='sh -c $as_echo_body as_echo'
  17292. fi
  17293. # The user is always right.
  17294. if test "${PATH_SEPARATOR+set}" != set; then
  17295. PATH_SEPARATOR=:
  17296. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  17297. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  17298. PATH_SEPARATOR=';'
  17299. }
  17300. fi
  17301. # IFS
  17302. # We need space, tab and new line, in precisely that order. Quoting is
  17303. # there to prevent editors from complaining about space-tab.
  17304. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  17305. # splitting by setting IFS to empty value.)
  17306. IFS=" "" $as_nl"
  17307. # Find who we are. Look in the path if we contain no directory separator.
  17308. case $0 in #((
  17309. *[\\/]* ) as_myself=$0 ;;
  17310. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17311. for as_dir in $PATH
  17312. do
  17313. IFS=$as_save_IFS
  17314. test -z "$as_dir" && as_dir=.
  17315. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  17316. done
  17317. IFS=$as_save_IFS
  17318. ;;
  17319. esac
  17320. # We did not find ourselves, most probably we were run as `sh COMMAND'
  17321. # in which case we are not to be found in the path.
  17322. if test "x$as_myself" = x; then
  17323. as_myself=$0
  17324. fi
  17325. if test ! -f "$as_myself"; then
  17326. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  17327. exit 1
  17328. fi
  17329. # Unset variables that we do not need and which cause bugs (e.g. in
  17330. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  17331. # suppresses any "Segmentation fault" message there. '((' could
  17332. # trigger a bug in pdksh 5.2.14.
  17333. for as_var in BASH_ENV ENV MAIL MAILPATH
  17334. do eval test x\${$as_var+set} = xset \
  17335. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  17336. done
  17337. PS1='$ '
  17338. PS2='> '
  17339. PS4='+ '
  17340. # NLS nuisances.
  17341. LC_ALL=C
  17342. export LC_ALL
  17343. LANGUAGE=C
  17344. export LANGUAGE
  17345. # CDPATH.
  17346. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  17347. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  17348. # ----------------------------------------
  17349. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  17350. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  17351. # script with STATUS, using 1 if that was 0.
  17352. as_fn_error ()
  17353. {
  17354. as_status=$1; test $as_status -eq 0 && as_status=1
  17355. if test "$4"; then
  17356. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  17357. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  17358. fi
  17359. $as_echo "$as_me: error: $2" >&2
  17360. as_fn_exit $as_status
  17361. } # as_fn_error
  17362. # as_fn_set_status STATUS
  17363. # -----------------------
  17364. # Set $? to STATUS, without forking.
  17365. as_fn_set_status ()
  17366. {
  17367. return $1
  17368. } # as_fn_set_status
  17369. # as_fn_exit STATUS
  17370. # -----------------
  17371. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  17372. as_fn_exit ()
  17373. {
  17374. set +e
  17375. as_fn_set_status $1
  17376. exit $1
  17377. } # as_fn_exit
  17378. # as_fn_unset VAR
  17379. # ---------------
  17380. # Portably unset VAR.
  17381. as_fn_unset ()
  17382. {
  17383. { eval $1=; unset $1;}
  17384. }
  17385. as_unset=as_fn_unset
  17386. # as_fn_append VAR VALUE
  17387. # ----------------------
  17388. # Append the text in VALUE to the end of the definition contained in VAR. Take
  17389. # advantage of any shell optimizations that allow amortized linear growth over
  17390. # repeated appends, instead of the typical quadratic growth present in naive
  17391. # implementations.
  17392. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  17393. eval 'as_fn_append ()
  17394. {
  17395. eval $1+=\$2
  17396. }'
  17397. else
  17398. as_fn_append ()
  17399. {
  17400. eval $1=\$$1\$2
  17401. }
  17402. fi # as_fn_append
  17403. # as_fn_arith ARG...
  17404. # ------------------
  17405. # Perform arithmetic evaluation on the ARGs, and store the result in the
  17406. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  17407. # must be portable across $(()) and expr.
  17408. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  17409. eval 'as_fn_arith ()
  17410. {
  17411. as_val=$(( $* ))
  17412. }'
  17413. else
  17414. as_fn_arith ()
  17415. {
  17416. as_val=`expr "$@" || test $? -eq 1`
  17417. }
  17418. fi # as_fn_arith
  17419. if expr a : '\(a\)' >/dev/null 2>&1 &&
  17420. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  17421. as_expr=expr
  17422. else
  17423. as_expr=false
  17424. fi
  17425. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  17426. as_basename=basename
  17427. else
  17428. as_basename=false
  17429. fi
  17430. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  17431. as_dirname=dirname
  17432. else
  17433. as_dirname=false
  17434. fi
  17435. as_me=`$as_basename -- "$0" ||
  17436. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  17437. X"$0" : 'X\(//\)$' \| \
  17438. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  17439. $as_echo X/"$0" |
  17440. sed '/^.*\/\([^/][^/]*\)\/*$/{
  17441. s//\1/
  17442. q
  17443. }
  17444. /^X\/\(\/\/\)$/{
  17445. s//\1/
  17446. q
  17447. }
  17448. /^X\/\(\/\).*/{
  17449. s//\1/
  17450. q
  17451. }
  17452. s/.*/./; q'`
  17453. # Avoid depending upon Character Ranges.
  17454. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  17455. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  17456. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  17457. as_cr_digits='0123456789'
  17458. as_cr_alnum=$as_cr_Letters$as_cr_digits
  17459. ECHO_C= ECHO_N= ECHO_T=
  17460. case `echo -n x` in #(((((
  17461. -n*)
  17462. case `echo 'xy\c'` in
  17463. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  17464. xy) ECHO_C='\c';;
  17465. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  17466. ECHO_T=' ';;
  17467. esac;;
  17468. *)
  17469. ECHO_N='-n';;
  17470. esac
  17471. rm -f conf$$ conf$$.exe conf$$.file
  17472. if test -d conf$$.dir; then
  17473. rm -f conf$$.dir/conf$$.file
  17474. else
  17475. rm -f conf$$.dir
  17476. mkdir conf$$.dir 2>/dev/null
  17477. fi
  17478. if (echo >conf$$.file) 2>/dev/null; then
  17479. if ln -s conf$$.file conf$$ 2>/dev/null; then
  17480. as_ln_s='ln -s'
  17481. # ... but there are two gotchas:
  17482. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  17483. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  17484. # In both cases, we have to default to `cp -p'.
  17485. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  17486. as_ln_s='cp -p'
  17487. elif ln conf$$.file conf$$ 2>/dev/null; then
  17488. as_ln_s=ln
  17489. else
  17490. as_ln_s='cp -p'
  17491. fi
  17492. else
  17493. as_ln_s='cp -p'
  17494. fi
  17495. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  17496. rmdir conf$$.dir 2>/dev/null
  17497. # as_fn_mkdir_p
  17498. # -------------
  17499. # Create "$as_dir" as a directory, including parents if necessary.
  17500. as_fn_mkdir_p ()
  17501. {
  17502. case $as_dir in #(
  17503. -*) as_dir=./$as_dir;;
  17504. esac
  17505. test -d "$as_dir" || eval $as_mkdir_p || {
  17506. as_dirs=
  17507. while :; do
  17508. case $as_dir in #(
  17509. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  17510. *) as_qdir=$as_dir;;
  17511. esac
  17512. as_dirs="'$as_qdir' $as_dirs"
  17513. as_dir=`$as_dirname -- "$as_dir" ||
  17514. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  17515. X"$as_dir" : 'X\(//\)[^/]' \| \
  17516. X"$as_dir" : 'X\(//\)$' \| \
  17517. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  17518. $as_echo X"$as_dir" |
  17519. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  17520. s//\1/
  17521. q
  17522. }
  17523. /^X\(\/\/\)[^/].*/{
  17524. s//\1/
  17525. q
  17526. }
  17527. /^X\(\/\/\)$/{
  17528. s//\1/
  17529. q
  17530. }
  17531. /^X\(\/\).*/{
  17532. s//\1/
  17533. q
  17534. }
  17535. s/.*/./; q'`
  17536. test -d "$as_dir" && break
  17537. done
  17538. test -z "$as_dirs" || eval "mkdir $as_dirs"
  17539. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  17540. } # as_fn_mkdir_p
  17541. if mkdir -p . 2>/dev/null; then
  17542. as_mkdir_p='mkdir -p "$as_dir"'
  17543. else
  17544. test -d ./-p && rmdir ./-p
  17545. as_mkdir_p=false
  17546. fi
  17547. if test -x / >/dev/null 2>&1; then
  17548. as_test_x='test -x'
  17549. else
  17550. if ls -dL / >/dev/null 2>&1; then
  17551. as_ls_L_option=L
  17552. else
  17553. as_ls_L_option=
  17554. fi
  17555. as_test_x='
  17556. eval sh -c '\''
  17557. if test -d "$1"; then
  17558. test -d "$1/.";
  17559. else
  17560. case $1 in #(
  17561. -*)set "./$1";;
  17562. esac;
  17563. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  17564. ???[sx]*):;;*)false;;esac;fi
  17565. '\'' sh
  17566. '
  17567. fi
  17568. as_executable_p=$as_test_x
  17569. # Sed expression to map a string onto a valid CPP name.
  17570. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  17571. # Sed expression to map a string onto a valid variable name.
  17572. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  17573. exec 6>&1
  17574. ## ----------------------------------- ##
  17575. ## Main body of $CONFIG_STATUS script. ##
  17576. ## ----------------------------------- ##
  17577. _ASEOF
  17578. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  17579. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  17580. # Save the log message, to keep $0 and so on meaningful, and to
  17581. # report actual input values of CONFIG_FILES etc. instead of their
  17582. # values after options handling.
  17583. ac_log="
  17584. This file was extended by dirsrv $as_me 1.0, which was
  17585. generated by GNU Autoconf 2.66. Invocation command line was
  17586. CONFIG_FILES = $CONFIG_FILES
  17587. CONFIG_HEADERS = $CONFIG_HEADERS
  17588. CONFIG_LINKS = $CONFIG_LINKS
  17589. CONFIG_COMMANDS = $CONFIG_COMMANDS
  17590. $ $0 $@
  17591. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  17592. "
  17593. _ACEOF
  17594. case $ac_config_files in *"
  17595. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  17596. esac
  17597. case $ac_config_headers in *"
  17598. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  17599. esac
  17600. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  17601. # Files that config.status was made for.
  17602. config_files="$ac_config_files"
  17603. config_headers="$ac_config_headers"
  17604. config_commands="$ac_config_commands"
  17605. _ACEOF
  17606. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  17607. ac_cs_usage="\
  17608. \`$as_me' instantiates files and other configuration actions
  17609. from templates according to the current configuration. Unless the files
  17610. and actions are specified as TAGs, all are instantiated by default.
  17611. Usage: $0 [OPTION]... [TAG]...
  17612. -h, --help print this help, then exit
  17613. -V, --version print version number and configuration settings, then exit
  17614. --config print configuration, then exit
  17615. -q, --quiet, --silent
  17616. do not print progress messages
  17617. -d, --debug don't remove temporary files
  17618. --recheck update $as_me by reconfiguring in the same conditions
  17619. --file=FILE[:TEMPLATE]
  17620. instantiate the configuration file FILE
  17621. --header=FILE[:TEMPLATE]
  17622. instantiate the configuration header FILE
  17623. Configuration files:
  17624. $config_files
  17625. Configuration headers:
  17626. $config_headers
  17627. Configuration commands:
  17628. $config_commands
  17629. Report bugs to <http://bugzilla.redhat.com/>."
  17630. _ACEOF
  17631. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  17632. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  17633. ac_cs_version="\\
  17634. dirsrv config.status 1.0
  17635. configured by $0, generated by GNU Autoconf 2.66,
  17636. with options \\"\$ac_cs_config\\"
  17637. Copyright (C) 2010 Free Software Foundation, Inc.
  17638. This config.status script is free software; the Free Software Foundation
  17639. gives unlimited permission to copy, distribute and modify it."
  17640. ac_pwd='$ac_pwd'
  17641. srcdir='$srcdir'
  17642. INSTALL='$INSTALL'
  17643. MKDIR_P='$MKDIR_P'
  17644. AWK='$AWK'
  17645. test -n "\$AWK" || AWK=awk
  17646. _ACEOF
  17647. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  17648. # The default lists apply if the user does not specify any file.
  17649. ac_need_defaults=:
  17650. while test $# != 0
  17651. do
  17652. case $1 in
  17653. --*=*)
  17654. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  17655. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  17656. ac_shift=:
  17657. ;;
  17658. *)
  17659. ac_option=$1
  17660. ac_optarg=$2
  17661. ac_shift=shift
  17662. ;;
  17663. esac
  17664. case $ac_option in
  17665. # Handling of the options.
  17666. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  17667. ac_cs_recheck=: ;;
  17668. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  17669. $as_echo "$ac_cs_version"; exit ;;
  17670. --config | --confi | --conf | --con | --co | --c )
  17671. $as_echo "$ac_cs_config"; exit ;;
  17672. --debug | --debu | --deb | --de | --d | -d )
  17673. debug=: ;;
  17674. --file | --fil | --fi | --f )
  17675. $ac_shift
  17676. case $ac_optarg in
  17677. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  17678. esac
  17679. as_fn_append CONFIG_FILES " '$ac_optarg'"
  17680. ac_need_defaults=false;;
  17681. --header | --heade | --head | --hea )
  17682. $ac_shift
  17683. case $ac_optarg in
  17684. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  17685. esac
  17686. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  17687. ac_need_defaults=false;;
  17688. --he | --h)
  17689. # Conflict between --help and --header
  17690. as_fn_error $? "ambiguous option: \`$1'
  17691. Try \`$0 --help' for more information.";;
  17692. --help | --hel | -h )
  17693. $as_echo "$ac_cs_usage"; exit ;;
  17694. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  17695. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  17696. ac_cs_silent=: ;;
  17697. # This is an error.
  17698. -*) as_fn_error $? "unrecognized option: \`$1'
  17699. Try \`$0 --help' for more information." ;;
  17700. *) as_fn_append ac_config_targets " $1"
  17701. ac_need_defaults=false ;;
  17702. esac
  17703. shift
  17704. done
  17705. ac_configure_extra_args=
  17706. if $ac_cs_silent; then
  17707. exec 6>/dev/null
  17708. ac_configure_extra_args="$ac_configure_extra_args --silent"
  17709. fi
  17710. _ACEOF
  17711. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  17712. if \$ac_cs_recheck; then
  17713. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  17714. shift
  17715. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  17716. CONFIG_SHELL='$SHELL'
  17717. export CONFIG_SHELL
  17718. exec "\$@"
  17719. fi
  17720. _ACEOF
  17721. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  17722. exec 5>>config.log
  17723. {
  17724. echo
  17725. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  17726. ## Running $as_me. ##
  17727. _ASBOX
  17728. $as_echo "$ac_log"
  17729. } >&5
  17730. _ACEOF
  17731. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  17732. #
  17733. # INIT-COMMANDS
  17734. #
  17735. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  17736. # The HP-UX ksh and POSIX shell print the target directory to stdout
  17737. # if CDPATH is set.
  17738. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  17739. sed_quote_subst='$sed_quote_subst'
  17740. double_quote_subst='$double_quote_subst'
  17741. delay_variable_subst='$delay_variable_subst'
  17742. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  17743. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  17744. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  17745. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  17746. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  17747. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  17748. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  17749. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  17750. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  17751. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  17752. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  17753. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  17754. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  17755. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  17756. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  17757. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  17758. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  17759. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  17760. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  17761. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  17762. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  17763. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  17764. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  17765. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  17766. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  17767. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  17768. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  17769. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  17770. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  17771. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  17772. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  17773. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  17774. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  17775. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  17776. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  17777. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  17778. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  17779. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  17780. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  17781. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  17782. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  17783. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  17784. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  17785. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  17786. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  17787. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  17788. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  17789. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  17790. 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"`'
  17791. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  17792. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  17793. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  17794. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  17795. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  17796. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  17797. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  17798. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  17799. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  17800. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  17801. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  17802. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  17803. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  17804. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  17805. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  17806. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  17807. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  17808. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  17809. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  17810. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  17811. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  17812. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  17813. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  17814. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  17815. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  17816. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  17817. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  17818. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  17819. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  17820. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  17821. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  17822. hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
  17823. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  17824. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  17825. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  17826. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  17827. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  17828. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  17829. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  17830. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  17831. fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
  17832. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  17833. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  17834. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  17835. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  17836. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  17837. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  17838. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  17839. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  17840. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  17841. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  17842. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  17843. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  17844. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  17845. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  17846. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  17847. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  17848. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  17849. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  17850. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  17851. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  17852. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  17853. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  17854. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  17855. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  17856. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  17857. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  17858. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  17859. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  17860. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  17861. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  17862. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  17863. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  17864. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  17865. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  17866. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  17867. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  17868. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  17869. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  17870. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  17871. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  17872. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  17873. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  17874. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  17875. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  17876. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  17877. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  17878. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  17879. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  17880. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  17881. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  17882. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  17883. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  17884. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  17885. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  17886. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  17887. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  17888. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  17889. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  17890. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  17891. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  17892. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  17893. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  17894. hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
  17895. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  17896. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  17897. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  17898. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  17899. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  17900. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  17901. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  17902. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  17903. fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
  17904. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  17905. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  17906. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  17907. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  17908. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  17909. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  17910. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  17911. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  17912. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  17913. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  17914. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  17915. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  17916. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  17917. LTCC='$LTCC'
  17918. LTCFLAGS='$LTCFLAGS'
  17919. compiler='$compiler_DEFAULT'
  17920. # A function that is used when there is no print builtin or printf.
  17921. func_fallback_echo ()
  17922. {
  17923. eval 'cat <<_LTECHO_EOF
  17924. \$1
  17925. _LTECHO_EOF'
  17926. }
  17927. # Quote evaled strings.
  17928. for var in SHELL \
  17929. ECHO \
  17930. SED \
  17931. GREP \
  17932. EGREP \
  17933. FGREP \
  17934. LD \
  17935. NM \
  17936. LN_S \
  17937. lt_SP2NL \
  17938. lt_NL2SP \
  17939. reload_flag \
  17940. OBJDUMP \
  17941. deplibs_check_method \
  17942. file_magic_cmd \
  17943. AR \
  17944. AR_FLAGS \
  17945. STRIP \
  17946. RANLIB \
  17947. CC \
  17948. CFLAGS \
  17949. compiler \
  17950. lt_cv_sys_global_symbol_pipe \
  17951. lt_cv_sys_global_symbol_to_cdecl \
  17952. lt_cv_sys_global_symbol_to_c_name_address \
  17953. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  17954. lt_prog_compiler_no_builtin_flag \
  17955. lt_prog_compiler_wl \
  17956. lt_prog_compiler_pic \
  17957. lt_prog_compiler_static \
  17958. lt_cv_prog_compiler_c_o \
  17959. need_locks \
  17960. DSYMUTIL \
  17961. NMEDIT \
  17962. LIPO \
  17963. OTOOL \
  17964. OTOOL64 \
  17965. shrext_cmds \
  17966. export_dynamic_flag_spec \
  17967. whole_archive_flag_spec \
  17968. compiler_needs_object \
  17969. with_gnu_ld \
  17970. allow_undefined_flag \
  17971. no_undefined_flag \
  17972. hardcode_libdir_flag_spec \
  17973. hardcode_libdir_flag_spec_ld \
  17974. hardcode_libdir_separator \
  17975. fix_srcfile_path \
  17976. exclude_expsyms \
  17977. include_expsyms \
  17978. file_list_spec \
  17979. variables_saved_for_relink \
  17980. libname_spec \
  17981. library_names_spec \
  17982. soname_spec \
  17983. install_override_mode \
  17984. finish_eval \
  17985. old_striplib \
  17986. striplib \
  17987. compiler_lib_search_dirs \
  17988. predep_objects \
  17989. postdep_objects \
  17990. predeps \
  17991. postdeps \
  17992. compiler_lib_search_path \
  17993. LD_CXX \
  17994. reload_flag_CXX \
  17995. compiler_CXX \
  17996. lt_prog_compiler_no_builtin_flag_CXX \
  17997. lt_prog_compiler_wl_CXX \
  17998. lt_prog_compiler_pic_CXX \
  17999. lt_prog_compiler_static_CXX \
  18000. lt_cv_prog_compiler_c_o_CXX \
  18001. export_dynamic_flag_spec_CXX \
  18002. whole_archive_flag_spec_CXX \
  18003. compiler_needs_object_CXX \
  18004. with_gnu_ld_CXX \
  18005. allow_undefined_flag_CXX \
  18006. no_undefined_flag_CXX \
  18007. hardcode_libdir_flag_spec_CXX \
  18008. hardcode_libdir_flag_spec_ld_CXX \
  18009. hardcode_libdir_separator_CXX \
  18010. fix_srcfile_path_CXX \
  18011. exclude_expsyms_CXX \
  18012. include_expsyms_CXX \
  18013. file_list_spec_CXX \
  18014. compiler_lib_search_dirs_CXX \
  18015. predep_objects_CXX \
  18016. postdep_objects_CXX \
  18017. predeps_CXX \
  18018. postdeps_CXX \
  18019. compiler_lib_search_path_CXX; do
  18020. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  18021. *[\\\\\\\`\\"\\\$]*)
  18022. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  18023. ;;
  18024. *)
  18025. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  18026. ;;
  18027. esac
  18028. done
  18029. # Double-quote double-evaled strings.
  18030. for var in reload_cmds \
  18031. old_postinstall_cmds \
  18032. old_postuninstall_cmds \
  18033. old_archive_cmds \
  18034. extract_expsyms_cmds \
  18035. old_archive_from_new_cmds \
  18036. old_archive_from_expsyms_cmds \
  18037. archive_cmds \
  18038. archive_expsym_cmds \
  18039. module_cmds \
  18040. module_expsym_cmds \
  18041. export_symbols_cmds \
  18042. prelink_cmds \
  18043. postinstall_cmds \
  18044. postuninstall_cmds \
  18045. finish_cmds \
  18046. sys_lib_search_path_spec \
  18047. sys_lib_dlsearch_path_spec \
  18048. reload_cmds_CXX \
  18049. old_archive_cmds_CXX \
  18050. old_archive_from_new_cmds_CXX \
  18051. old_archive_from_expsyms_cmds_CXX \
  18052. archive_cmds_CXX \
  18053. archive_expsym_cmds_CXX \
  18054. module_cmds_CXX \
  18055. module_expsym_cmds_CXX \
  18056. export_symbols_cmds_CXX \
  18057. prelink_cmds_CXX; do
  18058. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  18059. *[\\\\\\\`\\"\\\$]*)
  18060. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  18061. ;;
  18062. *)
  18063. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  18064. ;;
  18065. esac
  18066. done
  18067. ac_aux_dir='$ac_aux_dir'
  18068. xsi_shell='$xsi_shell'
  18069. lt_shell_append='$lt_shell_append'
  18070. # See if we are running on zsh, and set the options which allow our
  18071. # commands through without removal of \ escapes INIT.
  18072. if test -n "\${ZSH_VERSION+set}" ; then
  18073. setopt NO_GLOB_SUBST
  18074. fi
  18075. PACKAGE='$PACKAGE'
  18076. VERSION='$VERSION'
  18077. TIMESTAMP='$TIMESTAMP'
  18078. RM='$RM'
  18079. ofile='$ofile'
  18080. _ACEOF
  18081. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18082. # Handling of arguments.
  18083. for ac_config_target in $ac_config_targets
  18084. do
  18085. case $ac_config_target in
  18086. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  18087. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  18088. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  18089. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  18090. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  18091. esac
  18092. done
  18093. # If the user did not use the arguments to specify the items to instantiate,
  18094. # then the envvar interface is used. Set only those that are not.
  18095. # We use the long form for the default assignment because of an extremely
  18096. # bizarre bug on SunOS 4.1.3.
  18097. if $ac_need_defaults; then
  18098. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  18099. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  18100. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  18101. fi
  18102. # Have a temporary directory for convenience. Make it in the build tree
  18103. # simply because there is no reason against having it here, and in addition,
  18104. # creating and moving files from /tmp can sometimes cause problems.
  18105. # Hook for its removal unless debugging.
  18106. # Note that there is a small window in which the directory will not be cleaned:
  18107. # after its creation but before its name has been assigned to `$tmp'.
  18108. $debug ||
  18109. {
  18110. tmp=
  18111. trap 'exit_status=$?
  18112. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  18113. ' 0
  18114. trap 'as_fn_exit 1' 1 2 13 15
  18115. }
  18116. # Create a (secure) tmp directory for tmp files.
  18117. {
  18118. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  18119. test -n "$tmp" && test -d "$tmp"
  18120. } ||
  18121. {
  18122. tmp=./conf$$-$RANDOM
  18123. (umask 077 && mkdir "$tmp")
  18124. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  18125. # Set up the scripts for CONFIG_FILES section.
  18126. # No need to generate them if there are no CONFIG_FILES.
  18127. # This happens for instance with `./config.status config.h'.
  18128. if test -n "$CONFIG_FILES"; then
  18129. ac_cr=`echo X | tr X '\015'`
  18130. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  18131. # But we know of no other shell where ac_cr would be empty at this
  18132. # point, so we can use a bashism as a fallback.
  18133. if test "x$ac_cr" = x; then
  18134. eval ac_cr=\$\'\\r\'
  18135. fi
  18136. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  18137. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  18138. ac_cs_awk_cr='\\r'
  18139. else
  18140. ac_cs_awk_cr=$ac_cr
  18141. fi
  18142. echo 'BEGIN {' >"$tmp/subs1.awk" &&
  18143. _ACEOF
  18144. {
  18145. echo "cat >conf$$subs.awk <<_ACEOF" &&
  18146. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  18147. echo "_ACEOF"
  18148. } >conf$$subs.sh ||
  18149. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  18150. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  18151. ac_delim='%!_!# '
  18152. for ac_last_try in false false false false false :; do
  18153. . ./conf$$subs.sh ||
  18154. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  18155. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  18156. if test $ac_delim_n = $ac_delim_num; then
  18157. break
  18158. elif $ac_last_try; then
  18159. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  18160. else
  18161. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  18162. fi
  18163. done
  18164. rm -f conf$$subs.sh
  18165. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  18166. cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  18167. _ACEOF
  18168. sed -n '
  18169. h
  18170. s/^/S["/; s/!.*/"]=/
  18171. p
  18172. g
  18173. s/^[^!]*!//
  18174. :repl
  18175. t repl
  18176. s/'"$ac_delim"'$//
  18177. t delim
  18178. :nl
  18179. h
  18180. s/\(.\{148\}\)..*/\1/
  18181. t more1
  18182. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  18183. p
  18184. n
  18185. b repl
  18186. :more1
  18187. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  18188. p
  18189. g
  18190. s/.\{148\}//
  18191. t nl
  18192. :delim
  18193. h
  18194. s/\(.\{148\}\)..*/\1/
  18195. t more2
  18196. s/["\\]/\\&/g; s/^/"/; s/$/"/
  18197. p
  18198. b
  18199. :more2
  18200. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  18201. p
  18202. g
  18203. s/.\{148\}//
  18204. t delim
  18205. ' <conf$$subs.awk | sed '
  18206. /^[^""]/{
  18207. N
  18208. s/\n//
  18209. }
  18210. ' >>$CONFIG_STATUS || ac_write_fail=1
  18211. rm -f conf$$subs.awk
  18212. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  18213. _ACAWK
  18214. cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  18215. for (key in S) S_is_set[key] = 1
  18216. FS = ""
  18217. }
  18218. {
  18219. line = $ 0
  18220. nfields = split(line, field, "@")
  18221. substed = 0
  18222. len = length(field[1])
  18223. for (i = 2; i < nfields; i++) {
  18224. key = field[i]
  18225. keylen = length(key)
  18226. if (S_is_set[key]) {
  18227. value = S[key]
  18228. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  18229. len += length(value) + length(field[++i])
  18230. substed = 1
  18231. } else
  18232. len += 1 + keylen
  18233. }
  18234. print line
  18235. }
  18236. _ACAWK
  18237. _ACEOF
  18238. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18239. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  18240. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  18241. else
  18242. cat
  18243. fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  18244. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  18245. _ACEOF
  18246. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  18247. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  18248. # trailing colons and then remove the whole line if VPATH becomes empty
  18249. # (actually we leave an empty line to preserve line numbers).
  18250. if test "x$srcdir" = x.; then
  18251. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  18252. h
  18253. s///
  18254. s/^/:/
  18255. s/[ ]*$/:/
  18256. s/:\$(srcdir):/:/g
  18257. s/:\${srcdir}:/:/g
  18258. s/:@srcdir@:/:/g
  18259. s/^:*//
  18260. s/:*$//
  18261. x
  18262. s/\(=[ ]*\).*/\1/
  18263. G
  18264. s/\n//
  18265. s/^[^=]*=[ ]*$//
  18266. }'
  18267. fi
  18268. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18269. fi # test -n "$CONFIG_FILES"
  18270. # Set up the scripts for CONFIG_HEADERS section.
  18271. # No need to generate them if there are no CONFIG_HEADERS.
  18272. # This happens for instance with `./config.status Makefile'.
  18273. if test -n "$CONFIG_HEADERS"; then
  18274. cat >"$tmp/defines.awk" <<\_ACAWK ||
  18275. BEGIN {
  18276. _ACEOF
  18277. # Transform confdefs.h into an awk script `defines.awk', embedded as
  18278. # here-document in config.status, that substitutes the proper values into
  18279. # config.h.in to produce config.h.
  18280. # Create a delimiter string that does not exist in confdefs.h, to ease
  18281. # handling of long lines.
  18282. ac_delim='%!_!# '
  18283. for ac_last_try in false false :; do
  18284. ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  18285. if test -z "$ac_t"; then
  18286. break
  18287. elif $ac_last_try; then
  18288. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  18289. else
  18290. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  18291. fi
  18292. done
  18293. # For the awk script, D is an array of macro values keyed by name,
  18294. # likewise P contains macro parameters if any. Preserve backslash
  18295. # newline sequences.
  18296. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  18297. sed -n '
  18298. s/.\{148\}/&'"$ac_delim"'/g
  18299. t rset
  18300. :rset
  18301. s/^[ ]*#[ ]*define[ ][ ]*/ /
  18302. t def
  18303. d
  18304. :def
  18305. s/\\$//
  18306. t bsnl
  18307. s/["\\]/\\&/g
  18308. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  18309. D["\1"]=" \3"/p
  18310. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  18311. d
  18312. :bsnl
  18313. s/["\\]/\\&/g
  18314. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  18315. D["\1"]=" \3\\\\\\n"\\/p
  18316. t cont
  18317. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  18318. t cont
  18319. d
  18320. :cont
  18321. n
  18322. s/.\{148\}/&'"$ac_delim"'/g
  18323. t clear
  18324. :clear
  18325. s/\\$//
  18326. t bsnlc
  18327. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  18328. d
  18329. :bsnlc
  18330. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  18331. b cont
  18332. ' <confdefs.h | sed '
  18333. s/'"$ac_delim"'/"\\\
  18334. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  18335. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  18336. for (key in D) D_is_set[key] = 1
  18337. FS = ""
  18338. }
  18339. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  18340. line = \$ 0
  18341. split(line, arg, " ")
  18342. if (arg[1] == "#") {
  18343. defundef = arg[2]
  18344. mac1 = arg[3]
  18345. } else {
  18346. defundef = substr(arg[1], 2)
  18347. mac1 = arg[2]
  18348. }
  18349. split(mac1, mac2, "(") #)
  18350. macro = mac2[1]
  18351. prefix = substr(line, 1, index(line, defundef) - 1)
  18352. if (D_is_set[macro]) {
  18353. # Preserve the white space surrounding the "#".
  18354. print prefix "define", macro P[macro] D[macro]
  18355. next
  18356. } else {
  18357. # Replace #undef with comments. This is necessary, for example,
  18358. # in the case of _POSIX_SOURCE, which is predefined and required
  18359. # on some systems where configure will not decide to define it.
  18360. if (defundef == "undef") {
  18361. print "/*", prefix defundef, macro, "*/"
  18362. next
  18363. }
  18364. }
  18365. }
  18366. { print }
  18367. _ACAWK
  18368. _ACEOF
  18369. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18370. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  18371. fi # test -n "$CONFIG_HEADERS"
  18372. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  18373. shift
  18374. for ac_tag
  18375. do
  18376. case $ac_tag in
  18377. :[FHLC]) ac_mode=$ac_tag; continue;;
  18378. esac
  18379. case $ac_mode$ac_tag in
  18380. :[FHL]*:*);;
  18381. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  18382. :[FH]-) ac_tag=-:-;;
  18383. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  18384. esac
  18385. ac_save_IFS=$IFS
  18386. IFS=:
  18387. set x $ac_tag
  18388. IFS=$ac_save_IFS
  18389. shift
  18390. ac_file=$1
  18391. shift
  18392. case $ac_mode in
  18393. :L) ac_source=$1;;
  18394. :[FH])
  18395. ac_file_inputs=
  18396. for ac_f
  18397. do
  18398. case $ac_f in
  18399. -) ac_f="$tmp/stdin";;
  18400. *) # Look for the file first in the build tree, then in the source tree
  18401. # (if the path is not absolute). The absolute path cannot be DOS-style,
  18402. # because $ac_f cannot contain `:'.
  18403. test -f "$ac_f" ||
  18404. case $ac_f in
  18405. [\\/$]*) false;;
  18406. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  18407. esac ||
  18408. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  18409. esac
  18410. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  18411. as_fn_append ac_file_inputs " '$ac_f'"
  18412. done
  18413. # Let's still pretend it is `configure' which instantiates (i.e., don't
  18414. # use $as_me), people would be surprised to read:
  18415. # /* config.h. Generated by config.status. */
  18416. configure_input='Generated from '`
  18417. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  18418. `' by configure.'
  18419. if test x"$ac_file" != x-; then
  18420. configure_input="$ac_file. $configure_input"
  18421. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  18422. $as_echo "$as_me: creating $ac_file" >&6;}
  18423. fi
  18424. # Neutralize special characters interpreted by sed in replacement strings.
  18425. case $configure_input in #(
  18426. *\&* | *\|* | *\\* )
  18427. ac_sed_conf_input=`$as_echo "$configure_input" |
  18428. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  18429. *) ac_sed_conf_input=$configure_input;;
  18430. esac
  18431. case $ac_tag in
  18432. *:-:* | *:-) cat >"$tmp/stdin" \
  18433. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  18434. esac
  18435. ;;
  18436. esac
  18437. ac_dir=`$as_dirname -- "$ac_file" ||
  18438. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  18439. X"$ac_file" : 'X\(//\)[^/]' \| \
  18440. X"$ac_file" : 'X\(//\)$' \| \
  18441. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  18442. $as_echo X"$ac_file" |
  18443. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  18444. s//\1/
  18445. q
  18446. }
  18447. /^X\(\/\/\)[^/].*/{
  18448. s//\1/
  18449. q
  18450. }
  18451. /^X\(\/\/\)$/{
  18452. s//\1/
  18453. q
  18454. }
  18455. /^X\(\/\).*/{
  18456. s//\1/
  18457. q
  18458. }
  18459. s/.*/./; q'`
  18460. as_dir="$ac_dir"; as_fn_mkdir_p
  18461. ac_builddir=.
  18462. case "$ac_dir" in
  18463. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  18464. *)
  18465. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  18466. # A ".." for each directory in $ac_dir_suffix.
  18467. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  18468. case $ac_top_builddir_sub in
  18469. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  18470. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  18471. esac ;;
  18472. esac
  18473. ac_abs_top_builddir=$ac_pwd
  18474. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  18475. # for backward compatibility:
  18476. ac_top_builddir=$ac_top_build_prefix
  18477. case $srcdir in
  18478. .) # We are building in place.
  18479. ac_srcdir=.
  18480. ac_top_srcdir=$ac_top_builddir_sub
  18481. ac_abs_top_srcdir=$ac_pwd ;;
  18482. [\\/]* | ?:[\\/]* ) # Absolute name.
  18483. ac_srcdir=$srcdir$ac_dir_suffix;
  18484. ac_top_srcdir=$srcdir
  18485. ac_abs_top_srcdir=$srcdir ;;
  18486. *) # Relative name.
  18487. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  18488. ac_top_srcdir=$ac_top_build_prefix$srcdir
  18489. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  18490. esac
  18491. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  18492. case $ac_mode in
  18493. :F)
  18494. #
  18495. # CONFIG_FILE
  18496. #
  18497. case $INSTALL in
  18498. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  18499. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  18500. esac
  18501. ac_MKDIR_P=$MKDIR_P
  18502. case $MKDIR_P in
  18503. [\\/$]* | ?:[\\/]* ) ;;
  18504. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  18505. esac
  18506. _ACEOF
  18507. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18508. # If the template does not know about datarootdir, expand it.
  18509. # FIXME: This hack should be removed a few years after 2.60.
  18510. ac_datarootdir_hack=; ac_datarootdir_seen=
  18511. ac_sed_dataroot='
  18512. /datarootdir/ {
  18513. p
  18514. q
  18515. }
  18516. /@datadir@/p
  18517. /@docdir@/p
  18518. /@infodir@/p
  18519. /@localedir@/p
  18520. /@mandir@/p'
  18521. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  18522. *datarootdir*) ac_datarootdir_seen=yes;;
  18523. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  18524. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  18525. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  18526. _ACEOF
  18527. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  18528. ac_datarootdir_hack='
  18529. s&@datadir@&$datadir&g
  18530. s&@docdir@&$docdir&g
  18531. s&@infodir@&$infodir&g
  18532. s&@localedir@&$localedir&g
  18533. s&@mandir@&$mandir&g
  18534. s&\\\${datarootdir}&$datarootdir&g' ;;
  18535. esac
  18536. _ACEOF
  18537. # Neutralize VPATH when `$srcdir' = `.'.
  18538. # Shell code in configure.ac might set extrasub.
  18539. # FIXME: do we really want to maintain this feature?
  18540. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  18541. ac_sed_extra="$ac_vpsub
  18542. $extrasub
  18543. _ACEOF
  18544. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18545. :t
  18546. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  18547. s|@configure_input@|$ac_sed_conf_input|;t t
  18548. s&@top_builddir@&$ac_top_builddir_sub&;t t
  18549. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  18550. s&@srcdir@&$ac_srcdir&;t t
  18551. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  18552. s&@top_srcdir@&$ac_top_srcdir&;t t
  18553. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  18554. s&@builddir@&$ac_builddir&;t t
  18555. s&@abs_builddir@&$ac_abs_builddir&;t t
  18556. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  18557. s&@INSTALL@&$ac_INSTALL&;t t
  18558. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  18559. $ac_datarootdir_hack
  18560. "
  18561. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  18562. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  18563. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  18564. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  18565. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  18566. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  18567. which seems to be undefined. Please make sure it is defined" >&5
  18568. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  18569. which seems to be undefined. Please make sure it is defined" >&2;}
  18570. rm -f "$tmp/stdin"
  18571. case $ac_file in
  18572. -) cat "$tmp/out" && rm -f "$tmp/out";;
  18573. *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  18574. esac \
  18575. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  18576. ;;
  18577. :H)
  18578. #
  18579. # CONFIG_HEADER
  18580. #
  18581. if test x"$ac_file" != x-; then
  18582. {
  18583. $as_echo "/* $configure_input */" \
  18584. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
  18585. } >"$tmp/config.h" \
  18586. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  18587. if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
  18588. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  18589. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  18590. else
  18591. rm -f "$ac_file"
  18592. mv "$tmp/config.h" "$ac_file" \
  18593. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  18594. fi
  18595. else
  18596. $as_echo "/* $configure_input */" \
  18597. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
  18598. || as_fn_error $? "could not create -" "$LINENO" 5
  18599. fi
  18600. # Compute "$ac_file"'s index in $config_headers.
  18601. _am_arg="$ac_file"
  18602. _am_stamp_count=1
  18603. for _am_header in $config_headers :; do
  18604. case $_am_header in
  18605. $_am_arg | $_am_arg:* )
  18606. break ;;
  18607. * )
  18608. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  18609. esac
  18610. done
  18611. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  18612. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  18613. X"$_am_arg" : 'X\(//\)[^/]' \| \
  18614. X"$_am_arg" : 'X\(//\)$' \| \
  18615. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  18616. $as_echo X"$_am_arg" |
  18617. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  18618. s//\1/
  18619. q
  18620. }
  18621. /^X\(\/\/\)[^/].*/{
  18622. s//\1/
  18623. q
  18624. }
  18625. /^X\(\/\/\)$/{
  18626. s//\1/
  18627. q
  18628. }
  18629. /^X\(\/\).*/{
  18630. s//\1/
  18631. q
  18632. }
  18633. s/.*/./; q'`/stamp-h$_am_stamp_count
  18634. ;;
  18635. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  18636. $as_echo "$as_me: executing $ac_file commands" >&6;}
  18637. ;;
  18638. esac
  18639. case $ac_file$ac_mode in
  18640. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  18641. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  18642. # are listed without --file. Let's play safe and only enable the eval
  18643. # if we detect the quoting.
  18644. case $CONFIG_FILES in
  18645. *\'*) eval set x "$CONFIG_FILES" ;;
  18646. *) set x $CONFIG_FILES ;;
  18647. esac
  18648. shift
  18649. for mf
  18650. do
  18651. # Strip MF so we end up with the name of the file.
  18652. mf=`echo "$mf" | sed -e 's/:.*$//'`
  18653. # Check whether this is an Automake generated Makefile or not.
  18654. # We used to match only the files named `Makefile.in', but
  18655. # some people rename them; so instead we look at the file content.
  18656. # Grep'ing the first line is not enough: some people post-process
  18657. # each Makefile.in and add a new line on top of each file to say so.
  18658. # Grep'ing the whole file is not good either: AIX grep has a line
  18659. # limit of 2048, but all sed's we know have understand at least 4000.
  18660. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  18661. dirpart=`$as_dirname -- "$mf" ||
  18662. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  18663. X"$mf" : 'X\(//\)[^/]' \| \
  18664. X"$mf" : 'X\(//\)$' \| \
  18665. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  18666. $as_echo X"$mf" |
  18667. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  18668. s//\1/
  18669. q
  18670. }
  18671. /^X\(\/\/\)[^/].*/{
  18672. s//\1/
  18673. q
  18674. }
  18675. /^X\(\/\/\)$/{
  18676. s//\1/
  18677. q
  18678. }
  18679. /^X\(\/\).*/{
  18680. s//\1/
  18681. q
  18682. }
  18683. s/.*/./; q'`
  18684. else
  18685. continue
  18686. fi
  18687. # Extract the definition of DEPDIR, am__include, and am__quote
  18688. # from the Makefile without running `make'.
  18689. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  18690. test -z "$DEPDIR" && continue
  18691. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  18692. test -z "am__include" && continue
  18693. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  18694. # When using ansi2knr, U may be empty or an underscore; expand it
  18695. U=`sed -n 's/^U = //p' < "$mf"`
  18696. # Find all dependency output files, they are included files with
  18697. # $(DEPDIR) in their names. We invoke sed twice because it is the
  18698. # simplest approach to changing $(DEPDIR) to its actual value in the
  18699. # expansion.
  18700. for file in `sed -n "
  18701. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  18702. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  18703. # Make sure the directory exists.
  18704. test -f "$dirpart/$file" && continue
  18705. fdir=`$as_dirname -- "$file" ||
  18706. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  18707. X"$file" : 'X\(//\)[^/]' \| \
  18708. X"$file" : 'X\(//\)$' \| \
  18709. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  18710. $as_echo X"$file" |
  18711. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  18712. s//\1/
  18713. q
  18714. }
  18715. /^X\(\/\/\)[^/].*/{
  18716. s//\1/
  18717. q
  18718. }
  18719. /^X\(\/\/\)$/{
  18720. s//\1/
  18721. q
  18722. }
  18723. /^X\(\/\).*/{
  18724. s//\1/
  18725. q
  18726. }
  18727. s/.*/./; q'`
  18728. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  18729. # echo "creating $dirpart/$file"
  18730. echo '# dummy' > "$dirpart/$file"
  18731. done
  18732. done
  18733. }
  18734. ;;
  18735. "libtool":C)
  18736. # See if we are running on zsh, and set the options which allow our
  18737. # commands through without removal of \ escapes.
  18738. if test -n "${ZSH_VERSION+set}" ; then
  18739. setopt NO_GLOB_SUBST
  18740. fi
  18741. cfgfile="${ofile}T"
  18742. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  18743. $RM "$cfgfile"
  18744. cat <<_LT_EOF >> "$cfgfile"
  18745. #! $SHELL
  18746. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  18747. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  18748. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  18749. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  18750. #
  18751. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  18752. # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
  18753. # Inc.
  18754. # Written by Gordon Matzigkeit, 1996
  18755. #
  18756. # This file is part of GNU Libtool.
  18757. #
  18758. # GNU Libtool is free software; you can redistribute it and/or
  18759. # modify it under the terms of the GNU General Public License as
  18760. # published by the Free Software Foundation; either version 2 of
  18761. # the License, or (at your option) any later version.
  18762. #
  18763. # As a special exception to the GNU General Public License,
  18764. # if you distribute this file as part of a program or library that
  18765. # is built using GNU Libtool, you may include this file under the
  18766. # same distribution terms that you use for the rest of that program.
  18767. #
  18768. # GNU Libtool is distributed in the hope that it will be useful,
  18769. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  18770. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  18771. # GNU General Public License for more details.
  18772. #
  18773. # You should have received a copy of the GNU General Public License
  18774. # along with GNU Libtool; see the file COPYING. If not, a copy
  18775. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  18776. # obtained by writing to the Free Software Foundation, Inc.,
  18777. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  18778. # The names of the tagged configurations supported by this script.
  18779. available_tags="CXX "
  18780. # ### BEGIN LIBTOOL CONFIG
  18781. # Whether or not to build static libraries.
  18782. build_old_libs=$enable_static
  18783. # Which release of libtool.m4 was used?
  18784. macro_version=$macro_version
  18785. macro_revision=$macro_revision
  18786. # Whether or not to build shared libraries.
  18787. build_libtool_libs=$enable_shared
  18788. # What type of objects to build.
  18789. pic_mode=$pic_mode
  18790. # Whether or not to optimize for fast installation.
  18791. fast_install=$enable_fast_install
  18792. # Shell to use when invoking shell scripts.
  18793. SHELL=$lt_SHELL
  18794. # An echo program that protects backslashes.
  18795. ECHO=$lt_ECHO
  18796. # The host system.
  18797. host_alias=$host_alias
  18798. host=$host
  18799. host_os=$host_os
  18800. # The build system.
  18801. build_alias=$build_alias
  18802. build=$build
  18803. build_os=$build_os
  18804. # A sed program that does not truncate output.
  18805. SED=$lt_SED
  18806. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  18807. Xsed="\$SED -e 1s/^X//"
  18808. # A grep program that handles long lines.
  18809. GREP=$lt_GREP
  18810. # An ERE matcher.
  18811. EGREP=$lt_EGREP
  18812. # A literal string matcher.
  18813. FGREP=$lt_FGREP
  18814. # A BSD- or MS-compatible name lister.
  18815. NM=$lt_NM
  18816. # Whether we need soft or hard links.
  18817. LN_S=$lt_LN_S
  18818. # What is the maximum length of a command?
  18819. max_cmd_len=$max_cmd_len
  18820. # Object file suffix (normally "o").
  18821. objext=$ac_objext
  18822. # Executable file suffix (normally "").
  18823. exeext=$exeext
  18824. # whether the shell understands "unset".
  18825. lt_unset=$lt_unset
  18826. # turn spaces into newlines.
  18827. SP2NL=$lt_lt_SP2NL
  18828. # turn newlines into spaces.
  18829. NL2SP=$lt_lt_NL2SP
  18830. # An object symbol dumper.
  18831. OBJDUMP=$lt_OBJDUMP
  18832. # Method to check whether dependent libraries are shared objects.
  18833. deplibs_check_method=$lt_deplibs_check_method
  18834. # Command to use when deplibs_check_method == "file_magic".
  18835. file_magic_cmd=$lt_file_magic_cmd
  18836. # The archiver.
  18837. AR=$lt_AR
  18838. AR_FLAGS=$lt_AR_FLAGS
  18839. # A symbol stripping program.
  18840. STRIP=$lt_STRIP
  18841. # Commands used to install an old-style archive.
  18842. RANLIB=$lt_RANLIB
  18843. old_postinstall_cmds=$lt_old_postinstall_cmds
  18844. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  18845. # Whether to use a lock for old archive extraction.
  18846. lock_old_archive_extraction=$lock_old_archive_extraction
  18847. # A C compiler.
  18848. LTCC=$lt_CC
  18849. # LTCC compiler flags.
  18850. LTCFLAGS=$lt_CFLAGS
  18851. # Take the output of nm and produce a listing of raw symbols and C names.
  18852. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  18853. # Transform the output of nm in a proper C declaration.
  18854. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  18855. # Transform the output of nm in a C name address pair.
  18856. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  18857. # Transform the output of nm in a C name address pair when lib prefix is needed.
  18858. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  18859. # The name of the directory that contains temporary libtool files.
  18860. objdir=$objdir
  18861. # Used to examine libraries when file_magic_cmd begins with "file".
  18862. MAGIC_CMD=$MAGIC_CMD
  18863. # Must we lock files when doing compilation?
  18864. need_locks=$lt_need_locks
  18865. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  18866. DSYMUTIL=$lt_DSYMUTIL
  18867. # Tool to change global to local symbols on Mac OS X.
  18868. NMEDIT=$lt_NMEDIT
  18869. # Tool to manipulate fat objects and archives on Mac OS X.
  18870. LIPO=$lt_LIPO
  18871. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  18872. OTOOL=$lt_OTOOL
  18873. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  18874. OTOOL64=$lt_OTOOL64
  18875. # Old archive suffix (normally "a").
  18876. libext=$libext
  18877. # Shared library suffix (normally ".so").
  18878. shrext_cmds=$lt_shrext_cmds
  18879. # The commands to extract the exported symbol list from a shared archive.
  18880. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  18881. # Variables whose values should be saved in libtool wrapper scripts and
  18882. # restored at link time.
  18883. variables_saved_for_relink=$lt_variables_saved_for_relink
  18884. # Do we need the "lib" prefix for modules?
  18885. need_lib_prefix=$need_lib_prefix
  18886. # Do we need a version for libraries?
  18887. need_version=$need_version
  18888. # Library versioning type.
  18889. version_type=$version_type
  18890. # Shared library runtime path variable.
  18891. runpath_var=$runpath_var
  18892. # Shared library path variable.
  18893. shlibpath_var=$shlibpath_var
  18894. # Is shlibpath searched before the hard-coded library search path?
  18895. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  18896. # Format of library name prefix.
  18897. libname_spec=$lt_libname_spec
  18898. # List of archive names. First name is the real one, the rest are links.
  18899. # The last name is the one that the linker finds with -lNAME
  18900. library_names_spec=$lt_library_names_spec
  18901. # The coded name of the library, if different from the real name.
  18902. soname_spec=$lt_soname_spec
  18903. # Permission mode override for installation of shared libraries.
  18904. install_override_mode=$lt_install_override_mode
  18905. # Command to use after installation of a shared archive.
  18906. postinstall_cmds=$lt_postinstall_cmds
  18907. # Command to use after uninstallation of a shared archive.
  18908. postuninstall_cmds=$lt_postuninstall_cmds
  18909. # Commands used to finish a libtool library installation in a directory.
  18910. finish_cmds=$lt_finish_cmds
  18911. # As "finish_cmds", except a single script fragment to be evaled but
  18912. # not shown.
  18913. finish_eval=$lt_finish_eval
  18914. # Whether we should hardcode library paths into libraries.
  18915. hardcode_into_libs=$hardcode_into_libs
  18916. # Compile-time system search path for libraries.
  18917. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  18918. # Run-time system search path for libraries.
  18919. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  18920. # Whether dlopen is supported.
  18921. dlopen_support=$enable_dlopen
  18922. # Whether dlopen of programs is supported.
  18923. dlopen_self=$enable_dlopen_self
  18924. # Whether dlopen of statically linked programs is supported.
  18925. dlopen_self_static=$enable_dlopen_self_static
  18926. # Commands to strip libraries.
  18927. old_striplib=$lt_old_striplib
  18928. striplib=$lt_striplib
  18929. # The linker used to build libraries.
  18930. LD=$lt_LD
  18931. # How to create reloadable object files.
  18932. reload_flag=$lt_reload_flag
  18933. reload_cmds=$lt_reload_cmds
  18934. # Commands used to build an old-style archive.
  18935. old_archive_cmds=$lt_old_archive_cmds
  18936. # A language specific compiler.
  18937. CC=$lt_compiler
  18938. # Is the compiler the GNU compiler?
  18939. with_gcc=$GCC
  18940. # Compiler flag to turn off builtin functions.
  18941. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  18942. # How to pass a linker flag through the compiler.
  18943. wl=$lt_lt_prog_compiler_wl
  18944. # Additional compiler flags for building library objects.
  18945. pic_flag=$lt_lt_prog_compiler_pic
  18946. # Compiler flag to prevent dynamic linking.
  18947. link_static_flag=$lt_lt_prog_compiler_static
  18948. # Does compiler simultaneously support -c and -o options?
  18949. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  18950. # Whether or not to add -lc for building shared libraries.
  18951. build_libtool_need_lc=$archive_cmds_need_lc
  18952. # Whether or not to disallow shared libs when runtime libs are static.
  18953. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  18954. # Compiler flag to allow reflexive dlopens.
  18955. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  18956. # Compiler flag to generate shared objects directly from archives.
  18957. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  18958. # Whether the compiler copes with passing no objects directly.
  18959. compiler_needs_object=$lt_compiler_needs_object
  18960. # Create an old-style archive from a shared archive.
  18961. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  18962. # Create a temporary old-style archive to link instead of a shared archive.
  18963. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  18964. # Commands used to build a shared archive.
  18965. archive_cmds=$lt_archive_cmds
  18966. archive_expsym_cmds=$lt_archive_expsym_cmds
  18967. # Commands used to build a loadable module if different from building
  18968. # a shared archive.
  18969. module_cmds=$lt_module_cmds
  18970. module_expsym_cmds=$lt_module_expsym_cmds
  18971. # Whether we are building with GNU ld or not.
  18972. with_gnu_ld=$lt_with_gnu_ld
  18973. # Flag that allows shared libraries with undefined symbols to be built.
  18974. allow_undefined_flag=$lt_allow_undefined_flag
  18975. # Flag that enforces no undefined symbols.
  18976. no_undefined_flag=$lt_no_undefined_flag
  18977. # Flag to hardcode \$libdir into a binary during linking.
  18978. # This must work even if \$libdir does not exist
  18979. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  18980. # If ld is used when linking, flag to hardcode \$libdir into a binary
  18981. # during linking. This must work even if \$libdir does not exist.
  18982. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  18983. # Whether we need a single "-rpath" flag with a separated argument.
  18984. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  18985. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  18986. # DIR into the resulting binary.
  18987. hardcode_direct=$hardcode_direct
  18988. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  18989. # DIR into the resulting binary and the resulting library dependency is
  18990. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  18991. # library is relocated.
  18992. hardcode_direct_absolute=$hardcode_direct_absolute
  18993. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  18994. # into the resulting binary.
  18995. hardcode_minus_L=$hardcode_minus_L
  18996. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  18997. # into the resulting binary.
  18998. hardcode_shlibpath_var=$hardcode_shlibpath_var
  18999. # Set to "yes" if building a shared library automatically hardcodes DIR
  19000. # into the library and all subsequent libraries and executables linked
  19001. # against it.
  19002. hardcode_automatic=$hardcode_automatic
  19003. # Set to yes if linker adds runtime paths of dependent libraries
  19004. # to runtime path list.
  19005. inherit_rpath=$inherit_rpath
  19006. # Whether libtool must link a program against all its dependency libraries.
  19007. link_all_deplibs=$link_all_deplibs
  19008. # Fix the shell variable \$srcfile for the compiler.
  19009. fix_srcfile_path=$lt_fix_srcfile_path
  19010. # Set to "yes" if exported symbols are required.
  19011. always_export_symbols=$always_export_symbols
  19012. # The commands to list exported symbols.
  19013. export_symbols_cmds=$lt_export_symbols_cmds
  19014. # Symbols that should not be listed in the preloaded symbols.
  19015. exclude_expsyms=$lt_exclude_expsyms
  19016. # Symbols that must always be exported.
  19017. include_expsyms=$lt_include_expsyms
  19018. # Commands necessary for linking programs (against libraries) with templates.
  19019. prelink_cmds=$lt_prelink_cmds
  19020. # Specify filename containing input files.
  19021. file_list_spec=$lt_file_list_spec
  19022. # How to hardcode a shared library path into an executable.
  19023. hardcode_action=$hardcode_action
  19024. # The directories searched by this compiler when creating a shared library.
  19025. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  19026. # Dependencies to place before and after the objects being linked to
  19027. # create a shared library.
  19028. predep_objects=$lt_predep_objects
  19029. postdep_objects=$lt_postdep_objects
  19030. predeps=$lt_predeps
  19031. postdeps=$lt_postdeps
  19032. # The library search path used internally by the compiler when linking
  19033. # a shared library.
  19034. compiler_lib_search_path=$lt_compiler_lib_search_path
  19035. # ### END LIBTOOL CONFIG
  19036. _LT_EOF
  19037. case $host_os in
  19038. aix3*)
  19039. cat <<\_LT_EOF >> "$cfgfile"
  19040. # AIX sometimes has problems with the GCC collect2 program. For some
  19041. # reason, if we set the COLLECT_NAMES environment variable, the problems
  19042. # vanish in a puff of smoke.
  19043. if test "X${COLLECT_NAMES+set}" != Xset; then
  19044. COLLECT_NAMES=
  19045. export COLLECT_NAMES
  19046. fi
  19047. _LT_EOF
  19048. ;;
  19049. esac
  19050. ltmain="$ac_aux_dir/ltmain.sh"
  19051. # We use sed instead of cat because bash on DJGPP gets confused if
  19052. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  19053. # text mode, it properly converts lines to CR/LF. This bash problem
  19054. # is reportedly fixed, but why not run on old versions too?
  19055. sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  19056. || (rm -f "$cfgfile"; exit 1)
  19057. case $xsi_shell in
  19058. yes)
  19059. cat << \_LT_EOF >> "$cfgfile"
  19060. # func_dirname file append nondir_replacement
  19061. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  19062. # otherwise set result to NONDIR_REPLACEMENT.
  19063. func_dirname ()
  19064. {
  19065. case ${1} in
  19066. */*) func_dirname_result="${1%/*}${2}" ;;
  19067. * ) func_dirname_result="${3}" ;;
  19068. esac
  19069. }
  19070. # func_basename file
  19071. func_basename ()
  19072. {
  19073. func_basename_result="${1##*/}"
  19074. }
  19075. # func_dirname_and_basename file append nondir_replacement
  19076. # perform func_basename and func_dirname in a single function
  19077. # call:
  19078. # dirname: Compute the dirname of FILE. If nonempty,
  19079. # add APPEND to the result, otherwise set result
  19080. # to NONDIR_REPLACEMENT.
  19081. # value returned in "$func_dirname_result"
  19082. # basename: Compute filename of FILE.
  19083. # value retuned in "$func_basename_result"
  19084. # Implementation must be kept synchronized with func_dirname
  19085. # and func_basename. For efficiency, we do not delegate to
  19086. # those functions but instead duplicate the functionality here.
  19087. func_dirname_and_basename ()
  19088. {
  19089. case ${1} in
  19090. */*) func_dirname_result="${1%/*}${2}" ;;
  19091. * ) func_dirname_result="${3}" ;;
  19092. esac
  19093. func_basename_result="${1##*/}"
  19094. }
  19095. # func_stripname prefix suffix name
  19096. # strip PREFIX and SUFFIX off of NAME.
  19097. # PREFIX and SUFFIX must not contain globbing or regex special
  19098. # characters, hashes, percent signs, but SUFFIX may contain a leading
  19099. # dot (in which case that matches only a dot).
  19100. func_stripname ()
  19101. {
  19102. # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  19103. # positional parameters, so assign one to ordinary parameter first.
  19104. func_stripname_result=${3}
  19105. func_stripname_result=${func_stripname_result#"${1}"}
  19106. func_stripname_result=${func_stripname_result%"${2}"}
  19107. }
  19108. # func_opt_split
  19109. func_opt_split ()
  19110. {
  19111. func_opt_split_opt=${1%%=*}
  19112. func_opt_split_arg=${1#*=}
  19113. }
  19114. # func_lo2o object
  19115. func_lo2o ()
  19116. {
  19117. case ${1} in
  19118. *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  19119. *) func_lo2o_result=${1} ;;
  19120. esac
  19121. }
  19122. # func_xform libobj-or-source
  19123. func_xform ()
  19124. {
  19125. func_xform_result=${1%.*}.lo
  19126. }
  19127. # func_arith arithmetic-term...
  19128. func_arith ()
  19129. {
  19130. func_arith_result=$(( $* ))
  19131. }
  19132. # func_len string
  19133. # STRING may not start with a hyphen.
  19134. func_len ()
  19135. {
  19136. func_len_result=${#1}
  19137. }
  19138. _LT_EOF
  19139. ;;
  19140. *) # Bourne compatible functions.
  19141. cat << \_LT_EOF >> "$cfgfile"
  19142. # func_dirname file append nondir_replacement
  19143. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  19144. # otherwise set result to NONDIR_REPLACEMENT.
  19145. func_dirname ()
  19146. {
  19147. # Extract subdirectory from the argument.
  19148. func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
  19149. if test "X$func_dirname_result" = "X${1}"; then
  19150. func_dirname_result="${3}"
  19151. else
  19152. func_dirname_result="$func_dirname_result${2}"
  19153. fi
  19154. }
  19155. # func_basename file
  19156. func_basename ()
  19157. {
  19158. func_basename_result=`$ECHO "${1}" | $SED "$basename"`
  19159. }
  19160. # func_stripname prefix suffix name
  19161. # strip PREFIX and SUFFIX off of NAME.
  19162. # PREFIX and SUFFIX must not contain globbing or regex special
  19163. # characters, hashes, percent signs, but SUFFIX may contain a leading
  19164. # dot (in which case that matches only a dot).
  19165. # func_strip_suffix prefix name
  19166. func_stripname ()
  19167. {
  19168. case ${2} in
  19169. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  19170. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  19171. esac
  19172. }
  19173. # sed scripts:
  19174. my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
  19175. my_sed_long_arg='1s/^-[^=]*=//'
  19176. # func_opt_split
  19177. func_opt_split ()
  19178. {
  19179. func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
  19180. func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
  19181. }
  19182. # func_lo2o object
  19183. func_lo2o ()
  19184. {
  19185. func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
  19186. }
  19187. # func_xform libobj-or-source
  19188. func_xform ()
  19189. {
  19190. func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
  19191. }
  19192. # func_arith arithmetic-term...
  19193. func_arith ()
  19194. {
  19195. func_arith_result=`expr "$@"`
  19196. }
  19197. # func_len string
  19198. # STRING may not start with a hyphen.
  19199. func_len ()
  19200. {
  19201. func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
  19202. }
  19203. _LT_EOF
  19204. esac
  19205. case $lt_shell_append in
  19206. yes)
  19207. cat << \_LT_EOF >> "$cfgfile"
  19208. # func_append var value
  19209. # Append VALUE to the end of shell variable VAR.
  19210. func_append ()
  19211. {
  19212. eval "$1+=\$2"
  19213. }
  19214. _LT_EOF
  19215. ;;
  19216. *)
  19217. cat << \_LT_EOF >> "$cfgfile"
  19218. # func_append var value
  19219. # Append VALUE to the end of shell variable VAR.
  19220. func_append ()
  19221. {
  19222. eval "$1=\$$1\$2"
  19223. }
  19224. _LT_EOF
  19225. ;;
  19226. esac
  19227. sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  19228. || (rm -f "$cfgfile"; exit 1)
  19229. mv -f "$cfgfile" "$ofile" ||
  19230. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  19231. chmod +x "$ofile"
  19232. cat <<_LT_EOF >> "$ofile"
  19233. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  19234. # The linker used to build libraries.
  19235. LD=$lt_LD_CXX
  19236. # How to create reloadable object files.
  19237. reload_flag=$lt_reload_flag_CXX
  19238. reload_cmds=$lt_reload_cmds_CXX
  19239. # Commands used to build an old-style archive.
  19240. old_archive_cmds=$lt_old_archive_cmds_CXX
  19241. # A language specific compiler.
  19242. CC=$lt_compiler_CXX
  19243. # Is the compiler the GNU compiler?
  19244. with_gcc=$GCC_CXX
  19245. # Compiler flag to turn off builtin functions.
  19246. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  19247. # How to pass a linker flag through the compiler.
  19248. wl=$lt_lt_prog_compiler_wl_CXX
  19249. # Additional compiler flags for building library objects.
  19250. pic_flag=$lt_lt_prog_compiler_pic_CXX
  19251. # Compiler flag to prevent dynamic linking.
  19252. link_static_flag=$lt_lt_prog_compiler_static_CXX
  19253. # Does compiler simultaneously support -c and -o options?
  19254. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  19255. # Whether or not to add -lc for building shared libraries.
  19256. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  19257. # Whether or not to disallow shared libs when runtime libs are static.
  19258. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  19259. # Compiler flag to allow reflexive dlopens.
  19260. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  19261. # Compiler flag to generate shared objects directly from archives.
  19262. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  19263. # Whether the compiler copes with passing no objects directly.
  19264. compiler_needs_object=$lt_compiler_needs_object_CXX
  19265. # Create an old-style archive from a shared archive.
  19266. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  19267. # Create a temporary old-style archive to link instead of a shared archive.
  19268. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  19269. # Commands used to build a shared archive.
  19270. archive_cmds=$lt_archive_cmds_CXX
  19271. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  19272. # Commands used to build a loadable module if different from building
  19273. # a shared archive.
  19274. module_cmds=$lt_module_cmds_CXX
  19275. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  19276. # Whether we are building with GNU ld or not.
  19277. with_gnu_ld=$lt_with_gnu_ld_CXX
  19278. # Flag that allows shared libraries with undefined symbols to be built.
  19279. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  19280. # Flag that enforces no undefined symbols.
  19281. no_undefined_flag=$lt_no_undefined_flag_CXX
  19282. # Flag to hardcode \$libdir into a binary during linking.
  19283. # This must work even if \$libdir does not exist
  19284. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  19285. # If ld is used when linking, flag to hardcode \$libdir into a binary
  19286. # during linking. This must work even if \$libdir does not exist.
  19287. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
  19288. # Whether we need a single "-rpath" flag with a separated argument.
  19289. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  19290. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  19291. # DIR into the resulting binary.
  19292. hardcode_direct=$hardcode_direct_CXX
  19293. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  19294. # DIR into the resulting binary and the resulting library dependency is
  19295. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  19296. # library is relocated.
  19297. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  19298. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  19299. # into the resulting binary.
  19300. hardcode_minus_L=$hardcode_minus_L_CXX
  19301. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  19302. # into the resulting binary.
  19303. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  19304. # Set to "yes" if building a shared library automatically hardcodes DIR
  19305. # into the library and all subsequent libraries and executables linked
  19306. # against it.
  19307. hardcode_automatic=$hardcode_automatic_CXX
  19308. # Set to yes if linker adds runtime paths of dependent libraries
  19309. # to runtime path list.
  19310. inherit_rpath=$inherit_rpath_CXX
  19311. # Whether libtool must link a program against all its dependency libraries.
  19312. link_all_deplibs=$link_all_deplibs_CXX
  19313. # Fix the shell variable \$srcfile for the compiler.
  19314. fix_srcfile_path=$lt_fix_srcfile_path_CXX
  19315. # Set to "yes" if exported symbols are required.
  19316. always_export_symbols=$always_export_symbols_CXX
  19317. # The commands to list exported symbols.
  19318. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  19319. # Symbols that should not be listed in the preloaded symbols.
  19320. exclude_expsyms=$lt_exclude_expsyms_CXX
  19321. # Symbols that must always be exported.
  19322. include_expsyms=$lt_include_expsyms_CXX
  19323. # Commands necessary for linking programs (against libraries) with templates.
  19324. prelink_cmds=$lt_prelink_cmds_CXX
  19325. # Specify filename containing input files.
  19326. file_list_spec=$lt_file_list_spec_CXX
  19327. # How to hardcode a shared library path into an executable.
  19328. hardcode_action=$hardcode_action_CXX
  19329. # The directories searched by this compiler when creating a shared library.
  19330. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  19331. # Dependencies to place before and after the objects being linked to
  19332. # create a shared library.
  19333. predep_objects=$lt_predep_objects_CXX
  19334. postdep_objects=$lt_postdep_objects_CXX
  19335. predeps=$lt_predeps_CXX
  19336. postdeps=$lt_postdeps_CXX
  19337. # The library search path used internally by the compiler when linking
  19338. # a shared library.
  19339. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  19340. # ### END LIBTOOL TAG CONFIG: CXX
  19341. _LT_EOF
  19342. ;;
  19343. esac
  19344. done # for ac_tag
  19345. as_fn_exit 0
  19346. _ACEOF
  19347. ac_clean_files=$ac_clean_files_save
  19348. test $ac_write_fail = 0 ||
  19349. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  19350. # configure is writing to config.log, and then calls config.status.
  19351. # config.status does its own redirection, appending to config.log.
  19352. # Unfortunately, on DOS this fails, as config.log is still kept open
  19353. # by configure, so config.status won't be able to write to it; its
  19354. # output is simply discarded. So we exec the FD to /dev/null,
  19355. # effectively closing config.log, so it can be properly (re)opened and
  19356. # appended to by config.status. When coming back to configure, we
  19357. # need to make the FD available again.
  19358. if test "$no_create" != yes; then
  19359. ac_cs_success=:
  19360. ac_config_status_args=
  19361. test "$silent" = yes &&
  19362. ac_config_status_args="$ac_config_status_args --quiet"
  19363. exec 5>/dev/null
  19364. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  19365. exec 5>>config.log
  19366. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  19367. # would make configure fail if this is the last instruction.
  19368. $ac_cs_success || as_fn_exit 1
  19369. fi
  19370. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  19371. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  19372. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  19373. fi