configure 703 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.68 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. as_myself=
  88. case $0 in #((
  89. *[\\/]* ) as_myself=$0 ;;
  90. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  91. for as_dir in $PATH
  92. do
  93. IFS=$as_save_IFS
  94. test -z "$as_dir" && as_dir=.
  95. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  96. done
  97. IFS=$as_save_IFS
  98. ;;
  99. esac
  100. # We did not find ourselves, most probably we were run as `sh COMMAND'
  101. # in which case we are not to be found in the path.
  102. if test "x$as_myself" = x; then
  103. as_myself=$0
  104. fi
  105. if test ! -f "$as_myself"; then
  106. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  107. exit 1
  108. fi
  109. # Unset variables that we do not need and which cause bugs (e.g. in
  110. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  111. # suppresses any "Segmentation fault" message there. '((' could
  112. # trigger a bug in pdksh 5.2.14.
  113. for as_var in BASH_ENV ENV MAIL MAILPATH
  114. do eval test x\${$as_var+set} = xset \
  115. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  116. done
  117. PS1='$ '
  118. PS2='> '
  119. PS4='+ '
  120. # NLS nuisances.
  121. LC_ALL=C
  122. export LC_ALL
  123. LANGUAGE=C
  124. export LANGUAGE
  125. # CDPATH.
  126. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  127. if test "x$CONFIG_SHELL" = x; then
  128. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  129. emulate sh
  130. NULLCMD=:
  131. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  132. # is contrary to our usage. Disable this feature.
  133. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  134. setopt NO_GLOB_SUBST
  135. else
  136. case \`(set -o) 2>/dev/null\` in #(
  137. *posix*) :
  138. set -o posix ;; #(
  139. *) :
  140. ;;
  141. esac
  142. fi
  143. "
  144. as_required="as_fn_return () { (exit \$1); }
  145. as_fn_success () { as_fn_return 0; }
  146. as_fn_failure () { as_fn_return 1; }
  147. as_fn_ret_success () { return 0; }
  148. as_fn_ret_failure () { return 1; }
  149. exitcode=0
  150. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  151. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  152. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  153. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  154. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  155. else
  156. exitcode=1; echo positional parameters were not saved.
  157. fi
  158. test x\$exitcode = x0 || exit 1"
  159. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  160. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  161. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  162. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  163. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  164. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  165. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  166. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  167. PATH=/empty FPATH=/empty; export PATH FPATH
  168. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  169. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
  170. test \$(( 1 + 1 )) = 2 || exit 1"
  171. if (eval "$as_required") 2>/dev/null; then :
  172. as_have_required=yes
  173. else
  174. as_have_required=no
  175. fi
  176. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  177. else
  178. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  179. as_found=false
  180. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  181. do
  182. IFS=$as_save_IFS
  183. test -z "$as_dir" && as_dir=.
  184. as_found=:
  185. case $as_dir in #(
  186. /*)
  187. for as_base in sh bash ksh sh5; do
  188. # Try only shells that exist, to save several forks.
  189. as_shell=$as_dir/$as_base
  190. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  191. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  192. CONFIG_SHELL=$as_shell as_have_required=yes
  193. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  194. break 2
  195. fi
  196. fi
  197. done;;
  198. esac
  199. as_found=false
  200. done
  201. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  202. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  203. CONFIG_SHELL=$SHELL as_have_required=yes
  204. fi; }
  205. IFS=$as_save_IFS
  206. if test "x$CONFIG_SHELL" != x; then :
  207. # We cannot yet assume a decent shell, so we have to provide a
  208. # neutralization value for shells without unset; and this also
  209. # works around shells that cannot unset nonexistent variables.
  210. # Preserve -v and -x to the replacement shell.
  211. BASH_ENV=/dev/null
  212. ENV=/dev/null
  213. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  214. export CONFIG_SHELL
  215. case $- in # ((((
  216. *v*x* | *x*v* ) as_opts=-vx ;;
  217. *v* ) as_opts=-v ;;
  218. *x* ) as_opts=-x ;;
  219. * ) as_opts= ;;
  220. esac
  221. exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
  222. fi
  223. if test x$as_have_required = xno; then :
  224. $as_echo "$0: This script requires a shell more modern than all"
  225. $as_echo "$0: the shells that I found on your system."
  226. if test x${ZSH_VERSION+set} = xset ; then
  227. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  228. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  229. else
  230. $as_echo "$0: Please tell [email protected] and
  231. $0: http://bugzilla.redhat.com/ about your system,
  232. $0: including any error possibly output before this
  233. $0: message. Then install a modern shell, or manually run
  234. $0: the script under such a shell if you do have one."
  235. fi
  236. exit 1
  237. fi
  238. fi
  239. fi
  240. SHELL=${CONFIG_SHELL-/bin/sh}
  241. export SHELL
  242. # Unset more variables known to interfere with behavior of common tools.
  243. CLICOLOR_FORCE= GREP_OPTIONS=
  244. unset CLICOLOR_FORCE GREP_OPTIONS
  245. ## --------------------- ##
  246. ## M4sh Shell Functions. ##
  247. ## --------------------- ##
  248. # as_fn_unset VAR
  249. # ---------------
  250. # Portably unset VAR.
  251. as_fn_unset ()
  252. {
  253. { eval $1=; unset $1;}
  254. }
  255. as_unset=as_fn_unset
  256. # as_fn_set_status STATUS
  257. # -----------------------
  258. # Set $? to STATUS, without forking.
  259. as_fn_set_status ()
  260. {
  261. return $1
  262. } # as_fn_set_status
  263. # as_fn_exit STATUS
  264. # -----------------
  265. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  266. as_fn_exit ()
  267. {
  268. set +e
  269. as_fn_set_status $1
  270. exit $1
  271. } # as_fn_exit
  272. # as_fn_mkdir_p
  273. # -------------
  274. # Create "$as_dir" as a directory, including parents if necessary.
  275. as_fn_mkdir_p ()
  276. {
  277. case $as_dir in #(
  278. -*) as_dir=./$as_dir;;
  279. esac
  280. test -d "$as_dir" || eval $as_mkdir_p || {
  281. as_dirs=
  282. while :; do
  283. case $as_dir in #(
  284. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  285. *) as_qdir=$as_dir;;
  286. esac
  287. as_dirs="'$as_qdir' $as_dirs"
  288. as_dir=`$as_dirname -- "$as_dir" ||
  289. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  290. X"$as_dir" : 'X\(//\)[^/]' \| \
  291. X"$as_dir" : 'X\(//\)$' \| \
  292. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  293. $as_echo X"$as_dir" |
  294. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  295. s//\1/
  296. q
  297. }
  298. /^X\(\/\/\)[^/].*/{
  299. s//\1/
  300. q
  301. }
  302. /^X\(\/\/\)$/{
  303. s//\1/
  304. q
  305. }
  306. /^X\(\/\).*/{
  307. s//\1/
  308. q
  309. }
  310. s/.*/./; q'`
  311. test -d "$as_dir" && break
  312. done
  313. test -z "$as_dirs" || eval "mkdir $as_dirs"
  314. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  315. } # as_fn_mkdir_p
  316. # as_fn_append VAR VALUE
  317. # ----------------------
  318. # Append the text in VALUE to the end of the definition contained in VAR. Take
  319. # advantage of any shell optimizations that allow amortized linear growth over
  320. # repeated appends, instead of the typical quadratic growth present in naive
  321. # implementations.
  322. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  323. eval 'as_fn_append ()
  324. {
  325. eval $1+=\$2
  326. }'
  327. else
  328. as_fn_append ()
  329. {
  330. eval $1=\$$1\$2
  331. }
  332. fi # as_fn_append
  333. # as_fn_arith ARG...
  334. # ------------------
  335. # Perform arithmetic evaluation on the ARGs, and store the result in the
  336. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  337. # must be portable across $(()) and expr.
  338. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  339. eval 'as_fn_arith ()
  340. {
  341. as_val=$(( $* ))
  342. }'
  343. else
  344. as_fn_arith ()
  345. {
  346. as_val=`expr "$@" || test $? -eq 1`
  347. }
  348. fi # as_fn_arith
  349. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  350. # ----------------------------------------
  351. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  352. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  353. # script with STATUS, using 1 if that was 0.
  354. as_fn_error ()
  355. {
  356. as_status=$1; test $as_status -eq 0 && as_status=1
  357. if test "$4"; then
  358. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  359. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  360. fi
  361. $as_echo "$as_me: error: $2" >&2
  362. as_fn_exit $as_status
  363. } # as_fn_error
  364. if expr a : '\(a\)' >/dev/null 2>&1 &&
  365. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  366. as_expr=expr
  367. else
  368. as_expr=false
  369. fi
  370. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  371. as_basename=basename
  372. else
  373. as_basename=false
  374. fi
  375. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  376. as_dirname=dirname
  377. else
  378. as_dirname=false
  379. fi
  380. as_me=`$as_basename -- "$0" ||
  381. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  382. X"$0" : 'X\(//\)$' \| \
  383. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  384. $as_echo X/"$0" |
  385. sed '/^.*\/\([^/][^/]*\)\/*$/{
  386. s//\1/
  387. q
  388. }
  389. /^X\/\(\/\/\)$/{
  390. s//\1/
  391. q
  392. }
  393. /^X\/\(\/\).*/{
  394. s//\1/
  395. q
  396. }
  397. s/.*/./; q'`
  398. # Avoid depending upon Character Ranges.
  399. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  400. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  401. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  402. as_cr_digits='0123456789'
  403. as_cr_alnum=$as_cr_Letters$as_cr_digits
  404. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  405. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  406. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  407. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  408. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  409. sed -n '
  410. p
  411. /[$]LINENO/=
  412. ' <$as_myself |
  413. sed '
  414. s/[$]LINENO.*/&-/
  415. t lineno
  416. b
  417. :lineno
  418. N
  419. :loop
  420. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  421. t loop
  422. s/-\n.*//
  423. ' >$as_me.lineno &&
  424. chmod +x "$as_me.lineno" ||
  425. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  426. # Don't try to exec as it changes $[0], causing all sort of problems
  427. # (the dirname of $[0] is not the place where we might find the
  428. # original and so on. Autoconf is especially sensitive to this).
  429. . "./$as_me.lineno"
  430. # Exit status is that of the last command.
  431. exit
  432. }
  433. ECHO_C= ECHO_N= ECHO_T=
  434. case `echo -n x` in #(((((
  435. -n*)
  436. case `echo 'xy\c'` in
  437. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  438. xy) ECHO_C='\c';;
  439. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  440. ECHO_T=' ';;
  441. esac;;
  442. *)
  443. ECHO_N='-n';;
  444. esac
  445. rm -f conf$$ conf$$.exe conf$$.file
  446. if test -d conf$$.dir; then
  447. rm -f conf$$.dir/conf$$.file
  448. else
  449. rm -f conf$$.dir
  450. mkdir conf$$.dir 2>/dev/null
  451. fi
  452. if (echo >conf$$.file) 2>/dev/null; then
  453. if ln -s conf$$.file conf$$ 2>/dev/null; then
  454. as_ln_s='ln -s'
  455. # ... but there are two gotchas:
  456. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  457. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  458. # In both cases, we have to default to `cp -p'.
  459. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  460. as_ln_s='cp -p'
  461. elif ln conf$$.file conf$$ 2>/dev/null; then
  462. as_ln_s=ln
  463. else
  464. as_ln_s='cp -p'
  465. fi
  466. else
  467. as_ln_s='cp -p'
  468. fi
  469. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  470. rmdir conf$$.dir 2>/dev/null
  471. if mkdir -p . 2>/dev/null; then
  472. as_mkdir_p='mkdir -p "$as_dir"'
  473. else
  474. test -d ./-p && rmdir ./-p
  475. as_mkdir_p=false
  476. fi
  477. if test -x / >/dev/null 2>&1; then
  478. as_test_x='test -x'
  479. else
  480. if ls -dL / >/dev/null 2>&1; then
  481. as_ls_L_option=L
  482. else
  483. as_ls_L_option=
  484. fi
  485. as_test_x='
  486. eval sh -c '\''
  487. if test -d "$1"; then
  488. test -d "$1/.";
  489. else
  490. case $1 in #(
  491. -*)set "./$1";;
  492. esac;
  493. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  494. ???[sx]*):;;*)false;;esac;fi
  495. '\'' sh
  496. '
  497. fi
  498. as_executable_p=$as_test_x
  499. # Sed expression to map a string onto a valid CPP name.
  500. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  501. # Sed expression to map a string onto a valid variable name.
  502. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  503. SHELL=${CONFIG_SHELL-/bin/sh}
  504. test -n "$DJDIR" || exec 7<&0 </dev/null
  505. exec 6>&1
  506. # Name of the host.
  507. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  508. # so uname gets run too.
  509. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  510. #
  511. # Initializations.
  512. #
  513. ac_default_prefix=/usr/local
  514. ac_clean_files=
  515. ac_config_libobj_dir=.
  516. LIBOBJS=
  517. cross_compiling=no
  518. subdirs=
  519. MFLAGS=
  520. MAKEFLAGS=
  521. # Identity of this package.
  522. PACKAGE_NAME='dirsrv'
  523. PACKAGE_TARNAME='dirsrv'
  524. PACKAGE_VERSION='1.0'
  525. PACKAGE_STRING='dirsrv 1.0'
  526. PACKAGE_BUGREPORT='http://bugzilla.redhat.com/'
  527. PACKAGE_URL=''
  528. # Factoring default headers for most tests.
  529. ac_includes_default="\
  530. #include <stdio.h>
  531. #ifdef HAVE_SYS_TYPES_H
  532. # include <sys/types.h>
  533. #endif
  534. #ifdef HAVE_SYS_STAT_H
  535. # include <sys/stat.h>
  536. #endif
  537. #ifdef STDC_HEADERS
  538. # include <stdlib.h>
  539. # include <stddef.h>
  540. #else
  541. # ifdef HAVE_STDLIB_H
  542. # include <stdlib.h>
  543. # endif
  544. #endif
  545. #ifdef HAVE_STRING_H
  546. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  547. # include <memory.h>
  548. # endif
  549. # include <string.h>
  550. #endif
  551. #ifdef HAVE_STRINGS_H
  552. # include <strings.h>
  553. #endif
  554. #ifdef HAVE_INTTYPES_H
  555. # include <inttypes.h>
  556. #endif
  557. #ifdef HAVE_STDINT_H
  558. # include <stdint.h>
  559. #endif
  560. #ifdef HAVE_UNISTD_H
  561. # include <unistd.h>
  562. #endif"
  563. ac_header_list=
  564. ac_default_prefix=/opt/$PACKAGE_NAME
  565. ac_subst_vars='am__EXEEXT_FALSE
  566. am__EXEEXT_TRUE
  567. LTLIBOBJS
  568. vendor
  569. capbrand
  570. brand
  571. pcre_libdir
  572. pcre_lib
  573. pcre_inc
  574. netsnmp_link
  575. netsnmp_libdir
  576. netsnmp_lib
  577. netsnmp_inc
  578. icu_bin
  579. icu_inc
  580. icu_lib
  581. svrcore_lib
  582. svrcore_inc
  583. sasl_path
  584. sasl_libdir
  585. sasl_lib
  586. sasl_inc
  587. db_libver
  588. db_bindir
  589. db_libdir
  590. db_lib
  591. db_incdir
  592. db_inc
  593. ol_libver
  594. plainldif_opts
  595. ldaptool_opts
  596. ldaptool_bindir
  597. openldap_bindir
  598. openldap_libdir
  599. openldap_lib
  600. openldap_inc
  601. ldapsdk_bindir
  602. ldapsdk_libdir
  603. ldapsdk_lib
  604. ldapsdk_inc
  605. nss_libdir
  606. nss_lib
  607. nss_inc
  608. nspr_libdir
  609. nspr_lib
  610. nspr_inc
  611. OPENLDAP_FALSE
  612. OPENLDAP_TRUE
  613. SELINUX_FALSE
  614. SELINUX_TRUE
  615. PACKAGE_BASE_VERSION
  616. with_selinux
  617. kerberos_libdir
  618. kerberos_lib
  619. kerberos_inc
  620. KRB5_CONFIG_BIN
  621. NETSNMP_CONFIG
  622. ICU_CONFIG
  623. ldap_lib_ldif
  624. SYSTEMD_FALSE
  625. SYSTEMD_TRUE
  626. SOLARIS_FALSE
  627. SOLARIS_TRUE
  628. HPUX_FALSE
  629. HPUX_TRUE
  630. initconfigdir
  631. sttyexec
  632. perlexec
  633. initdir
  634. LIBCRUN
  635. LIBCSTD
  636. LIBDL
  637. LIBNSL
  638. LIBSOCKET
  639. LIBCRYPT
  640. THREADLIB
  641. WINNT_FALSE
  642. WINNT_TRUE
  643. instconfigdir
  644. defaultgroup
  645. defaultuser
  646. updatedir
  647. mibdir
  648. infdir
  649. perldir
  650. scripttemplatedir
  651. serverplugindir
  652. serverincdir
  653. serverdir
  654. schemadir
  655. propertydir
  656. sampledatadir
  657. configdir
  658. with_systemdgroupname
  659. with_systemdsystemconfdir
  660. with_systemdsystemunitdir
  661. PKG_CONFIG_LIBDIR
  662. PKG_CONFIG_PATH
  663. PKG_CONFIG
  664. with_tmpfiles_d
  665. with_fhs_opt
  666. enable_acctpolicy_FALSE
  667. enable_acctpolicy_TRUE
  668. enable_presence_FALSE
  669. enable_presence_TRUE
  670. enable_bitwise_FALSE
  671. enable_bitwise_TRUE
  672. enable_auto_dn_suffix_FALSE
  673. enable_auto_dn_suffix_TRUE
  674. enable_autobind_FALSE
  675. enable_autobind_TRUE
  676. enable_ldapi_FALSE
  677. enable_ldapi_TRUE
  678. enable_dna_FALSE
  679. enable_dna_TRUE
  680. enable_pam_passthru_FALSE
  681. enable_pam_passthru_TRUE
  682. BUNDLE_FALSE
  683. BUNDLE_TRUE
  684. debug_defs
  685. LIBOBJS
  686. CXXCPP
  687. CPP
  688. OTOOL64
  689. OTOOL
  690. LIPO
  691. NMEDIT
  692. DSYMUTIL
  693. MANIFEST_TOOL
  694. RANLIB
  695. ac_ct_AR
  696. AR
  697. DLLTOOL
  698. OBJDUMP
  699. LN_S
  700. NM
  701. ac_ct_DUMPBIN
  702. DUMPBIN
  703. LD
  704. FGREP
  705. EGREP
  706. GREP
  707. SED
  708. LIBTOOL
  709. am__fastdepCCAS_FALSE
  710. am__fastdepCCAS_TRUE
  711. CCASDEPMODE
  712. CCASFLAGS
  713. CCAS
  714. am__fastdepCC_FALSE
  715. am__fastdepCC_TRUE
  716. CCDEPMODE
  717. ac_ct_CC
  718. CFLAGS
  719. CC
  720. am__fastdepCXX_FALSE
  721. am__fastdepCXX_TRUE
  722. CXXDEPMODE
  723. AMDEPBACKSLASH
  724. AMDEP_FALSE
  725. AMDEP_TRUE
  726. am__quote
  727. am__include
  728. DEPDIR
  729. OBJEXT
  730. EXEEXT
  731. ac_ct_CXX
  732. CPPFLAGS
  733. LDFLAGS
  734. CXXFLAGS
  735. CXX
  736. host_os
  737. host_vendor
  738. host_cpu
  739. host
  740. build_os
  741. build_vendor
  742. build_cpu
  743. build
  744. MAINT
  745. MAINTAINER_MODE_FALSE
  746. MAINTAINER_MODE_TRUE
  747. CONSOLE_VERSION
  748. am__untar
  749. am__tar
  750. AMTAR
  751. am__leading_dot
  752. SET_MAKE
  753. AWK
  754. mkdir_p
  755. MKDIR_P
  756. INSTALL_STRIP_PROGRAM
  757. STRIP
  758. install_sh
  759. MAKEINFO
  760. AUTOHEADER
  761. AUTOMAKE
  762. AUTOCONF
  763. ACLOCAL
  764. VERSION
  765. PACKAGE
  766. CYGPATH_W
  767. am__isrc
  768. INSTALL_DATA
  769. INSTALL_SCRIPT
  770. INSTALL_PROGRAM
  771. target_alias
  772. host_alias
  773. build_alias
  774. LIBS
  775. ECHO_T
  776. ECHO_N
  777. ECHO_C
  778. DEFS
  779. mandir
  780. localedir
  781. libdir
  782. psdir
  783. pdfdir
  784. dvidir
  785. htmldir
  786. infodir
  787. docdir
  788. oldincludedir
  789. includedir
  790. localstatedir
  791. sharedstatedir
  792. sysconfdir
  793. datadir
  794. datarootdir
  795. libexecdir
  796. sbindir
  797. bindir
  798. program_transform_name
  799. prefix
  800. exec_prefix
  801. PACKAGE_URL
  802. PACKAGE_BUGREPORT
  803. PACKAGE_STRING
  804. PACKAGE_VERSION
  805. PACKAGE_TARNAME
  806. PACKAGE_NAME
  807. PATH_SEPARATOR
  808. SHELL'
  809. ac_subst_files=''
  810. ac_user_opts='
  811. enable_option_checking
  812. enable_maintainer_mode
  813. enable_dependency_tracking
  814. enable_static
  815. enable_shared
  816. with_pic
  817. enable_fast_install
  818. with_gnu_ld
  819. with_sysroot
  820. enable_libtool_lock
  821. enable_debug
  822. enable_bundle
  823. enable_pam_passthru
  824. enable_dna
  825. enable_ldapi
  826. enable_autobind
  827. enable_bitwise
  828. enable_presence
  829. enable_acctpolicy
  830. with_fhs
  831. with_fhs_opt
  832. with_tmpfiles_d
  833. with_systemdsystemunitdir
  834. with_systemdsystemconfdir
  835. with_systemdgroupname
  836. with_instconfigdir
  837. with_initddir
  838. with_nspr
  839. with_nspr_inc
  840. with_nspr_lib
  841. with_nss
  842. with_nss_inc
  843. with_nss_lib
  844. with_openldap
  845. with_openldap_inc
  846. with_openldap_lib
  847. with_openldap_bin
  848. with_ldapsdk
  849. with_ldapsdk_inc
  850. with_ldapsdk_lib
  851. with_ldapsdk_bin
  852. with_db
  853. with_db_inc
  854. with_db_lib
  855. with_sasl
  856. with_sasl_inc
  857. with_sasl_lib
  858. with_svrcore
  859. with_svrcore_inc
  860. with_svrcore_lib
  861. with_icu
  862. with_icu_inc
  863. with_icu_lib
  864. with_icu_bin
  865. with_netsnmp
  866. with_netsnmp_inc
  867. with_netsnmp_lib
  868. with_kerberos
  869. with_kerberos_inc
  870. with_kerberos_lib
  871. with_pcre
  872. with_selinux
  873. '
  874. ac_precious_vars='build_alias
  875. host_alias
  876. target_alias
  877. CXX
  878. CXXFLAGS
  879. LDFLAGS
  880. LIBS
  881. CPPFLAGS
  882. CCC
  883. CC
  884. CFLAGS
  885. CCAS
  886. CCASFLAGS
  887. CPP
  888. CXXCPP
  889. PKG_CONFIG
  890. PKG_CONFIG_PATH
  891. PKG_CONFIG_LIBDIR'
  892. # Initialize some variables set by options.
  893. ac_init_help=
  894. ac_init_version=false
  895. ac_unrecognized_opts=
  896. ac_unrecognized_sep=
  897. # The variables have the same names as the options, with
  898. # dashes changed to underlines.
  899. cache_file=/dev/null
  900. exec_prefix=NONE
  901. no_create=
  902. no_recursion=
  903. prefix=NONE
  904. program_prefix=NONE
  905. program_suffix=NONE
  906. program_transform_name=s,x,x,
  907. silent=
  908. site=
  909. srcdir=
  910. verbose=
  911. x_includes=NONE
  912. x_libraries=NONE
  913. # Installation directory options.
  914. # These are left unexpanded so users can "make install exec_prefix=/foo"
  915. # and all the variables that are supposed to be based on exec_prefix
  916. # by default will actually change.
  917. # Use braces instead of parens because sh, perl, etc. also accept them.
  918. # (The list follows the same order as the GNU Coding Standards.)
  919. bindir='${exec_prefix}/bin'
  920. sbindir='${exec_prefix}/sbin'
  921. libexecdir='${exec_prefix}/libexec'
  922. datarootdir='${prefix}/share'
  923. datadir='${datarootdir}'
  924. sysconfdir='${prefix}/etc'
  925. sharedstatedir='${prefix}/com'
  926. localstatedir='${prefix}/var'
  927. includedir='${prefix}/include'
  928. oldincludedir='/usr/include'
  929. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  930. infodir='${datarootdir}/info'
  931. htmldir='${docdir}'
  932. dvidir='${docdir}'
  933. pdfdir='${docdir}'
  934. psdir='${docdir}'
  935. libdir='${exec_prefix}/lib'
  936. localedir='${datarootdir}/locale'
  937. mandir='${datarootdir}/man'
  938. ac_prev=
  939. ac_dashdash=
  940. for ac_option
  941. do
  942. # If the previous option needs an argument, assign it.
  943. if test -n "$ac_prev"; then
  944. eval $ac_prev=\$ac_option
  945. ac_prev=
  946. continue
  947. fi
  948. case $ac_option in
  949. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  950. *=) ac_optarg= ;;
  951. *) ac_optarg=yes ;;
  952. esac
  953. # Accept the important Cygnus configure options, so we can diagnose typos.
  954. case $ac_dashdash$ac_option in
  955. --)
  956. ac_dashdash=yes ;;
  957. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  958. ac_prev=bindir ;;
  959. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  960. bindir=$ac_optarg ;;
  961. -build | --build | --buil | --bui | --bu)
  962. ac_prev=build_alias ;;
  963. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  964. build_alias=$ac_optarg ;;
  965. -cache-file | --cache-file | --cache-fil | --cache-fi \
  966. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  967. ac_prev=cache_file ;;
  968. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  969. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  970. cache_file=$ac_optarg ;;
  971. --config-cache | -C)
  972. cache_file=config.cache ;;
  973. -datadir | --datadir | --datadi | --datad)
  974. ac_prev=datadir ;;
  975. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  976. datadir=$ac_optarg ;;
  977. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  978. | --dataroo | --dataro | --datar)
  979. ac_prev=datarootdir ;;
  980. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  981. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  982. datarootdir=$ac_optarg ;;
  983. -disable-* | --disable-*)
  984. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  985. # Reject names that are not valid shell variable names.
  986. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  987. as_fn_error $? "invalid feature name: $ac_useropt"
  988. ac_useropt_orig=$ac_useropt
  989. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  990. case $ac_user_opts in
  991. *"
  992. "enable_$ac_useropt"
  993. "*) ;;
  994. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  995. ac_unrecognized_sep=', ';;
  996. esac
  997. eval enable_$ac_useropt=no ;;
  998. -docdir | --docdir | --docdi | --doc | --do)
  999. ac_prev=docdir ;;
  1000. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  1001. docdir=$ac_optarg ;;
  1002. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  1003. ac_prev=dvidir ;;
  1004. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  1005. dvidir=$ac_optarg ;;
  1006. -enable-* | --enable-*)
  1007. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  1008. # Reject names that are not valid shell variable names.
  1009. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1010. as_fn_error $? "invalid feature name: $ac_useropt"
  1011. ac_useropt_orig=$ac_useropt
  1012. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1013. case $ac_user_opts in
  1014. *"
  1015. "enable_$ac_useropt"
  1016. "*) ;;
  1017. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  1018. ac_unrecognized_sep=', ';;
  1019. esac
  1020. eval enable_$ac_useropt=\$ac_optarg ;;
  1021. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  1022. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  1023. | --exec | --exe | --ex)
  1024. ac_prev=exec_prefix ;;
  1025. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  1026. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  1027. | --exec=* | --exe=* | --ex=*)
  1028. exec_prefix=$ac_optarg ;;
  1029. -gas | --gas | --ga | --g)
  1030. # Obsolete; use --with-gas.
  1031. with_gas=yes ;;
  1032. -help | --help | --hel | --he | -h)
  1033. ac_init_help=long ;;
  1034. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1035. ac_init_help=recursive ;;
  1036. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1037. ac_init_help=short ;;
  1038. -host | --host | --hos | --ho)
  1039. ac_prev=host_alias ;;
  1040. -host=* | --host=* | --hos=* | --ho=*)
  1041. host_alias=$ac_optarg ;;
  1042. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1043. ac_prev=htmldir ;;
  1044. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1045. | --ht=*)
  1046. htmldir=$ac_optarg ;;
  1047. -includedir | --includedir | --includedi | --included | --include \
  1048. | --includ | --inclu | --incl | --inc)
  1049. ac_prev=includedir ;;
  1050. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1051. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1052. includedir=$ac_optarg ;;
  1053. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1054. ac_prev=infodir ;;
  1055. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1056. infodir=$ac_optarg ;;
  1057. -libdir | --libdir | --libdi | --libd)
  1058. ac_prev=libdir ;;
  1059. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1060. libdir=$ac_optarg ;;
  1061. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1062. | --libexe | --libex | --libe)
  1063. ac_prev=libexecdir ;;
  1064. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1065. | --libexe=* | --libex=* | --libe=*)
  1066. libexecdir=$ac_optarg ;;
  1067. -localedir | --localedir | --localedi | --localed | --locale)
  1068. ac_prev=localedir ;;
  1069. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1070. localedir=$ac_optarg ;;
  1071. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1072. | --localstate | --localstat | --localsta | --localst | --locals)
  1073. ac_prev=localstatedir ;;
  1074. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1075. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1076. localstatedir=$ac_optarg ;;
  1077. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1078. ac_prev=mandir ;;
  1079. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1080. mandir=$ac_optarg ;;
  1081. -nfp | --nfp | --nf)
  1082. # Obsolete; use --without-fp.
  1083. with_fp=no ;;
  1084. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1085. | --no-cr | --no-c | -n)
  1086. no_create=yes ;;
  1087. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1088. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1089. no_recursion=yes ;;
  1090. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1091. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1092. | --oldin | --oldi | --old | --ol | --o)
  1093. ac_prev=oldincludedir ;;
  1094. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1095. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1096. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1097. oldincludedir=$ac_optarg ;;
  1098. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1099. ac_prev=prefix ;;
  1100. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1101. prefix=$ac_optarg ;;
  1102. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1103. | --program-pre | --program-pr | --program-p)
  1104. ac_prev=program_prefix ;;
  1105. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1106. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1107. program_prefix=$ac_optarg ;;
  1108. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1109. | --program-suf | --program-su | --program-s)
  1110. ac_prev=program_suffix ;;
  1111. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1112. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1113. program_suffix=$ac_optarg ;;
  1114. -program-transform-name | --program-transform-name \
  1115. | --program-transform-nam | --program-transform-na \
  1116. | --program-transform-n | --program-transform- \
  1117. | --program-transform | --program-transfor \
  1118. | --program-transfo | --program-transf \
  1119. | --program-trans | --program-tran \
  1120. | --progr-tra | --program-tr | --program-t)
  1121. ac_prev=program_transform_name ;;
  1122. -program-transform-name=* | --program-transform-name=* \
  1123. | --program-transform-nam=* | --program-transform-na=* \
  1124. | --program-transform-n=* | --program-transform-=* \
  1125. | --program-transform=* | --program-transfor=* \
  1126. | --program-transfo=* | --program-transf=* \
  1127. | --program-trans=* | --program-tran=* \
  1128. | --progr-tra=* | --program-tr=* | --program-t=*)
  1129. program_transform_name=$ac_optarg ;;
  1130. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1131. ac_prev=pdfdir ;;
  1132. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1133. pdfdir=$ac_optarg ;;
  1134. -psdir | --psdir | --psdi | --psd | --ps)
  1135. ac_prev=psdir ;;
  1136. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1137. psdir=$ac_optarg ;;
  1138. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1139. | -silent | --silent | --silen | --sile | --sil)
  1140. silent=yes ;;
  1141. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1142. ac_prev=sbindir ;;
  1143. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1144. | --sbi=* | --sb=*)
  1145. sbindir=$ac_optarg ;;
  1146. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1147. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1148. | --sharedst | --shareds | --shared | --share | --shar \
  1149. | --sha | --sh)
  1150. ac_prev=sharedstatedir ;;
  1151. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1152. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1153. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1154. | --sha=* | --sh=*)
  1155. sharedstatedir=$ac_optarg ;;
  1156. -site | --site | --sit)
  1157. ac_prev=site ;;
  1158. -site=* | --site=* | --sit=*)
  1159. site=$ac_optarg ;;
  1160. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1161. ac_prev=srcdir ;;
  1162. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1163. srcdir=$ac_optarg ;;
  1164. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1165. | --syscon | --sysco | --sysc | --sys | --sy)
  1166. ac_prev=sysconfdir ;;
  1167. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1168. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1169. sysconfdir=$ac_optarg ;;
  1170. -target | --target | --targe | --targ | --tar | --ta | --t)
  1171. ac_prev=target_alias ;;
  1172. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1173. target_alias=$ac_optarg ;;
  1174. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1175. verbose=yes ;;
  1176. -version | --version | --versio | --versi | --vers | -V)
  1177. ac_init_version=: ;;
  1178. -with-* | --with-*)
  1179. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1180. # Reject names that are not valid shell variable names.
  1181. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1182. as_fn_error $? "invalid package name: $ac_useropt"
  1183. ac_useropt_orig=$ac_useropt
  1184. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1185. case $ac_user_opts in
  1186. *"
  1187. "with_$ac_useropt"
  1188. "*) ;;
  1189. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1190. ac_unrecognized_sep=', ';;
  1191. esac
  1192. eval with_$ac_useropt=\$ac_optarg ;;
  1193. -without-* | --without-*)
  1194. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1195. # Reject names that are not valid shell variable names.
  1196. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1197. as_fn_error $? "invalid package name: $ac_useropt"
  1198. ac_useropt_orig=$ac_useropt
  1199. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1200. case $ac_user_opts in
  1201. *"
  1202. "with_$ac_useropt"
  1203. "*) ;;
  1204. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1205. ac_unrecognized_sep=', ';;
  1206. esac
  1207. eval with_$ac_useropt=no ;;
  1208. --x)
  1209. # Obsolete; use --with-x.
  1210. with_x=yes ;;
  1211. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1212. | --x-incl | --x-inc | --x-in | --x-i)
  1213. ac_prev=x_includes ;;
  1214. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1215. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1216. x_includes=$ac_optarg ;;
  1217. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1218. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1219. ac_prev=x_libraries ;;
  1220. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1221. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1222. x_libraries=$ac_optarg ;;
  1223. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1224. Try \`$0 --help' for more information"
  1225. ;;
  1226. *=*)
  1227. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1228. # Reject names that are not valid shell variable names.
  1229. case $ac_envvar in #(
  1230. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1231. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1232. esac
  1233. eval $ac_envvar=\$ac_optarg
  1234. export $ac_envvar ;;
  1235. *)
  1236. # FIXME: should be removed in autoconf 3.0.
  1237. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1238. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1239. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1240. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1241. ;;
  1242. esac
  1243. done
  1244. if test -n "$ac_prev"; then
  1245. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1246. as_fn_error $? "missing argument to $ac_option"
  1247. fi
  1248. if test -n "$ac_unrecognized_opts"; then
  1249. case $enable_option_checking in
  1250. no) ;;
  1251. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1252. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1253. esac
  1254. fi
  1255. # Check all directory arguments for consistency.
  1256. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1257. datadir sysconfdir sharedstatedir localstatedir includedir \
  1258. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1259. libdir localedir mandir
  1260. do
  1261. eval ac_val=\$$ac_var
  1262. # Remove trailing slashes.
  1263. case $ac_val in
  1264. */ )
  1265. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1266. eval $ac_var=\$ac_val;;
  1267. esac
  1268. # Be sure to have absolute directory names.
  1269. case $ac_val in
  1270. [\\/$]* | ?:[\\/]* ) continue;;
  1271. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1272. esac
  1273. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1274. done
  1275. # There might be people who depend on the old broken behavior: `$host'
  1276. # used to hold the argument of --host etc.
  1277. # FIXME: To remove some day.
  1278. build=$build_alias
  1279. host=$host_alias
  1280. target=$target_alias
  1281. # FIXME: To remove some day.
  1282. if test "x$host_alias" != x; then
  1283. if test "x$build_alias" = x; then
  1284. cross_compiling=maybe
  1285. $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
  1286. If a cross compiler is detected then cross compile mode will be used" >&2
  1287. elif test "x$build_alias" != "x$host_alias"; then
  1288. cross_compiling=yes
  1289. fi
  1290. fi
  1291. ac_tool_prefix=
  1292. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1293. test "$silent" = yes && exec 6>/dev/null
  1294. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1295. ac_ls_di=`ls -di .` &&
  1296. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1297. as_fn_error $? "working directory cannot be determined"
  1298. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1299. as_fn_error $? "pwd does not report name of working directory"
  1300. # Find the source files, if location was not specified.
  1301. if test -z "$srcdir"; then
  1302. ac_srcdir_defaulted=yes
  1303. # Try the directory containing this script, then the parent directory.
  1304. ac_confdir=`$as_dirname -- "$as_myself" ||
  1305. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1306. X"$as_myself" : 'X\(//\)[^/]' \| \
  1307. X"$as_myself" : 'X\(//\)$' \| \
  1308. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1309. $as_echo X"$as_myself" |
  1310. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1311. s//\1/
  1312. q
  1313. }
  1314. /^X\(\/\/\)[^/].*/{
  1315. s//\1/
  1316. q
  1317. }
  1318. /^X\(\/\/\)$/{
  1319. s//\1/
  1320. q
  1321. }
  1322. /^X\(\/\).*/{
  1323. s//\1/
  1324. q
  1325. }
  1326. s/.*/./; q'`
  1327. srcdir=$ac_confdir
  1328. if test ! -r "$srcdir/$ac_unique_file"; then
  1329. srcdir=..
  1330. fi
  1331. else
  1332. ac_srcdir_defaulted=no
  1333. fi
  1334. if test ! -r "$srcdir/$ac_unique_file"; then
  1335. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1336. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1337. fi
  1338. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1339. ac_abs_confdir=`(
  1340. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1341. pwd)`
  1342. # When building in place, set srcdir=.
  1343. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1344. srcdir=.
  1345. fi
  1346. # Remove unnecessary trailing slashes from srcdir.
  1347. # Double slashes in file names in object file debugging info
  1348. # mess up M-x gdb in Emacs.
  1349. case $srcdir in
  1350. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1351. esac
  1352. for ac_var in $ac_precious_vars; do
  1353. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1354. eval ac_env_${ac_var}_value=\$${ac_var}
  1355. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1356. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1357. done
  1358. #
  1359. # Report the --help message.
  1360. #
  1361. if test "$ac_init_help" = "long"; then
  1362. # Omit some internal or obsolete options to make the list less imposing.
  1363. # This message is too long to be a string in the A/UX 3.1 sh.
  1364. cat <<_ACEOF
  1365. \`configure' configures dirsrv 1.0 to adapt to many kinds of systems.
  1366. Usage: $0 [OPTION]... [VAR=VALUE]...
  1367. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1368. VAR=VALUE. See below for descriptions of some of the useful variables.
  1369. Defaults for the options are specified in brackets.
  1370. Configuration:
  1371. -h, --help display this help and exit
  1372. --help=short display options specific to this package
  1373. --help=recursive display the short help of all the included packages
  1374. -V, --version display version information and exit
  1375. -q, --quiet, --silent do not print \`checking ...' messages
  1376. --cache-file=FILE cache test results in FILE [disabled]
  1377. -C, --config-cache alias for \`--cache-file=config.cache'
  1378. -n, --no-create do not create output files
  1379. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1380. Installation directories:
  1381. --prefix=PREFIX install architecture-independent files in PREFIX
  1382. [$ac_default_prefix]
  1383. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1384. [PREFIX]
  1385. By default, \`make install' will install all the files in
  1386. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1387. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1388. for instance \`--prefix=\$HOME'.
  1389. For better control, use the options below.
  1390. Fine tuning of the installation directories:
  1391. --bindir=DIR user executables [EPREFIX/bin]
  1392. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1393. --libexecdir=DIR program executables [EPREFIX/libexec]
  1394. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1395. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1396. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1397. --libdir=DIR object code libraries [EPREFIX/lib]
  1398. --includedir=DIR C header files [PREFIX/include]
  1399. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1400. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1401. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1402. --infodir=DIR info documentation [DATAROOTDIR/info]
  1403. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1404. --mandir=DIR man documentation [DATAROOTDIR/man]
  1405. --docdir=DIR documentation root [DATAROOTDIR/doc/dirsrv]
  1406. --htmldir=DIR html documentation [DOCDIR]
  1407. --dvidir=DIR dvi documentation [DOCDIR]
  1408. --pdfdir=DIR pdf documentation [DOCDIR]
  1409. --psdir=DIR ps documentation [DOCDIR]
  1410. _ACEOF
  1411. cat <<\_ACEOF
  1412. Program names:
  1413. --program-prefix=PREFIX prepend PREFIX to installed program names
  1414. --program-suffix=SUFFIX append SUFFIX to installed program names
  1415. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1416. System types:
  1417. --build=BUILD configure for building on BUILD [guessed]
  1418. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1419. _ACEOF
  1420. fi
  1421. if test -n "$ac_init_help"; then
  1422. case $ac_init_help in
  1423. short | recursive ) echo "Configuration of dirsrv 1.0:";;
  1424. esac
  1425. cat <<\_ACEOF
  1426. Optional Features:
  1427. --disable-option-checking ignore unrecognized --enable/--with options
  1428. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1429. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1430. --enable-maintainer-mode enable make rules and dependencies not useful
  1431. (and sometimes confusing) to the casual installer
  1432. --disable-dependency-tracking speeds up one-time build
  1433. --enable-dependency-tracking do not reject slow dependency extractors
  1434. --enable-static[=PKGS] build static libraries [default=no]
  1435. --enable-shared[=PKGS] build shared libraries [default=yes]
  1436. --enable-fast-install[=PKGS]
  1437. optimize for fast installation [default=yes]
  1438. --disable-libtool-lock avoid locking (might break parallel builds)
  1439. --enable-debug Enable debug features (default: no)
  1440. --enable-bundle Enable bundled dependencies (default: no)
  1441. --enable-pam-passthru enable the PAM passthrough auth plugin (default:
  1442. yes)
  1443. --enable-dna enable the Distributed Numeric Assignment (DNA)
  1444. plugin (default: yes)
  1445. --enable-ldapi enable LDAP over unix domain socket (LDAPI) support
  1446. (default: yes)
  1447. --enable-autobind enable auto bind over unix domain socket (LDAPI)
  1448. support (default: no)
  1449. --enable-auto-dn-suffix enable auto bind with auto dn suffix over unix
  1450. domain socket (LDAPI) support (default: no)
  1451. --enable-bitwise enable the bitwise matching rule plugin (default:
  1452. yes)
  1453. --enable-presence enable the presence plugin (default: no)
  1454. --enable-acctpolicy enable the account policy plugin (default: yes)
  1455. Optional Packages:
  1456. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1457. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1458. --with-pic try to use only PIC/non-PIC objects [default=use
  1459. both]
  1460. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1461. --with-sysroot=DIR Search for dependent libraries within DIR
  1462. (or the compiler's sysroot if not specified).
  1463. --with-fhs Use FHS layout
  1464. --with-fhs-opt Use FHS optional layout
  1465. --with-tmpfiles-d=PATH system uses tmpfiles.d to handle temp files/dirs
  1466. (default: $with_tmpfiles_d)
  1467. --with-systemdsystemunitdir=PATH
  1468. Directory for systemd service files (default:
  1469. $with_systemdsystemunitdir)
  1470. --with-systemdsystemconfdir=PATH
  1471. Directory for systemd service files (default:
  1472. $with_systemdsystemconfdir)
  1473. --with-systemdgroupname=NAME
  1474. Name of group target for all instances (default:
  1475. $with_systemdgroupname)
  1476. --with-instconfigdir=/path
  1477. Base directory for instance specific writable
  1478. configuration directories (default
  1479. $sysconfdir/$PACKAGE_NAME)
  1480. --with-initddir=/path Absolute path (not relative like some of the other
  1481. options) that should contain the SysV init scripts
  1482. (default '$(sysconfdir)/rc.d')
  1483. --with-nspr[=PATH] Netscape Portable Runtime (NSPR) directory
  1484. --with-nspr-inc=PATH Netscape Portable Runtime (NSPR) include directory
  1485. --with-nspr-lib=PATH Netscape Portable Runtime (NSPR) library directory
  1486. --with-nss[=PATH] Network Security Services (NSS) directory
  1487. --with-nss-inc=PATH Network Security Services (NSS) include directory
  1488. --with-nss-lib=PATH Network Security Services (NSS) library directory
  1489. --with-openldap[=PATH] Use OpenLDAP - optional PATH is path to OpenLDAP SDK
  1490. --with-openldap-inc=PATH
  1491. OpenLDAP SDK include directory
  1492. --with-openldap-lib=PATH
  1493. OpenLDAP SDK library directory
  1494. --with-openldap-bin=PATH
  1495. OpenLDAP SDK binary directory
  1496. --with-ldapsdk[=PATH] Mozilla LDAP SDK directory
  1497. --with-ldapsdk-inc=PATH Mozilla LDAP SDK include directory
  1498. --with-ldapsdk-lib=PATH Mozilla LDAP SDK library directory
  1499. --with-ldapsdk-bin=PATH Mozilla LDAP SDK binary directory
  1500. --with-db[=PATH] Berkeley DB directory
  1501. --with-db-inc=PATH Berkeley DB include file directory
  1502. --with-db-lib=PATH Berkeley DB library directory
  1503. --with-sasl[=PATH] Use SASL from supplied path
  1504. --with-sasl-inc=PATH SASL include file directory
  1505. --with-sasl-lib=PATH SASL library directory
  1506. --with-svrcore[=PATH] Use system installed SVRCORE - optional path for
  1507. SVRCORE
  1508. --with-svrcore-inc=PATH SVRCORE include file directory
  1509. --with-svrcore-lib=PATH SVRCORE library directory
  1510. --with-icu[=PATH] ICU directory
  1511. --with-icu-inc=PATH ICU include directory
  1512. --with-icu-lib=PATH ICU library directory
  1513. --with-icu-bin=PATH ICU binary directory
  1514. --with-netsnmp[=PATH] Net-SNMP directory
  1515. --with-netsnmp-inc=PATH Net-SNMP include directory
  1516. --with-netsnmp-lib=PATH Net-SNMP library directory
  1517. --with-kerberos[=PATH] Use the kerberos API in the server directly - allows
  1518. the server to authenticate directly with a keytab -
  1519. otherwise, SASL/GSSAPI auth depends on underlying
  1520. SASL libraries and external kinit with a keytab - if
  1521. PATH is not specified, look for kerberos in the
  1522. system locations. This will attempt to use
  1523. krb5-config from the PATH to find the libs and
  1524. include dirs - you can specify KRB5_CONFIG_BIN to
  1525. specify a different filename or absolute path. If
  1526. krb5-config does not work, this will attempt to look
  1527. in various system directories
  1528. --with-kerberos-inc=PATH
  1529. Allows you to explicitly set the directory
  1530. containing the kerberos include files - implies use
  1531. of kerberos
  1532. --with-kerberos-lib=PATH
  1533. Allows you to explicitly set the directory
  1534. containing the kerberos libraries - implies use of
  1535. kerberos
  1536. --with-pcre[=PATH] Perl Compatible Regular Expression directory
  1537. --with-selinux Support SELinux policy
  1538. Some influential environment variables:
  1539. CXX C++ compiler command
  1540. CXXFLAGS C++ compiler flags
  1541. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1542. nonstandard directory <lib dir>
  1543. LIBS libraries to pass to the linker, e.g. -l<library>
  1544. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1545. you have headers in a nonstandard directory <include dir>
  1546. CC C compiler command
  1547. CFLAGS C compiler flags
  1548. CCAS assembler compiler command (defaults to CC)
  1549. CCASFLAGS assembler compiler flags (defaults to CFLAGS)
  1550. CPP C preprocessor
  1551. CXXCPP C++ preprocessor
  1552. PKG_CONFIG path to pkg-config utility
  1553. PKG_CONFIG_PATH
  1554. directories to add to pkg-config's search path
  1555. PKG_CONFIG_LIBDIR
  1556. path overriding pkg-config's built-in search path
  1557. Use these variables to override the choices made by `configure' or to help
  1558. it to find libraries and programs with nonstandard names/locations.
  1559. Report bugs to <http://bugzilla.redhat.com/>.
  1560. _ACEOF
  1561. ac_status=$?
  1562. fi
  1563. if test "$ac_init_help" = "recursive"; then
  1564. # If there are subdirs, report their specific --help.
  1565. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1566. test -d "$ac_dir" ||
  1567. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1568. continue
  1569. ac_builddir=.
  1570. case "$ac_dir" in
  1571. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1572. *)
  1573. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1574. # A ".." for each directory in $ac_dir_suffix.
  1575. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1576. case $ac_top_builddir_sub in
  1577. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1578. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1579. esac ;;
  1580. esac
  1581. ac_abs_top_builddir=$ac_pwd
  1582. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1583. # for backward compatibility:
  1584. ac_top_builddir=$ac_top_build_prefix
  1585. case $srcdir in
  1586. .) # We are building in place.
  1587. ac_srcdir=.
  1588. ac_top_srcdir=$ac_top_builddir_sub
  1589. ac_abs_top_srcdir=$ac_pwd ;;
  1590. [\\/]* | ?:[\\/]* ) # Absolute name.
  1591. ac_srcdir=$srcdir$ac_dir_suffix;
  1592. ac_top_srcdir=$srcdir
  1593. ac_abs_top_srcdir=$srcdir ;;
  1594. *) # Relative name.
  1595. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1596. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1597. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1598. esac
  1599. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1600. cd "$ac_dir" || { ac_status=$?; continue; }
  1601. # Check for guested configure.
  1602. if test -f "$ac_srcdir/configure.gnu"; then
  1603. echo &&
  1604. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1605. elif test -f "$ac_srcdir/configure"; then
  1606. echo &&
  1607. $SHELL "$ac_srcdir/configure" --help=recursive
  1608. else
  1609. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1610. fi || ac_status=$?
  1611. cd "$ac_pwd" || { ac_status=$?; break; }
  1612. done
  1613. fi
  1614. test -n "$ac_init_help" && exit $ac_status
  1615. if $ac_init_version; then
  1616. cat <<\_ACEOF
  1617. dirsrv configure 1.0
  1618. generated by GNU Autoconf 2.68
  1619. Copyright (C) 2010 Free Software Foundation, Inc.
  1620. This configure script is free software; the Free Software Foundation
  1621. gives unlimited permission to copy, distribute and modify it.
  1622. _ACEOF
  1623. exit
  1624. fi
  1625. ## ------------------------ ##
  1626. ## Autoconf initialization. ##
  1627. ## ------------------------ ##
  1628. # ac_fn_cxx_try_compile LINENO
  1629. # ----------------------------
  1630. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1631. ac_fn_cxx_try_compile ()
  1632. {
  1633. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1634. rm -f conftest.$ac_objext
  1635. if { { ac_try="$ac_compile"
  1636. case "(($ac_try" in
  1637. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1638. *) ac_try_echo=$ac_try;;
  1639. esac
  1640. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1641. $as_echo "$ac_try_echo"; } >&5
  1642. (eval "$ac_compile") 2>conftest.err
  1643. ac_status=$?
  1644. if test -s conftest.err; then
  1645. grep -v '^ *+' conftest.err >conftest.er1
  1646. cat conftest.er1 >&5
  1647. mv -f conftest.er1 conftest.err
  1648. fi
  1649. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1650. test $ac_status = 0; } && {
  1651. test -z "$ac_cxx_werror_flag" ||
  1652. test ! -s conftest.err
  1653. } && test -s conftest.$ac_objext; then :
  1654. ac_retval=0
  1655. else
  1656. $as_echo "$as_me: failed program was:" >&5
  1657. sed 's/^/| /' conftest.$ac_ext >&5
  1658. ac_retval=1
  1659. fi
  1660. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1661. as_fn_set_status $ac_retval
  1662. } # ac_fn_cxx_try_compile
  1663. # ac_fn_c_try_compile LINENO
  1664. # --------------------------
  1665. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1666. ac_fn_c_try_compile ()
  1667. {
  1668. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1669. rm -f conftest.$ac_objext
  1670. if { { ac_try="$ac_compile"
  1671. case "(($ac_try" in
  1672. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1673. *) ac_try_echo=$ac_try;;
  1674. esac
  1675. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1676. $as_echo "$ac_try_echo"; } >&5
  1677. (eval "$ac_compile") 2>conftest.err
  1678. ac_status=$?
  1679. if test -s conftest.err; then
  1680. grep -v '^ *+' conftest.err >conftest.er1
  1681. cat conftest.er1 >&5
  1682. mv -f conftest.er1 conftest.err
  1683. fi
  1684. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1685. test $ac_status = 0; } && {
  1686. test -z "$ac_c_werror_flag" ||
  1687. test ! -s conftest.err
  1688. } && test -s conftest.$ac_objext; then :
  1689. ac_retval=0
  1690. else
  1691. $as_echo "$as_me: failed program was:" >&5
  1692. sed 's/^/| /' conftest.$ac_ext >&5
  1693. ac_retval=1
  1694. fi
  1695. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1696. as_fn_set_status $ac_retval
  1697. } # ac_fn_c_try_compile
  1698. # ac_fn_c_try_link LINENO
  1699. # -----------------------
  1700. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1701. ac_fn_c_try_link ()
  1702. {
  1703. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1704. rm -f conftest.$ac_objext conftest$ac_exeext
  1705. if { { ac_try="$ac_link"
  1706. case "(($ac_try" in
  1707. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1708. *) ac_try_echo=$ac_try;;
  1709. esac
  1710. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1711. $as_echo "$ac_try_echo"; } >&5
  1712. (eval "$ac_link") 2>conftest.err
  1713. ac_status=$?
  1714. if test -s conftest.err; then
  1715. grep -v '^ *+' conftest.err >conftest.er1
  1716. cat conftest.er1 >&5
  1717. mv -f conftest.er1 conftest.err
  1718. fi
  1719. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1720. test $ac_status = 0; } && {
  1721. test -z "$ac_c_werror_flag" ||
  1722. test ! -s conftest.err
  1723. } && test -s conftest$ac_exeext && {
  1724. test "$cross_compiling" = yes ||
  1725. $as_test_x conftest$ac_exeext
  1726. }; then :
  1727. ac_retval=0
  1728. else
  1729. $as_echo "$as_me: failed program was:" >&5
  1730. sed 's/^/| /' conftest.$ac_ext >&5
  1731. ac_retval=1
  1732. fi
  1733. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1734. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1735. # interfere with the next link command; also delete a directory that is
  1736. # left behind by Apple's compiler. We do this before executing the actions.
  1737. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1738. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1739. as_fn_set_status $ac_retval
  1740. } # ac_fn_c_try_link
  1741. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1742. # -------------------------------------------------------
  1743. # Tests whether HEADER exists and can be compiled using the include files in
  1744. # INCLUDES, setting the cache variable VAR accordingly.
  1745. ac_fn_c_check_header_compile ()
  1746. {
  1747. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1748. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1749. $as_echo_n "checking for $2... " >&6; }
  1750. if eval \${$3+:} false; then :
  1751. $as_echo_n "(cached) " >&6
  1752. else
  1753. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1754. /* end confdefs.h. */
  1755. $4
  1756. #include <$2>
  1757. _ACEOF
  1758. if ac_fn_c_try_compile "$LINENO"; then :
  1759. eval "$3=yes"
  1760. else
  1761. eval "$3=no"
  1762. fi
  1763. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1764. fi
  1765. eval ac_res=\$$3
  1766. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1767. $as_echo "$ac_res" >&6; }
  1768. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1769. } # ac_fn_c_check_header_compile
  1770. # ac_fn_c_try_cpp LINENO
  1771. # ----------------------
  1772. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1773. ac_fn_c_try_cpp ()
  1774. {
  1775. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1776. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1777. case "(($ac_try" in
  1778. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1779. *) ac_try_echo=$ac_try;;
  1780. esac
  1781. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1782. $as_echo "$ac_try_echo"; } >&5
  1783. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1784. ac_status=$?
  1785. if test -s conftest.err; then
  1786. grep -v '^ *+' conftest.err >conftest.er1
  1787. cat conftest.er1 >&5
  1788. mv -f conftest.er1 conftest.err
  1789. fi
  1790. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1791. test $ac_status = 0; } > conftest.i && {
  1792. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1793. test ! -s conftest.err
  1794. }; then :
  1795. ac_retval=0
  1796. else
  1797. $as_echo "$as_me: failed program was:" >&5
  1798. sed 's/^/| /' conftest.$ac_ext >&5
  1799. ac_retval=1
  1800. fi
  1801. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1802. as_fn_set_status $ac_retval
  1803. } # ac_fn_c_try_cpp
  1804. # ac_fn_c_try_run LINENO
  1805. # ----------------------
  1806. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1807. # that executables *can* be run.
  1808. ac_fn_c_try_run ()
  1809. {
  1810. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1811. if { { ac_try="$ac_link"
  1812. case "(($ac_try" in
  1813. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1814. *) ac_try_echo=$ac_try;;
  1815. esac
  1816. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1817. $as_echo "$ac_try_echo"; } >&5
  1818. (eval "$ac_link") 2>&5
  1819. ac_status=$?
  1820. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1821. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1822. { { case "(($ac_try" in
  1823. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1824. *) ac_try_echo=$ac_try;;
  1825. esac
  1826. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1827. $as_echo "$ac_try_echo"; } >&5
  1828. (eval "$ac_try") 2>&5
  1829. ac_status=$?
  1830. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1831. test $ac_status = 0; }; }; then :
  1832. ac_retval=0
  1833. else
  1834. $as_echo "$as_me: program exited with status $ac_status" >&5
  1835. $as_echo "$as_me: failed program was:" >&5
  1836. sed 's/^/| /' conftest.$ac_ext >&5
  1837. ac_retval=$ac_status
  1838. fi
  1839. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1840. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1841. as_fn_set_status $ac_retval
  1842. } # ac_fn_c_try_run
  1843. # ac_fn_c_check_func LINENO FUNC VAR
  1844. # ----------------------------------
  1845. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1846. ac_fn_c_check_func ()
  1847. {
  1848. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1849. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1850. $as_echo_n "checking for $2... " >&6; }
  1851. if eval \${$3+:} false; then :
  1852. $as_echo_n "(cached) " >&6
  1853. else
  1854. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1855. /* end confdefs.h. */
  1856. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1857. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1858. #define $2 innocuous_$2
  1859. /* System header to define __stub macros and hopefully few prototypes,
  1860. which can conflict with char $2 (); below.
  1861. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1862. <limits.h> exists even on freestanding compilers. */
  1863. #ifdef __STDC__
  1864. # include <limits.h>
  1865. #else
  1866. # include <assert.h>
  1867. #endif
  1868. #undef $2
  1869. /* Override any GCC internal prototype to avoid an error.
  1870. Use char because int might match the return type of a GCC
  1871. builtin and then its argument prototype would still apply. */
  1872. #ifdef __cplusplus
  1873. extern "C"
  1874. #endif
  1875. char $2 ();
  1876. /* The GNU C library defines this for functions which it implements
  1877. to always fail with ENOSYS. Some functions are actually named
  1878. something starting with __ and the normal name is an alias. */
  1879. #if defined __stub_$2 || defined __stub___$2
  1880. choke me
  1881. #endif
  1882. int
  1883. main ()
  1884. {
  1885. return $2 ();
  1886. ;
  1887. return 0;
  1888. }
  1889. _ACEOF
  1890. if ac_fn_c_try_link "$LINENO"; then :
  1891. eval "$3=yes"
  1892. else
  1893. eval "$3=no"
  1894. fi
  1895. rm -f core conftest.err conftest.$ac_objext \
  1896. conftest$ac_exeext conftest.$ac_ext
  1897. fi
  1898. eval ac_res=\$$3
  1899. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1900. $as_echo "$ac_res" >&6; }
  1901. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1902. } # ac_fn_c_check_func
  1903. # ac_fn_cxx_try_cpp LINENO
  1904. # ------------------------
  1905. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1906. ac_fn_cxx_try_cpp ()
  1907. {
  1908. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1909. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1910. case "(($ac_try" in
  1911. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1912. *) ac_try_echo=$ac_try;;
  1913. esac
  1914. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1915. $as_echo "$ac_try_echo"; } >&5
  1916. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1917. ac_status=$?
  1918. if test -s conftest.err; then
  1919. grep -v '^ *+' conftest.err >conftest.er1
  1920. cat conftest.er1 >&5
  1921. mv -f conftest.er1 conftest.err
  1922. fi
  1923. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1924. test $ac_status = 0; } > conftest.i && {
  1925. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1926. test ! -s conftest.err
  1927. }; then :
  1928. ac_retval=0
  1929. else
  1930. $as_echo "$as_me: failed program was:" >&5
  1931. sed 's/^/| /' conftest.$ac_ext >&5
  1932. ac_retval=1
  1933. fi
  1934. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1935. as_fn_set_status $ac_retval
  1936. } # ac_fn_cxx_try_cpp
  1937. # ac_fn_cxx_try_link LINENO
  1938. # -------------------------
  1939. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1940. ac_fn_cxx_try_link ()
  1941. {
  1942. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1943. rm -f conftest.$ac_objext conftest$ac_exeext
  1944. if { { ac_try="$ac_link"
  1945. case "(($ac_try" in
  1946. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1947. *) ac_try_echo=$ac_try;;
  1948. esac
  1949. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1950. $as_echo "$ac_try_echo"; } >&5
  1951. (eval "$ac_link") 2>conftest.err
  1952. ac_status=$?
  1953. if test -s conftest.err; then
  1954. grep -v '^ *+' conftest.err >conftest.er1
  1955. cat conftest.er1 >&5
  1956. mv -f conftest.er1 conftest.err
  1957. fi
  1958. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1959. test $ac_status = 0; } && {
  1960. test -z "$ac_cxx_werror_flag" ||
  1961. test ! -s conftest.err
  1962. } && test -s conftest$ac_exeext && {
  1963. test "$cross_compiling" = yes ||
  1964. $as_test_x conftest$ac_exeext
  1965. }; then :
  1966. ac_retval=0
  1967. else
  1968. $as_echo "$as_me: failed program was:" >&5
  1969. sed 's/^/| /' conftest.$ac_ext >&5
  1970. ac_retval=1
  1971. fi
  1972. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1973. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1974. # interfere with the next link command; also delete a directory that is
  1975. # left behind by Apple's compiler. We do this before executing the actions.
  1976. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1977. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1978. as_fn_set_status $ac_retval
  1979. } # ac_fn_cxx_try_link
  1980. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1981. # -------------------------------------------------------
  1982. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1983. # the include files in INCLUDES and setting the cache variable VAR
  1984. # accordingly.
  1985. ac_fn_c_check_header_mongrel ()
  1986. {
  1987. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1988. if eval \${$3+:} false; then :
  1989. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1990. $as_echo_n "checking for $2... " >&6; }
  1991. if eval \${$3+:} false; then :
  1992. $as_echo_n "(cached) " >&6
  1993. fi
  1994. eval ac_res=\$$3
  1995. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1996. $as_echo "$ac_res" >&6; }
  1997. else
  1998. # Is the header compilable?
  1999. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  2000. $as_echo_n "checking $2 usability... " >&6; }
  2001. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2002. /* end confdefs.h. */
  2003. $4
  2004. #include <$2>
  2005. _ACEOF
  2006. if ac_fn_c_try_compile "$LINENO"; then :
  2007. ac_header_compiler=yes
  2008. else
  2009. ac_header_compiler=no
  2010. fi
  2011. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2012. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  2013. $as_echo "$ac_header_compiler" >&6; }
  2014. # Is the header present?
  2015. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  2016. $as_echo_n "checking $2 presence... " >&6; }
  2017. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2018. /* end confdefs.h. */
  2019. #include <$2>
  2020. _ACEOF
  2021. if ac_fn_c_try_cpp "$LINENO"; then :
  2022. ac_header_preproc=yes
  2023. else
  2024. ac_header_preproc=no
  2025. fi
  2026. rm -f conftest.err conftest.i conftest.$ac_ext
  2027. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  2028. $as_echo "$ac_header_preproc" >&6; }
  2029. # So? What about this header?
  2030. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  2031. yes:no: )
  2032. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  2033. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  2034. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2035. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2036. ;;
  2037. no:yes:* )
  2038. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  2039. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  2040. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  2041. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  2042. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  2043. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  2044. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  2045. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  2046. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2047. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2048. ( $as_echo "## ------------------------------------------ ##
  2049. ## Report this to http://bugzilla.redhat.com/ ##
  2050. ## ------------------------------------------ ##"
  2051. ) | sed "s/^/$as_me: WARNING: /" >&2
  2052. ;;
  2053. esac
  2054. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2055. $as_echo_n "checking for $2... " >&6; }
  2056. if eval \${$3+:} false; then :
  2057. $as_echo_n "(cached) " >&6
  2058. else
  2059. eval "$3=\$ac_header_compiler"
  2060. fi
  2061. eval ac_res=\$$3
  2062. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2063. $as_echo "$ac_res" >&6; }
  2064. fi
  2065. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2066. } # ac_fn_c_check_header_mongrel
  2067. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  2068. # -------------------------------------------
  2069. # Tests whether TYPE exists after having included INCLUDES, setting cache
  2070. # variable VAR accordingly.
  2071. ac_fn_c_check_type ()
  2072. {
  2073. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2074. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2075. $as_echo_n "checking for $2... " >&6; }
  2076. if eval \${$3+:} false; then :
  2077. $as_echo_n "(cached) " >&6
  2078. else
  2079. eval "$3=no"
  2080. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2081. /* end confdefs.h. */
  2082. $4
  2083. int
  2084. main ()
  2085. {
  2086. if (sizeof ($2))
  2087. return 0;
  2088. ;
  2089. return 0;
  2090. }
  2091. _ACEOF
  2092. if ac_fn_c_try_compile "$LINENO"; then :
  2093. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2094. /* end confdefs.h. */
  2095. $4
  2096. int
  2097. main ()
  2098. {
  2099. if (sizeof (($2)))
  2100. return 0;
  2101. ;
  2102. return 0;
  2103. }
  2104. _ACEOF
  2105. if ac_fn_c_try_compile "$LINENO"; then :
  2106. else
  2107. eval "$3=yes"
  2108. fi
  2109. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2110. fi
  2111. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2112. fi
  2113. eval ac_res=\$$3
  2114. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2115. $as_echo "$ac_res" >&6; }
  2116. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2117. } # ac_fn_c_check_type
  2118. # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
  2119. # ---------------------------------------------
  2120. # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
  2121. # accordingly.
  2122. ac_fn_c_check_decl ()
  2123. {
  2124. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2125. as_decl_name=`echo $2|sed 's/ *(.*//'`
  2126. as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
  2127. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
  2128. $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
  2129. if eval \${$3+:} false; then :
  2130. $as_echo_n "(cached) " >&6
  2131. else
  2132. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2133. /* end confdefs.h. */
  2134. $4
  2135. int
  2136. main ()
  2137. {
  2138. #ifndef $as_decl_name
  2139. #ifdef __cplusplus
  2140. (void) $as_decl_use;
  2141. #else
  2142. (void) $as_decl_name;
  2143. #endif
  2144. #endif
  2145. ;
  2146. return 0;
  2147. }
  2148. _ACEOF
  2149. if ac_fn_c_try_compile "$LINENO"; then :
  2150. eval "$3=yes"
  2151. else
  2152. eval "$3=no"
  2153. fi
  2154. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2155. fi
  2156. eval ac_res=\$$3
  2157. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2158. $as_echo "$ac_res" >&6; }
  2159. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2160. } # ac_fn_c_check_decl
  2161. cat >config.log <<_ACEOF
  2162. This file contains any messages produced by compilers while
  2163. running configure, to aid debugging if configure makes a mistake.
  2164. It was created by dirsrv $as_me 1.0, which was
  2165. generated by GNU Autoconf 2.68. Invocation command line was
  2166. $ $0 $@
  2167. _ACEOF
  2168. exec 5>>config.log
  2169. {
  2170. cat <<_ASUNAME
  2171. ## --------- ##
  2172. ## Platform. ##
  2173. ## --------- ##
  2174. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2175. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2176. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2177. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2178. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2179. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2180. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2181. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2182. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2183. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2184. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2185. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2186. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2187. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2188. _ASUNAME
  2189. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2190. for as_dir in $PATH
  2191. do
  2192. IFS=$as_save_IFS
  2193. test -z "$as_dir" && as_dir=.
  2194. $as_echo "PATH: $as_dir"
  2195. done
  2196. IFS=$as_save_IFS
  2197. } >&5
  2198. cat >&5 <<_ACEOF
  2199. ## ----------- ##
  2200. ## Core tests. ##
  2201. ## ----------- ##
  2202. _ACEOF
  2203. # Keep a trace of the command line.
  2204. # Strip out --no-create and --no-recursion so they do not pile up.
  2205. # Strip out --silent because we don't want to record it for future runs.
  2206. # Also quote any args containing shell meta-characters.
  2207. # Make two passes to allow for proper duplicate-argument suppression.
  2208. ac_configure_args=
  2209. ac_configure_args0=
  2210. ac_configure_args1=
  2211. ac_must_keep_next=false
  2212. for ac_pass in 1 2
  2213. do
  2214. for ac_arg
  2215. do
  2216. case $ac_arg in
  2217. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2218. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2219. | -silent | --silent | --silen | --sile | --sil)
  2220. continue ;;
  2221. *\'*)
  2222. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2223. esac
  2224. case $ac_pass in
  2225. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2226. 2)
  2227. as_fn_append ac_configure_args1 " '$ac_arg'"
  2228. if test $ac_must_keep_next = true; then
  2229. ac_must_keep_next=false # Got value, back to normal.
  2230. else
  2231. case $ac_arg in
  2232. *=* | --config-cache | -C | -disable-* | --disable-* \
  2233. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2234. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2235. | -with-* | --with-* | -without-* | --without-* | --x)
  2236. case "$ac_configure_args0 " in
  2237. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2238. esac
  2239. ;;
  2240. -* ) ac_must_keep_next=true ;;
  2241. esac
  2242. fi
  2243. as_fn_append ac_configure_args " '$ac_arg'"
  2244. ;;
  2245. esac
  2246. done
  2247. done
  2248. { ac_configure_args0=; unset ac_configure_args0;}
  2249. { ac_configure_args1=; unset ac_configure_args1;}
  2250. # When interrupted or exit'd, cleanup temporary files, and complete
  2251. # config.log. We remove comments because anyway the quotes in there
  2252. # would cause problems or look ugly.
  2253. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2254. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2255. trap 'exit_status=$?
  2256. # Save into config.log some information that might help in debugging.
  2257. {
  2258. echo
  2259. $as_echo "## ---------------- ##
  2260. ## Cache variables. ##
  2261. ## ---------------- ##"
  2262. echo
  2263. # The following way of writing the cache mishandles newlines in values,
  2264. (
  2265. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2266. eval ac_val=\$$ac_var
  2267. case $ac_val in #(
  2268. *${as_nl}*)
  2269. case $ac_var in #(
  2270. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2271. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2272. esac
  2273. case $ac_var in #(
  2274. _ | IFS | as_nl) ;; #(
  2275. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2276. *) { eval $ac_var=; unset $ac_var;} ;;
  2277. esac ;;
  2278. esac
  2279. done
  2280. (set) 2>&1 |
  2281. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2282. *${as_nl}ac_space=\ *)
  2283. sed -n \
  2284. "s/'\''/'\''\\\\'\'''\''/g;
  2285. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2286. ;; #(
  2287. *)
  2288. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2289. ;;
  2290. esac |
  2291. sort
  2292. )
  2293. echo
  2294. $as_echo "## ----------------- ##
  2295. ## Output variables. ##
  2296. ## ----------------- ##"
  2297. echo
  2298. for ac_var in $ac_subst_vars
  2299. do
  2300. eval ac_val=\$$ac_var
  2301. case $ac_val in
  2302. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2303. esac
  2304. $as_echo "$ac_var='\''$ac_val'\''"
  2305. done | sort
  2306. echo
  2307. if test -n "$ac_subst_files"; then
  2308. $as_echo "## ------------------- ##
  2309. ## File substitutions. ##
  2310. ## ------------------- ##"
  2311. echo
  2312. for ac_var in $ac_subst_files
  2313. do
  2314. eval ac_val=\$$ac_var
  2315. case $ac_val in
  2316. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2317. esac
  2318. $as_echo "$ac_var='\''$ac_val'\''"
  2319. done | sort
  2320. echo
  2321. fi
  2322. if test -s confdefs.h; then
  2323. $as_echo "## ----------- ##
  2324. ## confdefs.h. ##
  2325. ## ----------- ##"
  2326. echo
  2327. cat confdefs.h
  2328. echo
  2329. fi
  2330. test "$ac_signal" != 0 &&
  2331. $as_echo "$as_me: caught signal $ac_signal"
  2332. $as_echo "$as_me: exit $exit_status"
  2333. } >&5
  2334. rm -f core *.core core.conftest.* &&
  2335. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2336. exit $exit_status
  2337. ' 0
  2338. for ac_signal in 1 2 13 15; do
  2339. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2340. done
  2341. ac_signal=0
  2342. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2343. rm -f -r conftest* confdefs.h
  2344. $as_echo "/* confdefs.h */" > confdefs.h
  2345. # Predefined preprocessor variables.
  2346. cat >>confdefs.h <<_ACEOF
  2347. #define PACKAGE_NAME "$PACKAGE_NAME"
  2348. _ACEOF
  2349. cat >>confdefs.h <<_ACEOF
  2350. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2351. _ACEOF
  2352. cat >>confdefs.h <<_ACEOF
  2353. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2354. _ACEOF
  2355. cat >>confdefs.h <<_ACEOF
  2356. #define PACKAGE_STRING "$PACKAGE_STRING"
  2357. _ACEOF
  2358. cat >>confdefs.h <<_ACEOF
  2359. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2360. _ACEOF
  2361. cat >>confdefs.h <<_ACEOF
  2362. #define PACKAGE_URL "$PACKAGE_URL"
  2363. _ACEOF
  2364. # Let the site file select an alternate cache file if it wants to.
  2365. # Prefer an explicitly selected file to automatically selected ones.
  2366. ac_site_file1=NONE
  2367. ac_site_file2=NONE
  2368. if test -n "$CONFIG_SITE"; then
  2369. # We do not want a PATH search for config.site.
  2370. case $CONFIG_SITE in #((
  2371. -*) ac_site_file1=./$CONFIG_SITE;;
  2372. */*) ac_site_file1=$CONFIG_SITE;;
  2373. *) ac_site_file1=./$CONFIG_SITE;;
  2374. esac
  2375. elif test "x$prefix" != xNONE; then
  2376. ac_site_file1=$prefix/share/config.site
  2377. ac_site_file2=$prefix/etc/config.site
  2378. else
  2379. ac_site_file1=$ac_default_prefix/share/config.site
  2380. ac_site_file2=$ac_default_prefix/etc/config.site
  2381. fi
  2382. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2383. do
  2384. test "x$ac_site_file" = xNONE && continue
  2385. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2386. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2387. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2388. sed 's/^/| /' "$ac_site_file" >&5
  2389. . "$ac_site_file" \
  2390. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2391. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2392. as_fn_error $? "failed to load site script $ac_site_file
  2393. See \`config.log' for more details" "$LINENO" 5; }
  2394. fi
  2395. done
  2396. if test -r "$cache_file"; then
  2397. # Some versions of bash will fail to source /dev/null (special files
  2398. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2399. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2400. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2401. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2402. case $cache_file in
  2403. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2404. *) . "./$cache_file";;
  2405. esac
  2406. fi
  2407. else
  2408. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2409. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2410. >$cache_file
  2411. fi
  2412. as_fn_append ac_header_list " stdlib.h"
  2413. as_fn_append ac_header_list " unistd.h"
  2414. as_fn_append ac_header_list " sys/param.h"
  2415. # Check that the precious variables saved in the cache have kept the same
  2416. # value.
  2417. ac_cache_corrupted=false
  2418. for ac_var in $ac_precious_vars; do
  2419. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2420. eval ac_new_set=\$ac_env_${ac_var}_set
  2421. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2422. eval ac_new_val=\$ac_env_${ac_var}_value
  2423. case $ac_old_set,$ac_new_set in
  2424. set,)
  2425. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2426. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2427. ac_cache_corrupted=: ;;
  2428. ,set)
  2429. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2430. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2431. ac_cache_corrupted=: ;;
  2432. ,);;
  2433. *)
  2434. if test "x$ac_old_val" != "x$ac_new_val"; then
  2435. # differences in whitespace do not lead to failure.
  2436. ac_old_val_w=`echo x $ac_old_val`
  2437. ac_new_val_w=`echo x $ac_new_val`
  2438. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2439. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2440. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2441. ac_cache_corrupted=:
  2442. else
  2443. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2444. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2445. eval $ac_var=\$ac_old_val
  2446. fi
  2447. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2448. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2449. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2450. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2451. fi;;
  2452. esac
  2453. # Pass precious variables to config.status.
  2454. if test "$ac_new_set" = set; then
  2455. case $ac_new_val in
  2456. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2457. *) ac_arg=$ac_var=$ac_new_val ;;
  2458. esac
  2459. case " $ac_configure_args " in
  2460. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2461. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2462. esac
  2463. fi
  2464. done
  2465. if $ac_cache_corrupted; then
  2466. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2467. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2468. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2469. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2470. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2471. fi
  2472. ## -------------------- ##
  2473. ## Main body of script. ##
  2474. ## -------------------- ##
  2475. ac_ext=c
  2476. ac_cpp='$CPP $CPPFLAGS'
  2477. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2478. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2479. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2480. # AC_CONFIG_HEADER must be called right after AC_INIT.
  2481. ac_config_headers="$ac_config_headers config.h"
  2482. # include the version information
  2483. . $srcdir/VERSION.sh
  2484. { $as_echo "$as_me:${as_lineno-$LINENO}: This is configure for $PACKAGE_TARNAME $PACKAGE_VERSION" >&5
  2485. $as_echo "$as_me: This is configure for $PACKAGE_TARNAME $PACKAGE_VERSION" >&6;}
  2486. cat >>confdefs.h <<_ACEOF
  2487. #define DS_PACKAGE_VERSION "$PACKAGE_VERSION"
  2488. _ACEOF
  2489. cat >>confdefs.h <<_ACEOF
  2490. #define DS_PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2491. _ACEOF
  2492. cat >>confdefs.h <<_ACEOF
  2493. #define DS_PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2494. _ACEOF
  2495. cat >>confdefs.h <<_ACEOF
  2496. #define DS_PACKAGE_STRING "$PACKAGE_STRING"
  2497. _ACEOF
  2498. am__api_version='1.11'
  2499. ac_aux_dir=
  2500. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2501. if test -f "$ac_dir/install-sh"; then
  2502. ac_aux_dir=$ac_dir
  2503. ac_install_sh="$ac_aux_dir/install-sh -c"
  2504. break
  2505. elif test -f "$ac_dir/install.sh"; then
  2506. ac_aux_dir=$ac_dir
  2507. ac_install_sh="$ac_aux_dir/install.sh -c"
  2508. break
  2509. elif test -f "$ac_dir/shtool"; then
  2510. ac_aux_dir=$ac_dir
  2511. ac_install_sh="$ac_aux_dir/shtool install -c"
  2512. break
  2513. fi
  2514. done
  2515. if test -z "$ac_aux_dir"; then
  2516. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2517. fi
  2518. # These three variables are undocumented and unsupported,
  2519. # and are intended to be withdrawn in a future Autoconf release.
  2520. # They can cause serious problems if a builder's source tree is in a directory
  2521. # whose full name contains unusual characters.
  2522. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2523. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2524. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2525. # Find a good install program. We prefer a C program (faster),
  2526. # so one script is as good as another. But avoid the broken or
  2527. # incompatible versions:
  2528. # SysV /etc/install, /usr/sbin/install
  2529. # SunOS /usr/etc/install
  2530. # IRIX /sbin/install
  2531. # AIX /bin/install
  2532. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2533. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2534. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2535. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2536. # OS/2's system install, which has a completely different semantic
  2537. # ./install, which can be erroneously created by make from ./install.sh.
  2538. # Reject install programs that cannot install multiple files.
  2539. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2540. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2541. if test -z "$INSTALL"; then
  2542. if ${ac_cv_path_install+:} false; then :
  2543. $as_echo_n "(cached) " >&6
  2544. else
  2545. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2546. for as_dir in $PATH
  2547. do
  2548. IFS=$as_save_IFS
  2549. test -z "$as_dir" && as_dir=.
  2550. # Account for people who put trailing slashes in PATH elements.
  2551. case $as_dir/ in #((
  2552. ./ | .// | /[cC]/* | \
  2553. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2554. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2555. /usr/ucb/* ) ;;
  2556. *)
  2557. # OSF1 and SCO ODT 3.0 have their own names for install.
  2558. # Don't use installbsd from OSF since it installs stuff as root
  2559. # by default.
  2560. for ac_prog in ginstall scoinst install; do
  2561. for ac_exec_ext in '' $ac_executable_extensions; do
  2562. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  2563. if test $ac_prog = install &&
  2564. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2565. # AIX install. It has an incompatible calling convention.
  2566. :
  2567. elif test $ac_prog = install &&
  2568. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2569. # program-specific install script used by HP pwplus--don't use.
  2570. :
  2571. else
  2572. rm -rf conftest.one conftest.two conftest.dir
  2573. echo one > conftest.one
  2574. echo two > conftest.two
  2575. mkdir conftest.dir
  2576. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2577. test -s conftest.one && test -s conftest.two &&
  2578. test -s conftest.dir/conftest.one &&
  2579. test -s conftest.dir/conftest.two
  2580. then
  2581. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2582. break 3
  2583. fi
  2584. fi
  2585. fi
  2586. done
  2587. done
  2588. ;;
  2589. esac
  2590. done
  2591. IFS=$as_save_IFS
  2592. rm -rf conftest.one conftest.two conftest.dir
  2593. fi
  2594. if test "${ac_cv_path_install+set}" = set; then
  2595. INSTALL=$ac_cv_path_install
  2596. else
  2597. # As a last resort, use the slow shell script. Don't cache a
  2598. # value for INSTALL within a source directory, because that will
  2599. # break other packages using the cache if that directory is
  2600. # removed, or if the value is a relative name.
  2601. INSTALL=$ac_install_sh
  2602. fi
  2603. fi
  2604. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2605. $as_echo "$INSTALL" >&6; }
  2606. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2607. # It thinks the first close brace ends the variable substitution.
  2608. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2609. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2610. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2611. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2612. $as_echo_n "checking whether build environment is sane... " >&6; }
  2613. # Just in case
  2614. sleep 1
  2615. echo timestamp > conftest.file
  2616. # Reject unsafe characters in $srcdir or the absolute working directory
  2617. # name. Accept space and tab only in the latter.
  2618. am_lf='
  2619. '
  2620. case `pwd` in
  2621. *[\\\"\#\$\&\'\`$am_lf]*)
  2622. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  2623. esac
  2624. case $srcdir in
  2625. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2626. as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
  2627. esac
  2628. # Do `set' in a subshell so we don't clobber the current shell's
  2629. # arguments. Must try -L first in case configure is actually a
  2630. # symlink; some systems play weird games with the mod time of symlinks
  2631. # (eg FreeBSD returns the mod time of the symlink's containing
  2632. # directory).
  2633. if (
  2634. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2635. if test "$*" = "X"; then
  2636. # -L didn't work.
  2637. set X `ls -t "$srcdir/configure" conftest.file`
  2638. fi
  2639. rm -f conftest.file
  2640. if test "$*" != "X $srcdir/configure conftest.file" \
  2641. && test "$*" != "X conftest.file $srcdir/configure"; then
  2642. # If neither matched, then we have a broken ls. This can happen
  2643. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2644. # broken ls alias from the environment. This has actually
  2645. # happened. Such a system could not be considered "sane".
  2646. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  2647. alias in your environment" "$LINENO" 5
  2648. fi
  2649. test "$2" = conftest.file
  2650. )
  2651. then
  2652. # Ok.
  2653. :
  2654. else
  2655. as_fn_error $? "newly created file is older than distributed files!
  2656. Check your system clock" "$LINENO" 5
  2657. fi
  2658. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2659. $as_echo "yes" >&6; }
  2660. test "$program_prefix" != NONE &&
  2661. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2662. # Use a double $ so make ignores it.
  2663. test "$program_suffix" != NONE &&
  2664. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2665. # Double any \ or $.
  2666. # By default was `s,x,x', remove it if useless.
  2667. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2668. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2669. # expand $ac_aux_dir to an absolute path
  2670. am_aux_dir=`cd $ac_aux_dir && pwd`
  2671. if test x"${MISSING+set}" != xset; then
  2672. case $am_aux_dir in
  2673. *\ * | *\ *)
  2674. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2675. *)
  2676. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2677. esac
  2678. fi
  2679. # Use eval to expand $SHELL
  2680. if eval "$MISSING --run true"; then
  2681. am_missing_run="$MISSING --run "
  2682. else
  2683. am_missing_run=
  2684. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
  2685. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  2686. fi
  2687. if test x"${install_sh}" != xset; then
  2688. case $am_aux_dir in
  2689. *\ * | *\ *)
  2690. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2691. *)
  2692. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2693. esac
  2694. fi
  2695. # Installed binaries are usually stripped using `strip' when the user
  2696. # run `make install-strip'. However `strip' might not be the right
  2697. # tool to use in cross-compilation environments, therefore Automake
  2698. # will honor the `STRIP' environment variable to overrule this program.
  2699. if test "$cross_compiling" != no; then
  2700. if test -n "$ac_tool_prefix"; then
  2701. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2702. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2703. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2704. $as_echo_n "checking for $ac_word... " >&6; }
  2705. if ${ac_cv_prog_STRIP+:} false; then :
  2706. $as_echo_n "(cached) " >&6
  2707. else
  2708. if test -n "$STRIP"; then
  2709. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2710. else
  2711. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2712. for as_dir in $PATH
  2713. do
  2714. IFS=$as_save_IFS
  2715. test -z "$as_dir" && as_dir=.
  2716. for ac_exec_ext in '' $ac_executable_extensions; do
  2717. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2718. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2719. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2720. break 2
  2721. fi
  2722. done
  2723. done
  2724. IFS=$as_save_IFS
  2725. fi
  2726. fi
  2727. STRIP=$ac_cv_prog_STRIP
  2728. if test -n "$STRIP"; then
  2729. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2730. $as_echo "$STRIP" >&6; }
  2731. else
  2732. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2733. $as_echo "no" >&6; }
  2734. fi
  2735. fi
  2736. if test -z "$ac_cv_prog_STRIP"; then
  2737. ac_ct_STRIP=$STRIP
  2738. # Extract the first word of "strip", so it can be a program name with args.
  2739. set dummy strip; ac_word=$2
  2740. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2741. $as_echo_n "checking for $ac_word... " >&6; }
  2742. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  2743. $as_echo_n "(cached) " >&6
  2744. else
  2745. if test -n "$ac_ct_STRIP"; then
  2746. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2747. else
  2748. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2749. for as_dir in $PATH
  2750. do
  2751. IFS=$as_save_IFS
  2752. test -z "$as_dir" && as_dir=.
  2753. for ac_exec_ext in '' $ac_executable_extensions; do
  2754. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2755. ac_cv_prog_ac_ct_STRIP="strip"
  2756. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2757. break 2
  2758. fi
  2759. done
  2760. done
  2761. IFS=$as_save_IFS
  2762. fi
  2763. fi
  2764. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2765. if test -n "$ac_ct_STRIP"; then
  2766. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2767. $as_echo "$ac_ct_STRIP" >&6; }
  2768. else
  2769. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2770. $as_echo "no" >&6; }
  2771. fi
  2772. if test "x$ac_ct_STRIP" = x; then
  2773. STRIP=":"
  2774. else
  2775. case $cross_compiling:$ac_tool_warned in
  2776. yes:)
  2777. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2778. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2779. ac_tool_warned=yes ;;
  2780. esac
  2781. STRIP=$ac_ct_STRIP
  2782. fi
  2783. else
  2784. STRIP="$ac_cv_prog_STRIP"
  2785. fi
  2786. fi
  2787. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2788. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2789. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2790. if test -z "$MKDIR_P"; then
  2791. if ${ac_cv_path_mkdir+:} false; then :
  2792. $as_echo_n "(cached) " >&6
  2793. else
  2794. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2795. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2796. do
  2797. IFS=$as_save_IFS
  2798. test -z "$as_dir" && as_dir=.
  2799. for ac_prog in mkdir gmkdir; do
  2800. for ac_exec_ext in '' $ac_executable_extensions; do
  2801. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  2802. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2803. 'mkdir (GNU coreutils) '* | \
  2804. 'mkdir (coreutils) '* | \
  2805. 'mkdir (fileutils) '4.1*)
  2806. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2807. break 3;;
  2808. esac
  2809. done
  2810. done
  2811. done
  2812. IFS=$as_save_IFS
  2813. fi
  2814. test -d ./--version && rmdir ./--version
  2815. if test "${ac_cv_path_mkdir+set}" = set; then
  2816. MKDIR_P="$ac_cv_path_mkdir -p"
  2817. else
  2818. # As a last resort, use the slow shell script. Don't cache a
  2819. # value for MKDIR_P within a source directory, because that will
  2820. # break other packages using the cache if that directory is
  2821. # removed, or if the value is a relative name.
  2822. MKDIR_P="$ac_install_sh -d"
  2823. fi
  2824. fi
  2825. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2826. $as_echo "$MKDIR_P" >&6; }
  2827. mkdir_p="$MKDIR_P"
  2828. case $mkdir_p in
  2829. [\\/$]* | ?:[\\/]*) ;;
  2830. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  2831. esac
  2832. for ac_prog in gawk mawk nawk awk
  2833. do
  2834. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2835. set dummy $ac_prog; ac_word=$2
  2836. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2837. $as_echo_n "checking for $ac_word... " >&6; }
  2838. if ${ac_cv_prog_AWK+:} false; then :
  2839. $as_echo_n "(cached) " >&6
  2840. else
  2841. if test -n "$AWK"; then
  2842. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2843. else
  2844. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2845. for as_dir in $PATH
  2846. do
  2847. IFS=$as_save_IFS
  2848. test -z "$as_dir" && as_dir=.
  2849. for ac_exec_ext in '' $ac_executable_extensions; do
  2850. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2851. ac_cv_prog_AWK="$ac_prog"
  2852. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2853. break 2
  2854. fi
  2855. done
  2856. done
  2857. IFS=$as_save_IFS
  2858. fi
  2859. fi
  2860. AWK=$ac_cv_prog_AWK
  2861. if test -n "$AWK"; then
  2862. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2863. $as_echo "$AWK" >&6; }
  2864. else
  2865. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2866. $as_echo "no" >&6; }
  2867. fi
  2868. test -n "$AWK" && break
  2869. done
  2870. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2871. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2872. set x ${MAKE-make}
  2873. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2874. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  2875. $as_echo_n "(cached) " >&6
  2876. else
  2877. cat >conftest.make <<\_ACEOF
  2878. SHELL = /bin/sh
  2879. all:
  2880. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2881. _ACEOF
  2882. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  2883. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2884. *@@@%%%=?*=@@@%%%*)
  2885. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2886. *)
  2887. eval ac_cv_prog_make_${ac_make}_set=no;;
  2888. esac
  2889. rm -f conftest.make
  2890. fi
  2891. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2892. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2893. $as_echo "yes" >&6; }
  2894. SET_MAKE=
  2895. else
  2896. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2897. $as_echo "no" >&6; }
  2898. SET_MAKE="MAKE=${MAKE-make}"
  2899. fi
  2900. rm -rf .tst 2>/dev/null
  2901. mkdir .tst 2>/dev/null
  2902. if test -d .tst; then
  2903. am__leading_dot=.
  2904. else
  2905. am__leading_dot=_
  2906. fi
  2907. rmdir .tst 2>/dev/null
  2908. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2909. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2910. # is not polluted with repeated "-I."
  2911. am__isrc=' -I$(srcdir)'
  2912. # test to see if srcdir already configured
  2913. if test -f $srcdir/config.status; then
  2914. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2915. fi
  2916. fi
  2917. # test whether we have cygpath
  2918. if test -z "$CYGPATH_W"; then
  2919. if (cygpath --version) >/dev/null 2>/dev/null; then
  2920. CYGPATH_W='cygpath -w'
  2921. else
  2922. CYGPATH_W=echo
  2923. fi
  2924. fi
  2925. # Define the identity of the package.
  2926. PACKAGE='dirsrv'
  2927. VERSION='1.0'
  2928. # Some tools Automake needs.
  2929. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2930. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2931. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2932. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2933. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2934. # We need awk for the "check" target. The system "awk" is bad on
  2935. # some platforms.
  2936. # Always define AMTAR for backward compatibility.
  2937. AMTAR=${AMTAR-"${am_missing_run}tar"}
  2938. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  2939. # define these for automake distdir
  2940. VERSION=$PACKAGE_VERSION
  2941. PACKAGE=$PACKAGE_TARNAME
  2942. cat >>confdefs.h <<_ACEOF
  2943. #define VERSION "$VERSION"
  2944. _ACEOF
  2945. cat >>confdefs.h <<_ACEOF
  2946. #define PACKAGE "$PACKAGE"
  2947. _ACEOF
  2948. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  2949. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  2950. # Check whether --enable-maintainer-mode was given.
  2951. if test "${enable_maintainer_mode+set}" = set; then :
  2952. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  2953. else
  2954. USE_MAINTAINER_MODE=no
  2955. fi
  2956. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  2957. $as_echo "$USE_MAINTAINER_MODE" >&6; }
  2958. if test $USE_MAINTAINER_MODE = yes; then
  2959. MAINTAINER_MODE_TRUE=
  2960. MAINTAINER_MODE_FALSE='#'
  2961. else
  2962. MAINTAINER_MODE_TRUE='#'
  2963. MAINTAINER_MODE_FALSE=
  2964. fi
  2965. MAINT=$MAINTAINER_MODE_TRUE
  2966. # Make sure we can run config.sub.
  2967. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2968. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2969. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2970. $as_echo_n "checking build system type... " >&6; }
  2971. if ${ac_cv_build+:} false; then :
  2972. $as_echo_n "(cached) " >&6
  2973. else
  2974. ac_build_alias=$build_alias
  2975. test "x$ac_build_alias" = x &&
  2976. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2977. test "x$ac_build_alias" = x &&
  2978. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2979. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2980. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2981. fi
  2982. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2983. $as_echo "$ac_cv_build" >&6; }
  2984. case $ac_cv_build in
  2985. *-*-*) ;;
  2986. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2987. esac
  2988. build=$ac_cv_build
  2989. ac_save_IFS=$IFS; IFS='-'
  2990. set x $ac_cv_build
  2991. shift
  2992. build_cpu=$1
  2993. build_vendor=$2
  2994. shift; shift
  2995. # Remember, the first character of IFS is used to create $*,
  2996. # except with old shells:
  2997. build_os=$*
  2998. IFS=$ac_save_IFS
  2999. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  3000. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  3001. $as_echo_n "checking host system type... " >&6; }
  3002. if ${ac_cv_host+:} false; then :
  3003. $as_echo_n "(cached) " >&6
  3004. else
  3005. if test "x$host_alias" = x; then
  3006. ac_cv_host=$ac_cv_build
  3007. else
  3008. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  3009. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  3010. fi
  3011. fi
  3012. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  3013. $as_echo "$ac_cv_host" >&6; }
  3014. case $ac_cv_host in
  3015. *-*-*) ;;
  3016. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  3017. esac
  3018. host=$ac_cv_host
  3019. ac_save_IFS=$IFS; IFS='-'
  3020. set x $ac_cv_host
  3021. shift
  3022. host_cpu=$1
  3023. host_vendor=$2
  3024. shift; shift
  3025. # Remember, the first character of IFS is used to create $*,
  3026. # except with old shells:
  3027. host_os=$*
  3028. IFS=$ac_save_IFS
  3029. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  3030. # Checks for programs.
  3031. ac_ext=cpp
  3032. ac_cpp='$CXXCPP $CPPFLAGS'
  3033. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3034. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3035. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3036. if test -z "$CXX"; then
  3037. if test -n "$CCC"; then
  3038. CXX=$CCC
  3039. else
  3040. if test -n "$ac_tool_prefix"; then
  3041. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  3042. do
  3043. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3044. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3045. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3046. $as_echo_n "checking for $ac_word... " >&6; }
  3047. if ${ac_cv_prog_CXX+:} false; then :
  3048. $as_echo_n "(cached) " >&6
  3049. else
  3050. if test -n "$CXX"; then
  3051. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  3052. else
  3053. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3054. for as_dir in $PATH
  3055. do
  3056. IFS=$as_save_IFS
  3057. test -z "$as_dir" && as_dir=.
  3058. for ac_exec_ext in '' $ac_executable_extensions; do
  3059. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3060. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  3061. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3062. break 2
  3063. fi
  3064. done
  3065. done
  3066. IFS=$as_save_IFS
  3067. fi
  3068. fi
  3069. CXX=$ac_cv_prog_CXX
  3070. if test -n "$CXX"; then
  3071. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  3072. $as_echo "$CXX" >&6; }
  3073. else
  3074. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3075. $as_echo "no" >&6; }
  3076. fi
  3077. test -n "$CXX" && break
  3078. done
  3079. fi
  3080. if test -z "$CXX"; then
  3081. ac_ct_CXX=$CXX
  3082. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  3083. do
  3084. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3085. set dummy $ac_prog; ac_word=$2
  3086. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3087. $as_echo_n "checking for $ac_word... " >&6; }
  3088. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  3089. $as_echo_n "(cached) " >&6
  3090. else
  3091. if test -n "$ac_ct_CXX"; then
  3092. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  3093. else
  3094. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3095. for as_dir in $PATH
  3096. do
  3097. IFS=$as_save_IFS
  3098. test -z "$as_dir" && as_dir=.
  3099. for ac_exec_ext in '' $ac_executable_extensions; do
  3100. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3101. ac_cv_prog_ac_ct_CXX="$ac_prog"
  3102. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3103. break 2
  3104. fi
  3105. done
  3106. done
  3107. IFS=$as_save_IFS
  3108. fi
  3109. fi
  3110. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  3111. if test -n "$ac_ct_CXX"; then
  3112. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  3113. $as_echo "$ac_ct_CXX" >&6; }
  3114. else
  3115. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3116. $as_echo "no" >&6; }
  3117. fi
  3118. test -n "$ac_ct_CXX" && break
  3119. done
  3120. if test "x$ac_ct_CXX" = x; then
  3121. CXX="g++"
  3122. else
  3123. case $cross_compiling:$ac_tool_warned in
  3124. yes:)
  3125. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3126. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3127. ac_tool_warned=yes ;;
  3128. esac
  3129. CXX=$ac_ct_CXX
  3130. fi
  3131. fi
  3132. fi
  3133. fi
  3134. # Provide some information about the compiler.
  3135. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  3136. set X $ac_compile
  3137. ac_compiler=$2
  3138. for ac_option in --version -v -V -qversion; do
  3139. { { ac_try="$ac_compiler $ac_option >&5"
  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_compiler $ac_option >&5") 2>conftest.err
  3147. ac_status=$?
  3148. if test -s conftest.err; then
  3149. sed '10a\
  3150. ... rest of stderr output deleted ...
  3151. 10q' conftest.err >conftest.er1
  3152. cat conftest.er1 >&5
  3153. fi
  3154. rm -f conftest.er1 conftest.err
  3155. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3156. test $ac_status = 0; }
  3157. done
  3158. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3159. /* end confdefs.h. */
  3160. int
  3161. main ()
  3162. {
  3163. ;
  3164. return 0;
  3165. }
  3166. _ACEOF
  3167. ac_clean_files_save=$ac_clean_files
  3168. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3169. # Try to create an executable without -o first, disregard a.out.
  3170. # It will help us diagnose broken compilers, and finding out an intuition
  3171. # of exeext.
  3172. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
  3173. $as_echo_n "checking whether the C++ compiler works... " >&6; }
  3174. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3175. # The possible output files:
  3176. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3177. ac_rmfiles=
  3178. for ac_file in $ac_files
  3179. do
  3180. case $ac_file in
  3181. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3182. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3183. esac
  3184. done
  3185. rm -f $ac_rmfiles
  3186. if { { ac_try="$ac_link_default"
  3187. case "(($ac_try" in
  3188. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3189. *) ac_try_echo=$ac_try;;
  3190. esac
  3191. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3192. $as_echo "$ac_try_echo"; } >&5
  3193. (eval "$ac_link_default") 2>&5
  3194. ac_status=$?
  3195. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3196. test $ac_status = 0; }; then :
  3197. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3198. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3199. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3200. # so that the user can short-circuit this test for compilers unknown to
  3201. # Autoconf.
  3202. for ac_file in $ac_files ''
  3203. do
  3204. test -f "$ac_file" || continue
  3205. case $ac_file in
  3206. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3207. ;;
  3208. [ab].out )
  3209. # We found the default executable, but exeext='' is most
  3210. # certainly right.
  3211. break;;
  3212. *.* )
  3213. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3214. then :; else
  3215. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3216. fi
  3217. # We set ac_cv_exeext here because the later test for it is not
  3218. # safe: cross compilers may not add the suffix if given an `-o'
  3219. # argument, so we may need to know it at that point already.
  3220. # Even if this section looks crufty: it has the advantage of
  3221. # actually working.
  3222. break;;
  3223. * )
  3224. break;;
  3225. esac
  3226. done
  3227. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3228. else
  3229. ac_file=''
  3230. fi
  3231. if test -z "$ac_file"; then :
  3232. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3233. $as_echo "no" >&6; }
  3234. $as_echo "$as_me: failed program was:" >&5
  3235. sed 's/^/| /' conftest.$ac_ext >&5
  3236. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3237. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3238. as_fn_error 77 "C++ compiler cannot create executables
  3239. See \`config.log' for more details" "$LINENO" 5; }
  3240. else
  3241. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3242. $as_echo "yes" >&6; }
  3243. fi
  3244. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
  3245. $as_echo_n "checking for C++ compiler default output file name... " >&6; }
  3246. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3247. $as_echo "$ac_file" >&6; }
  3248. ac_exeext=$ac_cv_exeext
  3249. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3250. ac_clean_files=$ac_clean_files_save
  3251. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3252. $as_echo_n "checking for suffix of executables... " >&6; }
  3253. if { { ac_try="$ac_link"
  3254. case "(($ac_try" in
  3255. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3256. *) ac_try_echo=$ac_try;;
  3257. esac
  3258. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3259. $as_echo "$ac_try_echo"; } >&5
  3260. (eval "$ac_link") 2>&5
  3261. ac_status=$?
  3262. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3263. test $ac_status = 0; }; then :
  3264. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3265. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3266. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3267. # `rm'.
  3268. for ac_file in conftest.exe conftest conftest.*; do
  3269. test -f "$ac_file" || continue
  3270. case $ac_file in
  3271. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3272. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3273. break;;
  3274. * ) break;;
  3275. esac
  3276. done
  3277. else
  3278. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3279. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3280. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3281. See \`config.log' for more details" "$LINENO" 5; }
  3282. fi
  3283. rm -f conftest conftest$ac_cv_exeext
  3284. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3285. $as_echo "$ac_cv_exeext" >&6; }
  3286. rm -f conftest.$ac_ext
  3287. EXEEXT=$ac_cv_exeext
  3288. ac_exeext=$EXEEXT
  3289. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3290. /* end confdefs.h. */
  3291. #include <stdio.h>
  3292. int
  3293. main ()
  3294. {
  3295. FILE *f = fopen ("conftest.out", "w");
  3296. return ferror (f) || fclose (f) != 0;
  3297. ;
  3298. return 0;
  3299. }
  3300. _ACEOF
  3301. ac_clean_files="$ac_clean_files conftest.out"
  3302. # Check that the compiler produces executables we can run. If not, either
  3303. # the compiler is broken, or we cross compile.
  3304. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3305. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3306. if test "$cross_compiling" != yes; then
  3307. { { ac_try="$ac_link"
  3308. case "(($ac_try" in
  3309. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3310. *) ac_try_echo=$ac_try;;
  3311. esac
  3312. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3313. $as_echo "$ac_try_echo"; } >&5
  3314. (eval "$ac_link") 2>&5
  3315. ac_status=$?
  3316. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3317. test $ac_status = 0; }
  3318. if { ac_try='./conftest$ac_cv_exeext'
  3319. { { case "(($ac_try" in
  3320. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3321. *) ac_try_echo=$ac_try;;
  3322. esac
  3323. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3324. $as_echo "$ac_try_echo"; } >&5
  3325. (eval "$ac_try") 2>&5
  3326. ac_status=$?
  3327. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3328. test $ac_status = 0; }; }; then
  3329. cross_compiling=no
  3330. else
  3331. if test "$cross_compiling" = maybe; then
  3332. cross_compiling=yes
  3333. else
  3334. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3335. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3336. as_fn_error $? "cannot run C++ compiled programs.
  3337. If you meant to cross compile, use \`--host'.
  3338. See \`config.log' for more details" "$LINENO" 5; }
  3339. fi
  3340. fi
  3341. fi
  3342. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3343. $as_echo "$cross_compiling" >&6; }
  3344. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3345. ac_clean_files=$ac_clean_files_save
  3346. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3347. $as_echo_n "checking for suffix of object files... " >&6; }
  3348. if ${ac_cv_objext+:} false; then :
  3349. $as_echo_n "(cached) " >&6
  3350. else
  3351. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3352. /* end confdefs.h. */
  3353. int
  3354. main ()
  3355. {
  3356. ;
  3357. return 0;
  3358. }
  3359. _ACEOF
  3360. rm -f conftest.o conftest.obj
  3361. if { { ac_try="$ac_compile"
  3362. case "(($ac_try" in
  3363. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3364. *) ac_try_echo=$ac_try;;
  3365. esac
  3366. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3367. $as_echo "$ac_try_echo"; } >&5
  3368. (eval "$ac_compile") 2>&5
  3369. ac_status=$?
  3370. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3371. test $ac_status = 0; }; then :
  3372. for ac_file in conftest.o conftest.obj conftest.*; do
  3373. test -f "$ac_file" || continue;
  3374. case $ac_file in
  3375. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3376. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3377. break;;
  3378. esac
  3379. done
  3380. else
  3381. $as_echo "$as_me: failed program was:" >&5
  3382. sed 's/^/| /' conftest.$ac_ext >&5
  3383. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3384. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3385. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3386. See \`config.log' for more details" "$LINENO" 5; }
  3387. fi
  3388. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3389. fi
  3390. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3391. $as_echo "$ac_cv_objext" >&6; }
  3392. OBJEXT=$ac_cv_objext
  3393. ac_objext=$OBJEXT
  3394. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  3395. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  3396. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  3397. $as_echo_n "(cached) " >&6
  3398. else
  3399. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3400. /* end confdefs.h. */
  3401. int
  3402. main ()
  3403. {
  3404. #ifndef __GNUC__
  3405. choke me
  3406. #endif
  3407. ;
  3408. return 0;
  3409. }
  3410. _ACEOF
  3411. if ac_fn_cxx_try_compile "$LINENO"; then :
  3412. ac_compiler_gnu=yes
  3413. else
  3414. ac_compiler_gnu=no
  3415. fi
  3416. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3417. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  3418. fi
  3419. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  3420. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  3421. if test $ac_compiler_gnu = yes; then
  3422. GXX=yes
  3423. else
  3424. GXX=
  3425. fi
  3426. ac_test_CXXFLAGS=${CXXFLAGS+set}
  3427. ac_save_CXXFLAGS=$CXXFLAGS
  3428. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  3429. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  3430. if ${ac_cv_prog_cxx_g+:} false; then :
  3431. $as_echo_n "(cached) " >&6
  3432. else
  3433. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  3434. ac_cxx_werror_flag=yes
  3435. ac_cv_prog_cxx_g=no
  3436. CXXFLAGS="-g"
  3437. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3438. /* end confdefs.h. */
  3439. int
  3440. main ()
  3441. {
  3442. ;
  3443. return 0;
  3444. }
  3445. _ACEOF
  3446. if ac_fn_cxx_try_compile "$LINENO"; then :
  3447. ac_cv_prog_cxx_g=yes
  3448. else
  3449. CXXFLAGS=""
  3450. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3451. /* end confdefs.h. */
  3452. int
  3453. main ()
  3454. {
  3455. ;
  3456. return 0;
  3457. }
  3458. _ACEOF
  3459. if ac_fn_cxx_try_compile "$LINENO"; then :
  3460. else
  3461. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3462. CXXFLAGS="-g"
  3463. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3464. /* end confdefs.h. */
  3465. int
  3466. main ()
  3467. {
  3468. ;
  3469. return 0;
  3470. }
  3471. _ACEOF
  3472. if ac_fn_cxx_try_compile "$LINENO"; then :
  3473. ac_cv_prog_cxx_g=yes
  3474. fi
  3475. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3476. fi
  3477. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3478. fi
  3479. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3480. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3481. fi
  3482. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  3483. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  3484. if test "$ac_test_CXXFLAGS" = set; then
  3485. CXXFLAGS=$ac_save_CXXFLAGS
  3486. elif test $ac_cv_prog_cxx_g = yes; then
  3487. if test "$GXX" = yes; then
  3488. CXXFLAGS="-g -O2"
  3489. else
  3490. CXXFLAGS="-g"
  3491. fi
  3492. else
  3493. if test "$GXX" = yes; then
  3494. CXXFLAGS="-O2"
  3495. else
  3496. CXXFLAGS=
  3497. fi
  3498. fi
  3499. ac_ext=c
  3500. ac_cpp='$CPP $CPPFLAGS'
  3501. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3502. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3503. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3504. DEPDIR="${am__leading_dot}deps"
  3505. ac_config_commands="$ac_config_commands depfiles"
  3506. am_make=${MAKE-make}
  3507. cat > confinc << 'END'
  3508. am__doit:
  3509. @echo this is the am__doit target
  3510. .PHONY: am__doit
  3511. END
  3512. # If we don't find an include directive, just comment out the code.
  3513. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3514. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3515. am__include="#"
  3516. am__quote=
  3517. _am_result=none
  3518. # First try GNU make style include.
  3519. echo "include confinc" > confmf
  3520. # Ignore all kinds of additional output from `make'.
  3521. case `$am_make -s -f confmf 2> /dev/null` in #(
  3522. *the\ am__doit\ target*)
  3523. am__include=include
  3524. am__quote=
  3525. _am_result=GNU
  3526. ;;
  3527. esac
  3528. # Now try BSD make style include.
  3529. if test "$am__include" = "#"; then
  3530. echo '.include "confinc"' > confmf
  3531. case `$am_make -s -f confmf 2> /dev/null` in #(
  3532. *the\ am__doit\ target*)
  3533. am__include=.include
  3534. am__quote="\""
  3535. _am_result=BSD
  3536. ;;
  3537. esac
  3538. fi
  3539. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3540. $as_echo "$_am_result" >&6; }
  3541. rm -f confinc confmf
  3542. # Check whether --enable-dependency-tracking was given.
  3543. if test "${enable_dependency_tracking+set}" = set; then :
  3544. enableval=$enable_dependency_tracking;
  3545. fi
  3546. if test "x$enable_dependency_tracking" != xno; then
  3547. am_depcomp="$ac_aux_dir/depcomp"
  3548. AMDEPBACKSLASH='\'
  3549. fi
  3550. if test "x$enable_dependency_tracking" != xno; then
  3551. AMDEP_TRUE=
  3552. AMDEP_FALSE='#'
  3553. else
  3554. AMDEP_TRUE='#'
  3555. AMDEP_FALSE=
  3556. fi
  3557. depcc="$CXX" am_compiler_list=
  3558. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3559. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3560. if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
  3561. $as_echo_n "(cached) " >&6
  3562. else
  3563. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3564. # We make a subdir and do the tests there. Otherwise we can end up
  3565. # making bogus files that we don't know about and never remove. For
  3566. # instance it was reported that on HP-UX the gcc test will end up
  3567. # making a dummy file named `D' -- because `-MD' means `put the output
  3568. # in D'.
  3569. mkdir conftest.dir
  3570. # Copy depcomp to subdir because otherwise we won't find it if we're
  3571. # using a relative directory.
  3572. cp "$am_depcomp" conftest.dir
  3573. cd conftest.dir
  3574. # We will build objects and dependencies in a subdirectory because
  3575. # it helps to detect inapplicable dependency modes. For instance
  3576. # both Tru64's cc and ICC support -MD to output dependencies as a
  3577. # side effect of compilation, but ICC will put the dependencies in
  3578. # the current directory while Tru64 will put them in the object
  3579. # directory.
  3580. mkdir sub
  3581. am_cv_CXX_dependencies_compiler_type=none
  3582. if test "$am_compiler_list" = ""; then
  3583. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3584. fi
  3585. am__universal=false
  3586. case " $depcc " in #(
  3587. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3588. esac
  3589. for depmode in $am_compiler_list; do
  3590. # Setup a source with many dependencies, because some compilers
  3591. # like to wrap large dependency lists on column 80 (with \), and
  3592. # we should not choose a depcomp mode which is confused by this.
  3593. #
  3594. # We need to recreate these files for each test, as the compiler may
  3595. # overwrite some of them when testing with obscure command lines.
  3596. # This happens at least with the AIX C compiler.
  3597. : > sub/conftest.c
  3598. for i in 1 2 3 4 5 6; do
  3599. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3600. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3601. # Solaris 8's {/usr,}/bin/sh.
  3602. touch sub/conftst$i.h
  3603. done
  3604. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3605. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3606. # mode. It turns out that the SunPro C++ compiler does not properly
  3607. # handle `-M -o', and we need to detect this. Also, some Intel
  3608. # versions had trouble with output in subdirs
  3609. am__obj=sub/conftest.${OBJEXT-o}
  3610. am__minus_obj="-o $am__obj"
  3611. case $depmode in
  3612. gcc)
  3613. # This depmode causes a compiler race in universal mode.
  3614. test "$am__universal" = false || continue
  3615. ;;
  3616. nosideeffect)
  3617. # after this tag, mechanisms are not by side-effect, so they'll
  3618. # only be used when explicitly requested
  3619. if test "x$enable_dependency_tracking" = xyes; then
  3620. continue
  3621. else
  3622. break
  3623. fi
  3624. ;;
  3625. msvisualcpp | msvcmsys)
  3626. # This compiler won't grok `-c -o', but also, the minuso test has
  3627. # not run yet. These depmodes are late enough in the game, and
  3628. # so weak that their functioning should not be impacted.
  3629. am__obj=conftest.${OBJEXT-o}
  3630. am__minus_obj=
  3631. ;;
  3632. none) break ;;
  3633. esac
  3634. if depmode=$depmode \
  3635. source=sub/conftest.c object=$am__obj \
  3636. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3637. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3638. >/dev/null 2>conftest.err &&
  3639. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3640. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3641. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3642. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3643. # icc doesn't choke on unknown options, it will just issue warnings
  3644. # or remarks (even with -Werror). So we grep stderr for any message
  3645. # that says an option was ignored or not supported.
  3646. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3647. # icc: Command line warning: ignoring option '-M'; no argument required
  3648. # The diagnosis changed in icc 8.0:
  3649. # icc: Command line remark: option '-MP' not supported
  3650. if (grep 'ignoring option' conftest.err ||
  3651. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3652. am_cv_CXX_dependencies_compiler_type=$depmode
  3653. break
  3654. fi
  3655. fi
  3656. done
  3657. cd ..
  3658. rm -rf conftest.dir
  3659. else
  3660. am_cv_CXX_dependencies_compiler_type=none
  3661. fi
  3662. fi
  3663. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  3664. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  3665. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  3666. if
  3667. test "x$enable_dependency_tracking" != xno \
  3668. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  3669. am__fastdepCXX_TRUE=
  3670. am__fastdepCXX_FALSE='#'
  3671. else
  3672. am__fastdepCXX_TRUE='#'
  3673. am__fastdepCXX_FALSE=
  3674. fi
  3675. ac_ext=c
  3676. ac_cpp='$CPP $CPPFLAGS'
  3677. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3678. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3679. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3680. if test -n "$ac_tool_prefix"; then
  3681. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3682. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3683. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3684. $as_echo_n "checking for $ac_word... " >&6; }
  3685. if ${ac_cv_prog_CC+:} false; then :
  3686. $as_echo_n "(cached) " >&6
  3687. else
  3688. if test -n "$CC"; then
  3689. ac_cv_prog_CC="$CC" # Let the user override the test.
  3690. else
  3691. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3692. for as_dir in $PATH
  3693. do
  3694. IFS=$as_save_IFS
  3695. test -z "$as_dir" && as_dir=.
  3696. for ac_exec_ext in '' $ac_executable_extensions; do
  3697. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3698. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3699. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3700. break 2
  3701. fi
  3702. done
  3703. done
  3704. IFS=$as_save_IFS
  3705. fi
  3706. fi
  3707. CC=$ac_cv_prog_CC
  3708. if test -n "$CC"; then
  3709. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3710. $as_echo "$CC" >&6; }
  3711. else
  3712. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3713. $as_echo "no" >&6; }
  3714. fi
  3715. fi
  3716. if test -z "$ac_cv_prog_CC"; then
  3717. ac_ct_CC=$CC
  3718. # Extract the first word of "gcc", so it can be a program name with args.
  3719. set dummy gcc; ac_word=$2
  3720. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3721. $as_echo_n "checking for $ac_word... " >&6; }
  3722. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3723. $as_echo_n "(cached) " >&6
  3724. else
  3725. if test -n "$ac_ct_CC"; then
  3726. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3727. else
  3728. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3729. for as_dir in $PATH
  3730. do
  3731. IFS=$as_save_IFS
  3732. test -z "$as_dir" && as_dir=.
  3733. for ac_exec_ext in '' $ac_executable_extensions; do
  3734. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3735. ac_cv_prog_ac_ct_CC="gcc"
  3736. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3737. break 2
  3738. fi
  3739. done
  3740. done
  3741. IFS=$as_save_IFS
  3742. fi
  3743. fi
  3744. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3745. if test -n "$ac_ct_CC"; then
  3746. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3747. $as_echo "$ac_ct_CC" >&6; }
  3748. else
  3749. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3750. $as_echo "no" >&6; }
  3751. fi
  3752. if test "x$ac_ct_CC" = x; then
  3753. CC=""
  3754. else
  3755. case $cross_compiling:$ac_tool_warned in
  3756. yes:)
  3757. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3758. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3759. ac_tool_warned=yes ;;
  3760. esac
  3761. CC=$ac_ct_CC
  3762. fi
  3763. else
  3764. CC="$ac_cv_prog_CC"
  3765. fi
  3766. if test -z "$CC"; then
  3767. if test -n "$ac_tool_prefix"; then
  3768. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3769. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3770. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3771. $as_echo_n "checking for $ac_word... " >&6; }
  3772. if ${ac_cv_prog_CC+:} false; then :
  3773. $as_echo_n "(cached) " >&6
  3774. else
  3775. if test -n "$CC"; then
  3776. ac_cv_prog_CC="$CC" # Let the user override the test.
  3777. else
  3778. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3779. for as_dir in $PATH
  3780. do
  3781. IFS=$as_save_IFS
  3782. test -z "$as_dir" && as_dir=.
  3783. for ac_exec_ext in '' $ac_executable_extensions; do
  3784. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3785. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3786. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3787. break 2
  3788. fi
  3789. done
  3790. done
  3791. IFS=$as_save_IFS
  3792. fi
  3793. fi
  3794. CC=$ac_cv_prog_CC
  3795. if test -n "$CC"; then
  3796. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3797. $as_echo "$CC" >&6; }
  3798. else
  3799. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3800. $as_echo "no" >&6; }
  3801. fi
  3802. fi
  3803. fi
  3804. if test -z "$CC"; then
  3805. # Extract the first word of "cc", so it can be a program name with args.
  3806. set dummy cc; ac_word=$2
  3807. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3808. $as_echo_n "checking for $ac_word... " >&6; }
  3809. if ${ac_cv_prog_CC+:} false; then :
  3810. $as_echo_n "(cached) " >&6
  3811. else
  3812. if test -n "$CC"; then
  3813. ac_cv_prog_CC="$CC" # Let the user override the test.
  3814. else
  3815. ac_prog_rejected=no
  3816. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3817. for as_dir in $PATH
  3818. do
  3819. IFS=$as_save_IFS
  3820. test -z "$as_dir" && as_dir=.
  3821. for ac_exec_ext in '' $ac_executable_extensions; do
  3822. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3823. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3824. ac_prog_rejected=yes
  3825. continue
  3826. fi
  3827. ac_cv_prog_CC="cc"
  3828. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3829. break 2
  3830. fi
  3831. done
  3832. done
  3833. IFS=$as_save_IFS
  3834. if test $ac_prog_rejected = yes; then
  3835. # We found a bogon in the path, so make sure we never use it.
  3836. set dummy $ac_cv_prog_CC
  3837. shift
  3838. if test $# != 0; then
  3839. # We chose a different compiler from the bogus one.
  3840. # However, it has the same basename, so the bogon will be chosen
  3841. # first if we set CC to just the basename; use the full file name.
  3842. shift
  3843. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3844. fi
  3845. fi
  3846. fi
  3847. fi
  3848. CC=$ac_cv_prog_CC
  3849. if test -n "$CC"; then
  3850. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3851. $as_echo "$CC" >&6; }
  3852. else
  3853. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3854. $as_echo "no" >&6; }
  3855. fi
  3856. fi
  3857. if test -z "$CC"; then
  3858. if test -n "$ac_tool_prefix"; then
  3859. for ac_prog in cl.exe
  3860. do
  3861. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3862. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3863. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3864. $as_echo_n "checking for $ac_word... " >&6; }
  3865. if ${ac_cv_prog_CC+:} false; then :
  3866. $as_echo_n "(cached) " >&6
  3867. else
  3868. if test -n "$CC"; then
  3869. ac_cv_prog_CC="$CC" # Let the user override the test.
  3870. else
  3871. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3872. for as_dir in $PATH
  3873. do
  3874. IFS=$as_save_IFS
  3875. test -z "$as_dir" && as_dir=.
  3876. for ac_exec_ext in '' $ac_executable_extensions; do
  3877. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3878. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3879. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3880. break 2
  3881. fi
  3882. done
  3883. done
  3884. IFS=$as_save_IFS
  3885. fi
  3886. fi
  3887. CC=$ac_cv_prog_CC
  3888. if test -n "$CC"; then
  3889. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3890. $as_echo "$CC" >&6; }
  3891. else
  3892. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3893. $as_echo "no" >&6; }
  3894. fi
  3895. test -n "$CC" && break
  3896. done
  3897. fi
  3898. if test -z "$CC"; then
  3899. ac_ct_CC=$CC
  3900. for ac_prog in cl.exe
  3901. do
  3902. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3903. set dummy $ac_prog; ac_word=$2
  3904. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3905. $as_echo_n "checking for $ac_word... " >&6; }
  3906. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3907. $as_echo_n "(cached) " >&6
  3908. else
  3909. if test -n "$ac_ct_CC"; then
  3910. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3911. else
  3912. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3913. for as_dir in $PATH
  3914. do
  3915. IFS=$as_save_IFS
  3916. test -z "$as_dir" && as_dir=.
  3917. for ac_exec_ext in '' $ac_executable_extensions; do
  3918. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3919. ac_cv_prog_ac_ct_CC="$ac_prog"
  3920. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3921. break 2
  3922. fi
  3923. done
  3924. done
  3925. IFS=$as_save_IFS
  3926. fi
  3927. fi
  3928. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3929. if test -n "$ac_ct_CC"; then
  3930. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3931. $as_echo "$ac_ct_CC" >&6; }
  3932. else
  3933. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3934. $as_echo "no" >&6; }
  3935. fi
  3936. test -n "$ac_ct_CC" && break
  3937. done
  3938. if test "x$ac_ct_CC" = x; then
  3939. CC=""
  3940. else
  3941. case $cross_compiling:$ac_tool_warned in
  3942. yes:)
  3943. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3944. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3945. ac_tool_warned=yes ;;
  3946. esac
  3947. CC=$ac_ct_CC
  3948. fi
  3949. fi
  3950. fi
  3951. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3952. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3953. as_fn_error $? "no acceptable C compiler found in \$PATH
  3954. See \`config.log' for more details" "$LINENO" 5; }
  3955. # Provide some information about the compiler.
  3956. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3957. set X $ac_compile
  3958. ac_compiler=$2
  3959. for ac_option in --version -v -V -qversion; do
  3960. { { ac_try="$ac_compiler $ac_option >&5"
  3961. case "(($ac_try" in
  3962. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3963. *) ac_try_echo=$ac_try;;
  3964. esac
  3965. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3966. $as_echo "$ac_try_echo"; } >&5
  3967. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3968. ac_status=$?
  3969. if test -s conftest.err; then
  3970. sed '10a\
  3971. ... rest of stderr output deleted ...
  3972. 10q' conftest.err >conftest.er1
  3973. cat conftest.er1 >&5
  3974. fi
  3975. rm -f conftest.er1 conftest.err
  3976. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3977. test $ac_status = 0; }
  3978. done
  3979. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3980. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3981. if ${ac_cv_c_compiler_gnu+:} false; then :
  3982. $as_echo_n "(cached) " >&6
  3983. else
  3984. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3985. /* end confdefs.h. */
  3986. int
  3987. main ()
  3988. {
  3989. #ifndef __GNUC__
  3990. choke me
  3991. #endif
  3992. ;
  3993. return 0;
  3994. }
  3995. _ACEOF
  3996. if ac_fn_c_try_compile "$LINENO"; then :
  3997. ac_compiler_gnu=yes
  3998. else
  3999. ac_compiler_gnu=no
  4000. fi
  4001. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4002. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  4003. fi
  4004. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  4005. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  4006. if test $ac_compiler_gnu = yes; then
  4007. GCC=yes
  4008. else
  4009. GCC=
  4010. fi
  4011. ac_test_CFLAGS=${CFLAGS+set}
  4012. ac_save_CFLAGS=$CFLAGS
  4013. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  4014. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  4015. if ${ac_cv_prog_cc_g+:} false; then :
  4016. $as_echo_n "(cached) " >&6
  4017. else
  4018. ac_save_c_werror_flag=$ac_c_werror_flag
  4019. ac_c_werror_flag=yes
  4020. ac_cv_prog_cc_g=no
  4021. CFLAGS="-g"
  4022. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4023. /* end confdefs.h. */
  4024. int
  4025. main ()
  4026. {
  4027. ;
  4028. return 0;
  4029. }
  4030. _ACEOF
  4031. if ac_fn_c_try_compile "$LINENO"; then :
  4032. ac_cv_prog_cc_g=yes
  4033. else
  4034. CFLAGS=""
  4035. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4036. /* end confdefs.h. */
  4037. int
  4038. main ()
  4039. {
  4040. ;
  4041. return 0;
  4042. }
  4043. _ACEOF
  4044. if ac_fn_c_try_compile "$LINENO"; then :
  4045. else
  4046. ac_c_werror_flag=$ac_save_c_werror_flag
  4047. CFLAGS="-g"
  4048. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4049. /* end confdefs.h. */
  4050. int
  4051. main ()
  4052. {
  4053. ;
  4054. return 0;
  4055. }
  4056. _ACEOF
  4057. if ac_fn_c_try_compile "$LINENO"; then :
  4058. ac_cv_prog_cc_g=yes
  4059. fi
  4060. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4061. fi
  4062. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4063. fi
  4064. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4065. ac_c_werror_flag=$ac_save_c_werror_flag
  4066. fi
  4067. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  4068. $as_echo "$ac_cv_prog_cc_g" >&6; }
  4069. if test "$ac_test_CFLAGS" = set; then
  4070. CFLAGS=$ac_save_CFLAGS
  4071. elif test $ac_cv_prog_cc_g = yes; then
  4072. if test "$GCC" = yes; then
  4073. CFLAGS="-g -O2"
  4074. else
  4075. CFLAGS="-g"
  4076. fi
  4077. else
  4078. if test "$GCC" = yes; then
  4079. CFLAGS="-O2"
  4080. else
  4081. CFLAGS=
  4082. fi
  4083. fi
  4084. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  4085. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  4086. if ${ac_cv_prog_cc_c89+:} false; then :
  4087. $as_echo_n "(cached) " >&6
  4088. else
  4089. ac_cv_prog_cc_c89=no
  4090. ac_save_CC=$CC
  4091. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4092. /* end confdefs.h. */
  4093. #include <stdarg.h>
  4094. #include <stdio.h>
  4095. #include <sys/types.h>
  4096. #include <sys/stat.h>
  4097. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  4098. struct buf { int x; };
  4099. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  4100. static char *e (p, i)
  4101. char **p;
  4102. int i;
  4103. {
  4104. return p[i];
  4105. }
  4106. static char *f (char * (*g) (char **, int), char **p, ...)
  4107. {
  4108. char *s;
  4109. va_list v;
  4110. va_start (v,p);
  4111. s = g (p, va_arg (v,int));
  4112. va_end (v);
  4113. return s;
  4114. }
  4115. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  4116. function prototypes and stuff, but not '\xHH' hex character constants.
  4117. These don't provoke an error unfortunately, instead are silently treated
  4118. as 'x'. The following induces an error, until -std is added to get
  4119. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  4120. array size at least. It's necessary to write '\x00'==0 to get something
  4121. that's true only with -std. */
  4122. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  4123. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  4124. inside strings and character constants. */
  4125. #define FOO(x) 'x'
  4126. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  4127. int test (int i, double x);
  4128. struct s1 {int (*f) (int a);};
  4129. struct s2 {int (*f) (double a);};
  4130. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4131. int argc;
  4132. char **argv;
  4133. int
  4134. main ()
  4135. {
  4136. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  4137. ;
  4138. return 0;
  4139. }
  4140. _ACEOF
  4141. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  4142. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4143. do
  4144. CC="$ac_save_CC $ac_arg"
  4145. if ac_fn_c_try_compile "$LINENO"; then :
  4146. ac_cv_prog_cc_c89=$ac_arg
  4147. fi
  4148. rm -f core conftest.err conftest.$ac_objext
  4149. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4150. done
  4151. rm -f conftest.$ac_ext
  4152. CC=$ac_save_CC
  4153. fi
  4154. # AC_CACHE_VAL
  4155. case "x$ac_cv_prog_cc_c89" in
  4156. x)
  4157. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4158. $as_echo "none needed" >&6; } ;;
  4159. xno)
  4160. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4161. $as_echo "unsupported" >&6; } ;;
  4162. *)
  4163. CC="$CC $ac_cv_prog_cc_c89"
  4164. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4165. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  4166. esac
  4167. if test "x$ac_cv_prog_cc_c89" != xno; then :
  4168. fi
  4169. ac_ext=c
  4170. ac_cpp='$CPP $CPPFLAGS'
  4171. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4172. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4173. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4174. depcc="$CC" am_compiler_list=
  4175. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4176. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4177. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  4178. $as_echo_n "(cached) " >&6
  4179. else
  4180. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4181. # We make a subdir and do the tests there. Otherwise we can end up
  4182. # making bogus files that we don't know about and never remove. For
  4183. # instance it was reported that on HP-UX the gcc test will end up
  4184. # making a dummy file named `D' -- because `-MD' means `put the output
  4185. # in D'.
  4186. mkdir conftest.dir
  4187. # Copy depcomp to subdir because otherwise we won't find it if we're
  4188. # using a relative directory.
  4189. cp "$am_depcomp" conftest.dir
  4190. cd conftest.dir
  4191. # We will build objects and dependencies in a subdirectory because
  4192. # it helps to detect inapplicable dependency modes. For instance
  4193. # both Tru64's cc and ICC support -MD to output dependencies as a
  4194. # side effect of compilation, but ICC will put the dependencies in
  4195. # the current directory while Tru64 will put them in the object
  4196. # directory.
  4197. mkdir sub
  4198. am_cv_CC_dependencies_compiler_type=none
  4199. if test "$am_compiler_list" = ""; then
  4200. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4201. fi
  4202. am__universal=false
  4203. case " $depcc " in #(
  4204. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  4205. esac
  4206. for depmode in $am_compiler_list; do
  4207. # Setup a source with many dependencies, because some compilers
  4208. # like to wrap large dependency lists on column 80 (with \), and
  4209. # we should not choose a depcomp mode which is confused by this.
  4210. #
  4211. # We need to recreate these files for each test, as the compiler may
  4212. # overwrite some of them when testing with obscure command lines.
  4213. # This happens at least with the AIX C compiler.
  4214. : > sub/conftest.c
  4215. for i in 1 2 3 4 5 6; do
  4216. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4217. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  4218. # Solaris 8's {/usr,}/bin/sh.
  4219. touch sub/conftst$i.h
  4220. done
  4221. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4222. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  4223. # mode. It turns out that the SunPro C++ compiler does not properly
  4224. # handle `-M -o', and we need to detect this. Also, some Intel
  4225. # versions had trouble with output in subdirs
  4226. am__obj=sub/conftest.${OBJEXT-o}
  4227. am__minus_obj="-o $am__obj"
  4228. case $depmode in
  4229. gcc)
  4230. # This depmode causes a compiler race in universal mode.
  4231. test "$am__universal" = false || continue
  4232. ;;
  4233. nosideeffect)
  4234. # after this tag, mechanisms are not by side-effect, so they'll
  4235. # only be used when explicitly requested
  4236. if test "x$enable_dependency_tracking" = xyes; then
  4237. continue
  4238. else
  4239. break
  4240. fi
  4241. ;;
  4242. msvisualcpp | msvcmsys)
  4243. # This compiler won't grok `-c -o', but also, the minuso test has
  4244. # not run yet. These depmodes are late enough in the game, and
  4245. # so weak that their functioning should not be impacted.
  4246. am__obj=conftest.${OBJEXT-o}
  4247. am__minus_obj=
  4248. ;;
  4249. none) break ;;
  4250. esac
  4251. if depmode=$depmode \
  4252. source=sub/conftest.c object=$am__obj \
  4253. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4254. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4255. >/dev/null 2>conftest.err &&
  4256. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4257. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4258. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4259. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4260. # icc doesn't choke on unknown options, it will just issue warnings
  4261. # or remarks (even with -Werror). So we grep stderr for any message
  4262. # that says an option was ignored or not supported.
  4263. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4264. # icc: Command line warning: ignoring option '-M'; no argument required
  4265. # The diagnosis changed in icc 8.0:
  4266. # icc: Command line remark: option '-MP' not supported
  4267. if (grep 'ignoring option' conftest.err ||
  4268. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4269. am_cv_CC_dependencies_compiler_type=$depmode
  4270. break
  4271. fi
  4272. fi
  4273. done
  4274. cd ..
  4275. rm -rf conftest.dir
  4276. else
  4277. am_cv_CC_dependencies_compiler_type=none
  4278. fi
  4279. fi
  4280. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  4281. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  4282. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4283. if
  4284. test "x$enable_dependency_tracking" != xno \
  4285. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4286. am__fastdepCC_TRUE=
  4287. am__fastdepCC_FALSE='#'
  4288. else
  4289. am__fastdepCC_TRUE='#'
  4290. am__fastdepCC_FALSE=
  4291. fi
  4292. if test "x$CC" != xcc; then
  4293. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
  4294. $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
  4295. else
  4296. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
  4297. $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
  4298. fi
  4299. set dummy $CC; ac_cc=`$as_echo "$2" |
  4300. sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  4301. if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
  4302. $as_echo_n "(cached) " >&6
  4303. else
  4304. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4305. /* end confdefs.h. */
  4306. int
  4307. main ()
  4308. {
  4309. ;
  4310. return 0;
  4311. }
  4312. _ACEOF
  4313. # Make sure it works both with $CC and with simple cc.
  4314. # We do the test twice because some compilers refuse to overwrite an
  4315. # existing .o file with -o, though they will create one.
  4316. ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  4317. rm -f conftest2.*
  4318. if { { 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. test -f conftest2.$ac_objext && { { case "(($ac_try" in
  4329. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4330. *) ac_try_echo=$ac_try;;
  4331. esac
  4332. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4333. $as_echo "$ac_try_echo"; } >&5
  4334. (eval "$ac_try") 2>&5
  4335. ac_status=$?
  4336. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4337. test $ac_status = 0; };
  4338. then
  4339. eval ac_cv_prog_cc_${ac_cc}_c_o=yes
  4340. if test "x$CC" != xcc; then
  4341. # Test first that cc exists at all.
  4342. if { ac_try='cc -c conftest.$ac_ext >&5'
  4343. { { case "(($ac_try" in
  4344. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4345. *) ac_try_echo=$ac_try;;
  4346. esac
  4347. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4348. $as_echo "$ac_try_echo"; } >&5
  4349. (eval "$ac_try") 2>&5
  4350. ac_status=$?
  4351. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4352. test $ac_status = 0; }; }; then
  4353. ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  4354. rm -f conftest2.*
  4355. if { { case "(($ac_try" in
  4356. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4357. *) ac_try_echo=$ac_try;;
  4358. esac
  4359. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4360. $as_echo "$ac_try_echo"; } >&5
  4361. (eval "$ac_try") 2>&5
  4362. ac_status=$?
  4363. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4364. test $ac_status = 0; } &&
  4365. test -f conftest2.$ac_objext && { { case "(($ac_try" in
  4366. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4367. *) ac_try_echo=$ac_try;;
  4368. esac
  4369. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4370. $as_echo "$ac_try_echo"; } >&5
  4371. (eval "$ac_try") 2>&5
  4372. ac_status=$?
  4373. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4374. test $ac_status = 0; };
  4375. then
  4376. # cc works too.
  4377. :
  4378. else
  4379. # cc exists but doesn't like -o.
  4380. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  4381. fi
  4382. fi
  4383. fi
  4384. else
  4385. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  4386. fi
  4387. rm -f core conftest*
  4388. fi
  4389. if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
  4390. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4391. $as_echo "yes" >&6; }
  4392. else
  4393. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4394. $as_echo "no" >&6; }
  4395. $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
  4396. fi
  4397. # FIXME: we rely on the cache variable name because
  4398. # there is no other way.
  4399. set dummy $CC
  4400. am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  4401. eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
  4402. if test "$am_t" != yes; then
  4403. # Losing compiler, so override with the script.
  4404. # FIXME: It is wrong to rewrite CC.
  4405. # But if we don't then we get into trouble of one sort or another.
  4406. # A longer-term fix would be to have automake use am__CC in this case,
  4407. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  4408. CC="$am_aux_dir/compile $CC"
  4409. fi
  4410. # By default we simply use the C compiler to build assembly code.
  4411. test "${CCAS+set}" = set || CCAS=$CC
  4412. test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
  4413. depcc="$CCAS" am_compiler_list=
  4414. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4415. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4416. if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
  4417. $as_echo_n "(cached) " >&6
  4418. else
  4419. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4420. # We make a subdir and do the tests there. Otherwise we can end up
  4421. # making bogus files that we don't know about and never remove. For
  4422. # instance it was reported that on HP-UX the gcc test will end up
  4423. # making a dummy file named `D' -- because `-MD' means `put the output
  4424. # in D'.
  4425. mkdir conftest.dir
  4426. # Copy depcomp to subdir because otherwise we won't find it if we're
  4427. # using a relative directory.
  4428. cp "$am_depcomp" conftest.dir
  4429. cd conftest.dir
  4430. # We will build objects and dependencies in a subdirectory because
  4431. # it helps to detect inapplicable dependency modes. For instance
  4432. # both Tru64's cc and ICC support -MD to output dependencies as a
  4433. # side effect of compilation, but ICC will put the dependencies in
  4434. # the current directory while Tru64 will put them in the object
  4435. # directory.
  4436. mkdir sub
  4437. am_cv_CCAS_dependencies_compiler_type=none
  4438. if test "$am_compiler_list" = ""; then
  4439. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4440. fi
  4441. am__universal=false
  4442. for depmode in $am_compiler_list; do
  4443. # Setup a source with many dependencies, because some compilers
  4444. # like to wrap large dependency lists on column 80 (with \), and
  4445. # we should not choose a depcomp mode which is confused by this.
  4446. #
  4447. # We need to recreate these files for each test, as the compiler may
  4448. # overwrite some of them when testing with obscure command lines.
  4449. # This happens at least with the AIX C compiler.
  4450. : > sub/conftest.c
  4451. for i in 1 2 3 4 5 6; do
  4452. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4453. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  4454. # Solaris 8's {/usr,}/bin/sh.
  4455. touch sub/conftst$i.h
  4456. done
  4457. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4458. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  4459. # mode. It turns out that the SunPro C++ compiler does not properly
  4460. # handle `-M -o', and we need to detect this. Also, some Intel
  4461. # versions had trouble with output in subdirs
  4462. am__obj=sub/conftest.${OBJEXT-o}
  4463. am__minus_obj="-o $am__obj"
  4464. case $depmode in
  4465. gcc)
  4466. # This depmode causes a compiler race in universal mode.
  4467. test "$am__universal" = false || continue
  4468. ;;
  4469. nosideeffect)
  4470. # after this tag, mechanisms are not by side-effect, so they'll
  4471. # only be used when explicitly requested
  4472. if test "x$enable_dependency_tracking" = xyes; then
  4473. continue
  4474. else
  4475. break
  4476. fi
  4477. ;;
  4478. msvisualcpp | msvcmsys)
  4479. # This compiler won't grok `-c -o', but also, the minuso test has
  4480. # not run yet. These depmodes are late enough in the game, and
  4481. # so weak that their functioning should not be impacted.
  4482. am__obj=conftest.${OBJEXT-o}
  4483. am__minus_obj=
  4484. ;;
  4485. none) break ;;
  4486. esac
  4487. if depmode=$depmode \
  4488. source=sub/conftest.c object=$am__obj \
  4489. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4490. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4491. >/dev/null 2>conftest.err &&
  4492. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4493. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4494. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4495. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4496. # icc doesn't choke on unknown options, it will just issue warnings
  4497. # or remarks (even with -Werror). So we grep stderr for any message
  4498. # that says an option was ignored or not supported.
  4499. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4500. # icc: Command line warning: ignoring option '-M'; no argument required
  4501. # The diagnosis changed in icc 8.0:
  4502. # icc: Command line remark: option '-MP' not supported
  4503. if (grep 'ignoring option' conftest.err ||
  4504. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4505. am_cv_CCAS_dependencies_compiler_type=$depmode
  4506. break
  4507. fi
  4508. fi
  4509. done
  4510. cd ..
  4511. rm -rf conftest.dir
  4512. else
  4513. am_cv_CCAS_dependencies_compiler_type=none
  4514. fi
  4515. fi
  4516. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
  4517. $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
  4518. CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
  4519. if
  4520. test "x$enable_dependency_tracking" != xno \
  4521. && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
  4522. am__fastdepCCAS_TRUE=
  4523. am__fastdepCCAS_FALSE='#'
  4524. else
  4525. am__fastdepCCAS_TRUE='#'
  4526. am__fastdepCCAS_FALSE=
  4527. fi
  4528. # disable static libs by default - we only use a couple
  4529. # Check whether --enable-static was given.
  4530. if test "${enable_static+set}" = set; then :
  4531. enableval=$enable_static; p=${PACKAGE-default}
  4532. case $enableval in
  4533. yes) enable_static=yes ;;
  4534. no) enable_static=no ;;
  4535. *)
  4536. enable_static=no
  4537. # Look at the argument we got. We use all the common list separators.
  4538. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  4539. for pkg in $enableval; do
  4540. IFS="$lt_save_ifs"
  4541. if test "X$pkg" = "X$p"; then
  4542. enable_static=yes
  4543. fi
  4544. done
  4545. IFS="$lt_save_ifs"
  4546. ;;
  4547. esac
  4548. else
  4549. enable_static=no
  4550. fi
  4551. case `pwd` in
  4552. *\ * | *\ *)
  4553. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  4554. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  4555. esac
  4556. macro_version='2.4'
  4557. macro_revision='1.3293'
  4558. ltmain="$ac_aux_dir/ltmain.sh"
  4559. # Backslashify metacharacters that are still active within
  4560. # double-quoted strings.
  4561. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  4562. # Same as above, but do not quote variable references.
  4563. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  4564. # Sed substitution to delay expansion of an escaped shell variable in a
  4565. # double_quote_subst'ed string.
  4566. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  4567. # Sed substitution to delay expansion of an escaped single quote.
  4568. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  4569. # Sed substitution to avoid accidental globbing in evaled expressions
  4570. no_glob_subst='s/\*/\\\*/g'
  4571. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  4572. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  4573. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  4574. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  4575. $as_echo_n "checking how to print strings... " >&6; }
  4576. # Test print first, because it will be a builtin if present.
  4577. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  4578. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  4579. ECHO='print -r --'
  4580. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  4581. ECHO='printf %s\n'
  4582. else
  4583. # Use this function as a fallback that always works.
  4584. func_fallback_echo ()
  4585. {
  4586. eval 'cat <<_LTECHO_EOF
  4587. $1
  4588. _LTECHO_EOF'
  4589. }
  4590. ECHO='func_fallback_echo'
  4591. fi
  4592. # func_echo_all arg...
  4593. # Invoke $ECHO with all args, space-separated.
  4594. func_echo_all ()
  4595. {
  4596. $ECHO ""
  4597. }
  4598. case "$ECHO" in
  4599. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  4600. $as_echo "printf" >&6; } ;;
  4601. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  4602. $as_echo "print -r" >&6; } ;;
  4603. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  4604. $as_echo "cat" >&6; } ;;
  4605. esac
  4606. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4607. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4608. if ${ac_cv_path_SED+:} false; then :
  4609. $as_echo_n "(cached) " >&6
  4610. else
  4611. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4612. for ac_i in 1 2 3 4 5 6 7; do
  4613. ac_script="$ac_script$as_nl$ac_script"
  4614. done
  4615. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4616. { ac_script=; unset ac_script;}
  4617. if test -z "$SED"; then
  4618. ac_path_SED_found=false
  4619. # Loop through the user's path and test for each of PROGNAME-LIST
  4620. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4621. for as_dir in $PATH
  4622. do
  4623. IFS=$as_save_IFS
  4624. test -z "$as_dir" && as_dir=.
  4625. for ac_prog in sed gsed; do
  4626. for ac_exec_ext in '' $ac_executable_extensions; do
  4627. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4628. { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  4629. # Check for GNU ac_path_SED and select it if it is found.
  4630. # Check for GNU $ac_path_SED
  4631. case `"$ac_path_SED" --version 2>&1` in
  4632. *GNU*)
  4633. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4634. *)
  4635. ac_count=0
  4636. $as_echo_n 0123456789 >"conftest.in"
  4637. while :
  4638. do
  4639. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4640. mv "conftest.tmp" "conftest.in"
  4641. cp "conftest.in" "conftest.nl"
  4642. $as_echo '' >> "conftest.nl"
  4643. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4644. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4645. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4646. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4647. # Best one so far, save it but keep looking for a better one
  4648. ac_cv_path_SED="$ac_path_SED"
  4649. ac_path_SED_max=$ac_count
  4650. fi
  4651. # 10*(2^10) chars as input seems more than enough
  4652. test $ac_count -gt 10 && break
  4653. done
  4654. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4655. esac
  4656. $ac_path_SED_found && break 3
  4657. done
  4658. done
  4659. done
  4660. IFS=$as_save_IFS
  4661. if test -z "$ac_cv_path_SED"; then
  4662. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4663. fi
  4664. else
  4665. ac_cv_path_SED=$SED
  4666. fi
  4667. fi
  4668. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4669. $as_echo "$ac_cv_path_SED" >&6; }
  4670. SED="$ac_cv_path_SED"
  4671. rm -f conftest.sed
  4672. test -z "$SED" && SED=sed
  4673. Xsed="$SED -e 1s/^X//"
  4674. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4675. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4676. if ${ac_cv_path_GREP+:} false; then :
  4677. $as_echo_n "(cached) " >&6
  4678. else
  4679. if test -z "$GREP"; then
  4680. ac_path_GREP_found=false
  4681. # Loop through the user's path and test for each of PROGNAME-LIST
  4682. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4683. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4684. do
  4685. IFS=$as_save_IFS
  4686. test -z "$as_dir" && as_dir=.
  4687. for ac_prog in grep ggrep; do
  4688. for ac_exec_ext in '' $ac_executable_extensions; do
  4689. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4690. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  4691. # Check for GNU ac_path_GREP and select it if it is found.
  4692. # Check for GNU $ac_path_GREP
  4693. case `"$ac_path_GREP" --version 2>&1` in
  4694. *GNU*)
  4695. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4696. *)
  4697. ac_count=0
  4698. $as_echo_n 0123456789 >"conftest.in"
  4699. while :
  4700. do
  4701. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4702. mv "conftest.tmp" "conftest.in"
  4703. cp "conftest.in" "conftest.nl"
  4704. $as_echo 'GREP' >> "conftest.nl"
  4705. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4706. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4707. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4708. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4709. # Best one so far, save it but keep looking for a better one
  4710. ac_cv_path_GREP="$ac_path_GREP"
  4711. ac_path_GREP_max=$ac_count
  4712. fi
  4713. # 10*(2^10) chars as input seems more than enough
  4714. test $ac_count -gt 10 && break
  4715. done
  4716. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4717. esac
  4718. $ac_path_GREP_found && break 3
  4719. done
  4720. done
  4721. done
  4722. IFS=$as_save_IFS
  4723. if test -z "$ac_cv_path_GREP"; then
  4724. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4725. fi
  4726. else
  4727. ac_cv_path_GREP=$GREP
  4728. fi
  4729. fi
  4730. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4731. $as_echo "$ac_cv_path_GREP" >&6; }
  4732. GREP="$ac_cv_path_GREP"
  4733. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4734. $as_echo_n "checking for egrep... " >&6; }
  4735. if ${ac_cv_path_EGREP+:} false; then :
  4736. $as_echo_n "(cached) " >&6
  4737. else
  4738. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4739. then ac_cv_path_EGREP="$GREP -E"
  4740. else
  4741. if test -z "$EGREP"; then
  4742. ac_path_EGREP_found=false
  4743. # Loop through the user's path and test for each of PROGNAME-LIST
  4744. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4745. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4746. do
  4747. IFS=$as_save_IFS
  4748. test -z "$as_dir" && as_dir=.
  4749. for ac_prog in egrep; do
  4750. for ac_exec_ext in '' $ac_executable_extensions; do
  4751. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4752. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  4753. # Check for GNU ac_path_EGREP and select it if it is found.
  4754. # Check for GNU $ac_path_EGREP
  4755. case `"$ac_path_EGREP" --version 2>&1` in
  4756. *GNU*)
  4757. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4758. *)
  4759. ac_count=0
  4760. $as_echo_n 0123456789 >"conftest.in"
  4761. while :
  4762. do
  4763. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4764. mv "conftest.tmp" "conftest.in"
  4765. cp "conftest.in" "conftest.nl"
  4766. $as_echo 'EGREP' >> "conftest.nl"
  4767. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4768. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4769. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4770. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4771. # Best one so far, save it but keep looking for a better one
  4772. ac_cv_path_EGREP="$ac_path_EGREP"
  4773. ac_path_EGREP_max=$ac_count
  4774. fi
  4775. # 10*(2^10) chars as input seems more than enough
  4776. test $ac_count -gt 10 && break
  4777. done
  4778. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4779. esac
  4780. $ac_path_EGREP_found && break 3
  4781. done
  4782. done
  4783. done
  4784. IFS=$as_save_IFS
  4785. if test -z "$ac_cv_path_EGREP"; then
  4786. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4787. fi
  4788. else
  4789. ac_cv_path_EGREP=$EGREP
  4790. fi
  4791. fi
  4792. fi
  4793. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4794. $as_echo "$ac_cv_path_EGREP" >&6; }
  4795. EGREP="$ac_cv_path_EGREP"
  4796. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4797. $as_echo_n "checking for fgrep... " >&6; }
  4798. if ${ac_cv_path_FGREP+:} false; then :
  4799. $as_echo_n "(cached) " >&6
  4800. else
  4801. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4802. then ac_cv_path_FGREP="$GREP -F"
  4803. else
  4804. if test -z "$FGREP"; then
  4805. ac_path_FGREP_found=false
  4806. # Loop through the user's path and test for each of PROGNAME-LIST
  4807. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4808. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4809. do
  4810. IFS=$as_save_IFS
  4811. test -z "$as_dir" && as_dir=.
  4812. for ac_prog in fgrep; do
  4813. for ac_exec_ext in '' $ac_executable_extensions; do
  4814. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  4815. { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  4816. # Check for GNU ac_path_FGREP and select it if it is found.
  4817. # Check for GNU $ac_path_FGREP
  4818. case `"$ac_path_FGREP" --version 2>&1` in
  4819. *GNU*)
  4820. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4821. *)
  4822. ac_count=0
  4823. $as_echo_n 0123456789 >"conftest.in"
  4824. while :
  4825. do
  4826. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4827. mv "conftest.tmp" "conftest.in"
  4828. cp "conftest.in" "conftest.nl"
  4829. $as_echo 'FGREP' >> "conftest.nl"
  4830. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4831. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4832. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4833. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4834. # Best one so far, save it but keep looking for a better one
  4835. ac_cv_path_FGREP="$ac_path_FGREP"
  4836. ac_path_FGREP_max=$ac_count
  4837. fi
  4838. # 10*(2^10) chars as input seems more than enough
  4839. test $ac_count -gt 10 && break
  4840. done
  4841. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4842. esac
  4843. $ac_path_FGREP_found && break 3
  4844. done
  4845. done
  4846. done
  4847. IFS=$as_save_IFS
  4848. if test -z "$ac_cv_path_FGREP"; then
  4849. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4850. fi
  4851. else
  4852. ac_cv_path_FGREP=$FGREP
  4853. fi
  4854. fi
  4855. fi
  4856. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4857. $as_echo "$ac_cv_path_FGREP" >&6; }
  4858. FGREP="$ac_cv_path_FGREP"
  4859. test -z "$GREP" && GREP=grep
  4860. # Check whether --with-gnu-ld was given.
  4861. if test "${with_gnu_ld+set}" = set; then :
  4862. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  4863. else
  4864. with_gnu_ld=no
  4865. fi
  4866. ac_prog=ld
  4867. if test "$GCC" = yes; then
  4868. # Check if gcc -print-prog-name=ld gives a path.
  4869. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4870. $as_echo_n "checking for ld used by $CC... " >&6; }
  4871. case $host in
  4872. *-*-mingw*)
  4873. # gcc leaves a trailing carriage return which upsets mingw
  4874. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4875. *)
  4876. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4877. esac
  4878. case $ac_prog in
  4879. # Accept absolute paths.
  4880. [\\/]* | ?:[\\/]*)
  4881. re_direlt='/[^/][^/]*/\.\./'
  4882. # Canonicalize the pathname of ld
  4883. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4884. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4885. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4886. done
  4887. test -z "$LD" && LD="$ac_prog"
  4888. ;;
  4889. "")
  4890. # If it fails, then pretend we aren't using GCC.
  4891. ac_prog=ld
  4892. ;;
  4893. *)
  4894. # If it is relative, then search for the first ld in PATH.
  4895. with_gnu_ld=unknown
  4896. ;;
  4897. esac
  4898. elif test "$with_gnu_ld" = yes; then
  4899. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4900. $as_echo_n "checking for GNU ld... " >&6; }
  4901. else
  4902. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4903. $as_echo_n "checking for non-GNU ld... " >&6; }
  4904. fi
  4905. if ${lt_cv_path_LD+:} false; then :
  4906. $as_echo_n "(cached) " >&6
  4907. else
  4908. if test -z "$LD"; then
  4909. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4910. for ac_dir in $PATH; do
  4911. IFS="$lt_save_ifs"
  4912. test -z "$ac_dir" && ac_dir=.
  4913. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4914. lt_cv_path_LD="$ac_dir/$ac_prog"
  4915. # Check to see if the program is GNU ld. I'd rather use --version,
  4916. # but apparently some variants of GNU ld only accept -v.
  4917. # Break only if it was the GNU/non-GNU ld that we prefer.
  4918. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4919. *GNU* | *'with BFD'*)
  4920. test "$with_gnu_ld" != no && break
  4921. ;;
  4922. *)
  4923. test "$with_gnu_ld" != yes && break
  4924. ;;
  4925. esac
  4926. fi
  4927. done
  4928. IFS="$lt_save_ifs"
  4929. else
  4930. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  4931. fi
  4932. fi
  4933. LD="$lt_cv_path_LD"
  4934. if test -n "$LD"; then
  4935. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4936. $as_echo "$LD" >&6; }
  4937. else
  4938. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4939. $as_echo "no" >&6; }
  4940. fi
  4941. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  4942. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4943. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4944. if ${lt_cv_prog_gnu_ld+:} false; then :
  4945. $as_echo_n "(cached) " >&6
  4946. else
  4947. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4948. case `$LD -v 2>&1 </dev/null` in
  4949. *GNU* | *'with BFD'*)
  4950. lt_cv_prog_gnu_ld=yes
  4951. ;;
  4952. *)
  4953. lt_cv_prog_gnu_ld=no
  4954. ;;
  4955. esac
  4956. fi
  4957. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4958. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4959. with_gnu_ld=$lt_cv_prog_gnu_ld
  4960. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4961. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4962. if ${lt_cv_path_NM+:} false; then :
  4963. $as_echo_n "(cached) " >&6
  4964. else
  4965. if test -n "$NM"; then
  4966. # Let the user override the test.
  4967. lt_cv_path_NM="$NM"
  4968. else
  4969. lt_nm_to_check="${ac_tool_prefix}nm"
  4970. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4971. lt_nm_to_check="$lt_nm_to_check nm"
  4972. fi
  4973. for lt_tmp_nm in $lt_nm_to_check; do
  4974. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4975. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4976. IFS="$lt_save_ifs"
  4977. test -z "$ac_dir" && ac_dir=.
  4978. tmp_nm="$ac_dir/$lt_tmp_nm"
  4979. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  4980. # Check to see if the nm accepts a BSD-compat flag.
  4981. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  4982. # nm: unknown option "B" ignored
  4983. # Tru64's nm complains that /dev/null is an invalid object file
  4984. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  4985. */dev/null* | *'Invalid file or object type'*)
  4986. lt_cv_path_NM="$tmp_nm -B"
  4987. break
  4988. ;;
  4989. *)
  4990. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4991. */dev/null*)
  4992. lt_cv_path_NM="$tmp_nm -p"
  4993. break
  4994. ;;
  4995. *)
  4996. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4997. continue # so that we can try to find one that supports BSD flags
  4998. ;;
  4999. esac
  5000. ;;
  5001. esac
  5002. fi
  5003. done
  5004. IFS="$lt_save_ifs"
  5005. done
  5006. : ${lt_cv_path_NM=no}
  5007. fi
  5008. fi
  5009. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  5010. $as_echo "$lt_cv_path_NM" >&6; }
  5011. if test "$lt_cv_path_NM" != "no"; then
  5012. NM="$lt_cv_path_NM"
  5013. else
  5014. # Didn't find any BSD compatible name lister, look for dumpbin.
  5015. if test -n "$DUMPBIN"; then :
  5016. # Let the user override the test.
  5017. else
  5018. if test -n "$ac_tool_prefix"; then
  5019. for ac_prog in dumpbin "link -dump"
  5020. do
  5021. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5022. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5023. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5024. $as_echo_n "checking for $ac_word... " >&6; }
  5025. if ${ac_cv_prog_DUMPBIN+:} false; then :
  5026. $as_echo_n "(cached) " >&6
  5027. else
  5028. if test -n "$DUMPBIN"; then
  5029. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  5030. else
  5031. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5032. for as_dir in $PATH
  5033. do
  5034. IFS=$as_save_IFS
  5035. test -z "$as_dir" && as_dir=.
  5036. for ac_exec_ext in '' $ac_executable_extensions; do
  5037. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5038. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  5039. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5040. break 2
  5041. fi
  5042. done
  5043. done
  5044. IFS=$as_save_IFS
  5045. fi
  5046. fi
  5047. DUMPBIN=$ac_cv_prog_DUMPBIN
  5048. if test -n "$DUMPBIN"; then
  5049. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  5050. $as_echo "$DUMPBIN" >&6; }
  5051. else
  5052. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5053. $as_echo "no" >&6; }
  5054. fi
  5055. test -n "$DUMPBIN" && break
  5056. done
  5057. fi
  5058. if test -z "$DUMPBIN"; then
  5059. ac_ct_DUMPBIN=$DUMPBIN
  5060. for ac_prog in dumpbin "link -dump"
  5061. do
  5062. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5063. set dummy $ac_prog; ac_word=$2
  5064. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5065. $as_echo_n "checking for $ac_word... " >&6; }
  5066. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  5067. $as_echo_n "(cached) " >&6
  5068. else
  5069. if test -n "$ac_ct_DUMPBIN"; then
  5070. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  5071. else
  5072. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5073. for as_dir in $PATH
  5074. do
  5075. IFS=$as_save_IFS
  5076. test -z "$as_dir" && as_dir=.
  5077. for ac_exec_ext in '' $ac_executable_extensions; do
  5078. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5079. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  5080. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5081. break 2
  5082. fi
  5083. done
  5084. done
  5085. IFS=$as_save_IFS
  5086. fi
  5087. fi
  5088. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  5089. if test -n "$ac_ct_DUMPBIN"; then
  5090. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  5091. $as_echo "$ac_ct_DUMPBIN" >&6; }
  5092. else
  5093. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5094. $as_echo "no" >&6; }
  5095. fi
  5096. test -n "$ac_ct_DUMPBIN" && break
  5097. done
  5098. if test "x$ac_ct_DUMPBIN" = x; then
  5099. DUMPBIN=":"
  5100. else
  5101. case $cross_compiling:$ac_tool_warned in
  5102. yes:)
  5103. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5104. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5105. ac_tool_warned=yes ;;
  5106. esac
  5107. DUMPBIN=$ac_ct_DUMPBIN
  5108. fi
  5109. fi
  5110. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  5111. *COFF*)
  5112. DUMPBIN="$DUMPBIN -symbols"
  5113. ;;
  5114. *)
  5115. DUMPBIN=:
  5116. ;;
  5117. esac
  5118. fi
  5119. if test "$DUMPBIN" != ":"; then
  5120. NM="$DUMPBIN"
  5121. fi
  5122. fi
  5123. test -z "$NM" && NM=nm
  5124. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  5125. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  5126. if ${lt_cv_nm_interface+:} false; then :
  5127. $as_echo_n "(cached) " >&6
  5128. else
  5129. lt_cv_nm_interface="BSD nm"
  5130. echo "int some_variable = 0;" > conftest.$ac_ext
  5131. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  5132. (eval "$ac_compile" 2>conftest.err)
  5133. cat conftest.err >&5
  5134. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  5135. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  5136. cat conftest.err >&5
  5137. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  5138. cat conftest.out >&5
  5139. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  5140. lt_cv_nm_interface="MS dumpbin"
  5141. fi
  5142. rm -f conftest*
  5143. fi
  5144. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  5145. $as_echo "$lt_cv_nm_interface" >&6; }
  5146. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  5147. $as_echo_n "checking whether ln -s works... " >&6; }
  5148. LN_S=$as_ln_s
  5149. if test "$LN_S" = "ln -s"; then
  5150. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5151. $as_echo "yes" >&6; }
  5152. else
  5153. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  5154. $as_echo "no, using $LN_S" >&6; }
  5155. fi
  5156. # find the maximum length of command line arguments
  5157. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  5158. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  5159. if ${lt_cv_sys_max_cmd_len+:} false; then :
  5160. $as_echo_n "(cached) " >&6
  5161. else
  5162. i=0
  5163. teststring="ABCD"
  5164. case $build_os in
  5165. msdosdjgpp*)
  5166. # On DJGPP, this test can blow up pretty badly due to problems in libc
  5167. # (any single argument exceeding 2000 bytes causes a buffer overrun
  5168. # during glob expansion). Even if it were fixed, the result of this
  5169. # check would be larger than it should be.
  5170. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  5171. ;;
  5172. gnu*)
  5173. # Under GNU Hurd, this test is not required because there is
  5174. # no limit to the length of command line arguments.
  5175. # Libtool will interpret -1 as no limit whatsoever
  5176. lt_cv_sys_max_cmd_len=-1;
  5177. ;;
  5178. cygwin* | mingw* | cegcc*)
  5179. # On Win9x/ME, this test blows up -- it succeeds, but takes
  5180. # about 5 minutes as the teststring grows exponentially.
  5181. # Worse, since 9x/ME are not pre-emptively multitasking,
  5182. # you end up with a "frozen" computer, even though with patience
  5183. # the test eventually succeeds (with a max line length of 256k).
  5184. # Instead, let's just punt: use the minimum linelength reported by
  5185. # all of the supported platforms: 8192 (on NT/2K/XP).
  5186. lt_cv_sys_max_cmd_len=8192;
  5187. ;;
  5188. mint*)
  5189. # On MiNT this can take a long time and run out of memory.
  5190. lt_cv_sys_max_cmd_len=8192;
  5191. ;;
  5192. amigaos*)
  5193. # On AmigaOS with pdksh, this test takes hours, literally.
  5194. # So we just punt and use a minimum line length of 8192.
  5195. lt_cv_sys_max_cmd_len=8192;
  5196. ;;
  5197. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  5198. # This has been around since 386BSD, at least. Likely further.
  5199. if test -x /sbin/sysctl; then
  5200. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  5201. elif test -x /usr/sbin/sysctl; then
  5202. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  5203. else
  5204. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  5205. fi
  5206. # And add a safety zone
  5207. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5208. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5209. ;;
  5210. interix*)
  5211. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  5212. lt_cv_sys_max_cmd_len=196608
  5213. ;;
  5214. osf*)
  5215. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  5216. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  5217. # nice to cause kernel panics so lets avoid the loop below.
  5218. # First set a reasonable default.
  5219. lt_cv_sys_max_cmd_len=16384
  5220. #
  5221. if test -x /sbin/sysconfig; then
  5222. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  5223. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  5224. esac
  5225. fi
  5226. ;;
  5227. sco3.2v5*)
  5228. lt_cv_sys_max_cmd_len=102400
  5229. ;;
  5230. sysv5* | sco5v6* | sysv4.2uw2*)
  5231. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  5232. if test -n "$kargmax"; then
  5233. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  5234. else
  5235. lt_cv_sys_max_cmd_len=32768
  5236. fi
  5237. ;;
  5238. *)
  5239. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  5240. if test -n "$lt_cv_sys_max_cmd_len"; then
  5241. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5242. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5243. else
  5244. # Make teststring a little bigger before we do anything with it.
  5245. # a 1K string should be a reasonable start.
  5246. for i in 1 2 3 4 5 6 7 8 ; do
  5247. teststring=$teststring$teststring
  5248. done
  5249. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  5250. # If test is not a shell built-in, we'll probably end up computing a
  5251. # maximum length that is only half of the actual maximum length, but
  5252. # we can't tell.
  5253. while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
  5254. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  5255. test $i != 17 # 1/2 MB should be enough
  5256. do
  5257. i=`expr $i + 1`
  5258. teststring=$teststring$teststring
  5259. done
  5260. # Only check the string length outside the loop.
  5261. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  5262. teststring=
  5263. # Add a significant safety factor because C++ compilers can tack on
  5264. # massive amounts of additional arguments before passing them to the
  5265. # linker. It appears as though 1/2 is a usable value.
  5266. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5267. fi
  5268. ;;
  5269. esac
  5270. fi
  5271. if test -n $lt_cv_sys_max_cmd_len ; then
  5272. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  5273. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  5274. else
  5275. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  5276. $as_echo "none" >&6; }
  5277. fi
  5278. max_cmd_len=$lt_cv_sys_max_cmd_len
  5279. : ${CP="cp -f"}
  5280. : ${MV="mv -f"}
  5281. : ${RM="rm -f"}
  5282. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  5283. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  5284. # Try some XSI features
  5285. xsi_shell=no
  5286. ( _lt_dummy="a/b/c"
  5287. test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  5288. = c,a/b,b/c, \
  5289. && eval 'test $(( 1 + 1 )) -eq 2 \
  5290. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  5291. && xsi_shell=yes
  5292. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  5293. $as_echo "$xsi_shell" >&6; }
  5294. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  5295. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  5296. lt_shell_append=no
  5297. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  5298. >/dev/null 2>&1 \
  5299. && lt_shell_append=yes
  5300. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  5301. $as_echo "$lt_shell_append" >&6; }
  5302. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  5303. lt_unset=unset
  5304. else
  5305. lt_unset=false
  5306. fi
  5307. # test EBCDIC or ASCII
  5308. case `echo X|tr X '\101'` in
  5309. A) # ASCII based system
  5310. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  5311. lt_SP2NL='tr \040 \012'
  5312. lt_NL2SP='tr \015\012 \040\040'
  5313. ;;
  5314. *) # EBCDIC based system
  5315. lt_SP2NL='tr \100 \n'
  5316. lt_NL2SP='tr \r\n \100\100'
  5317. ;;
  5318. esac
  5319. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  5320. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  5321. if ${lt_cv_to_host_file_cmd+:} false; then :
  5322. $as_echo_n "(cached) " >&6
  5323. else
  5324. case $host in
  5325. *-*-mingw* )
  5326. case $build in
  5327. *-*-mingw* ) # actually msys
  5328. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  5329. ;;
  5330. *-*-cygwin* )
  5331. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  5332. ;;
  5333. * ) # otherwise, assume *nix
  5334. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  5335. ;;
  5336. esac
  5337. ;;
  5338. *-*-cygwin* )
  5339. case $build in
  5340. *-*-mingw* ) # actually msys
  5341. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  5342. ;;
  5343. *-*-cygwin* )
  5344. lt_cv_to_host_file_cmd=func_convert_file_noop
  5345. ;;
  5346. * ) # otherwise, assume *nix
  5347. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  5348. ;;
  5349. esac
  5350. ;;
  5351. * ) # unhandled hosts (and "normal" native builds)
  5352. lt_cv_to_host_file_cmd=func_convert_file_noop
  5353. ;;
  5354. esac
  5355. fi
  5356. to_host_file_cmd=$lt_cv_to_host_file_cmd
  5357. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  5358. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  5359. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  5360. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  5361. if ${lt_cv_to_tool_file_cmd+:} false; then :
  5362. $as_echo_n "(cached) " >&6
  5363. else
  5364. #assume ordinary cross tools, or native build.
  5365. lt_cv_to_tool_file_cmd=func_convert_file_noop
  5366. case $host in
  5367. *-*-mingw* )
  5368. case $build in
  5369. *-*-mingw* ) # actually msys
  5370. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  5371. ;;
  5372. esac
  5373. ;;
  5374. esac
  5375. fi
  5376. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  5377. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  5378. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  5379. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  5380. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  5381. if ${lt_cv_ld_reload_flag+:} false; then :
  5382. $as_echo_n "(cached) " >&6
  5383. else
  5384. lt_cv_ld_reload_flag='-r'
  5385. fi
  5386. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  5387. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  5388. reload_flag=$lt_cv_ld_reload_flag
  5389. case $reload_flag in
  5390. "" | " "*) ;;
  5391. *) reload_flag=" $reload_flag" ;;
  5392. esac
  5393. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5394. case $host_os in
  5395. cygwin* | mingw* | pw32* | cegcc*)
  5396. if test "$GCC" != yes; then
  5397. reload_cmds=false
  5398. fi
  5399. ;;
  5400. darwin*)
  5401. if test "$GCC" = yes; then
  5402. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  5403. else
  5404. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5405. fi
  5406. ;;
  5407. esac
  5408. if test -n "$ac_tool_prefix"; then
  5409. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5410. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5411. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5412. $as_echo_n "checking for $ac_word... " >&6; }
  5413. if ${ac_cv_prog_OBJDUMP+:} false; then :
  5414. $as_echo_n "(cached) " >&6
  5415. else
  5416. if test -n "$OBJDUMP"; then
  5417. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5418. else
  5419. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5420. for as_dir in $PATH
  5421. do
  5422. IFS=$as_save_IFS
  5423. test -z "$as_dir" && as_dir=.
  5424. for ac_exec_ext in '' $ac_executable_extensions; do
  5425. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5426. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5427. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5428. break 2
  5429. fi
  5430. done
  5431. done
  5432. IFS=$as_save_IFS
  5433. fi
  5434. fi
  5435. OBJDUMP=$ac_cv_prog_OBJDUMP
  5436. if test -n "$OBJDUMP"; then
  5437. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5438. $as_echo "$OBJDUMP" >&6; }
  5439. else
  5440. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5441. $as_echo "no" >&6; }
  5442. fi
  5443. fi
  5444. if test -z "$ac_cv_prog_OBJDUMP"; then
  5445. ac_ct_OBJDUMP=$OBJDUMP
  5446. # Extract the first word of "objdump", so it can be a program name with args.
  5447. set dummy objdump; ac_word=$2
  5448. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5449. $as_echo_n "checking for $ac_word... " >&6; }
  5450. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  5451. $as_echo_n "(cached) " >&6
  5452. else
  5453. if test -n "$ac_ct_OBJDUMP"; then
  5454. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5455. else
  5456. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5457. for as_dir in $PATH
  5458. do
  5459. IFS=$as_save_IFS
  5460. test -z "$as_dir" && as_dir=.
  5461. for ac_exec_ext in '' $ac_executable_extensions; do
  5462. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5463. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5464. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5465. break 2
  5466. fi
  5467. done
  5468. done
  5469. IFS=$as_save_IFS
  5470. fi
  5471. fi
  5472. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5473. if test -n "$ac_ct_OBJDUMP"; then
  5474. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5475. $as_echo "$ac_ct_OBJDUMP" >&6; }
  5476. else
  5477. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5478. $as_echo "no" >&6; }
  5479. fi
  5480. if test "x$ac_ct_OBJDUMP" = x; then
  5481. OBJDUMP="false"
  5482. else
  5483. case $cross_compiling:$ac_tool_warned in
  5484. yes:)
  5485. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5486. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5487. ac_tool_warned=yes ;;
  5488. esac
  5489. OBJDUMP=$ac_ct_OBJDUMP
  5490. fi
  5491. else
  5492. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5493. fi
  5494. test -z "$OBJDUMP" && OBJDUMP=objdump
  5495. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5496. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  5497. if ${lt_cv_deplibs_check_method+:} false; then :
  5498. $as_echo_n "(cached) " >&6
  5499. else
  5500. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5501. lt_cv_file_magic_test_file=
  5502. lt_cv_deplibs_check_method='unknown'
  5503. # Need to set the preceding variable on all platforms that support
  5504. # interlibrary dependencies.
  5505. # 'none' -- dependencies not supported.
  5506. # `unknown' -- same as none, but documents that we really don't know.
  5507. # 'pass_all' -- all dependencies passed with no checks.
  5508. # 'test_compile' -- check by making test program.
  5509. # 'file_magic [[regex]]' -- check by looking for files in library path
  5510. # which responds to the $file_magic_cmd with a given extended regex.
  5511. # If you have `file' or equivalent on your system and you're not sure
  5512. # whether `pass_all' will *always* work, you probably want this one.
  5513. case $host_os in
  5514. aix[4-9]*)
  5515. lt_cv_deplibs_check_method=pass_all
  5516. ;;
  5517. beos*)
  5518. lt_cv_deplibs_check_method=pass_all
  5519. ;;
  5520. bsdi[45]*)
  5521. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5522. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5523. lt_cv_file_magic_test_file=/shlib/libc.so
  5524. ;;
  5525. cygwin*)
  5526. # func_win32_libid is a shell function defined in ltmain.sh
  5527. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5528. lt_cv_file_magic_cmd='func_win32_libid'
  5529. ;;
  5530. mingw* | pw32*)
  5531. # Base MSYS/MinGW do not provide the 'file' command needed by
  5532. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5533. # unless we find 'file', for example because we are cross-compiling.
  5534. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  5535. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  5536. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5537. lt_cv_file_magic_cmd='func_win32_libid'
  5538. else
  5539. # Keep this pattern in sync with the one in func_win32_libid.
  5540. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  5541. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5542. fi
  5543. ;;
  5544. cegcc*)
  5545. # use the weaker test based on 'objdump'. See mingw*.
  5546. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5547. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5548. ;;
  5549. darwin* | rhapsody*)
  5550. lt_cv_deplibs_check_method=pass_all
  5551. ;;
  5552. freebsd* | dragonfly*)
  5553. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5554. case $host_cpu in
  5555. i*86 )
  5556. # Not sure whether the presence of OpenBSD here was a mistake.
  5557. # Let's accept both of them until this is cleared up.
  5558. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5559. lt_cv_file_magic_cmd=/usr/bin/file
  5560. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5561. ;;
  5562. esac
  5563. else
  5564. lt_cv_deplibs_check_method=pass_all
  5565. fi
  5566. ;;
  5567. gnu*)
  5568. lt_cv_deplibs_check_method=pass_all
  5569. ;;
  5570. haiku*)
  5571. lt_cv_deplibs_check_method=pass_all
  5572. ;;
  5573. hpux10.20* | hpux11*)
  5574. lt_cv_file_magic_cmd=/usr/bin/file
  5575. case $host_cpu in
  5576. ia64*)
  5577. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5578. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5579. ;;
  5580. hppa*64*)
  5581. 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]'
  5582. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5583. ;;
  5584. *)
  5585. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  5586. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5587. ;;
  5588. esac
  5589. ;;
  5590. interix[3-9]*)
  5591. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5592. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5593. ;;
  5594. irix5* | irix6* | nonstopux*)
  5595. case $LD in
  5596. *-32|*"-32 ") libmagic=32-bit;;
  5597. *-n32|*"-n32 ") libmagic=N32;;
  5598. *-64|*"-64 ") libmagic=64-bit;;
  5599. *) libmagic=never-match;;
  5600. esac
  5601. lt_cv_deplibs_check_method=pass_all
  5602. ;;
  5603. # This must be Linux ELF.
  5604. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  5605. lt_cv_deplibs_check_method=pass_all
  5606. ;;
  5607. netbsd*)
  5608. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5609. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5610. else
  5611. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5612. fi
  5613. ;;
  5614. newos6*)
  5615. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5616. lt_cv_file_magic_cmd=/usr/bin/file
  5617. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5618. ;;
  5619. *nto* | *qnx*)
  5620. lt_cv_deplibs_check_method=pass_all
  5621. ;;
  5622. openbsd*)
  5623. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  5624. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5625. else
  5626. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5627. fi
  5628. ;;
  5629. osf3* | osf4* | osf5*)
  5630. lt_cv_deplibs_check_method=pass_all
  5631. ;;
  5632. rdos*)
  5633. lt_cv_deplibs_check_method=pass_all
  5634. ;;
  5635. solaris*)
  5636. lt_cv_deplibs_check_method=pass_all
  5637. ;;
  5638. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5639. lt_cv_deplibs_check_method=pass_all
  5640. ;;
  5641. sysv4 | sysv4.3*)
  5642. case $host_vendor in
  5643. motorola)
  5644. 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]'
  5645. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5646. ;;
  5647. ncr)
  5648. lt_cv_deplibs_check_method=pass_all
  5649. ;;
  5650. sequent)
  5651. lt_cv_file_magic_cmd='/bin/file'
  5652. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5653. ;;
  5654. sni)
  5655. lt_cv_file_magic_cmd='/bin/file'
  5656. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5657. lt_cv_file_magic_test_file=/lib/libc.so
  5658. ;;
  5659. siemens)
  5660. lt_cv_deplibs_check_method=pass_all
  5661. ;;
  5662. pc)
  5663. lt_cv_deplibs_check_method=pass_all
  5664. ;;
  5665. esac
  5666. ;;
  5667. tpf*)
  5668. lt_cv_deplibs_check_method=pass_all
  5669. ;;
  5670. esac
  5671. fi
  5672. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5673. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  5674. file_magic_glob=
  5675. want_nocaseglob=no
  5676. if test "$build" = "$host"; then
  5677. case $host_os in
  5678. mingw* | pw32*)
  5679. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  5680. want_nocaseglob=yes
  5681. else
  5682. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  5683. fi
  5684. ;;
  5685. esac
  5686. fi
  5687. file_magic_cmd=$lt_cv_file_magic_cmd
  5688. deplibs_check_method=$lt_cv_deplibs_check_method
  5689. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5690. if test -n "$ac_tool_prefix"; then
  5691. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  5692. set dummy ${ac_tool_prefix}dlltool; 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 ${ac_cv_prog_DLLTOOL+:} false; then :
  5696. $as_echo_n "(cached) " >&6
  5697. else
  5698. if test -n "$DLLTOOL"; then
  5699. ac_cv_prog_DLLTOOL="$DLLTOOL" # 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_DLLTOOL="${ac_tool_prefix}dlltool"
  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. DLLTOOL=$ac_cv_prog_DLLTOOL
  5718. if test -n "$DLLTOOL"; then
  5719. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  5720. $as_echo "$DLLTOOL" >&6; }
  5721. else
  5722. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5723. $as_echo "no" >&6; }
  5724. fi
  5725. fi
  5726. if test -z "$ac_cv_prog_DLLTOOL"; then
  5727. ac_ct_DLLTOOL=$DLLTOOL
  5728. # Extract the first word of "dlltool", so it can be a program name with args.
  5729. set dummy dlltool; ac_word=$2
  5730. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5731. $as_echo_n "checking for $ac_word... " >&6; }
  5732. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  5733. $as_echo_n "(cached) " >&6
  5734. else
  5735. if test -n "$ac_ct_DLLTOOL"; then
  5736. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  5737. else
  5738. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5739. for as_dir in $PATH
  5740. do
  5741. IFS=$as_save_IFS
  5742. test -z "$as_dir" && as_dir=.
  5743. for ac_exec_ext in '' $ac_executable_extensions; do
  5744. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5745. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  5746. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5747. break 2
  5748. fi
  5749. done
  5750. done
  5751. IFS=$as_save_IFS
  5752. fi
  5753. fi
  5754. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  5755. if test -n "$ac_ct_DLLTOOL"; then
  5756. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  5757. $as_echo "$ac_ct_DLLTOOL" >&6; }
  5758. else
  5759. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5760. $as_echo "no" >&6; }
  5761. fi
  5762. if test "x$ac_ct_DLLTOOL" = x; then
  5763. DLLTOOL="false"
  5764. else
  5765. case $cross_compiling:$ac_tool_warned in
  5766. yes:)
  5767. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5768. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5769. ac_tool_warned=yes ;;
  5770. esac
  5771. DLLTOOL=$ac_ct_DLLTOOL
  5772. fi
  5773. else
  5774. DLLTOOL="$ac_cv_prog_DLLTOOL"
  5775. fi
  5776. test -z "$DLLTOOL" && DLLTOOL=dlltool
  5777. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  5778. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  5779. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  5780. $as_echo_n "(cached) " >&6
  5781. else
  5782. lt_cv_sharedlib_from_linklib_cmd='unknown'
  5783. case $host_os in
  5784. cygwin* | mingw* | pw32* | cegcc*)
  5785. # two different shell functions defined in ltmain.sh
  5786. # decide which to use based on capabilities of $DLLTOOL
  5787. case `$DLLTOOL --help 2>&1` in
  5788. *--identify-strict*)
  5789. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  5790. ;;
  5791. *)
  5792. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  5793. ;;
  5794. esac
  5795. ;;
  5796. *)
  5797. # fallback: assume linklib IS sharedlib
  5798. lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  5799. ;;
  5800. esac
  5801. fi
  5802. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  5803. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  5804. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  5805. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  5806. if test -n "$ac_tool_prefix"; then
  5807. for ac_prog in ar
  5808. do
  5809. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5810. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5811. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5812. $as_echo_n "checking for $ac_word... " >&6; }
  5813. if ${ac_cv_prog_AR+:} false; then :
  5814. $as_echo_n "(cached) " >&6
  5815. else
  5816. if test -n "$AR"; then
  5817. ac_cv_prog_AR="$AR" # Let the user override the test.
  5818. else
  5819. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5820. for as_dir in $PATH
  5821. do
  5822. IFS=$as_save_IFS
  5823. test -z "$as_dir" && as_dir=.
  5824. for ac_exec_ext in '' $ac_executable_extensions; do
  5825. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5826. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  5827. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5828. break 2
  5829. fi
  5830. done
  5831. done
  5832. IFS=$as_save_IFS
  5833. fi
  5834. fi
  5835. AR=$ac_cv_prog_AR
  5836. if test -n "$AR"; then
  5837. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5838. $as_echo "$AR" >&6; }
  5839. else
  5840. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5841. $as_echo "no" >&6; }
  5842. fi
  5843. test -n "$AR" && break
  5844. done
  5845. fi
  5846. if test -z "$AR"; then
  5847. ac_ct_AR=$AR
  5848. for ac_prog in ar
  5849. do
  5850. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5851. set dummy $ac_prog; ac_word=$2
  5852. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5853. $as_echo_n "checking for $ac_word... " >&6; }
  5854. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  5855. $as_echo_n "(cached) " >&6
  5856. else
  5857. if test -n "$ac_ct_AR"; then
  5858. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5859. else
  5860. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5861. for as_dir in $PATH
  5862. do
  5863. IFS=$as_save_IFS
  5864. test -z "$as_dir" && as_dir=.
  5865. for ac_exec_ext in '' $ac_executable_extensions; do
  5866. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5867. ac_cv_prog_ac_ct_AR="$ac_prog"
  5868. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5869. break 2
  5870. fi
  5871. done
  5872. done
  5873. IFS=$as_save_IFS
  5874. fi
  5875. fi
  5876. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5877. if test -n "$ac_ct_AR"; then
  5878. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5879. $as_echo "$ac_ct_AR" >&6; }
  5880. else
  5881. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5882. $as_echo "no" >&6; }
  5883. fi
  5884. test -n "$ac_ct_AR" && break
  5885. done
  5886. if test "x$ac_ct_AR" = x; then
  5887. AR="false"
  5888. else
  5889. case $cross_compiling:$ac_tool_warned in
  5890. yes:)
  5891. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5892. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5893. ac_tool_warned=yes ;;
  5894. esac
  5895. AR=$ac_ct_AR
  5896. fi
  5897. fi
  5898. : ${AR=ar}
  5899. : ${AR_FLAGS=cru}
  5900. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  5901. $as_echo_n "checking for archiver @FILE support... " >&6; }
  5902. if ${lt_cv_ar_at_file+:} false; then :
  5903. $as_echo_n "(cached) " >&6
  5904. else
  5905. lt_cv_ar_at_file=no
  5906. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5907. /* end confdefs.h. */
  5908. int
  5909. main ()
  5910. {
  5911. ;
  5912. return 0;
  5913. }
  5914. _ACEOF
  5915. if ac_fn_c_try_compile "$LINENO"; then :
  5916. echo conftest.$ac_objext > conftest.lst
  5917. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  5918. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5919. (eval $lt_ar_try) 2>&5
  5920. ac_status=$?
  5921. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5922. test $ac_status = 0; }
  5923. if test "$ac_status" -eq 0; then
  5924. # Ensure the archiver fails upon bogus file names.
  5925. rm -f conftest.$ac_objext libconftest.a
  5926. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5927. (eval $lt_ar_try) 2>&5
  5928. ac_status=$?
  5929. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5930. test $ac_status = 0; }
  5931. if test "$ac_status" -ne 0; then
  5932. lt_cv_ar_at_file=@
  5933. fi
  5934. fi
  5935. rm -f conftest.* libconftest.a
  5936. fi
  5937. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5938. fi
  5939. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  5940. $as_echo "$lt_cv_ar_at_file" >&6; }
  5941. if test "x$lt_cv_ar_at_file" = xno; then
  5942. archiver_list_spec=
  5943. else
  5944. archiver_list_spec=$lt_cv_ar_at_file
  5945. fi
  5946. if test -n "$ac_tool_prefix"; then
  5947. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5948. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5949. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5950. $as_echo_n "checking for $ac_word... " >&6; }
  5951. if ${ac_cv_prog_STRIP+:} false; then :
  5952. $as_echo_n "(cached) " >&6
  5953. else
  5954. if test -n "$STRIP"; then
  5955. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5956. else
  5957. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5958. for as_dir in $PATH
  5959. do
  5960. IFS=$as_save_IFS
  5961. test -z "$as_dir" && as_dir=.
  5962. for ac_exec_ext in '' $ac_executable_extensions; do
  5963. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5964. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5965. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5966. break 2
  5967. fi
  5968. done
  5969. done
  5970. IFS=$as_save_IFS
  5971. fi
  5972. fi
  5973. STRIP=$ac_cv_prog_STRIP
  5974. if test -n "$STRIP"; then
  5975. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5976. $as_echo "$STRIP" >&6; }
  5977. else
  5978. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5979. $as_echo "no" >&6; }
  5980. fi
  5981. fi
  5982. if test -z "$ac_cv_prog_STRIP"; then
  5983. ac_ct_STRIP=$STRIP
  5984. # Extract the first word of "strip", so it can be a program name with args.
  5985. set dummy strip; ac_word=$2
  5986. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5987. $as_echo_n "checking for $ac_word... " >&6; }
  5988. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  5989. $as_echo_n "(cached) " >&6
  5990. else
  5991. if test -n "$ac_ct_STRIP"; then
  5992. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5993. else
  5994. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5995. for as_dir in $PATH
  5996. do
  5997. IFS=$as_save_IFS
  5998. test -z "$as_dir" && as_dir=.
  5999. for ac_exec_ext in '' $ac_executable_extensions; do
  6000. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6001. ac_cv_prog_ac_ct_STRIP="strip"
  6002. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6003. break 2
  6004. fi
  6005. done
  6006. done
  6007. IFS=$as_save_IFS
  6008. fi
  6009. fi
  6010. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  6011. if test -n "$ac_ct_STRIP"; then
  6012. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  6013. $as_echo "$ac_ct_STRIP" >&6; }
  6014. else
  6015. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6016. $as_echo "no" >&6; }
  6017. fi
  6018. if test "x$ac_ct_STRIP" = x; then
  6019. STRIP=":"
  6020. else
  6021. case $cross_compiling:$ac_tool_warned in
  6022. yes:)
  6023. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6024. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6025. ac_tool_warned=yes ;;
  6026. esac
  6027. STRIP=$ac_ct_STRIP
  6028. fi
  6029. else
  6030. STRIP="$ac_cv_prog_STRIP"
  6031. fi
  6032. test -z "$STRIP" && STRIP=:
  6033. if test -n "$ac_tool_prefix"; then
  6034. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  6035. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  6036. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6037. $as_echo_n "checking for $ac_word... " >&6; }
  6038. if ${ac_cv_prog_RANLIB+:} false; then :
  6039. $as_echo_n "(cached) " >&6
  6040. else
  6041. if test -n "$RANLIB"; then
  6042. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  6043. else
  6044. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6045. for as_dir in $PATH
  6046. do
  6047. IFS=$as_save_IFS
  6048. test -z "$as_dir" && as_dir=.
  6049. for ac_exec_ext in '' $ac_executable_extensions; do
  6050. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6051. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  6052. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6053. break 2
  6054. fi
  6055. done
  6056. done
  6057. IFS=$as_save_IFS
  6058. fi
  6059. fi
  6060. RANLIB=$ac_cv_prog_RANLIB
  6061. if test -n "$RANLIB"; then
  6062. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  6063. $as_echo "$RANLIB" >&6; }
  6064. else
  6065. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6066. $as_echo "no" >&6; }
  6067. fi
  6068. fi
  6069. if test -z "$ac_cv_prog_RANLIB"; then
  6070. ac_ct_RANLIB=$RANLIB
  6071. # Extract the first word of "ranlib", so it can be a program name with args.
  6072. set dummy ranlib; ac_word=$2
  6073. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6074. $as_echo_n "checking for $ac_word... " >&6; }
  6075. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  6076. $as_echo_n "(cached) " >&6
  6077. else
  6078. if test -n "$ac_ct_RANLIB"; then
  6079. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  6080. else
  6081. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6082. for as_dir in $PATH
  6083. do
  6084. IFS=$as_save_IFS
  6085. test -z "$as_dir" && as_dir=.
  6086. for ac_exec_ext in '' $ac_executable_extensions; do
  6087. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6088. ac_cv_prog_ac_ct_RANLIB="ranlib"
  6089. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6090. break 2
  6091. fi
  6092. done
  6093. done
  6094. IFS=$as_save_IFS
  6095. fi
  6096. fi
  6097. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  6098. if test -n "$ac_ct_RANLIB"; then
  6099. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  6100. $as_echo "$ac_ct_RANLIB" >&6; }
  6101. else
  6102. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6103. $as_echo "no" >&6; }
  6104. fi
  6105. if test "x$ac_ct_RANLIB" = x; then
  6106. RANLIB=":"
  6107. else
  6108. case $cross_compiling:$ac_tool_warned in
  6109. yes:)
  6110. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6111. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6112. ac_tool_warned=yes ;;
  6113. esac
  6114. RANLIB=$ac_ct_RANLIB
  6115. fi
  6116. else
  6117. RANLIB="$ac_cv_prog_RANLIB"
  6118. fi
  6119. test -z "$RANLIB" && RANLIB=:
  6120. # Determine commands to create old-style static archives.
  6121. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  6122. old_postinstall_cmds='chmod 644 $oldlib'
  6123. old_postuninstall_cmds=
  6124. if test -n "$RANLIB"; then
  6125. case $host_os in
  6126. openbsd*)
  6127. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  6128. ;;
  6129. *)
  6130. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  6131. ;;
  6132. esac
  6133. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  6134. fi
  6135. case $host_os in
  6136. darwin*)
  6137. lock_old_archive_extraction=yes ;;
  6138. *)
  6139. lock_old_archive_extraction=no ;;
  6140. esac
  6141. # If no C compiler was specified, use CC.
  6142. LTCC=${LTCC-"$CC"}
  6143. # If no C compiler flags were specified, use CFLAGS.
  6144. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6145. # Allow CC to be a program name with arguments.
  6146. compiler=$CC
  6147. # Check for command to grab the raw symbol name followed by C symbol from nm.
  6148. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  6149. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  6150. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  6151. $as_echo_n "(cached) " >&6
  6152. else
  6153. # These are sane defaults that work on at least a few old systems.
  6154. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  6155. # Character class describing NM global symbol codes.
  6156. symcode='[BCDEGRST]'
  6157. # Regexp to match symbols that can be accessed directly from C.
  6158. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  6159. # Define system-specific variables.
  6160. case $host_os in
  6161. aix*)
  6162. symcode='[BCDT]'
  6163. ;;
  6164. cygwin* | mingw* | pw32* | cegcc*)
  6165. symcode='[ABCDGISTW]'
  6166. ;;
  6167. hpux*)
  6168. if test "$host_cpu" = ia64; then
  6169. symcode='[ABCDEGRST]'
  6170. fi
  6171. ;;
  6172. irix* | nonstopux*)
  6173. symcode='[BCDEGRST]'
  6174. ;;
  6175. osf*)
  6176. symcode='[BCDEGQRST]'
  6177. ;;
  6178. solaris*)
  6179. symcode='[BDRT]'
  6180. ;;
  6181. sco3.2v5*)
  6182. symcode='[DT]'
  6183. ;;
  6184. sysv4.2uw2*)
  6185. symcode='[DT]'
  6186. ;;
  6187. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  6188. symcode='[ABDT]'
  6189. ;;
  6190. sysv4)
  6191. symcode='[DFNSTU]'
  6192. ;;
  6193. esac
  6194. # If we're using GNU nm, then use its standard symbol codes.
  6195. case `$NM -V 2>&1` in
  6196. *GNU* | *'with BFD'*)
  6197. symcode='[ABCDGIRSTW]' ;;
  6198. esac
  6199. # Transform an extracted symbol line into a proper C declaration.
  6200. # Some systems (esp. on ia64) link data and code symbols differently,
  6201. # so use this general approach.
  6202. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  6203. # Transform an extracted symbol line into symbol name and symbol address
  6204. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  6205. 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'"
  6206. # Handle CRLF in mingw tool chain
  6207. opt_cr=
  6208. case $build_os in
  6209. mingw*)
  6210. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  6211. ;;
  6212. esac
  6213. # Try without a prefix underscore, then with it.
  6214. for ac_symprfx in "" "_"; do
  6215. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  6216. symxfrm="\\1 $ac_symprfx\\2 \\2"
  6217. # Write the raw and C identifiers.
  6218. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6219. # Fake it for dumpbin and say T for any non-static function
  6220. # and D for any global variable.
  6221. # Also find C++ and __fastcall symbols from MSVC++,
  6222. # which start with @ or ?.
  6223. lt_cv_sys_global_symbol_pipe="$AWK '"\
  6224. " {last_section=section; section=\$ 3};"\
  6225. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  6226. " \$ 0!~/External *\|/{next};"\
  6227. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  6228. " {if(hide[section]) next};"\
  6229. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  6230. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  6231. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  6232. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  6233. " ' prfx=^$ac_symprfx"
  6234. else
  6235. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  6236. fi
  6237. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  6238. # Check to see that the pipe works correctly.
  6239. pipe_works=no
  6240. rm -f conftest*
  6241. cat > conftest.$ac_ext <<_LT_EOF
  6242. #ifdef __cplusplus
  6243. extern "C" {
  6244. #endif
  6245. char nm_test_var;
  6246. void nm_test_func(void);
  6247. void nm_test_func(void){}
  6248. #ifdef __cplusplus
  6249. }
  6250. #endif
  6251. int main(){nm_test_var='a';nm_test_func();return(0);}
  6252. _LT_EOF
  6253. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6254. (eval $ac_compile) 2>&5
  6255. ac_status=$?
  6256. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6257. test $ac_status = 0; }; then
  6258. # Now try to grab the symbols.
  6259. nlist=conftest.nm
  6260. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  6261. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  6262. ac_status=$?
  6263. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6264. test $ac_status = 0; } && test -s "$nlist"; then
  6265. # Try sorting and uniquifying the output.
  6266. if sort "$nlist" | uniq > "$nlist"T; then
  6267. mv -f "$nlist"T "$nlist"
  6268. else
  6269. rm -f "$nlist"T
  6270. fi
  6271. # Make sure that we snagged all the symbols we need.
  6272. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  6273. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  6274. cat <<_LT_EOF > conftest.$ac_ext
  6275. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  6276. #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  6277. /* DATA imports from DLLs on WIN32 con't be const, because runtime
  6278. relocations are performed -- see ld's documentation on pseudo-relocs. */
  6279. # define LT_DLSYM_CONST
  6280. #elif defined(__osf__)
  6281. /* This system does not cope well with relocations in const data. */
  6282. # define LT_DLSYM_CONST
  6283. #else
  6284. # define LT_DLSYM_CONST const
  6285. #endif
  6286. #ifdef __cplusplus
  6287. extern "C" {
  6288. #endif
  6289. _LT_EOF
  6290. # Now generate the symbol file.
  6291. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  6292. cat <<_LT_EOF >> conftest.$ac_ext
  6293. /* The mapping between symbol names and symbols. */
  6294. LT_DLSYM_CONST struct {
  6295. const char *name;
  6296. void *address;
  6297. }
  6298. lt__PROGRAM__LTX_preloaded_symbols[] =
  6299. {
  6300. { "@PROGRAM@", (void *) 0 },
  6301. _LT_EOF
  6302. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  6303. cat <<\_LT_EOF >> conftest.$ac_ext
  6304. {0, (void *) 0}
  6305. };
  6306. /* This works around a problem in FreeBSD linker */
  6307. #ifdef FREEBSD_WORKAROUND
  6308. static const void *lt_preloaded_setup() {
  6309. return lt__PROGRAM__LTX_preloaded_symbols;
  6310. }
  6311. #endif
  6312. #ifdef __cplusplus
  6313. }
  6314. #endif
  6315. _LT_EOF
  6316. # Now try linking the two files.
  6317. mv conftest.$ac_objext conftstm.$ac_objext
  6318. lt_globsym_save_LIBS=$LIBS
  6319. lt_globsym_save_CFLAGS=$CFLAGS
  6320. LIBS="conftstm.$ac_objext"
  6321. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  6322. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  6323. (eval $ac_link) 2>&5
  6324. ac_status=$?
  6325. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6326. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  6327. pipe_works=yes
  6328. fi
  6329. LIBS=$lt_globsym_save_LIBS
  6330. CFLAGS=$lt_globsym_save_CFLAGS
  6331. else
  6332. echo "cannot find nm_test_func in $nlist" >&5
  6333. fi
  6334. else
  6335. echo "cannot find nm_test_var in $nlist" >&5
  6336. fi
  6337. else
  6338. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  6339. fi
  6340. else
  6341. echo "$progname: failed program was:" >&5
  6342. cat conftest.$ac_ext >&5
  6343. fi
  6344. rm -rf conftest* conftst*
  6345. # Do not use the global_symbol_pipe unless it works.
  6346. if test "$pipe_works" = yes; then
  6347. break
  6348. else
  6349. lt_cv_sys_global_symbol_pipe=
  6350. fi
  6351. done
  6352. fi
  6353. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6354. lt_cv_sys_global_symbol_to_cdecl=
  6355. fi
  6356. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6357. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  6358. $as_echo "failed" >&6; }
  6359. else
  6360. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  6361. $as_echo "ok" >&6; }
  6362. fi
  6363. # Response file support.
  6364. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6365. nm_file_list_spec='@'
  6366. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  6367. nm_file_list_spec='@'
  6368. fi
  6369. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  6370. $as_echo_n "checking for sysroot... " >&6; }
  6371. # Check whether --with-sysroot was given.
  6372. if test "${with_sysroot+set}" = set; then :
  6373. withval=$with_sysroot;
  6374. else
  6375. with_sysroot=no
  6376. fi
  6377. lt_sysroot=
  6378. case ${with_sysroot} in #(
  6379. yes)
  6380. if test "$GCC" = yes; then
  6381. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  6382. fi
  6383. ;; #(
  6384. /*)
  6385. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  6386. ;; #(
  6387. no|'')
  6388. ;; #(
  6389. *)
  6390. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
  6391. $as_echo "${with_sysroot}" >&6; }
  6392. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  6393. ;;
  6394. esac
  6395. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  6396. $as_echo "${lt_sysroot:-no}" >&6; }
  6397. # Check whether --enable-libtool-lock was given.
  6398. if test "${enable_libtool_lock+set}" = set; then :
  6399. enableval=$enable_libtool_lock;
  6400. fi
  6401. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  6402. # Some flags need to be propagated to the compiler or linker for good
  6403. # libtool support.
  6404. case $host in
  6405. ia64-*-hpux*)
  6406. # Find out which ABI we are using.
  6407. echo 'int i;' > conftest.$ac_ext
  6408. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6409. (eval $ac_compile) 2>&5
  6410. ac_status=$?
  6411. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6412. test $ac_status = 0; }; then
  6413. case `/usr/bin/file conftest.$ac_objext` in
  6414. *ELF-32*)
  6415. HPUX_IA64_MODE="32"
  6416. ;;
  6417. *ELF-64*)
  6418. HPUX_IA64_MODE="64"
  6419. ;;
  6420. esac
  6421. fi
  6422. rm -rf conftest*
  6423. ;;
  6424. *-*-irix6*)
  6425. # Find out which ABI we are using.
  6426. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6427. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6428. (eval $ac_compile) 2>&5
  6429. ac_status=$?
  6430. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6431. test $ac_status = 0; }; then
  6432. if test "$lt_cv_prog_gnu_ld" = yes; then
  6433. case `/usr/bin/file conftest.$ac_objext` in
  6434. *32-bit*)
  6435. LD="${LD-ld} -melf32bsmip"
  6436. ;;
  6437. *N32*)
  6438. LD="${LD-ld} -melf32bmipn32"
  6439. ;;
  6440. *64-bit*)
  6441. LD="${LD-ld} -melf64bmip"
  6442. ;;
  6443. esac
  6444. else
  6445. case `/usr/bin/file conftest.$ac_objext` in
  6446. *32-bit*)
  6447. LD="${LD-ld} -32"
  6448. ;;
  6449. *N32*)
  6450. LD="${LD-ld} -n32"
  6451. ;;
  6452. *64-bit*)
  6453. LD="${LD-ld} -64"
  6454. ;;
  6455. esac
  6456. fi
  6457. fi
  6458. rm -rf conftest*
  6459. ;;
  6460. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  6461. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  6462. # Find out which ABI we are using.
  6463. echo 'int i;' > conftest.$ac_ext
  6464. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6465. (eval $ac_compile) 2>&5
  6466. ac_status=$?
  6467. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6468. test $ac_status = 0; }; then
  6469. case `/usr/bin/file conftest.o` in
  6470. *32-bit*)
  6471. case $host in
  6472. x86_64-*kfreebsd*-gnu)
  6473. LD="${LD-ld} -m elf_i386_fbsd"
  6474. ;;
  6475. x86_64-*linux*)
  6476. LD="${LD-ld} -m elf_i386"
  6477. ;;
  6478. ppc64-*linux*|powerpc64-*linux*)
  6479. LD="${LD-ld} -m elf32ppclinux"
  6480. ;;
  6481. s390x-*linux*)
  6482. LD="${LD-ld} -m elf_s390"
  6483. ;;
  6484. sparc64-*linux*)
  6485. LD="${LD-ld} -m elf32_sparc"
  6486. ;;
  6487. esac
  6488. ;;
  6489. *64-bit*)
  6490. case $host in
  6491. x86_64-*kfreebsd*-gnu)
  6492. LD="${LD-ld} -m elf_x86_64_fbsd"
  6493. ;;
  6494. x86_64-*linux*)
  6495. LD="${LD-ld} -m elf_x86_64"
  6496. ;;
  6497. ppc*-*linux*|powerpc*-*linux*)
  6498. LD="${LD-ld} -m elf64ppc"
  6499. ;;
  6500. s390*-*linux*|s390*-*tpf*)
  6501. LD="${LD-ld} -m elf64_s390"
  6502. ;;
  6503. sparc*-*linux*)
  6504. LD="${LD-ld} -m elf64_sparc"
  6505. ;;
  6506. esac
  6507. ;;
  6508. esac
  6509. fi
  6510. rm -rf conftest*
  6511. ;;
  6512. *-*-sco3.2v5*)
  6513. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6514. SAVE_CFLAGS="$CFLAGS"
  6515. CFLAGS="$CFLAGS -belf"
  6516. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  6517. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  6518. if ${lt_cv_cc_needs_belf+:} false; then :
  6519. $as_echo_n "(cached) " >&6
  6520. else
  6521. ac_ext=c
  6522. ac_cpp='$CPP $CPPFLAGS'
  6523. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6524. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6525. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6526. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6527. /* end confdefs.h. */
  6528. int
  6529. main ()
  6530. {
  6531. ;
  6532. return 0;
  6533. }
  6534. _ACEOF
  6535. if ac_fn_c_try_link "$LINENO"; then :
  6536. lt_cv_cc_needs_belf=yes
  6537. else
  6538. lt_cv_cc_needs_belf=no
  6539. fi
  6540. rm -f core conftest.err conftest.$ac_objext \
  6541. conftest$ac_exeext conftest.$ac_ext
  6542. ac_ext=c
  6543. ac_cpp='$CPP $CPPFLAGS'
  6544. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6545. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6546. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6547. fi
  6548. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  6549. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  6550. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  6551. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6552. CFLAGS="$SAVE_CFLAGS"
  6553. fi
  6554. ;;
  6555. sparc*-*solaris*)
  6556. # Find out which ABI we are using.
  6557. echo 'int i;' > conftest.$ac_ext
  6558. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6559. (eval $ac_compile) 2>&5
  6560. ac_status=$?
  6561. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6562. test $ac_status = 0; }; then
  6563. case `/usr/bin/file conftest.o` in
  6564. *64-bit*)
  6565. case $lt_cv_prog_gnu_ld in
  6566. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  6567. *)
  6568. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6569. LD="${LD-ld} -64"
  6570. fi
  6571. ;;
  6572. esac
  6573. ;;
  6574. esac
  6575. fi
  6576. rm -rf conftest*
  6577. ;;
  6578. esac
  6579. need_locks="$enable_libtool_lock"
  6580. if test -n "$ac_tool_prefix"; then
  6581. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  6582. set dummy ${ac_tool_prefix}mt; ac_word=$2
  6583. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6584. $as_echo_n "checking for $ac_word... " >&6; }
  6585. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  6586. $as_echo_n "(cached) " >&6
  6587. else
  6588. if test -n "$MANIFEST_TOOL"; then
  6589. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  6590. else
  6591. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6592. for as_dir in $PATH
  6593. do
  6594. IFS=$as_save_IFS
  6595. test -z "$as_dir" && as_dir=.
  6596. for ac_exec_ext in '' $ac_executable_extensions; do
  6597. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6598. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  6599. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6600. break 2
  6601. fi
  6602. done
  6603. done
  6604. IFS=$as_save_IFS
  6605. fi
  6606. fi
  6607. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  6608. if test -n "$MANIFEST_TOOL"; then
  6609. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  6610. $as_echo "$MANIFEST_TOOL" >&6; }
  6611. else
  6612. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6613. $as_echo "no" >&6; }
  6614. fi
  6615. fi
  6616. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  6617. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  6618. # Extract the first word of "mt", so it can be a program name with args.
  6619. set dummy mt; ac_word=$2
  6620. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6621. $as_echo_n "checking for $ac_word... " >&6; }
  6622. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  6623. $as_echo_n "(cached) " >&6
  6624. else
  6625. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6626. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  6627. else
  6628. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6629. for as_dir in $PATH
  6630. do
  6631. IFS=$as_save_IFS
  6632. test -z "$as_dir" && as_dir=.
  6633. for ac_exec_ext in '' $ac_executable_extensions; do
  6634. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6635. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  6636. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6637. break 2
  6638. fi
  6639. done
  6640. done
  6641. IFS=$as_save_IFS
  6642. fi
  6643. fi
  6644. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  6645. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6646. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  6647. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  6648. else
  6649. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6650. $as_echo "no" >&6; }
  6651. fi
  6652. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  6653. MANIFEST_TOOL=":"
  6654. else
  6655. case $cross_compiling:$ac_tool_warned in
  6656. yes:)
  6657. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6658. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6659. ac_tool_warned=yes ;;
  6660. esac
  6661. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  6662. fi
  6663. else
  6664. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  6665. fi
  6666. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  6667. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  6668. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  6669. if ${lt_cv_path_mainfest_tool+:} false; then :
  6670. $as_echo_n "(cached) " >&6
  6671. else
  6672. lt_cv_path_mainfest_tool=no
  6673. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  6674. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  6675. cat conftest.err >&5
  6676. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  6677. lt_cv_path_mainfest_tool=yes
  6678. fi
  6679. rm -f conftest*
  6680. fi
  6681. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  6682. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  6683. if test "x$lt_cv_path_mainfest_tool" != xyes; then
  6684. MANIFEST_TOOL=:
  6685. fi
  6686. case $host_os in
  6687. rhapsody* | darwin*)
  6688. if test -n "$ac_tool_prefix"; then
  6689. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6690. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6691. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6692. $as_echo_n "checking for $ac_word... " >&6; }
  6693. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  6694. $as_echo_n "(cached) " >&6
  6695. else
  6696. if test -n "$DSYMUTIL"; then
  6697. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6698. else
  6699. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6700. for as_dir in $PATH
  6701. do
  6702. IFS=$as_save_IFS
  6703. test -z "$as_dir" && as_dir=.
  6704. for ac_exec_ext in '' $ac_executable_extensions; do
  6705. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6706. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6707. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6708. break 2
  6709. fi
  6710. done
  6711. done
  6712. IFS=$as_save_IFS
  6713. fi
  6714. fi
  6715. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6716. if test -n "$DSYMUTIL"; then
  6717. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  6718. $as_echo "$DSYMUTIL" >&6; }
  6719. else
  6720. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6721. $as_echo "no" >&6; }
  6722. fi
  6723. fi
  6724. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6725. ac_ct_DSYMUTIL=$DSYMUTIL
  6726. # Extract the first word of "dsymutil", so it can be a program name with args.
  6727. set dummy dsymutil; ac_word=$2
  6728. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6729. $as_echo_n "checking for $ac_word... " >&6; }
  6730. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  6731. $as_echo_n "(cached) " >&6
  6732. else
  6733. if test -n "$ac_ct_DSYMUTIL"; then
  6734. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6735. else
  6736. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6737. for as_dir in $PATH
  6738. do
  6739. IFS=$as_save_IFS
  6740. test -z "$as_dir" && as_dir=.
  6741. for ac_exec_ext in '' $ac_executable_extensions; do
  6742. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6743. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6744. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6745. break 2
  6746. fi
  6747. done
  6748. done
  6749. IFS=$as_save_IFS
  6750. fi
  6751. fi
  6752. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6753. if test -n "$ac_ct_DSYMUTIL"; then
  6754. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  6755. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  6756. else
  6757. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6758. $as_echo "no" >&6; }
  6759. fi
  6760. if test "x$ac_ct_DSYMUTIL" = x; then
  6761. DSYMUTIL=":"
  6762. else
  6763. case $cross_compiling:$ac_tool_warned in
  6764. yes:)
  6765. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6766. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6767. ac_tool_warned=yes ;;
  6768. esac
  6769. DSYMUTIL=$ac_ct_DSYMUTIL
  6770. fi
  6771. else
  6772. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6773. fi
  6774. if test -n "$ac_tool_prefix"; then
  6775. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6776. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6777. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6778. $as_echo_n "checking for $ac_word... " >&6; }
  6779. if ${ac_cv_prog_NMEDIT+:} false; then :
  6780. $as_echo_n "(cached) " >&6
  6781. else
  6782. if test -n "$NMEDIT"; then
  6783. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6784. else
  6785. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6786. for as_dir in $PATH
  6787. do
  6788. IFS=$as_save_IFS
  6789. test -z "$as_dir" && as_dir=.
  6790. for ac_exec_ext in '' $ac_executable_extensions; do
  6791. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6792. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6793. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6794. break 2
  6795. fi
  6796. done
  6797. done
  6798. IFS=$as_save_IFS
  6799. fi
  6800. fi
  6801. NMEDIT=$ac_cv_prog_NMEDIT
  6802. if test -n "$NMEDIT"; then
  6803. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  6804. $as_echo "$NMEDIT" >&6; }
  6805. else
  6806. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6807. $as_echo "no" >&6; }
  6808. fi
  6809. fi
  6810. if test -z "$ac_cv_prog_NMEDIT"; then
  6811. ac_ct_NMEDIT=$NMEDIT
  6812. # Extract the first word of "nmedit", so it can be a program name with args.
  6813. set dummy nmedit; ac_word=$2
  6814. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6815. $as_echo_n "checking for $ac_word... " >&6; }
  6816. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  6817. $as_echo_n "(cached) " >&6
  6818. else
  6819. if test -n "$ac_ct_NMEDIT"; then
  6820. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6821. else
  6822. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6823. for as_dir in $PATH
  6824. do
  6825. IFS=$as_save_IFS
  6826. test -z "$as_dir" && as_dir=.
  6827. for ac_exec_ext in '' $ac_executable_extensions; do
  6828. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6829. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6830. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6831. break 2
  6832. fi
  6833. done
  6834. done
  6835. IFS=$as_save_IFS
  6836. fi
  6837. fi
  6838. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6839. if test -n "$ac_ct_NMEDIT"; then
  6840. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  6841. $as_echo "$ac_ct_NMEDIT" >&6; }
  6842. else
  6843. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6844. $as_echo "no" >&6; }
  6845. fi
  6846. if test "x$ac_ct_NMEDIT" = x; then
  6847. NMEDIT=":"
  6848. else
  6849. case $cross_compiling:$ac_tool_warned in
  6850. yes:)
  6851. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6852. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6853. ac_tool_warned=yes ;;
  6854. esac
  6855. NMEDIT=$ac_ct_NMEDIT
  6856. fi
  6857. else
  6858. NMEDIT="$ac_cv_prog_NMEDIT"
  6859. fi
  6860. if test -n "$ac_tool_prefix"; then
  6861. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6862. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6863. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6864. $as_echo_n "checking for $ac_word... " >&6; }
  6865. if ${ac_cv_prog_LIPO+:} false; then :
  6866. $as_echo_n "(cached) " >&6
  6867. else
  6868. if test -n "$LIPO"; then
  6869. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6870. else
  6871. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6872. for as_dir in $PATH
  6873. do
  6874. IFS=$as_save_IFS
  6875. test -z "$as_dir" && as_dir=.
  6876. for ac_exec_ext in '' $ac_executable_extensions; do
  6877. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6878. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6879. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6880. break 2
  6881. fi
  6882. done
  6883. done
  6884. IFS=$as_save_IFS
  6885. fi
  6886. fi
  6887. LIPO=$ac_cv_prog_LIPO
  6888. if test -n "$LIPO"; then
  6889. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  6890. $as_echo "$LIPO" >&6; }
  6891. else
  6892. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6893. $as_echo "no" >&6; }
  6894. fi
  6895. fi
  6896. if test -z "$ac_cv_prog_LIPO"; then
  6897. ac_ct_LIPO=$LIPO
  6898. # Extract the first word of "lipo", so it can be a program name with args.
  6899. set dummy lipo; ac_word=$2
  6900. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6901. $as_echo_n "checking for $ac_word... " >&6; }
  6902. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  6903. $as_echo_n "(cached) " >&6
  6904. else
  6905. if test -n "$ac_ct_LIPO"; then
  6906. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6907. else
  6908. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6909. for as_dir in $PATH
  6910. do
  6911. IFS=$as_save_IFS
  6912. test -z "$as_dir" && as_dir=.
  6913. for ac_exec_ext in '' $ac_executable_extensions; do
  6914. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6915. ac_cv_prog_ac_ct_LIPO="lipo"
  6916. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6917. break 2
  6918. fi
  6919. done
  6920. done
  6921. IFS=$as_save_IFS
  6922. fi
  6923. fi
  6924. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6925. if test -n "$ac_ct_LIPO"; then
  6926. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6927. $as_echo "$ac_ct_LIPO" >&6; }
  6928. else
  6929. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6930. $as_echo "no" >&6; }
  6931. fi
  6932. if test "x$ac_ct_LIPO" = x; then
  6933. LIPO=":"
  6934. else
  6935. case $cross_compiling:$ac_tool_warned in
  6936. yes:)
  6937. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6938. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6939. ac_tool_warned=yes ;;
  6940. esac
  6941. LIPO=$ac_ct_LIPO
  6942. fi
  6943. else
  6944. LIPO="$ac_cv_prog_LIPO"
  6945. fi
  6946. if test -n "$ac_tool_prefix"; then
  6947. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6948. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6949. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6950. $as_echo_n "checking for $ac_word... " >&6; }
  6951. if ${ac_cv_prog_OTOOL+:} false; then :
  6952. $as_echo_n "(cached) " >&6
  6953. else
  6954. if test -n "$OTOOL"; then
  6955. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6956. else
  6957. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6958. for as_dir in $PATH
  6959. do
  6960. IFS=$as_save_IFS
  6961. test -z "$as_dir" && as_dir=.
  6962. for ac_exec_ext in '' $ac_executable_extensions; do
  6963. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6964. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6965. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6966. break 2
  6967. fi
  6968. done
  6969. done
  6970. IFS=$as_save_IFS
  6971. fi
  6972. fi
  6973. OTOOL=$ac_cv_prog_OTOOL
  6974. if test -n "$OTOOL"; then
  6975. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6976. $as_echo "$OTOOL" >&6; }
  6977. else
  6978. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6979. $as_echo "no" >&6; }
  6980. fi
  6981. fi
  6982. if test -z "$ac_cv_prog_OTOOL"; then
  6983. ac_ct_OTOOL=$OTOOL
  6984. # Extract the first word of "otool", so it can be a program name with args.
  6985. set dummy otool; ac_word=$2
  6986. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6987. $as_echo_n "checking for $ac_word... " >&6; }
  6988. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  6989. $as_echo_n "(cached) " >&6
  6990. else
  6991. if test -n "$ac_ct_OTOOL"; then
  6992. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6993. else
  6994. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6995. for as_dir in $PATH
  6996. do
  6997. IFS=$as_save_IFS
  6998. test -z "$as_dir" && as_dir=.
  6999. for ac_exec_ext in '' $ac_executable_extensions; do
  7000. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7001. ac_cv_prog_ac_ct_OTOOL="otool"
  7002. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7003. break 2
  7004. fi
  7005. done
  7006. done
  7007. IFS=$as_save_IFS
  7008. fi
  7009. fi
  7010. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  7011. if test -n "$ac_ct_OTOOL"; then
  7012. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  7013. $as_echo "$ac_ct_OTOOL" >&6; }
  7014. else
  7015. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7016. $as_echo "no" >&6; }
  7017. fi
  7018. if test "x$ac_ct_OTOOL" = x; then
  7019. OTOOL=":"
  7020. else
  7021. case $cross_compiling:$ac_tool_warned in
  7022. yes:)
  7023. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7024. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7025. ac_tool_warned=yes ;;
  7026. esac
  7027. OTOOL=$ac_ct_OTOOL
  7028. fi
  7029. else
  7030. OTOOL="$ac_cv_prog_OTOOL"
  7031. fi
  7032. if test -n "$ac_tool_prefix"; then
  7033. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  7034. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  7035. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7036. $as_echo_n "checking for $ac_word... " >&6; }
  7037. if ${ac_cv_prog_OTOOL64+:} false; then :
  7038. $as_echo_n "(cached) " >&6
  7039. else
  7040. if test -n "$OTOOL64"; then
  7041. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  7042. else
  7043. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7044. for as_dir in $PATH
  7045. do
  7046. IFS=$as_save_IFS
  7047. test -z "$as_dir" && as_dir=.
  7048. for ac_exec_ext in '' $ac_executable_extensions; do
  7049. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7050. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  7051. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7052. break 2
  7053. fi
  7054. done
  7055. done
  7056. IFS=$as_save_IFS
  7057. fi
  7058. fi
  7059. OTOOL64=$ac_cv_prog_OTOOL64
  7060. if test -n "$OTOOL64"; then
  7061. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  7062. $as_echo "$OTOOL64" >&6; }
  7063. else
  7064. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7065. $as_echo "no" >&6; }
  7066. fi
  7067. fi
  7068. if test -z "$ac_cv_prog_OTOOL64"; then
  7069. ac_ct_OTOOL64=$OTOOL64
  7070. # Extract the first word of "otool64", so it can be a program name with args.
  7071. set dummy otool64; ac_word=$2
  7072. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7073. $as_echo_n "checking for $ac_word... " >&6; }
  7074. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  7075. $as_echo_n "(cached) " >&6
  7076. else
  7077. if test -n "$ac_ct_OTOOL64"; then
  7078. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  7079. else
  7080. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7081. for as_dir in $PATH
  7082. do
  7083. IFS=$as_save_IFS
  7084. test -z "$as_dir" && as_dir=.
  7085. for ac_exec_ext in '' $ac_executable_extensions; do
  7086. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7087. ac_cv_prog_ac_ct_OTOOL64="otool64"
  7088. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7089. break 2
  7090. fi
  7091. done
  7092. done
  7093. IFS=$as_save_IFS
  7094. fi
  7095. fi
  7096. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  7097. if test -n "$ac_ct_OTOOL64"; then
  7098. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  7099. $as_echo "$ac_ct_OTOOL64" >&6; }
  7100. else
  7101. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7102. $as_echo "no" >&6; }
  7103. fi
  7104. if test "x$ac_ct_OTOOL64" = x; then
  7105. OTOOL64=":"
  7106. else
  7107. case $cross_compiling:$ac_tool_warned in
  7108. yes:)
  7109. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7110. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7111. ac_tool_warned=yes ;;
  7112. esac
  7113. OTOOL64=$ac_ct_OTOOL64
  7114. fi
  7115. else
  7116. OTOOL64="$ac_cv_prog_OTOOL64"
  7117. fi
  7118. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  7119. $as_echo_n "checking for -single_module linker flag... " >&6; }
  7120. if ${lt_cv_apple_cc_single_mod+:} false; then :
  7121. $as_echo_n "(cached) " >&6
  7122. else
  7123. lt_cv_apple_cc_single_mod=no
  7124. if test -z "${LT_MULTI_MODULE}"; then
  7125. # By default we will add the -single_module flag. You can override
  7126. # by either setting the environment variable LT_MULTI_MODULE
  7127. # non-empty at configure time, or by adding -multi_module to the
  7128. # link flags.
  7129. rm -rf libconftest.dylib*
  7130. echo "int foo(void){return 1;}" > conftest.c
  7131. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7132. -dynamiclib -Wl,-single_module conftest.c" >&5
  7133. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7134. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  7135. _lt_result=$?
  7136. if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  7137. lt_cv_apple_cc_single_mod=yes
  7138. else
  7139. cat conftest.err >&5
  7140. fi
  7141. rm -rf libconftest.dylib*
  7142. rm -f conftest.*
  7143. fi
  7144. fi
  7145. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  7146. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  7147. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  7148. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  7149. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  7150. $as_echo_n "(cached) " >&6
  7151. else
  7152. lt_cv_ld_exported_symbols_list=no
  7153. save_LDFLAGS=$LDFLAGS
  7154. echo "_main" > conftest.sym
  7155. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  7156. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7157. /* end confdefs.h. */
  7158. int
  7159. main ()
  7160. {
  7161. ;
  7162. return 0;
  7163. }
  7164. _ACEOF
  7165. if ac_fn_c_try_link "$LINENO"; then :
  7166. lt_cv_ld_exported_symbols_list=yes
  7167. else
  7168. lt_cv_ld_exported_symbols_list=no
  7169. fi
  7170. rm -f core conftest.err conftest.$ac_objext \
  7171. conftest$ac_exeext conftest.$ac_ext
  7172. LDFLAGS="$save_LDFLAGS"
  7173. fi
  7174. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  7175. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  7176. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  7177. $as_echo_n "checking for -force_load linker flag... " >&6; }
  7178. if ${lt_cv_ld_force_load+:} false; then :
  7179. $as_echo_n "(cached) " >&6
  7180. else
  7181. lt_cv_ld_force_load=no
  7182. cat > conftest.c << _LT_EOF
  7183. int forced_loaded() { return 2;}
  7184. _LT_EOF
  7185. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  7186. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  7187. echo "$AR cru libconftest.a conftest.o" >&5
  7188. $AR cru libconftest.a conftest.o 2>&5
  7189. echo "$RANLIB libconftest.a" >&5
  7190. $RANLIB libconftest.a 2>&5
  7191. cat > conftest.c << _LT_EOF
  7192. int main() { return 0;}
  7193. _LT_EOF
  7194. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  7195. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  7196. _lt_result=$?
  7197. if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
  7198. lt_cv_ld_force_load=yes
  7199. else
  7200. cat conftest.err >&5
  7201. fi
  7202. rm -f conftest.err libconftest.a conftest conftest.c
  7203. rm -rf conftest.dSYM
  7204. fi
  7205. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  7206. $as_echo "$lt_cv_ld_force_load" >&6; }
  7207. case $host_os in
  7208. rhapsody* | darwin1.[012])
  7209. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  7210. darwin1.*)
  7211. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  7212. darwin*) # darwin 5.x on
  7213. # if running on 10.5 or later, the deployment target defaults
  7214. # to the OS version, if on x86, and 10.4, the deployment
  7215. # target defaults to 10.4. Don't you love it?
  7216. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  7217. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  7218. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  7219. 10.[012]*)
  7220. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  7221. 10.*)
  7222. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  7223. esac
  7224. ;;
  7225. esac
  7226. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  7227. _lt_dar_single_mod='$single_module'
  7228. fi
  7229. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  7230. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  7231. else
  7232. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  7233. fi
  7234. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  7235. _lt_dsymutil='~$DSYMUTIL $lib || :'
  7236. else
  7237. _lt_dsymutil=
  7238. fi
  7239. ;;
  7240. esac
  7241. ac_ext=c
  7242. ac_cpp='$CPP $CPPFLAGS'
  7243. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7244. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7245. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7246. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  7247. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  7248. # On Suns, sometimes $CPP names a directory.
  7249. if test -n "$CPP" && test -d "$CPP"; then
  7250. CPP=
  7251. fi
  7252. if test -z "$CPP"; then
  7253. if ${ac_cv_prog_CPP+:} false; then :
  7254. $as_echo_n "(cached) " >&6
  7255. else
  7256. # Double quotes because CPP needs to be expanded
  7257. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  7258. do
  7259. ac_preproc_ok=false
  7260. for ac_c_preproc_warn_flag in '' yes
  7261. do
  7262. # Use a header file that comes with gcc, so configuring glibc
  7263. # with a fresh cross-compiler works.
  7264. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7265. # <limits.h> exists even on freestanding compilers.
  7266. # On the NeXT, cc -E runs the code through the compiler's parser,
  7267. # not just through cpp. "Syntax error" is here to catch this case.
  7268. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7269. /* end confdefs.h. */
  7270. #ifdef __STDC__
  7271. # include <limits.h>
  7272. #else
  7273. # include <assert.h>
  7274. #endif
  7275. Syntax error
  7276. _ACEOF
  7277. if ac_fn_c_try_cpp "$LINENO"; then :
  7278. else
  7279. # Broken: fails on valid input.
  7280. continue
  7281. fi
  7282. rm -f conftest.err conftest.i conftest.$ac_ext
  7283. # OK, works on sane cases. Now check whether nonexistent headers
  7284. # can be detected and how.
  7285. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7286. /* end confdefs.h. */
  7287. #include <ac_nonexistent.h>
  7288. _ACEOF
  7289. if ac_fn_c_try_cpp "$LINENO"; then :
  7290. # Broken: success on invalid input.
  7291. continue
  7292. else
  7293. # Passes both tests.
  7294. ac_preproc_ok=:
  7295. break
  7296. fi
  7297. rm -f conftest.err conftest.i conftest.$ac_ext
  7298. done
  7299. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  7300. rm -f conftest.i conftest.err conftest.$ac_ext
  7301. if $ac_preproc_ok; then :
  7302. break
  7303. fi
  7304. done
  7305. ac_cv_prog_CPP=$CPP
  7306. fi
  7307. CPP=$ac_cv_prog_CPP
  7308. else
  7309. ac_cv_prog_CPP=$CPP
  7310. fi
  7311. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  7312. $as_echo "$CPP" >&6; }
  7313. ac_preproc_ok=false
  7314. for ac_c_preproc_warn_flag in '' yes
  7315. do
  7316. # Use a header file that comes with gcc, so configuring glibc
  7317. # with a fresh cross-compiler works.
  7318. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7319. # <limits.h> exists even on freestanding compilers.
  7320. # On the NeXT, cc -E runs the code through the compiler's parser,
  7321. # not just through cpp. "Syntax error" is here to catch this case.
  7322. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7323. /* end confdefs.h. */
  7324. #ifdef __STDC__
  7325. # include <limits.h>
  7326. #else
  7327. # include <assert.h>
  7328. #endif
  7329. Syntax error
  7330. _ACEOF
  7331. if ac_fn_c_try_cpp "$LINENO"; then :
  7332. else
  7333. # Broken: fails on valid input.
  7334. continue
  7335. fi
  7336. rm -f conftest.err conftest.i conftest.$ac_ext
  7337. # OK, works on sane cases. Now check whether nonexistent headers
  7338. # can be detected and how.
  7339. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7340. /* end confdefs.h. */
  7341. #include <ac_nonexistent.h>
  7342. _ACEOF
  7343. if ac_fn_c_try_cpp "$LINENO"; then :
  7344. # Broken: success on invalid input.
  7345. continue
  7346. else
  7347. # Passes both tests.
  7348. ac_preproc_ok=:
  7349. break
  7350. fi
  7351. rm -f conftest.err conftest.i conftest.$ac_ext
  7352. done
  7353. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  7354. rm -f conftest.i conftest.err conftest.$ac_ext
  7355. if $ac_preproc_ok; then :
  7356. else
  7357. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  7358. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  7359. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  7360. See \`config.log' for more details" "$LINENO" 5; }
  7361. fi
  7362. ac_ext=c
  7363. ac_cpp='$CPP $CPPFLAGS'
  7364. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7365. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7366. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7367. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  7368. $as_echo_n "checking for ANSI C header files... " >&6; }
  7369. if ${ac_cv_header_stdc+:} false; then :
  7370. $as_echo_n "(cached) " >&6
  7371. else
  7372. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7373. /* end confdefs.h. */
  7374. #include <stdlib.h>
  7375. #include <stdarg.h>
  7376. #include <string.h>
  7377. #include <float.h>
  7378. int
  7379. main ()
  7380. {
  7381. ;
  7382. return 0;
  7383. }
  7384. _ACEOF
  7385. if ac_fn_c_try_compile "$LINENO"; then :
  7386. ac_cv_header_stdc=yes
  7387. else
  7388. ac_cv_header_stdc=no
  7389. fi
  7390. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7391. if test $ac_cv_header_stdc = yes; then
  7392. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  7393. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7394. /* end confdefs.h. */
  7395. #include <string.h>
  7396. _ACEOF
  7397. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7398. $EGREP "memchr" >/dev/null 2>&1; then :
  7399. else
  7400. ac_cv_header_stdc=no
  7401. fi
  7402. rm -f conftest*
  7403. fi
  7404. if test $ac_cv_header_stdc = yes; then
  7405. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  7406. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7407. /* end confdefs.h. */
  7408. #include <stdlib.h>
  7409. _ACEOF
  7410. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7411. $EGREP "free" >/dev/null 2>&1; then :
  7412. else
  7413. ac_cv_header_stdc=no
  7414. fi
  7415. rm -f conftest*
  7416. fi
  7417. if test $ac_cv_header_stdc = yes; then
  7418. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  7419. if test "$cross_compiling" = yes; then :
  7420. :
  7421. else
  7422. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7423. /* end confdefs.h. */
  7424. #include <ctype.h>
  7425. #include <stdlib.h>
  7426. #if ((' ' & 0x0FF) == 0x020)
  7427. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  7428. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  7429. #else
  7430. # define ISLOWER(c) \
  7431. (('a' <= (c) && (c) <= 'i') \
  7432. || ('j' <= (c) && (c) <= 'r') \
  7433. || ('s' <= (c) && (c) <= 'z'))
  7434. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  7435. #endif
  7436. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  7437. int
  7438. main ()
  7439. {
  7440. int i;
  7441. for (i = 0; i < 256; i++)
  7442. if (XOR (islower (i), ISLOWER (i))
  7443. || toupper (i) != TOUPPER (i))
  7444. return 2;
  7445. return 0;
  7446. }
  7447. _ACEOF
  7448. if ac_fn_c_try_run "$LINENO"; then :
  7449. else
  7450. ac_cv_header_stdc=no
  7451. fi
  7452. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  7453. conftest.$ac_objext conftest.beam conftest.$ac_ext
  7454. fi
  7455. fi
  7456. fi
  7457. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  7458. $as_echo "$ac_cv_header_stdc" >&6; }
  7459. if test $ac_cv_header_stdc = yes; then
  7460. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  7461. fi
  7462. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  7463. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  7464. inttypes.h stdint.h unistd.h
  7465. do :
  7466. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7467. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  7468. "
  7469. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  7470. cat >>confdefs.h <<_ACEOF
  7471. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7472. _ACEOF
  7473. fi
  7474. done
  7475. for ac_header in dlfcn.h
  7476. do :
  7477. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  7478. "
  7479. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  7480. cat >>confdefs.h <<_ACEOF
  7481. #define HAVE_DLFCN_H 1
  7482. _ACEOF
  7483. fi
  7484. done
  7485. func_stripname_cnf ()
  7486. {
  7487. case ${2} in
  7488. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  7489. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  7490. esac
  7491. } # func_stripname_cnf
  7492. # Set options
  7493. enable_dlopen=no
  7494. enable_win32_dll=no
  7495. # Check whether --enable-shared was given.
  7496. if test "${enable_shared+set}" = set; then :
  7497. enableval=$enable_shared; p=${PACKAGE-default}
  7498. case $enableval in
  7499. yes) enable_shared=yes ;;
  7500. no) enable_shared=no ;;
  7501. *)
  7502. enable_shared=no
  7503. # Look at the argument we got. We use all the common list separators.
  7504. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7505. for pkg in $enableval; do
  7506. IFS="$lt_save_ifs"
  7507. if test "X$pkg" = "X$p"; then
  7508. enable_shared=yes
  7509. fi
  7510. done
  7511. IFS="$lt_save_ifs"
  7512. ;;
  7513. esac
  7514. else
  7515. enable_shared=yes
  7516. fi
  7517. # Check whether --with-pic was given.
  7518. if test "${with_pic+set}" = set; then :
  7519. withval=$with_pic; pic_mode="$withval"
  7520. else
  7521. pic_mode=default
  7522. fi
  7523. test -z "$pic_mode" && pic_mode=default
  7524. # Check whether --enable-fast-install was given.
  7525. if test "${enable_fast_install+set}" = set; then :
  7526. enableval=$enable_fast_install; p=${PACKAGE-default}
  7527. case $enableval in
  7528. yes) enable_fast_install=yes ;;
  7529. no) enable_fast_install=no ;;
  7530. *)
  7531. enable_fast_install=no
  7532. # Look at the argument we got. We use all the common list separators.
  7533. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7534. for pkg in $enableval; do
  7535. IFS="$lt_save_ifs"
  7536. if test "X$pkg" = "X$p"; then
  7537. enable_fast_install=yes
  7538. fi
  7539. done
  7540. IFS="$lt_save_ifs"
  7541. ;;
  7542. esac
  7543. else
  7544. enable_fast_install=yes
  7545. fi
  7546. # This can be used to rebuild libtool when needed
  7547. LIBTOOL_DEPS="$ltmain"
  7548. # Always use our own libtool.
  7549. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7550. test -z "$LN_S" && LN_S="ln -s"
  7551. if test -n "${ZSH_VERSION+set}" ; then
  7552. setopt NO_GLOB_SUBST
  7553. fi
  7554. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7555. $as_echo_n "checking for objdir... " >&6; }
  7556. if ${lt_cv_objdir+:} false; then :
  7557. $as_echo_n "(cached) " >&6
  7558. else
  7559. rm -f .libs 2>/dev/null
  7560. mkdir .libs 2>/dev/null
  7561. if test -d .libs; then
  7562. lt_cv_objdir=.libs
  7563. else
  7564. # MS-DOS does not allow filenames that begin with a dot.
  7565. lt_cv_objdir=_libs
  7566. fi
  7567. rmdir .libs 2>/dev/null
  7568. fi
  7569. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7570. $as_echo "$lt_cv_objdir" >&6; }
  7571. objdir=$lt_cv_objdir
  7572. cat >>confdefs.h <<_ACEOF
  7573. #define LT_OBJDIR "$lt_cv_objdir/"
  7574. _ACEOF
  7575. case $host_os in
  7576. aix3*)
  7577. # AIX sometimes has problems with the GCC collect2 program. For some
  7578. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7579. # vanish in a puff of smoke.
  7580. if test "X${COLLECT_NAMES+set}" != Xset; then
  7581. COLLECT_NAMES=
  7582. export COLLECT_NAMES
  7583. fi
  7584. ;;
  7585. esac
  7586. # Global variables:
  7587. ofile=libtool
  7588. can_build_shared=yes
  7589. # All known linkers require a `.a' archive for static linking (except MSVC,
  7590. # which needs '.lib').
  7591. libext=a
  7592. with_gnu_ld="$lt_cv_prog_gnu_ld"
  7593. old_CC="$CC"
  7594. old_CFLAGS="$CFLAGS"
  7595. # Set sane defaults for various variables
  7596. test -z "$CC" && CC=cc
  7597. test -z "$LTCC" && LTCC=$CC
  7598. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7599. test -z "$LD" && LD=ld
  7600. test -z "$ac_objext" && ac_objext=o
  7601. for cc_temp in $compiler""; do
  7602. case $cc_temp in
  7603. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  7604. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  7605. \-*) ;;
  7606. *) break;;
  7607. esac
  7608. done
  7609. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  7610. # Only perform the check for file, if the check method requires it
  7611. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7612. case $deplibs_check_method in
  7613. file_magic*)
  7614. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7615. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7616. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  7617. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7618. $as_echo_n "(cached) " >&6
  7619. else
  7620. case $MAGIC_CMD in
  7621. [\\/*] | ?:[\\/]*)
  7622. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7623. ;;
  7624. *)
  7625. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7626. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7627. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7628. for ac_dir in $ac_dummy; do
  7629. IFS="$lt_save_ifs"
  7630. test -z "$ac_dir" && ac_dir=.
  7631. if test -f $ac_dir/${ac_tool_prefix}file; then
  7632. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  7633. if test -n "$file_magic_test_file"; then
  7634. case $deplibs_check_method in
  7635. "file_magic "*)
  7636. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7637. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7638. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7639. $EGREP "$file_magic_regex" > /dev/null; then
  7640. :
  7641. else
  7642. cat <<_LT_EOF 1>&2
  7643. *** Warning: the command libtool uses to detect shared libraries,
  7644. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7645. *** The result is that libtool may fail to recognize shared libraries
  7646. *** as such. This will affect the creation of libtool libraries that
  7647. *** depend on shared libraries, but programs linked with such libtool
  7648. *** libraries will work regardless of this problem. Nevertheless, you
  7649. *** may want to report the problem to your system manager and/or to
  7650. *** [email protected]
  7651. _LT_EOF
  7652. fi ;;
  7653. esac
  7654. fi
  7655. break
  7656. fi
  7657. done
  7658. IFS="$lt_save_ifs"
  7659. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7660. ;;
  7661. esac
  7662. fi
  7663. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7664. if test -n "$MAGIC_CMD"; then
  7665. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7666. $as_echo "$MAGIC_CMD" >&6; }
  7667. else
  7668. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7669. $as_echo "no" >&6; }
  7670. fi
  7671. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7672. if test -n "$ac_tool_prefix"; then
  7673. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7674. $as_echo_n "checking for file... " >&6; }
  7675. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7676. $as_echo_n "(cached) " >&6
  7677. else
  7678. case $MAGIC_CMD in
  7679. [\\/*] | ?:[\\/]*)
  7680. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7681. ;;
  7682. *)
  7683. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7684. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7685. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7686. for ac_dir in $ac_dummy; do
  7687. IFS="$lt_save_ifs"
  7688. test -z "$ac_dir" && ac_dir=.
  7689. if test -f $ac_dir/file; then
  7690. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  7691. if test -n "$file_magic_test_file"; then
  7692. case $deplibs_check_method in
  7693. "file_magic "*)
  7694. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7695. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7696. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7697. $EGREP "$file_magic_regex" > /dev/null; then
  7698. :
  7699. else
  7700. cat <<_LT_EOF 1>&2
  7701. *** Warning: the command libtool uses to detect shared libraries,
  7702. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7703. *** The result is that libtool may fail to recognize shared libraries
  7704. *** as such. This will affect the creation of libtool libraries that
  7705. *** depend on shared libraries, but programs linked with such libtool
  7706. *** libraries will work regardless of this problem. Nevertheless, you
  7707. *** may want to report the problem to your system manager and/or to
  7708. *** [email protected]
  7709. _LT_EOF
  7710. fi ;;
  7711. esac
  7712. fi
  7713. break
  7714. fi
  7715. done
  7716. IFS="$lt_save_ifs"
  7717. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7718. ;;
  7719. esac
  7720. fi
  7721. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7722. if test -n "$MAGIC_CMD"; then
  7723. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7724. $as_echo "$MAGIC_CMD" >&6; }
  7725. else
  7726. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7727. $as_echo "no" >&6; }
  7728. fi
  7729. else
  7730. MAGIC_CMD=:
  7731. fi
  7732. fi
  7733. fi
  7734. ;;
  7735. esac
  7736. # Use C for the default configuration in the libtool script
  7737. lt_save_CC="$CC"
  7738. ac_ext=c
  7739. ac_cpp='$CPP $CPPFLAGS'
  7740. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7741. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7742. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7743. # Source file extension for C test sources.
  7744. ac_ext=c
  7745. # Object file extension for compiled C test sources.
  7746. objext=o
  7747. objext=$objext
  7748. # Code to be used in simple compile tests
  7749. lt_simple_compile_test_code="int some_variable = 0;"
  7750. # Code to be used in simple link tests
  7751. lt_simple_link_test_code='int main(){return(0);}'
  7752. # If no C compiler was specified, use CC.
  7753. LTCC=${LTCC-"$CC"}
  7754. # If no C compiler flags were specified, use CFLAGS.
  7755. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7756. # Allow CC to be a program name with arguments.
  7757. compiler=$CC
  7758. # Save the default compiler, since it gets overwritten when the other
  7759. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7760. compiler_DEFAULT=$CC
  7761. # save warnings/boilerplate of simple test code
  7762. ac_outfile=conftest.$ac_objext
  7763. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7764. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7765. _lt_compiler_boilerplate=`cat conftest.err`
  7766. $RM conftest*
  7767. ac_outfile=conftest.$ac_objext
  7768. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7769. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7770. _lt_linker_boilerplate=`cat conftest.err`
  7771. $RM -r conftest*
  7772. ## CAVEAT EMPTOR:
  7773. ## There is no encapsulation within the following macros, do not change
  7774. ## the running order or otherwise move them around unless you know exactly
  7775. ## what you are doing...
  7776. if test -n "$compiler"; then
  7777. lt_prog_compiler_no_builtin_flag=
  7778. if test "$GCC" = yes; then
  7779. case $cc_basename in
  7780. nvcc*)
  7781. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7782. *)
  7783. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7784. esac
  7785. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7786. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7787. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  7788. $as_echo_n "(cached) " >&6
  7789. else
  7790. lt_cv_prog_compiler_rtti_exceptions=no
  7791. ac_outfile=conftest.$ac_objext
  7792. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7793. lt_compiler_flag="-fno-rtti -fno-exceptions"
  7794. # Insert the option either (1) after the last *FLAGS variable, or
  7795. # (2) before a word containing "conftest.", or (3) at the end.
  7796. # Note that $ac_compile itself does not contain backslashes and begins
  7797. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7798. # The option is referenced via a variable to avoid confusing sed.
  7799. lt_compile=`echo "$ac_compile" | $SED \
  7800. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7801. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7802. -e 's:$: $lt_compiler_flag:'`
  7803. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7804. (eval "$lt_compile" 2>conftest.err)
  7805. ac_status=$?
  7806. cat conftest.err >&5
  7807. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7808. if (exit $ac_status) && test -s "$ac_outfile"; then
  7809. # The compiler can only warn and ignore the option if not recognized
  7810. # So say no if there are warnings other than the usual output.
  7811. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7812. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7813. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7814. lt_cv_prog_compiler_rtti_exceptions=yes
  7815. fi
  7816. fi
  7817. $RM conftest*
  7818. fi
  7819. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7820. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7821. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  7822. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7823. else
  7824. :
  7825. fi
  7826. fi
  7827. lt_prog_compiler_wl=
  7828. lt_prog_compiler_pic=
  7829. lt_prog_compiler_static=
  7830. if test "$GCC" = yes; then
  7831. lt_prog_compiler_wl='-Wl,'
  7832. lt_prog_compiler_static='-static'
  7833. case $host_os in
  7834. aix*)
  7835. # All AIX code is PIC.
  7836. if test "$host_cpu" = ia64; then
  7837. # AIX 5 now supports IA64 processor
  7838. lt_prog_compiler_static='-Bstatic'
  7839. fi
  7840. ;;
  7841. amigaos*)
  7842. case $host_cpu in
  7843. powerpc)
  7844. # see comment about AmigaOS4 .so support
  7845. lt_prog_compiler_pic='-fPIC'
  7846. ;;
  7847. m68k)
  7848. # FIXME: we need at least 68020 code to build shared libraries, but
  7849. # adding the `-m68020' flag to GCC prevents building anything better,
  7850. # like `-m68040'.
  7851. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7852. ;;
  7853. esac
  7854. ;;
  7855. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7856. # PIC is the default for these OSes.
  7857. ;;
  7858. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7859. # This hack is so that the source file can tell whether it is being
  7860. # built for inclusion in a dll (and should export symbols for example).
  7861. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7862. # (--disable-auto-import) libraries
  7863. lt_prog_compiler_pic='-DDLL_EXPORT'
  7864. ;;
  7865. darwin* | rhapsody*)
  7866. # PIC is the default on this platform
  7867. # Common symbols not allowed in MH_DYLIB files
  7868. lt_prog_compiler_pic='-fno-common'
  7869. ;;
  7870. haiku*)
  7871. # PIC is the default for Haiku.
  7872. # The "-static" flag exists, but is broken.
  7873. lt_prog_compiler_static=
  7874. ;;
  7875. hpux*)
  7876. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7877. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7878. # sets the default TLS model and affects inlining.
  7879. case $host_cpu in
  7880. hppa*64*)
  7881. # +Z the default
  7882. ;;
  7883. *)
  7884. lt_prog_compiler_pic='-fPIC'
  7885. ;;
  7886. esac
  7887. ;;
  7888. interix[3-9]*)
  7889. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7890. # Instead, we relocate shared libraries at runtime.
  7891. ;;
  7892. msdosdjgpp*)
  7893. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7894. # on systems that don't support them.
  7895. lt_prog_compiler_can_build_shared=no
  7896. enable_shared=no
  7897. ;;
  7898. *nto* | *qnx*)
  7899. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7900. # it will coredump.
  7901. lt_prog_compiler_pic='-fPIC -shared'
  7902. ;;
  7903. sysv4*MP*)
  7904. if test -d /usr/nec; then
  7905. lt_prog_compiler_pic=-Kconform_pic
  7906. fi
  7907. ;;
  7908. *)
  7909. lt_prog_compiler_pic='-fPIC'
  7910. ;;
  7911. esac
  7912. case $cc_basename in
  7913. nvcc*) # Cuda Compiler Driver 2.2
  7914. lt_prog_compiler_wl='-Xlinker '
  7915. lt_prog_compiler_pic='-Xcompiler -fPIC'
  7916. ;;
  7917. esac
  7918. else
  7919. # PORTME Check for flag to pass linker flags through the system compiler.
  7920. case $host_os in
  7921. aix*)
  7922. lt_prog_compiler_wl='-Wl,'
  7923. if test "$host_cpu" = ia64; then
  7924. # AIX 5 now supports IA64 processor
  7925. lt_prog_compiler_static='-Bstatic'
  7926. else
  7927. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7928. fi
  7929. ;;
  7930. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7931. # This hack is so that the source file can tell whether it is being
  7932. # built for inclusion in a dll (and should export symbols for example).
  7933. lt_prog_compiler_pic='-DDLL_EXPORT'
  7934. ;;
  7935. hpux9* | hpux10* | hpux11*)
  7936. lt_prog_compiler_wl='-Wl,'
  7937. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7938. # not for PA HP-UX.
  7939. case $host_cpu in
  7940. hppa*64*|ia64*)
  7941. # +Z the default
  7942. ;;
  7943. *)
  7944. lt_prog_compiler_pic='+Z'
  7945. ;;
  7946. esac
  7947. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7948. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7949. ;;
  7950. irix5* | irix6* | nonstopux*)
  7951. lt_prog_compiler_wl='-Wl,'
  7952. # PIC (with -KPIC) is the default.
  7953. lt_prog_compiler_static='-non_shared'
  7954. ;;
  7955. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7956. case $cc_basename in
  7957. # old Intel for x86_64 which still supported -KPIC.
  7958. ecc*)
  7959. lt_prog_compiler_wl='-Wl,'
  7960. lt_prog_compiler_pic='-KPIC'
  7961. lt_prog_compiler_static='-static'
  7962. ;;
  7963. # icc used to be incompatible with GCC.
  7964. # ICC 10 doesn't accept -KPIC any more.
  7965. icc* | ifort*)
  7966. lt_prog_compiler_wl='-Wl,'
  7967. lt_prog_compiler_pic='-fPIC'
  7968. lt_prog_compiler_static='-static'
  7969. ;;
  7970. # Lahey Fortran 8.1.
  7971. lf95*)
  7972. lt_prog_compiler_wl='-Wl,'
  7973. lt_prog_compiler_pic='--shared'
  7974. lt_prog_compiler_static='--static'
  7975. ;;
  7976. nagfor*)
  7977. # NAG Fortran compiler
  7978. lt_prog_compiler_wl='-Wl,-Wl,,'
  7979. lt_prog_compiler_pic='-PIC'
  7980. lt_prog_compiler_static='-Bstatic'
  7981. ;;
  7982. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7983. # Portland Group compilers (*not* the Pentium gcc compiler,
  7984. # which looks to be a dead project)
  7985. lt_prog_compiler_wl='-Wl,'
  7986. lt_prog_compiler_pic='-fpic'
  7987. lt_prog_compiler_static='-Bstatic'
  7988. ;;
  7989. ccc*)
  7990. lt_prog_compiler_wl='-Wl,'
  7991. # All Alpha code is PIC.
  7992. lt_prog_compiler_static='-non_shared'
  7993. ;;
  7994. xl* | bgxl* | bgf* | mpixl*)
  7995. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7996. lt_prog_compiler_wl='-Wl,'
  7997. lt_prog_compiler_pic='-qpic'
  7998. lt_prog_compiler_static='-qstaticlink'
  7999. ;;
  8000. *)
  8001. case `$CC -V 2>&1 | sed 5q` in
  8002. *Sun\ F* | *Sun*Fortran*)
  8003. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  8004. lt_prog_compiler_pic='-KPIC'
  8005. lt_prog_compiler_static='-Bstatic'
  8006. lt_prog_compiler_wl=''
  8007. ;;
  8008. *Sun\ C*)
  8009. # Sun C 5.9
  8010. lt_prog_compiler_pic='-KPIC'
  8011. lt_prog_compiler_static='-Bstatic'
  8012. lt_prog_compiler_wl='-Wl,'
  8013. ;;
  8014. esac
  8015. ;;
  8016. esac
  8017. ;;
  8018. newsos6)
  8019. lt_prog_compiler_pic='-KPIC'
  8020. lt_prog_compiler_static='-Bstatic'
  8021. ;;
  8022. *nto* | *qnx*)
  8023. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8024. # it will coredump.
  8025. lt_prog_compiler_pic='-fPIC -shared'
  8026. ;;
  8027. osf3* | osf4* | osf5*)
  8028. lt_prog_compiler_wl='-Wl,'
  8029. # All OSF/1 code is PIC.
  8030. lt_prog_compiler_static='-non_shared'
  8031. ;;
  8032. rdos*)
  8033. lt_prog_compiler_static='-non_shared'
  8034. ;;
  8035. solaris*)
  8036. lt_prog_compiler_pic='-KPIC'
  8037. lt_prog_compiler_static='-Bstatic'
  8038. case $cc_basename in
  8039. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  8040. lt_prog_compiler_wl='-Qoption ld ';;
  8041. *)
  8042. lt_prog_compiler_wl='-Wl,';;
  8043. esac
  8044. ;;
  8045. sunos4*)
  8046. lt_prog_compiler_wl='-Qoption ld '
  8047. lt_prog_compiler_pic='-PIC'
  8048. lt_prog_compiler_static='-Bstatic'
  8049. ;;
  8050. sysv4 | sysv4.2uw2* | sysv4.3*)
  8051. lt_prog_compiler_wl='-Wl,'
  8052. lt_prog_compiler_pic='-KPIC'
  8053. lt_prog_compiler_static='-Bstatic'
  8054. ;;
  8055. sysv4*MP*)
  8056. if test -d /usr/nec ;then
  8057. lt_prog_compiler_pic='-Kconform_pic'
  8058. lt_prog_compiler_static='-Bstatic'
  8059. fi
  8060. ;;
  8061. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  8062. lt_prog_compiler_wl='-Wl,'
  8063. lt_prog_compiler_pic='-KPIC'
  8064. lt_prog_compiler_static='-Bstatic'
  8065. ;;
  8066. unicos*)
  8067. lt_prog_compiler_wl='-Wl,'
  8068. lt_prog_compiler_can_build_shared=no
  8069. ;;
  8070. uts4*)
  8071. lt_prog_compiler_pic='-pic'
  8072. lt_prog_compiler_static='-Bstatic'
  8073. ;;
  8074. *)
  8075. lt_prog_compiler_can_build_shared=no
  8076. ;;
  8077. esac
  8078. fi
  8079. case $host_os in
  8080. # For platforms which do not support PIC, -DPIC is meaningless:
  8081. *djgpp*)
  8082. lt_prog_compiler_pic=
  8083. ;;
  8084. *)
  8085. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  8086. ;;
  8087. esac
  8088. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  8089. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  8090. if ${lt_cv_prog_compiler_pic+:} false; then :
  8091. $as_echo_n "(cached) " >&6
  8092. else
  8093. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  8094. fi
  8095. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  8096. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  8097. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  8098. #
  8099. # Check to make sure the PIC flag actually works.
  8100. #
  8101. if test -n "$lt_prog_compiler_pic"; then
  8102. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  8103. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  8104. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  8105. $as_echo_n "(cached) " >&6
  8106. else
  8107. lt_cv_prog_compiler_pic_works=no
  8108. ac_outfile=conftest.$ac_objext
  8109. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8110. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  8111. # Insert the option either (1) after the last *FLAGS variable, or
  8112. # (2) before a word containing "conftest.", or (3) at the end.
  8113. # Note that $ac_compile itself does not contain backslashes and begins
  8114. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8115. # The option is referenced via a variable to avoid confusing sed.
  8116. lt_compile=`echo "$ac_compile" | $SED \
  8117. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8118. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8119. -e 's:$: $lt_compiler_flag:'`
  8120. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8121. (eval "$lt_compile" 2>conftest.err)
  8122. ac_status=$?
  8123. cat conftest.err >&5
  8124. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8125. if (exit $ac_status) && test -s "$ac_outfile"; then
  8126. # The compiler can only warn and ignore the option if not recognized
  8127. # So say no if there are warnings other than the usual output.
  8128. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8129. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8130. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8131. lt_cv_prog_compiler_pic_works=yes
  8132. fi
  8133. fi
  8134. $RM conftest*
  8135. fi
  8136. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  8137. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  8138. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  8139. case $lt_prog_compiler_pic in
  8140. "" | " "*) ;;
  8141. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  8142. esac
  8143. else
  8144. lt_prog_compiler_pic=
  8145. lt_prog_compiler_can_build_shared=no
  8146. fi
  8147. fi
  8148. #
  8149. # Check to make sure the static flag actually works.
  8150. #
  8151. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  8152. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  8153. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  8154. if ${lt_cv_prog_compiler_static_works+:} false; then :
  8155. $as_echo_n "(cached) " >&6
  8156. else
  8157. lt_cv_prog_compiler_static_works=no
  8158. save_LDFLAGS="$LDFLAGS"
  8159. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  8160. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8161. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8162. # The linker can only warn and ignore the option if not recognized
  8163. # So say no if there are warnings
  8164. if test -s conftest.err; then
  8165. # Append any errors to the config.log.
  8166. cat conftest.err 1>&5
  8167. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8168. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8169. if diff conftest.exp conftest.er2 >/dev/null; then
  8170. lt_cv_prog_compiler_static_works=yes
  8171. fi
  8172. else
  8173. lt_cv_prog_compiler_static_works=yes
  8174. fi
  8175. fi
  8176. $RM -r conftest*
  8177. LDFLAGS="$save_LDFLAGS"
  8178. fi
  8179. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  8180. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  8181. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  8182. :
  8183. else
  8184. lt_prog_compiler_static=
  8185. fi
  8186. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8187. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8188. if ${lt_cv_prog_compiler_c_o+:} false; then :
  8189. $as_echo_n "(cached) " >&6
  8190. else
  8191. lt_cv_prog_compiler_c_o=no
  8192. $RM -r conftest 2>/dev/null
  8193. mkdir conftest
  8194. cd conftest
  8195. mkdir out
  8196. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8197. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8198. # Insert the option either (1) after the last *FLAGS variable, or
  8199. # (2) before a word containing "conftest.", or (3) at the end.
  8200. # Note that $ac_compile itself does not contain backslashes and begins
  8201. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8202. lt_compile=`echo "$ac_compile" | $SED \
  8203. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8204. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8205. -e 's:$: $lt_compiler_flag:'`
  8206. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8207. (eval "$lt_compile" 2>out/conftest.err)
  8208. ac_status=$?
  8209. cat out/conftest.err >&5
  8210. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8211. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8212. then
  8213. # The compiler can only warn and ignore the option if not recognized
  8214. # So say no if there are warnings
  8215. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8216. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8217. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8218. lt_cv_prog_compiler_c_o=yes
  8219. fi
  8220. fi
  8221. chmod u+w . 2>&5
  8222. $RM conftest*
  8223. # SGI C++ compiler will create directory out/ii_files/ for
  8224. # template instantiation
  8225. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8226. $RM out/* && rmdir out
  8227. cd ..
  8228. $RM -r conftest
  8229. $RM conftest*
  8230. fi
  8231. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8232. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8233. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8234. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8235. if ${lt_cv_prog_compiler_c_o+:} false; then :
  8236. $as_echo_n "(cached) " >&6
  8237. else
  8238. lt_cv_prog_compiler_c_o=no
  8239. $RM -r conftest 2>/dev/null
  8240. mkdir conftest
  8241. cd conftest
  8242. mkdir out
  8243. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8244. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8245. # Insert the option either (1) after the last *FLAGS variable, or
  8246. # (2) before a word containing "conftest.", or (3) at the end.
  8247. # Note that $ac_compile itself does not contain backslashes and begins
  8248. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8249. lt_compile=`echo "$ac_compile" | $SED \
  8250. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8251. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8252. -e 's:$: $lt_compiler_flag:'`
  8253. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8254. (eval "$lt_compile" 2>out/conftest.err)
  8255. ac_status=$?
  8256. cat out/conftest.err >&5
  8257. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8258. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8259. then
  8260. # The compiler can only warn and ignore the option if not recognized
  8261. # So say no if there are warnings
  8262. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8263. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8264. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8265. lt_cv_prog_compiler_c_o=yes
  8266. fi
  8267. fi
  8268. chmod u+w . 2>&5
  8269. $RM conftest*
  8270. # SGI C++ compiler will create directory out/ii_files/ for
  8271. # template instantiation
  8272. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8273. $RM out/* && rmdir out
  8274. cd ..
  8275. $RM -r conftest
  8276. $RM conftest*
  8277. fi
  8278. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8279. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8280. hard_links="nottested"
  8281. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  8282. # do not overwrite the value of need_locks provided by the user
  8283. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  8284. $as_echo_n "checking if we can lock with hard links... " >&6; }
  8285. hard_links=yes
  8286. $RM conftest*
  8287. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8288. touch conftest.a
  8289. ln conftest.a conftest.b 2>&5 || hard_links=no
  8290. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8291. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  8292. $as_echo "$hard_links" >&6; }
  8293. if test "$hard_links" = no; then
  8294. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  8295. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  8296. need_locks=warn
  8297. fi
  8298. else
  8299. need_locks=no
  8300. fi
  8301. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  8302. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  8303. runpath_var=
  8304. allow_undefined_flag=
  8305. always_export_symbols=no
  8306. archive_cmds=
  8307. archive_expsym_cmds=
  8308. compiler_needs_object=no
  8309. enable_shared_with_static_runtimes=no
  8310. export_dynamic_flag_spec=
  8311. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8312. hardcode_automatic=no
  8313. hardcode_direct=no
  8314. hardcode_direct_absolute=no
  8315. hardcode_libdir_flag_spec=
  8316. hardcode_libdir_flag_spec_ld=
  8317. hardcode_libdir_separator=
  8318. hardcode_minus_L=no
  8319. hardcode_shlibpath_var=unsupported
  8320. inherit_rpath=no
  8321. link_all_deplibs=unknown
  8322. module_cmds=
  8323. module_expsym_cmds=
  8324. old_archive_from_new_cmds=
  8325. old_archive_from_expsyms_cmds=
  8326. thread_safe_flag_spec=
  8327. whole_archive_flag_spec=
  8328. # include_expsyms should be a list of space-separated symbols to be *always*
  8329. # included in the symbol list
  8330. include_expsyms=
  8331. # exclude_expsyms can be an extended regexp of symbols to exclude
  8332. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  8333. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  8334. # as well as any symbol that contains `d'.
  8335. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  8336. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  8337. # platforms (ab)use it in PIC code, but their linkers get confused if
  8338. # the symbol is explicitly referenced. Since portable code cannot
  8339. # rely on this symbol name, it's probably fine to never include it in
  8340. # preloaded symbol tables.
  8341. # Exclude shared library initialization/finalization symbols.
  8342. extract_expsyms_cmds=
  8343. case $host_os in
  8344. cygwin* | mingw* | pw32* | cegcc*)
  8345. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  8346. # When not using gcc, we currently assume that we are using
  8347. # Microsoft Visual C++.
  8348. if test "$GCC" != yes; then
  8349. with_gnu_ld=no
  8350. fi
  8351. ;;
  8352. interix*)
  8353. # we just hope/assume this is gcc and not c89 (= MSVC++)
  8354. with_gnu_ld=yes
  8355. ;;
  8356. openbsd*)
  8357. with_gnu_ld=no
  8358. ;;
  8359. esac
  8360. ld_shlibs=yes
  8361. # On some targets, GNU ld is compatible enough with the native linker
  8362. # that we're better off using the native interface for both.
  8363. lt_use_gnu_ld_interface=no
  8364. if test "$with_gnu_ld" = yes; then
  8365. case $host_os in
  8366. aix*)
  8367. # The AIX port of GNU ld has always aspired to compatibility
  8368. # with the native linker. However, as the warning in the GNU ld
  8369. # block says, versions before 2.19.5* couldn't really create working
  8370. # shared libraries, regardless of the interface used.
  8371. case `$LD -v 2>&1` in
  8372. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  8373. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  8374. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  8375. *)
  8376. lt_use_gnu_ld_interface=yes
  8377. ;;
  8378. esac
  8379. ;;
  8380. *)
  8381. lt_use_gnu_ld_interface=yes
  8382. ;;
  8383. esac
  8384. fi
  8385. if test "$lt_use_gnu_ld_interface" = yes; then
  8386. # If archive_cmds runs LD, not CC, wlarc should be empty
  8387. wlarc='${wl}'
  8388. # Set some defaults for GNU ld with shared library support. These
  8389. # are reset later if shared libraries are not supported. Putting them
  8390. # here allows them to be overridden if necessary.
  8391. runpath_var=LD_RUN_PATH
  8392. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8393. export_dynamic_flag_spec='${wl}--export-dynamic'
  8394. # ancient GNU ld didn't support --whole-archive et. al.
  8395. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  8396. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  8397. else
  8398. whole_archive_flag_spec=
  8399. fi
  8400. supports_anon_versioning=no
  8401. case `$LD -v 2>&1` in
  8402. *GNU\ gold*) supports_anon_versioning=yes ;;
  8403. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  8404. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  8405. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  8406. *\ 2.11.*) ;; # other 2.11 versions
  8407. *) supports_anon_versioning=yes ;;
  8408. esac
  8409. # See if GNU ld supports shared libraries.
  8410. case $host_os in
  8411. aix[3-9]*)
  8412. # On AIX/PPC, the GNU linker is very broken
  8413. if test "$host_cpu" != ia64; then
  8414. ld_shlibs=no
  8415. cat <<_LT_EOF 1>&2
  8416. *** Warning: the GNU linker, at least up to release 2.19, is reported
  8417. *** to be unable to reliably create shared libraries on AIX.
  8418. *** Therefore, libtool is disabling shared libraries support. If you
  8419. *** really care for shared libraries, you may want to install binutils
  8420. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  8421. *** You will then need to restart the configuration process.
  8422. _LT_EOF
  8423. fi
  8424. ;;
  8425. amigaos*)
  8426. case $host_cpu in
  8427. powerpc)
  8428. # see comment about AmigaOS4 .so support
  8429. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8430. archive_expsym_cmds=''
  8431. ;;
  8432. m68k)
  8433. 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)'
  8434. hardcode_libdir_flag_spec='-L$libdir'
  8435. hardcode_minus_L=yes
  8436. ;;
  8437. esac
  8438. ;;
  8439. beos*)
  8440. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8441. allow_undefined_flag=unsupported
  8442. # Joseph Beckenbach <[email protected]> says some releases of gcc
  8443. # support --undefined. This deserves some investigation. FIXME
  8444. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8445. else
  8446. ld_shlibs=no
  8447. fi
  8448. ;;
  8449. cygwin* | mingw* | pw32* | cegcc*)
  8450. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  8451. # as there is no search path for DLLs.
  8452. hardcode_libdir_flag_spec='-L$libdir'
  8453. export_dynamic_flag_spec='${wl}--export-all-symbols'
  8454. allow_undefined_flag=unsupported
  8455. always_export_symbols=no
  8456. enable_shared_with_static_runtimes=yes
  8457. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
  8458. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  8459. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  8460. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8461. # If the export-symbols file already is a .def file (1st line
  8462. # is EXPORTS), use it as is; otherwise, prepend...
  8463. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8464. cp $export_symbols $output_objdir/$soname.def;
  8465. else
  8466. echo EXPORTS > $output_objdir/$soname.def;
  8467. cat $export_symbols >> $output_objdir/$soname.def;
  8468. fi~
  8469. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8470. else
  8471. ld_shlibs=no
  8472. fi
  8473. ;;
  8474. haiku*)
  8475. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8476. link_all_deplibs=yes
  8477. ;;
  8478. interix[3-9]*)
  8479. hardcode_direct=no
  8480. hardcode_shlibpath_var=no
  8481. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8482. export_dynamic_flag_spec='${wl}-E'
  8483. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8484. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8485. # default) and relocated if they conflict, which is a slow very memory
  8486. # consuming and fragmenting process. To avoid this, we pick a random,
  8487. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8488. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8489. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8490. 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'
  8491. ;;
  8492. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  8493. tmp_diet=no
  8494. if test "$host_os" = linux-dietlibc; then
  8495. case $cc_basename in
  8496. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8497. esac
  8498. fi
  8499. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8500. && test "$tmp_diet" = no
  8501. then
  8502. tmp_addflag=' $pic_flag'
  8503. tmp_sharedflag='-shared'
  8504. case $cc_basename,$host_cpu in
  8505. pgcc*) # Portland Group C compiler
  8506. 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'
  8507. tmp_addflag=' $pic_flag'
  8508. ;;
  8509. pgf77* | pgf90* | pgf95* | pgfortran*)
  8510. # Portland Group f77 and f90 compilers
  8511. 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'
  8512. tmp_addflag=' $pic_flag -Mnomain' ;;
  8513. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8514. tmp_addflag=' -i_dynamic' ;;
  8515. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8516. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8517. ifc* | ifort*) # Intel Fortran compiler
  8518. tmp_addflag=' -nofor_main' ;;
  8519. lf95*) # Lahey Fortran 8.1
  8520. whole_archive_flag_spec=
  8521. tmp_sharedflag='--shared' ;;
  8522. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8523. tmp_sharedflag='-qmkshrobj'
  8524. tmp_addflag= ;;
  8525. nvcc*) # Cuda Compiler Driver 2.2
  8526. 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'
  8527. compiler_needs_object=yes
  8528. ;;
  8529. esac
  8530. case `$CC -V 2>&1 | sed 5q` in
  8531. *Sun\ C*) # Sun C 5.9
  8532. 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'
  8533. compiler_needs_object=yes
  8534. tmp_sharedflag='-G' ;;
  8535. *Sun\ F*) # Sun Fortran 8.3
  8536. tmp_sharedflag='-G' ;;
  8537. esac
  8538. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8539. if test "x$supports_anon_versioning" = xyes; then
  8540. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8541. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8542. echo "local: *; };" >> $output_objdir/$libname.ver~
  8543. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  8544. fi
  8545. case $cc_basename in
  8546. xlf* | bgf* | bgxlf* | mpixlf*)
  8547. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8548. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8549. hardcode_libdir_flag_spec=
  8550. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  8551. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  8552. if test "x$supports_anon_versioning" = xyes; then
  8553. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8554. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8555. echo "local: *; };" >> $output_objdir/$libname.ver~
  8556. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8557. fi
  8558. ;;
  8559. esac
  8560. else
  8561. ld_shlibs=no
  8562. fi
  8563. ;;
  8564. netbsd*)
  8565. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8566. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8567. wlarc=
  8568. else
  8569. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8570. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8571. fi
  8572. ;;
  8573. solaris*)
  8574. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8575. ld_shlibs=no
  8576. cat <<_LT_EOF 1>&2
  8577. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8578. *** create shared libraries on Solaris systems. Therefore, libtool
  8579. *** is disabling shared libraries support. We urge you to upgrade GNU
  8580. *** binutils to release 2.9.1 or newer. Another option is to modify
  8581. *** your PATH or compiler configuration so that the native linker is
  8582. *** used, and then restart.
  8583. _LT_EOF
  8584. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8585. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8586. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8587. else
  8588. ld_shlibs=no
  8589. fi
  8590. ;;
  8591. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8592. case `$LD -v 2>&1` in
  8593. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8594. ld_shlibs=no
  8595. cat <<_LT_EOF 1>&2
  8596. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  8597. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8598. *** is disabling shared libraries support. We urge you to upgrade GNU
  8599. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8600. *** your PATH or compiler configuration so that the native linker is
  8601. *** used, and then restart.
  8602. _LT_EOF
  8603. ;;
  8604. *)
  8605. # For security reasons, it is highly recommended that you always
  8606. # use absolute paths for naming shared libraries, and exclude the
  8607. # DT_RUNPATH tag from executables and libraries. But doing so
  8608. # requires that you compile everything twice, which is a pain.
  8609. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8610. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8611. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8612. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8613. else
  8614. ld_shlibs=no
  8615. fi
  8616. ;;
  8617. esac
  8618. ;;
  8619. sunos4*)
  8620. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8621. wlarc=
  8622. hardcode_direct=yes
  8623. hardcode_shlibpath_var=no
  8624. ;;
  8625. *)
  8626. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8627. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8628. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8629. else
  8630. ld_shlibs=no
  8631. fi
  8632. ;;
  8633. esac
  8634. if test "$ld_shlibs" = no; then
  8635. runpath_var=
  8636. hardcode_libdir_flag_spec=
  8637. export_dynamic_flag_spec=
  8638. whole_archive_flag_spec=
  8639. fi
  8640. else
  8641. # PORTME fill in a description of your system's linker (not GNU ld)
  8642. case $host_os in
  8643. aix3*)
  8644. allow_undefined_flag=unsupported
  8645. always_export_symbols=yes
  8646. 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'
  8647. # Note: this linker hardcodes the directories in LIBPATH if there
  8648. # are no directories specified by -L.
  8649. hardcode_minus_L=yes
  8650. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  8651. # Neither direct hardcoding nor static linking is supported with a
  8652. # broken collect2.
  8653. hardcode_direct=unsupported
  8654. fi
  8655. ;;
  8656. aix[4-9]*)
  8657. if test "$host_cpu" = ia64; then
  8658. # On IA64, the linker does run time linking by default, so we don't
  8659. # have to do anything special.
  8660. aix_use_runtimelinking=no
  8661. exp_sym_flag='-Bexport'
  8662. no_entry_flag=""
  8663. else
  8664. # If we're using GNU nm, then we don't want the "-C" option.
  8665. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  8666. # Also, AIX nm treats weak defined symbols like other global
  8667. # defined symbols, whereas GNU nm marks them as "W".
  8668. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8669. 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'
  8670. else
  8671. 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'
  8672. fi
  8673. aix_use_runtimelinking=no
  8674. # Test if we are trying to use run time linking or normal
  8675. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8676. # need to do runtime linking.
  8677. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8678. for ld_flag in $LDFLAGS; do
  8679. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  8680. aix_use_runtimelinking=yes
  8681. break
  8682. fi
  8683. done
  8684. ;;
  8685. esac
  8686. exp_sym_flag='-bexport'
  8687. no_entry_flag='-bnoentry'
  8688. fi
  8689. # When large executables or shared objects are built, AIX ld can
  8690. # have problems creating the table of contents. If linking a library
  8691. # or program results in "error TOC overflow" add -mminimal-toc to
  8692. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8693. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8694. archive_cmds=''
  8695. hardcode_direct=yes
  8696. hardcode_direct_absolute=yes
  8697. hardcode_libdir_separator=':'
  8698. link_all_deplibs=yes
  8699. file_list_spec='${wl}-f,'
  8700. if test "$GCC" = yes; then
  8701. case $host_os in aix4.[012]|aix4.[012].*)
  8702. # We only want to do this on AIX 4.2 and lower, the check
  8703. # below for broken collect2 doesn't work under 4.3+
  8704. collect2name=`${CC} -print-prog-name=collect2`
  8705. if test -f "$collect2name" &&
  8706. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8707. then
  8708. # We have reworked collect2
  8709. :
  8710. else
  8711. # We have old collect2
  8712. hardcode_direct=unsupported
  8713. # It fails to find uninstalled libraries when the uninstalled
  8714. # path is not listed in the libpath. Setting hardcode_minus_L
  8715. # to unsupported forces relinking
  8716. hardcode_minus_L=yes
  8717. hardcode_libdir_flag_spec='-L$libdir'
  8718. hardcode_libdir_separator=
  8719. fi
  8720. ;;
  8721. esac
  8722. shared_flag='-shared'
  8723. if test "$aix_use_runtimelinking" = yes; then
  8724. shared_flag="$shared_flag "'${wl}-G'
  8725. fi
  8726. else
  8727. # not using gcc
  8728. if test "$host_cpu" = ia64; then
  8729. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8730. # chokes on -Wl,-G. The following line is correct:
  8731. shared_flag='-G'
  8732. else
  8733. if test "$aix_use_runtimelinking" = yes; then
  8734. shared_flag='${wl}-G'
  8735. else
  8736. shared_flag='${wl}-bM:SRE'
  8737. fi
  8738. fi
  8739. fi
  8740. export_dynamic_flag_spec='${wl}-bexpall'
  8741. # It seems that -bexpall does not export symbols beginning with
  8742. # underscore (_), so it is better to generate a list of symbols to export.
  8743. always_export_symbols=yes
  8744. if test "$aix_use_runtimelinking" = yes; then
  8745. # Warning - without using the other runtime loading flags (-brtl),
  8746. # -berok will link without error, but may produce a broken library.
  8747. allow_undefined_flag='-berok'
  8748. # Determine the default libpath from the value encoded in an
  8749. # empty executable.
  8750. if test "${lt_cv_aix_libpath+set}" = set; then
  8751. aix_libpath=$lt_cv_aix_libpath
  8752. else
  8753. if ${lt_cv_aix_libpath_+:} false; then :
  8754. $as_echo_n "(cached) " >&6
  8755. else
  8756. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8757. /* end confdefs.h. */
  8758. int
  8759. main ()
  8760. {
  8761. ;
  8762. return 0;
  8763. }
  8764. _ACEOF
  8765. if ac_fn_c_try_link "$LINENO"; then :
  8766. lt_aix_libpath_sed='
  8767. /Import File Strings/,/^$/ {
  8768. /^0/ {
  8769. s/^0 *\([^ ]*\) *$/\1/
  8770. p
  8771. }
  8772. }'
  8773. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8774. # Check for a 64-bit object if we didn't find anything.
  8775. if test -z "$lt_cv_aix_libpath_"; then
  8776. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8777. fi
  8778. fi
  8779. rm -f core conftest.err conftest.$ac_objext \
  8780. conftest$ac_exeext conftest.$ac_ext
  8781. if test -z "$lt_cv_aix_libpath_"; then
  8782. lt_cv_aix_libpath_="/usr/lib:/lib"
  8783. fi
  8784. fi
  8785. aix_libpath=$lt_cv_aix_libpath_
  8786. fi
  8787. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8788. 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"
  8789. else
  8790. if test "$host_cpu" = ia64; then
  8791. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  8792. allow_undefined_flag="-z nodefs"
  8793. 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"
  8794. else
  8795. # Determine the default libpath from the value encoded in an
  8796. # empty executable.
  8797. if test "${lt_cv_aix_libpath+set}" = set; then
  8798. aix_libpath=$lt_cv_aix_libpath
  8799. else
  8800. if ${lt_cv_aix_libpath_+:} false; then :
  8801. $as_echo_n "(cached) " >&6
  8802. else
  8803. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8804. /* end confdefs.h. */
  8805. int
  8806. main ()
  8807. {
  8808. ;
  8809. return 0;
  8810. }
  8811. _ACEOF
  8812. if ac_fn_c_try_link "$LINENO"; then :
  8813. lt_aix_libpath_sed='
  8814. /Import File Strings/,/^$/ {
  8815. /^0/ {
  8816. s/^0 *\([^ ]*\) *$/\1/
  8817. p
  8818. }
  8819. }'
  8820. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8821. # Check for a 64-bit object if we didn't find anything.
  8822. if test -z "$lt_cv_aix_libpath_"; then
  8823. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8824. fi
  8825. fi
  8826. rm -f core conftest.err conftest.$ac_objext \
  8827. conftest$ac_exeext conftest.$ac_ext
  8828. if test -z "$lt_cv_aix_libpath_"; then
  8829. lt_cv_aix_libpath_="/usr/lib:/lib"
  8830. fi
  8831. fi
  8832. aix_libpath=$lt_cv_aix_libpath_
  8833. fi
  8834. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8835. # Warning - without using the other run time loading flags,
  8836. # -berok will link without error, but may produce a broken library.
  8837. no_undefined_flag=' ${wl}-bernotok'
  8838. allow_undefined_flag=' ${wl}-berok'
  8839. if test "$with_gnu_ld" = yes; then
  8840. # We only use this code for GNU lds that support --whole-archive.
  8841. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  8842. else
  8843. # Exported symbols can be pulled into shared objects from archives
  8844. whole_archive_flag_spec='$convenience'
  8845. fi
  8846. archive_cmds_need_lc=yes
  8847. # This is similar to how AIX traditionally builds its shared libraries.
  8848. 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'
  8849. fi
  8850. fi
  8851. ;;
  8852. amigaos*)
  8853. case $host_cpu in
  8854. powerpc)
  8855. # see comment about AmigaOS4 .so support
  8856. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8857. archive_expsym_cmds=''
  8858. ;;
  8859. m68k)
  8860. 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)'
  8861. hardcode_libdir_flag_spec='-L$libdir'
  8862. hardcode_minus_L=yes
  8863. ;;
  8864. esac
  8865. ;;
  8866. bsdi[45]*)
  8867. export_dynamic_flag_spec=-rdynamic
  8868. ;;
  8869. cygwin* | mingw* | pw32* | cegcc*)
  8870. # When not using gcc, we currently assume that we are using
  8871. # Microsoft Visual C++.
  8872. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8873. # no search path for DLLs.
  8874. case $cc_basename in
  8875. cl*)
  8876. # Native MSVC
  8877. hardcode_libdir_flag_spec=' '
  8878. allow_undefined_flag=unsupported
  8879. always_export_symbols=yes
  8880. file_list_spec='@'
  8881. # Tell ltmain to make .lib files, not .a files.
  8882. libext=lib
  8883. # Tell ltmain to make .dll files, not .so files.
  8884. shrext_cmds=".dll"
  8885. # FIXME: Setting linknames here is a bad hack.
  8886. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  8887. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8888. sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  8889. else
  8890. sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  8891. fi~
  8892. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  8893. linknames='
  8894. # The linker will not automatically build a static lib if we build a DLL.
  8895. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  8896. enable_shared_with_static_runtimes=yes
  8897. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8898. # Don't use ranlib
  8899. old_postinstall_cmds='chmod 644 $oldlib'
  8900. postlink_cmds='lt_outputfile="@OUTPUT@"~
  8901. lt_tool_outputfile="@TOOL_OUTPUT@"~
  8902. case $lt_outputfile in
  8903. *.exe|*.EXE) ;;
  8904. *)
  8905. lt_outputfile="$lt_outputfile.exe"
  8906. lt_tool_outputfile="$lt_tool_outputfile.exe"
  8907. ;;
  8908. esac~
  8909. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  8910. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  8911. $RM "$lt_outputfile.manifest";
  8912. fi'
  8913. ;;
  8914. *)
  8915. # Assume MSVC wrapper
  8916. hardcode_libdir_flag_spec=' '
  8917. allow_undefined_flag=unsupported
  8918. # Tell ltmain to make .lib files, not .a files.
  8919. libext=lib
  8920. # Tell ltmain to make .dll files, not .so files.
  8921. shrext_cmds=".dll"
  8922. # FIXME: Setting linknames here is a bad hack.
  8923. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8924. # The linker will automatically build a .lib file if we build a DLL.
  8925. old_archive_from_new_cmds='true'
  8926. # FIXME: Should let the user specify the lib program.
  8927. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8928. enable_shared_with_static_runtimes=yes
  8929. ;;
  8930. esac
  8931. ;;
  8932. darwin* | rhapsody*)
  8933. archive_cmds_need_lc=no
  8934. hardcode_direct=no
  8935. hardcode_automatic=yes
  8936. hardcode_shlibpath_var=unsupported
  8937. if test "$lt_cv_ld_force_load" = "yes"; then
  8938. 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\"`'
  8939. else
  8940. whole_archive_flag_spec=''
  8941. fi
  8942. link_all_deplibs=yes
  8943. allow_undefined_flag="$_lt_dar_allow_undefined"
  8944. case $cc_basename in
  8945. ifort*) _lt_dar_can_shared=yes ;;
  8946. *) _lt_dar_can_shared=$GCC ;;
  8947. esac
  8948. if test "$_lt_dar_can_shared" = "yes"; then
  8949. output_verbose_link_cmd=func_echo_all
  8950. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8951. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8952. 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}"
  8953. 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}"
  8954. else
  8955. ld_shlibs=no
  8956. fi
  8957. ;;
  8958. dgux*)
  8959. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8960. hardcode_libdir_flag_spec='-L$libdir'
  8961. hardcode_shlibpath_var=no
  8962. ;;
  8963. freebsd1*)
  8964. ld_shlibs=no
  8965. ;;
  8966. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8967. # support. Future versions do this automatically, but an explicit c++rt0.o
  8968. # does not break anything, and helps significantly (at the cost of a little
  8969. # extra space).
  8970. freebsd2.2*)
  8971. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8972. hardcode_libdir_flag_spec='-R$libdir'
  8973. hardcode_direct=yes
  8974. hardcode_shlibpath_var=no
  8975. ;;
  8976. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8977. freebsd2*)
  8978. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8979. hardcode_direct=yes
  8980. hardcode_minus_L=yes
  8981. hardcode_shlibpath_var=no
  8982. ;;
  8983. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8984. freebsd* | dragonfly*)
  8985. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8986. hardcode_libdir_flag_spec='-R$libdir'
  8987. hardcode_direct=yes
  8988. hardcode_shlibpath_var=no
  8989. ;;
  8990. hpux9*)
  8991. if test "$GCC" = yes; then
  8992. archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  8993. else
  8994. 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'
  8995. fi
  8996. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8997. hardcode_libdir_separator=:
  8998. hardcode_direct=yes
  8999. # hardcode_minus_L: Not really in the search PATH,
  9000. # but as the default location of the library.
  9001. hardcode_minus_L=yes
  9002. export_dynamic_flag_spec='${wl}-E'
  9003. ;;
  9004. hpux10*)
  9005. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  9006. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9007. else
  9008. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9009. fi
  9010. if test "$with_gnu_ld" = no; then
  9011. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  9012. hardcode_libdir_flag_spec_ld='+b $libdir'
  9013. hardcode_libdir_separator=:
  9014. hardcode_direct=yes
  9015. hardcode_direct_absolute=yes
  9016. export_dynamic_flag_spec='${wl}-E'
  9017. # hardcode_minus_L: Not really in the search PATH,
  9018. # but as the default location of the library.
  9019. hardcode_minus_L=yes
  9020. fi
  9021. ;;
  9022. hpux11*)
  9023. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  9024. case $host_cpu in
  9025. hppa*64*)
  9026. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9027. ;;
  9028. ia64*)
  9029. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9030. ;;
  9031. *)
  9032. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9033. ;;
  9034. esac
  9035. else
  9036. case $host_cpu in
  9037. hppa*64*)
  9038. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9039. ;;
  9040. ia64*)
  9041. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9042. ;;
  9043. *)
  9044. # Older versions of the 11.00 compiler do not understand -b yet
  9045. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  9046. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  9047. $as_echo_n "checking if $CC understands -b... " >&6; }
  9048. if ${lt_cv_prog_compiler__b+:} false; then :
  9049. $as_echo_n "(cached) " >&6
  9050. else
  9051. lt_cv_prog_compiler__b=no
  9052. save_LDFLAGS="$LDFLAGS"
  9053. LDFLAGS="$LDFLAGS -b"
  9054. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  9055. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  9056. # The linker can only warn and ignore the option if not recognized
  9057. # So say no if there are warnings
  9058. if test -s conftest.err; then
  9059. # Append any errors to the config.log.
  9060. cat conftest.err 1>&5
  9061. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  9062. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9063. if diff conftest.exp conftest.er2 >/dev/null; then
  9064. lt_cv_prog_compiler__b=yes
  9065. fi
  9066. else
  9067. lt_cv_prog_compiler__b=yes
  9068. fi
  9069. fi
  9070. $RM -r conftest*
  9071. LDFLAGS="$save_LDFLAGS"
  9072. fi
  9073. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  9074. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  9075. if test x"$lt_cv_prog_compiler__b" = xyes; then
  9076. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9077. else
  9078. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9079. fi
  9080. ;;
  9081. esac
  9082. fi
  9083. if test "$with_gnu_ld" = no; then
  9084. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  9085. hardcode_libdir_separator=:
  9086. case $host_cpu in
  9087. hppa*64*|ia64*)
  9088. hardcode_direct=no
  9089. hardcode_shlibpath_var=no
  9090. ;;
  9091. *)
  9092. hardcode_direct=yes
  9093. hardcode_direct_absolute=yes
  9094. export_dynamic_flag_spec='${wl}-E'
  9095. # hardcode_minus_L: Not really in the search PATH,
  9096. # but as the default location of the library.
  9097. hardcode_minus_L=yes
  9098. ;;
  9099. esac
  9100. fi
  9101. ;;
  9102. irix5* | irix6* | nonstopux*)
  9103. if test "$GCC" = yes; then
  9104. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  9105. # Try to use the -exported_symbol ld option, if it does not
  9106. # work, assume that -exports_file does not work either and
  9107. # implicitly export all symbols.
  9108. # This should be the same for all languages, so no per-tag cache variable.
  9109. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  9110. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  9111. if ${lt_cv_irix_exported_symbol+:} false; then :
  9112. $as_echo_n "(cached) " >&6
  9113. else
  9114. save_LDFLAGS="$LDFLAGS"
  9115. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  9116. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9117. /* end confdefs.h. */
  9118. int foo (void) { return 0; }
  9119. _ACEOF
  9120. if ac_fn_c_try_link "$LINENO"; then :
  9121. lt_cv_irix_exported_symbol=yes
  9122. else
  9123. lt_cv_irix_exported_symbol=no
  9124. fi
  9125. rm -f core conftest.err conftest.$ac_objext \
  9126. conftest$ac_exeext conftest.$ac_ext
  9127. LDFLAGS="$save_LDFLAGS"
  9128. fi
  9129. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  9130. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  9131. if test "$lt_cv_irix_exported_symbol" = yes; then
  9132. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
  9133. fi
  9134. else
  9135. 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'
  9136. 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'
  9137. fi
  9138. archive_cmds_need_lc='no'
  9139. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9140. hardcode_libdir_separator=:
  9141. inherit_rpath=yes
  9142. link_all_deplibs=yes
  9143. ;;
  9144. netbsd*)
  9145. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9146. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  9147. else
  9148. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  9149. fi
  9150. hardcode_libdir_flag_spec='-R$libdir'
  9151. hardcode_direct=yes
  9152. hardcode_shlibpath_var=no
  9153. ;;
  9154. newsos6)
  9155. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9156. hardcode_direct=yes
  9157. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9158. hardcode_libdir_separator=:
  9159. hardcode_shlibpath_var=no
  9160. ;;
  9161. *nto* | *qnx*)
  9162. ;;
  9163. openbsd*)
  9164. if test -f /usr/libexec/ld.so; then
  9165. hardcode_direct=yes
  9166. hardcode_shlibpath_var=no
  9167. hardcode_direct_absolute=yes
  9168. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9169. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9170. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  9171. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  9172. export_dynamic_flag_spec='${wl}-E'
  9173. else
  9174. case $host_os in
  9175. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  9176. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9177. hardcode_libdir_flag_spec='-R$libdir'
  9178. ;;
  9179. *)
  9180. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9181. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  9182. ;;
  9183. esac
  9184. fi
  9185. else
  9186. ld_shlibs=no
  9187. fi
  9188. ;;
  9189. os2*)
  9190. hardcode_libdir_flag_spec='-L$libdir'
  9191. hardcode_minus_L=yes
  9192. allow_undefined_flag=unsupported
  9193. 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'
  9194. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  9195. ;;
  9196. osf3*)
  9197. if test "$GCC" = yes; then
  9198. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  9199. 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'
  9200. else
  9201. allow_undefined_flag=' -expect_unresolved \*'
  9202. 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'
  9203. fi
  9204. archive_cmds_need_lc='no'
  9205. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9206. hardcode_libdir_separator=:
  9207. ;;
  9208. osf4* | osf5*) # as osf3* with the addition of -msym flag
  9209. if test "$GCC" = yes; then
  9210. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  9211. archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  9212. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9213. else
  9214. allow_undefined_flag=' -expect_unresolved \*'
  9215. 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'
  9216. 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~
  9217. $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'
  9218. # Both c and cxx compiler support -rpath directly
  9219. hardcode_libdir_flag_spec='-rpath $libdir'
  9220. fi
  9221. archive_cmds_need_lc='no'
  9222. hardcode_libdir_separator=:
  9223. ;;
  9224. solaris*)
  9225. no_undefined_flag=' -z defs'
  9226. if test "$GCC" = yes; then
  9227. wlarc='${wl}'
  9228. archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9229. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9230. $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9231. else
  9232. case `$CC -V 2>&1` in
  9233. *"Compilers 5.0"*)
  9234. wlarc=''
  9235. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9236. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9237. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  9238. ;;
  9239. *)
  9240. wlarc='${wl}'
  9241. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9242. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9243. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9244. ;;
  9245. esac
  9246. fi
  9247. hardcode_libdir_flag_spec='-R$libdir'
  9248. hardcode_shlibpath_var=no
  9249. case $host_os in
  9250. solaris2.[0-5] | solaris2.[0-5].*) ;;
  9251. *)
  9252. # The compiler driver will combine and reorder linker options,
  9253. # but understands `-z linker_flag'. GCC discards it without `$wl',
  9254. # but is careful enough not to reorder.
  9255. # Supported since Solaris 2.6 (maybe 2.5.1?)
  9256. if test "$GCC" = yes; then
  9257. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  9258. else
  9259. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  9260. fi
  9261. ;;
  9262. esac
  9263. link_all_deplibs=yes
  9264. ;;
  9265. sunos4*)
  9266. if test "x$host_vendor" = xsequent; then
  9267. # Use $CC to link under sequent, because it throws in some extra .o
  9268. # files that make .init and .fini sections work.
  9269. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9270. else
  9271. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  9272. fi
  9273. hardcode_libdir_flag_spec='-L$libdir'
  9274. hardcode_direct=yes
  9275. hardcode_minus_L=yes
  9276. hardcode_shlibpath_var=no
  9277. ;;
  9278. sysv4)
  9279. case $host_vendor in
  9280. sni)
  9281. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9282. hardcode_direct=yes # is this really true???
  9283. ;;
  9284. siemens)
  9285. ## LD is ld it makes a PLAMLIB
  9286. ## CC just makes a GrossModule.
  9287. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  9288. reload_cmds='$CC -r -o $output$reload_objs'
  9289. hardcode_direct=no
  9290. ;;
  9291. motorola)
  9292. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9293. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  9294. ;;
  9295. esac
  9296. runpath_var='LD_RUN_PATH'
  9297. hardcode_shlibpath_var=no
  9298. ;;
  9299. sysv4.3*)
  9300. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9301. hardcode_shlibpath_var=no
  9302. export_dynamic_flag_spec='-Bexport'
  9303. ;;
  9304. sysv4*MP*)
  9305. if test -d /usr/nec; then
  9306. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9307. hardcode_shlibpath_var=no
  9308. runpath_var=LD_RUN_PATH
  9309. hardcode_runpath_var=yes
  9310. ld_shlibs=yes
  9311. fi
  9312. ;;
  9313. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  9314. no_undefined_flag='${wl}-z,text'
  9315. archive_cmds_need_lc=no
  9316. hardcode_shlibpath_var=no
  9317. runpath_var='LD_RUN_PATH'
  9318. if test "$GCC" = yes; then
  9319. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9320. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9321. else
  9322. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9323. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9324. fi
  9325. ;;
  9326. sysv5* | sco3.2v5* | sco5v6*)
  9327. # Note: We can NOT use -z defs as we might desire, because we do not
  9328. # link with -lc, and that would cause any symbols used from libc to
  9329. # always be unresolved, which means just about no library would
  9330. # ever link correctly. If we're not using GNU ld we use -z text
  9331. # though, which does catch some bad symbols but isn't as heavy-handed
  9332. # as -z defs.
  9333. no_undefined_flag='${wl}-z,text'
  9334. allow_undefined_flag='${wl}-z,nodefs'
  9335. archive_cmds_need_lc=no
  9336. hardcode_shlibpath_var=no
  9337. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  9338. hardcode_libdir_separator=':'
  9339. link_all_deplibs=yes
  9340. export_dynamic_flag_spec='${wl}-Bexport'
  9341. runpath_var='LD_RUN_PATH'
  9342. if test "$GCC" = yes; then
  9343. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9344. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9345. else
  9346. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9347. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9348. fi
  9349. ;;
  9350. uts4*)
  9351. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9352. hardcode_libdir_flag_spec='-L$libdir'
  9353. hardcode_shlibpath_var=no
  9354. ;;
  9355. *)
  9356. ld_shlibs=no
  9357. ;;
  9358. esac
  9359. if test x$host_vendor = xsni; then
  9360. case $host in
  9361. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  9362. export_dynamic_flag_spec='${wl}-Blargedynsym'
  9363. ;;
  9364. esac
  9365. fi
  9366. fi
  9367. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  9368. $as_echo "$ld_shlibs" >&6; }
  9369. test "$ld_shlibs" = no && can_build_shared=no
  9370. with_gnu_ld=$with_gnu_ld
  9371. #
  9372. # Do we need to explicitly link libc?
  9373. #
  9374. case "x$archive_cmds_need_lc" in
  9375. x|xyes)
  9376. # Assume -lc should be added
  9377. archive_cmds_need_lc=yes
  9378. if test "$enable_shared" = yes && test "$GCC" = yes; then
  9379. case $archive_cmds in
  9380. *'~'*)
  9381. # FIXME: we may have to deal with multi-command sequences.
  9382. ;;
  9383. '$CC '*)
  9384. # Test whether the compiler implicitly links with -lc since on some
  9385. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  9386. # to ld, don't add -lc before -lgcc.
  9387. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  9388. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  9389. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  9390. $as_echo_n "(cached) " >&6
  9391. else
  9392. $RM conftest*
  9393. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9394. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9395. (eval $ac_compile) 2>&5
  9396. ac_status=$?
  9397. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9398. test $ac_status = 0; } 2>conftest.err; then
  9399. soname=conftest
  9400. lib=conftest
  9401. libobjs=conftest.$ac_objext
  9402. deplibs=
  9403. wl=$lt_prog_compiler_wl
  9404. pic_flag=$lt_prog_compiler_pic
  9405. compiler_flags=-v
  9406. linker_flags=-v
  9407. verstring=
  9408. output_objdir=.
  9409. libname=conftest
  9410. lt_save_allow_undefined_flag=$allow_undefined_flag
  9411. allow_undefined_flag=
  9412. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  9413. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9414. ac_status=$?
  9415. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9416. test $ac_status = 0; }
  9417. then
  9418. lt_cv_archive_cmds_need_lc=no
  9419. else
  9420. lt_cv_archive_cmds_need_lc=yes
  9421. fi
  9422. allow_undefined_flag=$lt_save_allow_undefined_flag
  9423. else
  9424. cat conftest.err 1>&5
  9425. fi
  9426. $RM conftest*
  9427. fi
  9428. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  9429. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  9430. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  9431. ;;
  9432. esac
  9433. fi
  9434. ;;
  9435. esac
  9436. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  9437. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  9438. if test "$GCC" = yes; then
  9439. case $host_os in
  9440. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  9441. *) lt_awk_arg="/^libraries:/" ;;
  9442. esac
  9443. case $host_os in
  9444. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  9445. *) lt_sed_strip_eq="s,=/,/,g" ;;
  9446. esac
  9447. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  9448. case $lt_search_path_spec in
  9449. *\;*)
  9450. # if the path contains ";" then we assume it to be the separator
  9451. # otherwise default to the standard path separator (i.e. ":") - it is
  9452. # assumed that no part of a normal pathname contains ";" but that should
  9453. # okay in the real world where ";" in dirpaths is itself problematic.
  9454. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  9455. ;;
  9456. *)
  9457. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  9458. ;;
  9459. esac
  9460. # Ok, now we have the path, separated by spaces, we can step through it
  9461. # and add multilib dir if necessary.
  9462. lt_tmp_lt_search_path_spec=
  9463. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9464. for lt_sys_path in $lt_search_path_spec; do
  9465. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  9466. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  9467. else
  9468. test -d "$lt_sys_path" && \
  9469. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  9470. fi
  9471. done
  9472. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  9473. BEGIN {RS=" "; FS="/|\n";} {
  9474. lt_foo="";
  9475. lt_count=0;
  9476. for (lt_i = NF; lt_i > 0; lt_i--) {
  9477. if ($lt_i != "" && $lt_i != ".") {
  9478. if ($lt_i == "..") {
  9479. lt_count++;
  9480. } else {
  9481. if (lt_count == 0) {
  9482. lt_foo="/" $lt_i lt_foo;
  9483. } else {
  9484. lt_count--;
  9485. }
  9486. }
  9487. }
  9488. }
  9489. if (lt_foo != "") { lt_freq[lt_foo]++; }
  9490. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9491. }'`
  9492. # AWK program above erroneously prepends '/' to C:/dos/paths
  9493. # for these hosts.
  9494. case $host_os in
  9495. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  9496. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  9497. esac
  9498. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  9499. else
  9500. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9501. fi
  9502. library_names_spec=
  9503. libname_spec='lib$name'
  9504. soname_spec=
  9505. shrext_cmds=".so"
  9506. postinstall_cmds=
  9507. postuninstall_cmds=
  9508. finish_cmds=
  9509. finish_eval=
  9510. shlibpath_var=
  9511. shlibpath_overrides_runpath=unknown
  9512. version_type=none
  9513. dynamic_linker="$host_os ld.so"
  9514. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9515. need_lib_prefix=unknown
  9516. hardcode_into_libs=no
  9517. # when you set need_version to no, make sure it does not cause -set_version
  9518. # flags to be left without arguments
  9519. need_version=unknown
  9520. case $host_os in
  9521. aix3*)
  9522. version_type=linux
  9523. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  9524. shlibpath_var=LIBPATH
  9525. # AIX 3 has no versioning support, so we append a major version to the name.
  9526. soname_spec='${libname}${release}${shared_ext}$major'
  9527. ;;
  9528. aix[4-9]*)
  9529. version_type=linux
  9530. need_lib_prefix=no
  9531. need_version=no
  9532. hardcode_into_libs=yes
  9533. if test "$host_cpu" = ia64; then
  9534. # AIX 5 supports IA64
  9535. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  9536. shlibpath_var=LD_LIBRARY_PATH
  9537. else
  9538. # With GCC up to 2.95.x, collect2 would create an import file
  9539. # for dependence libraries. The import file would start with
  9540. # the line `#! .'. This would cause the generated library to
  9541. # depend on `.', always an invalid library. This was fixed in
  9542. # development snapshots of GCC prior to 3.0.
  9543. case $host_os in
  9544. aix4 | aix4.[01] | aix4.[01].*)
  9545. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9546. echo ' yes '
  9547. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  9548. :
  9549. else
  9550. can_build_shared=no
  9551. fi
  9552. ;;
  9553. esac
  9554. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  9555. # soname into executable. Probably we can add versioning support to
  9556. # collect2, so additional links can be useful in future.
  9557. if test "$aix_use_runtimelinking" = yes; then
  9558. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9559. # instead of lib<name>.a to let people know that these are not
  9560. # typical AIX shared libraries.
  9561. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9562. else
  9563. # We preserve .a as extension for shared libraries through AIX4.2
  9564. # and later when we are not doing run time linking.
  9565. library_names_spec='${libname}${release}.a $libname.a'
  9566. soname_spec='${libname}${release}${shared_ext}$major'
  9567. fi
  9568. shlibpath_var=LIBPATH
  9569. fi
  9570. ;;
  9571. amigaos*)
  9572. case $host_cpu in
  9573. powerpc)
  9574. # Since July 2007 AmigaOS4 officially supports .so libraries.
  9575. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  9576. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9577. ;;
  9578. m68k)
  9579. library_names_spec='$libname.ixlibrary $libname.a'
  9580. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9581. 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'
  9582. ;;
  9583. esac
  9584. ;;
  9585. beos*)
  9586. library_names_spec='${libname}${shared_ext}'
  9587. dynamic_linker="$host_os ld.so"
  9588. shlibpath_var=LIBRARY_PATH
  9589. ;;
  9590. bsdi[45]*)
  9591. version_type=linux
  9592. need_version=no
  9593. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9594. soname_spec='${libname}${release}${shared_ext}$major'
  9595. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9596. shlibpath_var=LD_LIBRARY_PATH
  9597. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9598. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9599. # the default ld.so.conf also contains /usr/contrib/lib and
  9600. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9601. # libtool to hard-code these into programs
  9602. ;;
  9603. cygwin* | mingw* | pw32* | cegcc*)
  9604. version_type=windows
  9605. shrext_cmds=".dll"
  9606. need_version=no
  9607. need_lib_prefix=no
  9608. case $GCC,$cc_basename in
  9609. yes,*)
  9610. # gcc
  9611. library_names_spec='$libname.dll.a'
  9612. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9613. postinstall_cmds='base_file=`basename \${file}`~
  9614. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  9615. dldir=$destdir/`dirname \$dlpath`~
  9616. test -d \$dldir || mkdir -p \$dldir~
  9617. $install_prog $dir/$dlname \$dldir/$dlname~
  9618. chmod a+x \$dldir/$dlname~
  9619. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9620. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9621. fi'
  9622. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9623. dlpath=$dir/\$dldll~
  9624. $RM \$dlpath'
  9625. shlibpath_overrides_runpath=yes
  9626. case $host_os in
  9627. cygwin*)
  9628. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  9629. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9630. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  9631. ;;
  9632. mingw* | cegcc*)
  9633. # MinGW DLLs use traditional 'lib' prefix
  9634. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9635. ;;
  9636. pw32*)
  9637. # pw32 DLLs use 'pw' prefix rather than 'lib'
  9638. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9639. ;;
  9640. esac
  9641. dynamic_linker='Win32 ld.exe'
  9642. ;;
  9643. *,cl*)
  9644. # Native MSVC
  9645. libname_spec='$name'
  9646. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9647. library_names_spec='${libname}.dll.lib'
  9648. case $build_os in
  9649. mingw*)
  9650. sys_lib_search_path_spec=
  9651. lt_save_ifs=$IFS
  9652. IFS=';'
  9653. for lt_path in $LIB
  9654. do
  9655. IFS=$lt_save_ifs
  9656. # Let DOS variable expansion print the short 8.3 style file name.
  9657. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  9658. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  9659. done
  9660. IFS=$lt_save_ifs
  9661. # Convert to MSYS style.
  9662. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  9663. ;;
  9664. cygwin*)
  9665. # Convert to unix form, then to dos form, then back to unix form
  9666. # but this time dos style (no spaces!) so that the unix form looks
  9667. # like /cygdrive/c/PROGRA~1:/cygdr...
  9668. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  9669. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  9670. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9671. ;;
  9672. *)
  9673. sys_lib_search_path_spec="$LIB"
  9674. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  9675. # It is most probably a Windows format PATH.
  9676. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  9677. else
  9678. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9679. fi
  9680. # FIXME: find the short name or the path components, as spaces are
  9681. # common. (e.g. "Program Files" -> "PROGRA~1")
  9682. ;;
  9683. esac
  9684. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9685. postinstall_cmds='base_file=`basename \${file}`~
  9686. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  9687. dldir=$destdir/`dirname \$dlpath`~
  9688. test -d \$dldir || mkdir -p \$dldir~
  9689. $install_prog $dir/$dlname \$dldir/$dlname'
  9690. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9691. dlpath=$dir/\$dldll~
  9692. $RM \$dlpath'
  9693. shlibpath_overrides_runpath=yes
  9694. dynamic_linker='Win32 link.exe'
  9695. ;;
  9696. *)
  9697. # Assume MSVC wrapper
  9698. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  9699. dynamic_linker='Win32 ld.exe'
  9700. ;;
  9701. esac
  9702. # FIXME: first we should search . and the directory the executable is in
  9703. shlibpath_var=PATH
  9704. ;;
  9705. darwin* | rhapsody*)
  9706. dynamic_linker="$host_os dyld"
  9707. version_type=darwin
  9708. need_lib_prefix=no
  9709. need_version=no
  9710. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  9711. soname_spec='${libname}${release}${major}$shared_ext'
  9712. shlibpath_overrides_runpath=yes
  9713. shlibpath_var=DYLD_LIBRARY_PATH
  9714. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  9715. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  9716. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  9717. ;;
  9718. dgux*)
  9719. version_type=linux
  9720. need_lib_prefix=no
  9721. need_version=no
  9722. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  9723. soname_spec='${libname}${release}${shared_ext}$major'
  9724. shlibpath_var=LD_LIBRARY_PATH
  9725. ;;
  9726. freebsd1*)
  9727. dynamic_linker=no
  9728. ;;
  9729. freebsd* | dragonfly*)
  9730. # DragonFly does not have aout. When/if they implement a new
  9731. # versioning mechanism, adjust this.
  9732. if test -x /usr/bin/objformat; then
  9733. objformat=`/usr/bin/objformat`
  9734. else
  9735. case $host_os in
  9736. freebsd[123]*) objformat=aout ;;
  9737. *) objformat=elf ;;
  9738. esac
  9739. fi
  9740. version_type=freebsd-$objformat
  9741. case $version_type in
  9742. freebsd-elf*)
  9743. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9744. need_version=no
  9745. need_lib_prefix=no
  9746. ;;
  9747. freebsd-*)
  9748. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  9749. need_version=yes
  9750. ;;
  9751. esac
  9752. shlibpath_var=LD_LIBRARY_PATH
  9753. case $host_os in
  9754. freebsd2*)
  9755. shlibpath_overrides_runpath=yes
  9756. ;;
  9757. freebsd3.[01]* | freebsdelf3.[01]*)
  9758. shlibpath_overrides_runpath=yes
  9759. hardcode_into_libs=yes
  9760. ;;
  9761. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  9762. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  9763. shlibpath_overrides_runpath=no
  9764. hardcode_into_libs=yes
  9765. ;;
  9766. *) # from 4.6 on, and DragonFly
  9767. shlibpath_overrides_runpath=yes
  9768. hardcode_into_libs=yes
  9769. ;;
  9770. esac
  9771. ;;
  9772. gnu*)
  9773. version_type=linux
  9774. need_lib_prefix=no
  9775. need_version=no
  9776. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9777. soname_spec='${libname}${release}${shared_ext}$major'
  9778. shlibpath_var=LD_LIBRARY_PATH
  9779. hardcode_into_libs=yes
  9780. ;;
  9781. haiku*)
  9782. version_type=linux
  9783. need_lib_prefix=no
  9784. need_version=no
  9785. dynamic_linker="$host_os runtime_loader"
  9786. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9787. soname_spec='${libname}${release}${shared_ext}$major'
  9788. shlibpath_var=LIBRARY_PATH
  9789. shlibpath_overrides_runpath=yes
  9790. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  9791. hardcode_into_libs=yes
  9792. ;;
  9793. hpux9* | hpux10* | hpux11*)
  9794. # Give a soname corresponding to the major version so that dld.sl refuses to
  9795. # link against other versions.
  9796. version_type=sunos
  9797. need_lib_prefix=no
  9798. need_version=no
  9799. case $host_cpu in
  9800. ia64*)
  9801. shrext_cmds='.so'
  9802. hardcode_into_libs=yes
  9803. dynamic_linker="$host_os dld.so"
  9804. shlibpath_var=LD_LIBRARY_PATH
  9805. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9806. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9807. soname_spec='${libname}${release}${shared_ext}$major'
  9808. if test "X$HPUX_IA64_MODE" = X32; then
  9809. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9810. else
  9811. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9812. fi
  9813. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9814. ;;
  9815. hppa*64*)
  9816. shrext_cmds='.sl'
  9817. hardcode_into_libs=yes
  9818. dynamic_linker="$host_os dld.sl"
  9819. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9820. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9821. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9822. soname_spec='${libname}${release}${shared_ext}$major'
  9823. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9824. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9825. ;;
  9826. *)
  9827. shrext_cmds='.sl'
  9828. dynamic_linker="$host_os dld.sl"
  9829. shlibpath_var=SHLIB_PATH
  9830. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9831. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9832. soname_spec='${libname}${release}${shared_ext}$major'
  9833. ;;
  9834. esac
  9835. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  9836. postinstall_cmds='chmod 555 $lib'
  9837. # or fails outright, so override atomically:
  9838. install_override_mode=555
  9839. ;;
  9840. interix[3-9]*)
  9841. version_type=linux
  9842. need_lib_prefix=no
  9843. need_version=no
  9844. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9845. soname_spec='${libname}${release}${shared_ext}$major'
  9846. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9847. shlibpath_var=LD_LIBRARY_PATH
  9848. shlibpath_overrides_runpath=no
  9849. hardcode_into_libs=yes
  9850. ;;
  9851. irix5* | irix6* | nonstopux*)
  9852. case $host_os in
  9853. nonstopux*) version_type=nonstopux ;;
  9854. *)
  9855. if test "$lt_cv_prog_gnu_ld" = yes; then
  9856. version_type=linux
  9857. else
  9858. version_type=irix
  9859. fi ;;
  9860. esac
  9861. need_lib_prefix=no
  9862. need_version=no
  9863. soname_spec='${libname}${release}${shared_ext}$major'
  9864. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  9865. case $host_os in
  9866. irix5* | nonstopux*)
  9867. libsuff= shlibsuff=
  9868. ;;
  9869. *)
  9870. case $LD in # libtool.m4 will add one of these switches to LD
  9871. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9872. libsuff= shlibsuff= libmagic=32-bit;;
  9873. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9874. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9875. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9876. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9877. *) libsuff= shlibsuff= libmagic=never-match;;
  9878. esac
  9879. ;;
  9880. esac
  9881. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9882. shlibpath_overrides_runpath=no
  9883. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  9884. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  9885. hardcode_into_libs=yes
  9886. ;;
  9887. # No shared lib support for Linux oldld, aout, or coff.
  9888. linux*oldld* | linux*aout* | linux*coff*)
  9889. dynamic_linker=no
  9890. ;;
  9891. # This must be Linux ELF.
  9892. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  9893. version_type=linux
  9894. need_lib_prefix=no
  9895. need_version=no
  9896. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9897. soname_spec='${libname}${release}${shared_ext}$major'
  9898. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9899. shlibpath_var=LD_LIBRARY_PATH
  9900. shlibpath_overrides_runpath=no
  9901. # Some binutils ld are patched to set DT_RUNPATH
  9902. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  9903. $as_echo_n "(cached) " >&6
  9904. else
  9905. lt_cv_shlibpath_overrides_runpath=no
  9906. save_LDFLAGS=$LDFLAGS
  9907. save_libdir=$libdir
  9908. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9909. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9910. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9911. /* end confdefs.h. */
  9912. int
  9913. main ()
  9914. {
  9915. ;
  9916. return 0;
  9917. }
  9918. _ACEOF
  9919. if ac_fn_c_try_link "$LINENO"; then :
  9920. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9921. lt_cv_shlibpath_overrides_runpath=yes
  9922. fi
  9923. fi
  9924. rm -f core conftest.err conftest.$ac_objext \
  9925. conftest$ac_exeext conftest.$ac_ext
  9926. LDFLAGS=$save_LDFLAGS
  9927. libdir=$save_libdir
  9928. fi
  9929. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9930. # This implies no fast_install, which is unacceptable.
  9931. # Some rework will be needed to allow for fast_install
  9932. # before this can be enabled.
  9933. hardcode_into_libs=yes
  9934. # Add ABI-specific directories to the system library path.
  9935. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  9936. # Append ld.so.conf contents to the search path
  9937. if test -f /etc/ld.so.conf; then
  9938. 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' ' '`
  9939. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  9940. fi
  9941. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9942. # powerpc, because MkLinux only supported shared libraries with the
  9943. # GNU dynamic linker. Since this was broken with cross compilers,
  9944. # most powerpc-linux boxes support dynamic linking these days and
  9945. # people can always --disable-shared, the test was removed, and we
  9946. # assume the GNU/Linux dynamic linker is in use.
  9947. dynamic_linker='GNU/Linux ld.so'
  9948. ;;
  9949. netbsd*)
  9950. version_type=sunos
  9951. need_lib_prefix=no
  9952. need_version=no
  9953. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9954. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9955. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9956. dynamic_linker='NetBSD (a.out) ld.so'
  9957. else
  9958. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9959. soname_spec='${libname}${release}${shared_ext}$major'
  9960. dynamic_linker='NetBSD ld.elf_so'
  9961. fi
  9962. shlibpath_var=LD_LIBRARY_PATH
  9963. shlibpath_overrides_runpath=yes
  9964. hardcode_into_libs=yes
  9965. ;;
  9966. newsos6)
  9967. version_type=linux
  9968. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9969. shlibpath_var=LD_LIBRARY_PATH
  9970. shlibpath_overrides_runpath=yes
  9971. ;;
  9972. *nto* | *qnx*)
  9973. version_type=qnx
  9974. need_lib_prefix=no
  9975. need_version=no
  9976. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9977. soname_spec='${libname}${release}${shared_ext}$major'
  9978. shlibpath_var=LD_LIBRARY_PATH
  9979. shlibpath_overrides_runpath=no
  9980. hardcode_into_libs=yes
  9981. dynamic_linker='ldqnx.so'
  9982. ;;
  9983. openbsd*)
  9984. version_type=sunos
  9985. sys_lib_dlsearch_path_spec="/usr/lib"
  9986. need_lib_prefix=no
  9987. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9988. case $host_os in
  9989. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9990. *) need_version=no ;;
  9991. esac
  9992. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9993. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9994. shlibpath_var=LD_LIBRARY_PATH
  9995. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9996. case $host_os in
  9997. openbsd2.[89] | openbsd2.[89].*)
  9998. shlibpath_overrides_runpath=no
  9999. ;;
  10000. *)
  10001. shlibpath_overrides_runpath=yes
  10002. ;;
  10003. esac
  10004. else
  10005. shlibpath_overrides_runpath=yes
  10006. fi
  10007. ;;
  10008. os2*)
  10009. libname_spec='$name'
  10010. shrext_cmds=".dll"
  10011. need_lib_prefix=no
  10012. library_names_spec='$libname${shared_ext} $libname.a'
  10013. dynamic_linker='OS/2 ld.exe'
  10014. shlibpath_var=LIBPATH
  10015. ;;
  10016. osf3* | osf4* | osf5*)
  10017. version_type=osf
  10018. need_lib_prefix=no
  10019. need_version=no
  10020. soname_spec='${libname}${release}${shared_ext}$major'
  10021. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10022. shlibpath_var=LD_LIBRARY_PATH
  10023. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  10024. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  10025. ;;
  10026. rdos*)
  10027. dynamic_linker=no
  10028. ;;
  10029. solaris*)
  10030. version_type=linux
  10031. need_lib_prefix=no
  10032. need_version=no
  10033. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10034. soname_spec='${libname}${release}${shared_ext}$major'
  10035. shlibpath_var=LD_LIBRARY_PATH
  10036. shlibpath_overrides_runpath=yes
  10037. hardcode_into_libs=yes
  10038. # ldd complains unless libraries are executable
  10039. postinstall_cmds='chmod +x $lib'
  10040. ;;
  10041. sunos4*)
  10042. version_type=sunos
  10043. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  10044. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  10045. shlibpath_var=LD_LIBRARY_PATH
  10046. shlibpath_overrides_runpath=yes
  10047. if test "$with_gnu_ld" = yes; then
  10048. need_lib_prefix=no
  10049. fi
  10050. need_version=yes
  10051. ;;
  10052. sysv4 | sysv4.3*)
  10053. version_type=linux
  10054. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10055. soname_spec='${libname}${release}${shared_ext}$major'
  10056. shlibpath_var=LD_LIBRARY_PATH
  10057. case $host_vendor in
  10058. sni)
  10059. shlibpath_overrides_runpath=no
  10060. need_lib_prefix=no
  10061. runpath_var=LD_RUN_PATH
  10062. ;;
  10063. siemens)
  10064. need_lib_prefix=no
  10065. ;;
  10066. motorola)
  10067. need_lib_prefix=no
  10068. need_version=no
  10069. shlibpath_overrides_runpath=no
  10070. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  10071. ;;
  10072. esac
  10073. ;;
  10074. sysv4*MP*)
  10075. if test -d /usr/nec ;then
  10076. version_type=linux
  10077. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  10078. soname_spec='$libname${shared_ext}.$major'
  10079. shlibpath_var=LD_LIBRARY_PATH
  10080. fi
  10081. ;;
  10082. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  10083. version_type=freebsd-elf
  10084. need_lib_prefix=no
  10085. need_version=no
  10086. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  10087. soname_spec='${libname}${release}${shared_ext}$major'
  10088. shlibpath_var=LD_LIBRARY_PATH
  10089. shlibpath_overrides_runpath=yes
  10090. hardcode_into_libs=yes
  10091. if test "$with_gnu_ld" = yes; then
  10092. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  10093. else
  10094. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  10095. case $host_os in
  10096. sco3.2v5*)
  10097. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  10098. ;;
  10099. esac
  10100. fi
  10101. sys_lib_dlsearch_path_spec='/usr/lib'
  10102. ;;
  10103. tpf*)
  10104. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  10105. version_type=linux
  10106. need_lib_prefix=no
  10107. need_version=no
  10108. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10109. shlibpath_var=LD_LIBRARY_PATH
  10110. shlibpath_overrides_runpath=no
  10111. hardcode_into_libs=yes
  10112. ;;
  10113. uts4*)
  10114. version_type=linux
  10115. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10116. soname_spec='${libname}${release}${shared_ext}$major'
  10117. shlibpath_var=LD_LIBRARY_PATH
  10118. ;;
  10119. *)
  10120. dynamic_linker=no
  10121. ;;
  10122. esac
  10123. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  10124. $as_echo "$dynamic_linker" >&6; }
  10125. test "$dynamic_linker" = no && can_build_shared=no
  10126. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  10127. if test "$GCC" = yes; then
  10128. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  10129. fi
  10130. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  10131. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  10132. fi
  10133. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  10134. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  10135. fi
  10136. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  10137. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  10138. hardcode_action=
  10139. if test -n "$hardcode_libdir_flag_spec" ||
  10140. test -n "$runpath_var" ||
  10141. test "X$hardcode_automatic" = "Xyes" ; then
  10142. # We can hardcode non-existent directories.
  10143. if test "$hardcode_direct" != no &&
  10144. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  10145. # have to relink, otherwise we might link with an installed library
  10146. # when we should be linking with a yet-to-be-installed one
  10147. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  10148. test "$hardcode_minus_L" != no; then
  10149. # Linking always hardcodes the temporary library directory.
  10150. hardcode_action=relink
  10151. else
  10152. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  10153. hardcode_action=immediate
  10154. fi
  10155. else
  10156. # We cannot hardcode anything, or else we can only hardcode existing
  10157. # directories.
  10158. hardcode_action=unsupported
  10159. fi
  10160. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  10161. $as_echo "$hardcode_action" >&6; }
  10162. if test "$hardcode_action" = relink ||
  10163. test "$inherit_rpath" = yes; then
  10164. # Fast installation is not supported
  10165. enable_fast_install=no
  10166. elif test "$shlibpath_overrides_runpath" = yes ||
  10167. test "$enable_shared" = no; then
  10168. # Fast installation is not necessary
  10169. enable_fast_install=needless
  10170. fi
  10171. if test "x$enable_dlopen" != xyes; then
  10172. enable_dlopen=unknown
  10173. enable_dlopen_self=unknown
  10174. enable_dlopen_self_static=unknown
  10175. else
  10176. lt_cv_dlopen=no
  10177. lt_cv_dlopen_libs=
  10178. case $host_os in
  10179. beos*)
  10180. lt_cv_dlopen="load_add_on"
  10181. lt_cv_dlopen_libs=
  10182. lt_cv_dlopen_self=yes
  10183. ;;
  10184. mingw* | pw32* | cegcc*)
  10185. lt_cv_dlopen="LoadLibrary"
  10186. lt_cv_dlopen_libs=
  10187. ;;
  10188. cygwin*)
  10189. lt_cv_dlopen="dlopen"
  10190. lt_cv_dlopen_libs=
  10191. ;;
  10192. darwin*)
  10193. # if libdl is installed we need to link against it
  10194. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10195. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10196. if ${ac_cv_lib_dl_dlopen+:} false; then :
  10197. $as_echo_n "(cached) " >&6
  10198. else
  10199. ac_check_lib_save_LIBS=$LIBS
  10200. LIBS="-ldl $LIBS"
  10201. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10202. /* end confdefs.h. */
  10203. /* Override any GCC internal prototype to avoid an error.
  10204. Use char because int might match the return type of a GCC
  10205. builtin and then its argument prototype would still apply. */
  10206. #ifdef __cplusplus
  10207. extern "C"
  10208. #endif
  10209. char dlopen ();
  10210. int
  10211. main ()
  10212. {
  10213. return dlopen ();
  10214. ;
  10215. return 0;
  10216. }
  10217. _ACEOF
  10218. if ac_fn_c_try_link "$LINENO"; then :
  10219. ac_cv_lib_dl_dlopen=yes
  10220. else
  10221. ac_cv_lib_dl_dlopen=no
  10222. fi
  10223. rm -f core conftest.err conftest.$ac_objext \
  10224. conftest$ac_exeext conftest.$ac_ext
  10225. LIBS=$ac_check_lib_save_LIBS
  10226. fi
  10227. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10228. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10229. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10230. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  10231. else
  10232. lt_cv_dlopen="dyld"
  10233. lt_cv_dlopen_libs=
  10234. lt_cv_dlopen_self=yes
  10235. fi
  10236. ;;
  10237. *)
  10238. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  10239. if test "x$ac_cv_func_shl_load" = xyes; then :
  10240. lt_cv_dlopen="shl_load"
  10241. else
  10242. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  10243. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  10244. if ${ac_cv_lib_dld_shl_load+:} false; then :
  10245. $as_echo_n "(cached) " >&6
  10246. else
  10247. ac_check_lib_save_LIBS=$LIBS
  10248. LIBS="-ldld $LIBS"
  10249. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10250. /* end confdefs.h. */
  10251. /* Override any GCC internal prototype to avoid an error.
  10252. Use char because int might match the return type of a GCC
  10253. builtin and then its argument prototype would still apply. */
  10254. #ifdef __cplusplus
  10255. extern "C"
  10256. #endif
  10257. char shl_load ();
  10258. int
  10259. main ()
  10260. {
  10261. return shl_load ();
  10262. ;
  10263. return 0;
  10264. }
  10265. _ACEOF
  10266. if ac_fn_c_try_link "$LINENO"; then :
  10267. ac_cv_lib_dld_shl_load=yes
  10268. else
  10269. ac_cv_lib_dld_shl_load=no
  10270. fi
  10271. rm -f core conftest.err conftest.$ac_objext \
  10272. conftest$ac_exeext conftest.$ac_ext
  10273. LIBS=$ac_check_lib_save_LIBS
  10274. fi
  10275. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  10276. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  10277. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  10278. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  10279. else
  10280. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  10281. if test "x$ac_cv_func_dlopen" = xyes; then :
  10282. lt_cv_dlopen="dlopen"
  10283. else
  10284. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10285. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10286. if ${ac_cv_lib_dl_dlopen+:} false; then :
  10287. $as_echo_n "(cached) " >&6
  10288. else
  10289. ac_check_lib_save_LIBS=$LIBS
  10290. LIBS="-ldl $LIBS"
  10291. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10292. /* end confdefs.h. */
  10293. /* Override any GCC internal prototype to avoid an error.
  10294. Use char because int might match the return type of a GCC
  10295. builtin and then its argument prototype would still apply. */
  10296. #ifdef __cplusplus
  10297. extern "C"
  10298. #endif
  10299. char dlopen ();
  10300. int
  10301. main ()
  10302. {
  10303. return dlopen ();
  10304. ;
  10305. return 0;
  10306. }
  10307. _ACEOF
  10308. if ac_fn_c_try_link "$LINENO"; then :
  10309. ac_cv_lib_dl_dlopen=yes
  10310. else
  10311. ac_cv_lib_dl_dlopen=no
  10312. fi
  10313. rm -f core conftest.err conftest.$ac_objext \
  10314. conftest$ac_exeext conftest.$ac_ext
  10315. LIBS=$ac_check_lib_save_LIBS
  10316. fi
  10317. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10318. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10319. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10320. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  10321. else
  10322. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  10323. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  10324. if ${ac_cv_lib_svld_dlopen+:} false; then :
  10325. $as_echo_n "(cached) " >&6
  10326. else
  10327. ac_check_lib_save_LIBS=$LIBS
  10328. LIBS="-lsvld $LIBS"
  10329. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10330. /* end confdefs.h. */
  10331. /* Override any GCC internal prototype to avoid an error.
  10332. Use char because int might match the return type of a GCC
  10333. builtin and then its argument prototype would still apply. */
  10334. #ifdef __cplusplus
  10335. extern "C"
  10336. #endif
  10337. char dlopen ();
  10338. int
  10339. main ()
  10340. {
  10341. return dlopen ();
  10342. ;
  10343. return 0;
  10344. }
  10345. _ACEOF
  10346. if ac_fn_c_try_link "$LINENO"; then :
  10347. ac_cv_lib_svld_dlopen=yes
  10348. else
  10349. ac_cv_lib_svld_dlopen=no
  10350. fi
  10351. rm -f core conftest.err conftest.$ac_objext \
  10352. conftest$ac_exeext conftest.$ac_ext
  10353. LIBS=$ac_check_lib_save_LIBS
  10354. fi
  10355. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  10356. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  10357. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  10358. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  10359. else
  10360. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  10361. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  10362. if ${ac_cv_lib_dld_dld_link+:} false; then :
  10363. $as_echo_n "(cached) " >&6
  10364. else
  10365. ac_check_lib_save_LIBS=$LIBS
  10366. LIBS="-ldld $LIBS"
  10367. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10368. /* end confdefs.h. */
  10369. /* Override any GCC internal prototype to avoid an error.
  10370. Use char because int might match the return type of a GCC
  10371. builtin and then its argument prototype would still apply. */
  10372. #ifdef __cplusplus
  10373. extern "C"
  10374. #endif
  10375. char dld_link ();
  10376. int
  10377. main ()
  10378. {
  10379. return dld_link ();
  10380. ;
  10381. return 0;
  10382. }
  10383. _ACEOF
  10384. if ac_fn_c_try_link "$LINENO"; then :
  10385. ac_cv_lib_dld_dld_link=yes
  10386. else
  10387. ac_cv_lib_dld_dld_link=no
  10388. fi
  10389. rm -f core conftest.err conftest.$ac_objext \
  10390. conftest$ac_exeext conftest.$ac_ext
  10391. LIBS=$ac_check_lib_save_LIBS
  10392. fi
  10393. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  10394. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  10395. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  10396. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  10397. fi
  10398. fi
  10399. fi
  10400. fi
  10401. fi
  10402. fi
  10403. ;;
  10404. esac
  10405. if test "x$lt_cv_dlopen" != xno; then
  10406. enable_dlopen=yes
  10407. else
  10408. enable_dlopen=no
  10409. fi
  10410. case $lt_cv_dlopen in
  10411. dlopen)
  10412. save_CPPFLAGS="$CPPFLAGS"
  10413. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  10414. save_LDFLAGS="$LDFLAGS"
  10415. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  10416. save_LIBS="$LIBS"
  10417. LIBS="$lt_cv_dlopen_libs $LIBS"
  10418. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  10419. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  10420. if ${lt_cv_dlopen_self+:} false; then :
  10421. $as_echo_n "(cached) " >&6
  10422. else
  10423. if test "$cross_compiling" = yes; then :
  10424. lt_cv_dlopen_self=cross
  10425. else
  10426. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10427. lt_status=$lt_dlunknown
  10428. cat > conftest.$ac_ext <<_LT_EOF
  10429. #line $LINENO "configure"
  10430. #include "confdefs.h"
  10431. #if HAVE_DLFCN_H
  10432. #include <dlfcn.h>
  10433. #endif
  10434. #include <stdio.h>
  10435. #ifdef RTLD_GLOBAL
  10436. # define LT_DLGLOBAL RTLD_GLOBAL
  10437. #else
  10438. # ifdef DL_GLOBAL
  10439. # define LT_DLGLOBAL DL_GLOBAL
  10440. # else
  10441. # define LT_DLGLOBAL 0
  10442. # endif
  10443. #endif
  10444. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10445. find out it does not work in some platform. */
  10446. #ifndef LT_DLLAZY_OR_NOW
  10447. # ifdef RTLD_LAZY
  10448. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10449. # else
  10450. # ifdef DL_LAZY
  10451. # define LT_DLLAZY_OR_NOW DL_LAZY
  10452. # else
  10453. # ifdef RTLD_NOW
  10454. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10455. # else
  10456. # ifdef DL_NOW
  10457. # define LT_DLLAZY_OR_NOW DL_NOW
  10458. # else
  10459. # define LT_DLLAZY_OR_NOW 0
  10460. # endif
  10461. # endif
  10462. # endif
  10463. # endif
  10464. #endif
  10465. /* When -fvisbility=hidden is used, assume the code has been annotated
  10466. correspondingly for the symbols needed. */
  10467. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10468. int fnord () __attribute__((visibility("default")));
  10469. #endif
  10470. int fnord () { return 42; }
  10471. int main ()
  10472. {
  10473. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10474. int status = $lt_dlunknown;
  10475. if (self)
  10476. {
  10477. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10478. else
  10479. {
  10480. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10481. else puts (dlerror ());
  10482. }
  10483. /* dlclose (self); */
  10484. }
  10485. else
  10486. puts (dlerror ());
  10487. return status;
  10488. }
  10489. _LT_EOF
  10490. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10491. (eval $ac_link) 2>&5
  10492. ac_status=$?
  10493. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10494. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10495. (./conftest; exit; ) >&5 2>/dev/null
  10496. lt_status=$?
  10497. case x$lt_status in
  10498. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  10499. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  10500. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  10501. esac
  10502. else :
  10503. # compilation failed
  10504. lt_cv_dlopen_self=no
  10505. fi
  10506. fi
  10507. rm -fr conftest*
  10508. fi
  10509. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  10510. $as_echo "$lt_cv_dlopen_self" >&6; }
  10511. if test "x$lt_cv_dlopen_self" = xyes; then
  10512. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  10513. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  10514. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  10515. if ${lt_cv_dlopen_self_static+:} false; then :
  10516. $as_echo_n "(cached) " >&6
  10517. else
  10518. if test "$cross_compiling" = yes; then :
  10519. lt_cv_dlopen_self_static=cross
  10520. else
  10521. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10522. lt_status=$lt_dlunknown
  10523. cat > conftest.$ac_ext <<_LT_EOF
  10524. #line $LINENO "configure"
  10525. #include "confdefs.h"
  10526. #if HAVE_DLFCN_H
  10527. #include <dlfcn.h>
  10528. #endif
  10529. #include <stdio.h>
  10530. #ifdef RTLD_GLOBAL
  10531. # define LT_DLGLOBAL RTLD_GLOBAL
  10532. #else
  10533. # ifdef DL_GLOBAL
  10534. # define LT_DLGLOBAL DL_GLOBAL
  10535. # else
  10536. # define LT_DLGLOBAL 0
  10537. # endif
  10538. #endif
  10539. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10540. find out it does not work in some platform. */
  10541. #ifndef LT_DLLAZY_OR_NOW
  10542. # ifdef RTLD_LAZY
  10543. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10544. # else
  10545. # ifdef DL_LAZY
  10546. # define LT_DLLAZY_OR_NOW DL_LAZY
  10547. # else
  10548. # ifdef RTLD_NOW
  10549. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10550. # else
  10551. # ifdef DL_NOW
  10552. # define LT_DLLAZY_OR_NOW DL_NOW
  10553. # else
  10554. # define LT_DLLAZY_OR_NOW 0
  10555. # endif
  10556. # endif
  10557. # endif
  10558. # endif
  10559. #endif
  10560. /* When -fvisbility=hidden is used, assume the code has been annotated
  10561. correspondingly for the symbols needed. */
  10562. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10563. int fnord () __attribute__((visibility("default")));
  10564. #endif
  10565. int fnord () { return 42; }
  10566. int main ()
  10567. {
  10568. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10569. int status = $lt_dlunknown;
  10570. if (self)
  10571. {
  10572. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10573. else
  10574. {
  10575. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10576. else puts (dlerror ());
  10577. }
  10578. /* dlclose (self); */
  10579. }
  10580. else
  10581. puts (dlerror ());
  10582. return status;
  10583. }
  10584. _LT_EOF
  10585. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10586. (eval $ac_link) 2>&5
  10587. ac_status=$?
  10588. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10589. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10590. (./conftest; exit; ) >&5 2>/dev/null
  10591. lt_status=$?
  10592. case x$lt_status in
  10593. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  10594. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  10595. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  10596. esac
  10597. else :
  10598. # compilation failed
  10599. lt_cv_dlopen_self_static=no
  10600. fi
  10601. fi
  10602. rm -fr conftest*
  10603. fi
  10604. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  10605. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  10606. fi
  10607. CPPFLAGS="$save_CPPFLAGS"
  10608. LDFLAGS="$save_LDFLAGS"
  10609. LIBS="$save_LIBS"
  10610. ;;
  10611. esac
  10612. case $lt_cv_dlopen_self in
  10613. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  10614. *) enable_dlopen_self=unknown ;;
  10615. esac
  10616. case $lt_cv_dlopen_self_static in
  10617. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  10618. *) enable_dlopen_self_static=unknown ;;
  10619. esac
  10620. fi
  10621. striplib=
  10622. old_striplib=
  10623. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  10624. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  10625. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  10626. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  10627. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  10628. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10629. $as_echo "yes" >&6; }
  10630. else
  10631. # FIXME - insert some real tests, host_os isn't really good enough
  10632. case $host_os in
  10633. darwin*)
  10634. if test -n "$STRIP" ; then
  10635. striplib="$STRIP -x"
  10636. old_striplib="$STRIP -S"
  10637. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10638. $as_echo "yes" >&6; }
  10639. else
  10640. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10641. $as_echo "no" >&6; }
  10642. fi
  10643. ;;
  10644. *)
  10645. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10646. $as_echo "no" >&6; }
  10647. ;;
  10648. esac
  10649. fi
  10650. # Report which library types will actually be built
  10651. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  10652. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  10653. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  10654. $as_echo "$can_build_shared" >&6; }
  10655. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  10656. $as_echo_n "checking whether to build shared libraries... " >&6; }
  10657. test "$can_build_shared" = "no" && enable_shared=no
  10658. # On AIX, shared libraries and static libraries use the same namespace, and
  10659. # are all built from PIC.
  10660. case $host_os in
  10661. aix3*)
  10662. test "$enable_shared" = yes && enable_static=no
  10663. if test -n "$RANLIB"; then
  10664. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  10665. postinstall_cmds='$RANLIB $lib'
  10666. fi
  10667. ;;
  10668. aix[4-9]*)
  10669. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  10670. test "$enable_shared" = yes && enable_static=no
  10671. fi
  10672. ;;
  10673. esac
  10674. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  10675. $as_echo "$enable_shared" >&6; }
  10676. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  10677. $as_echo_n "checking whether to build static libraries... " >&6; }
  10678. # Make sure either enable_shared or enable_static is yes.
  10679. test "$enable_shared" = yes || enable_static=yes
  10680. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  10681. $as_echo "$enable_static" >&6; }
  10682. fi
  10683. ac_ext=c
  10684. ac_cpp='$CPP $CPPFLAGS'
  10685. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10686. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10687. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10688. CC="$lt_save_CC"
  10689. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  10690. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  10691. (test "X$CXX" != "Xg++"))) ; then
  10692. ac_ext=cpp
  10693. ac_cpp='$CXXCPP $CPPFLAGS'
  10694. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10695. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10696. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10697. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  10698. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  10699. if test -z "$CXXCPP"; then
  10700. if ${ac_cv_prog_CXXCPP+:} false; then :
  10701. $as_echo_n "(cached) " >&6
  10702. else
  10703. # Double quotes because CXXCPP needs to be expanded
  10704. for CXXCPP in "$CXX -E" "/lib/cpp"
  10705. do
  10706. ac_preproc_ok=false
  10707. for ac_cxx_preproc_warn_flag in '' yes
  10708. do
  10709. # Use a header file that comes with gcc, so configuring glibc
  10710. # with a fresh cross-compiler works.
  10711. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10712. # <limits.h> exists even on freestanding compilers.
  10713. # On the NeXT, cc -E runs the code through the compiler's parser,
  10714. # not just through cpp. "Syntax error" is here to catch this case.
  10715. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10716. /* end confdefs.h. */
  10717. #ifdef __STDC__
  10718. # include <limits.h>
  10719. #else
  10720. # include <assert.h>
  10721. #endif
  10722. Syntax error
  10723. _ACEOF
  10724. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10725. else
  10726. # Broken: fails on valid input.
  10727. continue
  10728. fi
  10729. rm -f conftest.err conftest.i conftest.$ac_ext
  10730. # OK, works on sane cases. Now check whether nonexistent headers
  10731. # can be detected and how.
  10732. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10733. /* end confdefs.h. */
  10734. #include <ac_nonexistent.h>
  10735. _ACEOF
  10736. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10737. # Broken: success on invalid input.
  10738. continue
  10739. else
  10740. # Passes both tests.
  10741. ac_preproc_ok=:
  10742. break
  10743. fi
  10744. rm -f conftest.err conftest.i conftest.$ac_ext
  10745. done
  10746. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10747. rm -f conftest.i conftest.err conftest.$ac_ext
  10748. if $ac_preproc_ok; then :
  10749. break
  10750. fi
  10751. done
  10752. ac_cv_prog_CXXCPP=$CXXCPP
  10753. fi
  10754. CXXCPP=$ac_cv_prog_CXXCPP
  10755. else
  10756. ac_cv_prog_CXXCPP=$CXXCPP
  10757. fi
  10758. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  10759. $as_echo "$CXXCPP" >&6; }
  10760. ac_preproc_ok=false
  10761. for ac_cxx_preproc_warn_flag in '' yes
  10762. do
  10763. # Use a header file that comes with gcc, so configuring glibc
  10764. # with a fresh cross-compiler works.
  10765. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10766. # <limits.h> exists even on freestanding compilers.
  10767. # On the NeXT, cc -E runs the code through the compiler's parser,
  10768. # not just through cpp. "Syntax error" is here to catch this case.
  10769. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10770. /* end confdefs.h. */
  10771. #ifdef __STDC__
  10772. # include <limits.h>
  10773. #else
  10774. # include <assert.h>
  10775. #endif
  10776. Syntax error
  10777. _ACEOF
  10778. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10779. else
  10780. # Broken: fails on valid input.
  10781. continue
  10782. fi
  10783. rm -f conftest.err conftest.i conftest.$ac_ext
  10784. # OK, works on sane cases. Now check whether nonexistent headers
  10785. # can be detected and how.
  10786. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10787. /* end confdefs.h. */
  10788. #include <ac_nonexistent.h>
  10789. _ACEOF
  10790. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10791. # Broken: success on invalid input.
  10792. continue
  10793. else
  10794. # Passes both tests.
  10795. ac_preproc_ok=:
  10796. break
  10797. fi
  10798. rm -f conftest.err conftest.i conftest.$ac_ext
  10799. done
  10800. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10801. rm -f conftest.i conftest.err conftest.$ac_ext
  10802. if $ac_preproc_ok; then :
  10803. else
  10804. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10805. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10806. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  10807. See \`config.log' for more details" "$LINENO" 5; }
  10808. fi
  10809. ac_ext=c
  10810. ac_cpp='$CPP $CPPFLAGS'
  10811. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10812. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10813. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10814. else
  10815. _lt_caught_CXX_error=yes
  10816. fi
  10817. ac_ext=cpp
  10818. ac_cpp='$CXXCPP $CPPFLAGS'
  10819. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10820. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10821. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10822. archive_cmds_need_lc_CXX=no
  10823. allow_undefined_flag_CXX=
  10824. always_export_symbols_CXX=no
  10825. archive_expsym_cmds_CXX=
  10826. compiler_needs_object_CXX=no
  10827. export_dynamic_flag_spec_CXX=
  10828. hardcode_direct_CXX=no
  10829. hardcode_direct_absolute_CXX=no
  10830. hardcode_libdir_flag_spec_CXX=
  10831. hardcode_libdir_flag_spec_ld_CXX=
  10832. hardcode_libdir_separator_CXX=
  10833. hardcode_minus_L_CXX=no
  10834. hardcode_shlibpath_var_CXX=unsupported
  10835. hardcode_automatic_CXX=no
  10836. inherit_rpath_CXX=no
  10837. module_cmds_CXX=
  10838. module_expsym_cmds_CXX=
  10839. link_all_deplibs_CXX=unknown
  10840. old_archive_cmds_CXX=$old_archive_cmds
  10841. reload_flag_CXX=$reload_flag
  10842. reload_cmds_CXX=$reload_cmds
  10843. no_undefined_flag_CXX=
  10844. whole_archive_flag_spec_CXX=
  10845. enable_shared_with_static_runtimes_CXX=no
  10846. # Source file extension for C++ test sources.
  10847. ac_ext=cpp
  10848. # Object file extension for compiled C++ test sources.
  10849. objext=o
  10850. objext_CXX=$objext
  10851. # No sense in running all these tests if we already determined that
  10852. # the CXX compiler isn't working. Some variables (like enable_shared)
  10853. # are currently assumed to apply to all compilers on this platform,
  10854. # and will be corrupted by setting them based on a non-working compiler.
  10855. if test "$_lt_caught_CXX_error" != yes; then
  10856. # Code to be used in simple compile tests
  10857. lt_simple_compile_test_code="int some_variable = 0;"
  10858. # Code to be used in simple link tests
  10859. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  10860. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10861. # If no C compiler was specified, use CC.
  10862. LTCC=${LTCC-"$CC"}
  10863. # If no C compiler flags were specified, use CFLAGS.
  10864. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10865. # Allow CC to be a program name with arguments.
  10866. compiler=$CC
  10867. # save warnings/boilerplate of simple test code
  10868. ac_outfile=conftest.$ac_objext
  10869. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10870. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10871. _lt_compiler_boilerplate=`cat conftest.err`
  10872. $RM conftest*
  10873. ac_outfile=conftest.$ac_objext
  10874. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10875. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10876. _lt_linker_boilerplate=`cat conftest.err`
  10877. $RM -r conftest*
  10878. # Allow CC to be a program name with arguments.
  10879. lt_save_CC=$CC
  10880. lt_save_CFLAGS=$CFLAGS
  10881. lt_save_LD=$LD
  10882. lt_save_GCC=$GCC
  10883. GCC=$GXX
  10884. lt_save_with_gnu_ld=$with_gnu_ld
  10885. lt_save_path_LD=$lt_cv_path_LD
  10886. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  10887. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  10888. else
  10889. $as_unset lt_cv_prog_gnu_ld
  10890. fi
  10891. if test -n "${lt_cv_path_LDCXX+set}"; then
  10892. lt_cv_path_LD=$lt_cv_path_LDCXX
  10893. else
  10894. $as_unset lt_cv_path_LD
  10895. fi
  10896. test -z "${LDCXX+set}" || LD=$LDCXX
  10897. CC=${CXX-"c++"}
  10898. CFLAGS=$CXXFLAGS
  10899. compiler=$CC
  10900. compiler_CXX=$CC
  10901. for cc_temp in $compiler""; do
  10902. case $cc_temp in
  10903. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  10904. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  10905. \-*) ;;
  10906. *) break;;
  10907. esac
  10908. done
  10909. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  10910. if test -n "$compiler"; then
  10911. # We don't want -fno-exception when compiling C++ code, so set the
  10912. # no_builtin_flag separately
  10913. if test "$GXX" = yes; then
  10914. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  10915. else
  10916. lt_prog_compiler_no_builtin_flag_CXX=
  10917. fi
  10918. if test "$GXX" = yes; then
  10919. # Set up default GNU C++ configuration
  10920. # Check whether --with-gnu-ld was given.
  10921. if test "${with_gnu_ld+set}" = set; then :
  10922. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  10923. else
  10924. with_gnu_ld=no
  10925. fi
  10926. ac_prog=ld
  10927. if test "$GCC" = yes; then
  10928. # Check if gcc -print-prog-name=ld gives a path.
  10929. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  10930. $as_echo_n "checking for ld used by $CC... " >&6; }
  10931. case $host in
  10932. *-*-mingw*)
  10933. # gcc leaves a trailing carriage return which upsets mingw
  10934. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  10935. *)
  10936. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  10937. esac
  10938. case $ac_prog in
  10939. # Accept absolute paths.
  10940. [\\/]* | ?:[\\/]*)
  10941. re_direlt='/[^/][^/]*/\.\./'
  10942. # Canonicalize the pathname of ld
  10943. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  10944. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  10945. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  10946. done
  10947. test -z "$LD" && LD="$ac_prog"
  10948. ;;
  10949. "")
  10950. # If it fails, then pretend we aren't using GCC.
  10951. ac_prog=ld
  10952. ;;
  10953. *)
  10954. # If it is relative, then search for the first ld in PATH.
  10955. with_gnu_ld=unknown
  10956. ;;
  10957. esac
  10958. elif test "$with_gnu_ld" = yes; then
  10959. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  10960. $as_echo_n "checking for GNU ld... " >&6; }
  10961. else
  10962. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  10963. $as_echo_n "checking for non-GNU ld... " >&6; }
  10964. fi
  10965. if ${lt_cv_path_LD+:} false; then :
  10966. $as_echo_n "(cached) " >&6
  10967. else
  10968. if test -z "$LD"; then
  10969. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  10970. for ac_dir in $PATH; do
  10971. IFS="$lt_save_ifs"
  10972. test -z "$ac_dir" && ac_dir=.
  10973. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  10974. lt_cv_path_LD="$ac_dir/$ac_prog"
  10975. # Check to see if the program is GNU ld. I'd rather use --version,
  10976. # but apparently some variants of GNU ld only accept -v.
  10977. # Break only if it was the GNU/non-GNU ld that we prefer.
  10978. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  10979. *GNU* | *'with BFD'*)
  10980. test "$with_gnu_ld" != no && break
  10981. ;;
  10982. *)
  10983. test "$with_gnu_ld" != yes && break
  10984. ;;
  10985. esac
  10986. fi
  10987. done
  10988. IFS="$lt_save_ifs"
  10989. else
  10990. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  10991. fi
  10992. fi
  10993. LD="$lt_cv_path_LD"
  10994. if test -n "$LD"; then
  10995. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  10996. $as_echo "$LD" >&6; }
  10997. else
  10998. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10999. $as_echo "no" >&6; }
  11000. fi
  11001. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  11002. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  11003. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  11004. if ${lt_cv_prog_gnu_ld+:} false; then :
  11005. $as_echo_n "(cached) " >&6
  11006. else
  11007. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  11008. case `$LD -v 2>&1 </dev/null` in
  11009. *GNU* | *'with BFD'*)
  11010. lt_cv_prog_gnu_ld=yes
  11011. ;;
  11012. *)
  11013. lt_cv_prog_gnu_ld=no
  11014. ;;
  11015. esac
  11016. fi
  11017. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  11018. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  11019. with_gnu_ld=$lt_cv_prog_gnu_ld
  11020. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  11021. # archiving commands below assume that GNU ld is being used.
  11022. if test "$with_gnu_ld" = yes; then
  11023. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11024. archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  11025. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11026. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11027. # If archive_cmds runs LD, not CC, wlarc should be empty
  11028. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  11029. # investigate it a little bit more. (MM)
  11030. wlarc='${wl}'
  11031. # ancient GNU ld didn't support --whole-archive et. al.
  11032. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  11033. $GREP 'no-whole-archive' > /dev/null; then
  11034. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11035. else
  11036. whole_archive_flag_spec_CXX=
  11037. fi
  11038. else
  11039. with_gnu_ld=no
  11040. wlarc=
  11041. # A generic and very simple default shared library creation
  11042. # command for GNU C++ for the case where it uses the native
  11043. # linker, instead of GNU ld. If possible, this setting should
  11044. # overridden to take advantage of the native linker features on
  11045. # the platform it is being used on.
  11046. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11047. fi
  11048. # Commands to make compiler produce verbose output that lists
  11049. # what "hidden" libraries, object files and flags are used when
  11050. # linking a shared library.
  11051. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11052. else
  11053. GXX=no
  11054. with_gnu_ld=no
  11055. wlarc=
  11056. fi
  11057. # PORTME: fill in a description of your system's C++ link characteristics
  11058. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  11059. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  11060. ld_shlibs_CXX=yes
  11061. case $host_os in
  11062. aix3*)
  11063. # FIXME: insert proper C++ library support
  11064. ld_shlibs_CXX=no
  11065. ;;
  11066. aix[4-9]*)
  11067. if test "$host_cpu" = ia64; then
  11068. # On IA64, the linker does run time linking by default, so we don't
  11069. # have to do anything special.
  11070. aix_use_runtimelinking=no
  11071. exp_sym_flag='-Bexport'
  11072. no_entry_flag=""
  11073. else
  11074. aix_use_runtimelinking=no
  11075. # Test if we are trying to use run time linking or normal
  11076. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  11077. # need to do runtime linking.
  11078. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  11079. for ld_flag in $LDFLAGS; do
  11080. case $ld_flag in
  11081. *-brtl*)
  11082. aix_use_runtimelinking=yes
  11083. break
  11084. ;;
  11085. esac
  11086. done
  11087. ;;
  11088. esac
  11089. exp_sym_flag='-bexport'
  11090. no_entry_flag='-bnoentry'
  11091. fi
  11092. # When large executables or shared objects are built, AIX ld can
  11093. # have problems creating the table of contents. If linking a library
  11094. # or program results in "error TOC overflow" add -mminimal-toc to
  11095. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  11096. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  11097. archive_cmds_CXX=''
  11098. hardcode_direct_CXX=yes
  11099. hardcode_direct_absolute_CXX=yes
  11100. hardcode_libdir_separator_CXX=':'
  11101. link_all_deplibs_CXX=yes
  11102. file_list_spec_CXX='${wl}-f,'
  11103. if test "$GXX" = yes; then
  11104. case $host_os in aix4.[012]|aix4.[012].*)
  11105. # We only want to do this on AIX 4.2 and lower, the check
  11106. # below for broken collect2 doesn't work under 4.3+
  11107. collect2name=`${CC} -print-prog-name=collect2`
  11108. if test -f "$collect2name" &&
  11109. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  11110. then
  11111. # We have reworked collect2
  11112. :
  11113. else
  11114. # We have old collect2
  11115. hardcode_direct_CXX=unsupported
  11116. # It fails to find uninstalled libraries when the uninstalled
  11117. # path is not listed in the libpath. Setting hardcode_minus_L
  11118. # to unsupported forces relinking
  11119. hardcode_minus_L_CXX=yes
  11120. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11121. hardcode_libdir_separator_CXX=
  11122. fi
  11123. esac
  11124. shared_flag='-shared'
  11125. if test "$aix_use_runtimelinking" = yes; then
  11126. shared_flag="$shared_flag "'${wl}-G'
  11127. fi
  11128. else
  11129. # not using gcc
  11130. if test "$host_cpu" = ia64; then
  11131. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  11132. # chokes on -Wl,-G. The following line is correct:
  11133. shared_flag='-G'
  11134. else
  11135. if test "$aix_use_runtimelinking" = yes; then
  11136. shared_flag='${wl}-G'
  11137. else
  11138. shared_flag='${wl}-bM:SRE'
  11139. fi
  11140. fi
  11141. fi
  11142. export_dynamic_flag_spec_CXX='${wl}-bexpall'
  11143. # It seems that -bexpall does not export symbols beginning with
  11144. # underscore (_), so it is better to generate a list of symbols to
  11145. # export.
  11146. always_export_symbols_CXX=yes
  11147. if test "$aix_use_runtimelinking" = yes; then
  11148. # Warning - without using the other runtime loading flags (-brtl),
  11149. # -berok will link without error, but may produce a broken library.
  11150. allow_undefined_flag_CXX='-berok'
  11151. # Determine the default libpath from the value encoded in an empty
  11152. # executable.
  11153. if test "${lt_cv_aix_libpath+set}" = set; then
  11154. aix_libpath=$lt_cv_aix_libpath
  11155. else
  11156. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11157. $as_echo_n "(cached) " >&6
  11158. else
  11159. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11160. /* end confdefs.h. */
  11161. int
  11162. main ()
  11163. {
  11164. ;
  11165. return 0;
  11166. }
  11167. _ACEOF
  11168. if ac_fn_cxx_try_link "$LINENO"; then :
  11169. lt_aix_libpath_sed='
  11170. /Import File Strings/,/^$/ {
  11171. /^0/ {
  11172. s/^0 *\([^ ]*\) *$/\1/
  11173. p
  11174. }
  11175. }'
  11176. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11177. # Check for a 64-bit object if we didn't find anything.
  11178. if test -z "$lt_cv_aix_libpath__CXX"; then
  11179. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11180. fi
  11181. fi
  11182. rm -f core conftest.err conftest.$ac_objext \
  11183. conftest$ac_exeext conftest.$ac_ext
  11184. if test -z "$lt_cv_aix_libpath__CXX"; then
  11185. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  11186. fi
  11187. fi
  11188. aix_libpath=$lt_cv_aix_libpath__CXX
  11189. fi
  11190. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11191. 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"
  11192. else
  11193. if test "$host_cpu" = ia64; then
  11194. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  11195. allow_undefined_flag_CXX="-z nodefs"
  11196. 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"
  11197. else
  11198. # Determine the default libpath from the value encoded in an
  11199. # empty executable.
  11200. if test "${lt_cv_aix_libpath+set}" = set; then
  11201. aix_libpath=$lt_cv_aix_libpath
  11202. else
  11203. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11204. $as_echo_n "(cached) " >&6
  11205. else
  11206. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11207. /* end confdefs.h. */
  11208. int
  11209. main ()
  11210. {
  11211. ;
  11212. return 0;
  11213. }
  11214. _ACEOF
  11215. if ac_fn_cxx_try_link "$LINENO"; then :
  11216. lt_aix_libpath_sed='
  11217. /Import File Strings/,/^$/ {
  11218. /^0/ {
  11219. s/^0 *\([^ ]*\) *$/\1/
  11220. p
  11221. }
  11222. }'
  11223. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11224. # Check for a 64-bit object if we didn't find anything.
  11225. if test -z "$lt_cv_aix_libpath__CXX"; then
  11226. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11227. fi
  11228. fi
  11229. rm -f core conftest.err conftest.$ac_objext \
  11230. conftest$ac_exeext conftest.$ac_ext
  11231. if test -z "$lt_cv_aix_libpath__CXX"; then
  11232. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  11233. fi
  11234. fi
  11235. aix_libpath=$lt_cv_aix_libpath__CXX
  11236. fi
  11237. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11238. # Warning - without using the other run time loading flags,
  11239. # -berok will link without error, but may produce a broken library.
  11240. no_undefined_flag_CXX=' ${wl}-bernotok'
  11241. allow_undefined_flag_CXX=' ${wl}-berok'
  11242. if test "$with_gnu_ld" = yes; then
  11243. # We only use this code for GNU lds that support --whole-archive.
  11244. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11245. else
  11246. # Exported symbols can be pulled into shared objects from archives
  11247. whole_archive_flag_spec_CXX='$convenience'
  11248. fi
  11249. archive_cmds_need_lc_CXX=yes
  11250. # This is similar to how AIX traditionally builds its shared
  11251. # libraries.
  11252. 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'
  11253. fi
  11254. fi
  11255. ;;
  11256. beos*)
  11257. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11258. allow_undefined_flag_CXX=unsupported
  11259. # Joseph Beckenbach <[email protected]> says some releases of gcc
  11260. # support --undefined. This deserves some investigation. FIXME
  11261. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11262. else
  11263. ld_shlibs_CXX=no
  11264. fi
  11265. ;;
  11266. chorus*)
  11267. case $cc_basename in
  11268. *)
  11269. # FIXME: insert proper C++ library support
  11270. ld_shlibs_CXX=no
  11271. ;;
  11272. esac
  11273. ;;
  11274. cygwin* | mingw* | pw32* | cegcc*)
  11275. case $GXX,$cc_basename in
  11276. ,cl* | no,cl*)
  11277. # Native MSVC
  11278. # hardcode_libdir_flag_spec is actually meaningless, as there is
  11279. # no search path for DLLs.
  11280. hardcode_libdir_flag_spec_CXX=' '
  11281. allow_undefined_flag_CXX=unsupported
  11282. always_export_symbols_CXX=yes
  11283. file_list_spec_CXX='@'
  11284. # Tell ltmain to make .lib files, not .a files.
  11285. libext=lib
  11286. # Tell ltmain to make .dll files, not .so files.
  11287. shrext_cmds=".dll"
  11288. # FIXME: Setting linknames here is a bad hack.
  11289. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  11290. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11291. $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  11292. else
  11293. $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  11294. fi~
  11295. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  11296. linknames='
  11297. # The linker will not automatically build a static lib if we build a DLL.
  11298. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  11299. enable_shared_with_static_runtimes_CXX=yes
  11300. # Don't use ranlib
  11301. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  11302. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  11303. lt_tool_outputfile="@TOOL_OUTPUT@"~
  11304. case $lt_outputfile in
  11305. *.exe|*.EXE) ;;
  11306. *)
  11307. lt_outputfile="$lt_outputfile.exe"
  11308. lt_tool_outputfile="$lt_tool_outputfile.exe"
  11309. ;;
  11310. esac~
  11311. func_to_tool_file "$lt_outputfile"~
  11312. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  11313. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  11314. $RM "$lt_outputfile.manifest";
  11315. fi'
  11316. ;;
  11317. *)
  11318. # g++
  11319. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  11320. # as there is no search path for DLLs.
  11321. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11322. export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
  11323. allow_undefined_flag_CXX=unsupported
  11324. always_export_symbols_CXX=no
  11325. enable_shared_with_static_runtimes_CXX=yes
  11326. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  11327. 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'
  11328. # If the export-symbols file already is a .def file (1st line
  11329. # is EXPORTS), use it as is; otherwise, prepend...
  11330. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11331. cp $export_symbols $output_objdir/$soname.def;
  11332. else
  11333. echo EXPORTS > $output_objdir/$soname.def;
  11334. cat $export_symbols >> $output_objdir/$soname.def;
  11335. fi~
  11336. $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'
  11337. else
  11338. ld_shlibs_CXX=no
  11339. fi
  11340. ;;
  11341. esac
  11342. ;;
  11343. darwin* | rhapsody*)
  11344. archive_cmds_need_lc_CXX=no
  11345. hardcode_direct_CXX=no
  11346. hardcode_automatic_CXX=yes
  11347. hardcode_shlibpath_var_CXX=unsupported
  11348. if test "$lt_cv_ld_force_load" = "yes"; then
  11349. 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\"`'
  11350. else
  11351. whole_archive_flag_spec_CXX=''
  11352. fi
  11353. link_all_deplibs_CXX=yes
  11354. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  11355. case $cc_basename in
  11356. ifort*) _lt_dar_can_shared=yes ;;
  11357. *) _lt_dar_can_shared=$GCC ;;
  11358. esac
  11359. if test "$_lt_dar_can_shared" = "yes"; then
  11360. output_verbose_link_cmd=func_echo_all
  11361. 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}"
  11362. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  11363. 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}"
  11364. 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}"
  11365. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  11366. 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}"
  11367. 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}"
  11368. fi
  11369. else
  11370. ld_shlibs_CXX=no
  11371. fi
  11372. ;;
  11373. dgux*)
  11374. case $cc_basename in
  11375. ec++*)
  11376. # FIXME: insert proper C++ library support
  11377. ld_shlibs_CXX=no
  11378. ;;
  11379. ghcx*)
  11380. # Green Hills C++ Compiler
  11381. # FIXME: insert proper C++ library support
  11382. ld_shlibs_CXX=no
  11383. ;;
  11384. *)
  11385. # FIXME: insert proper C++ library support
  11386. ld_shlibs_CXX=no
  11387. ;;
  11388. esac
  11389. ;;
  11390. freebsd[12]*)
  11391. # C++ shared libraries reported to be fairly broken before
  11392. # switch to ELF
  11393. ld_shlibs_CXX=no
  11394. ;;
  11395. freebsd-elf*)
  11396. archive_cmds_need_lc_CXX=no
  11397. ;;
  11398. freebsd* | dragonfly*)
  11399. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  11400. # conventions
  11401. ld_shlibs_CXX=yes
  11402. ;;
  11403. gnu*)
  11404. ;;
  11405. haiku*)
  11406. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11407. link_all_deplibs_CXX=yes
  11408. ;;
  11409. hpux9*)
  11410. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11411. hardcode_libdir_separator_CXX=:
  11412. export_dynamic_flag_spec_CXX='${wl}-E'
  11413. hardcode_direct_CXX=yes
  11414. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11415. # but as the default
  11416. # location of the library.
  11417. case $cc_basename in
  11418. CC*)
  11419. # FIXME: insert proper C++ library support
  11420. ld_shlibs_CXX=no
  11421. ;;
  11422. aCC*)
  11423. 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'
  11424. # Commands to make compiler produce verbose output that lists
  11425. # what "hidden" libraries, object files and flags are used when
  11426. # linking a shared library.
  11427. #
  11428. # There doesn't appear to be a way to prevent this compiler from
  11429. # explicitly linking system object files so we need to strip them
  11430. # from the output so that they don't get included in the library
  11431. # dependencies.
  11432. 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"'
  11433. ;;
  11434. *)
  11435. if test "$GXX" = yes; then
  11436. archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  11437. else
  11438. # FIXME: insert proper C++ library support
  11439. ld_shlibs_CXX=no
  11440. fi
  11441. ;;
  11442. esac
  11443. ;;
  11444. hpux10*|hpux11*)
  11445. if test $with_gnu_ld = no; then
  11446. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11447. hardcode_libdir_separator_CXX=:
  11448. case $host_cpu in
  11449. hppa*64*|ia64*)
  11450. ;;
  11451. *)
  11452. export_dynamic_flag_spec_CXX='${wl}-E'
  11453. ;;
  11454. esac
  11455. fi
  11456. case $host_cpu in
  11457. hppa*64*|ia64*)
  11458. hardcode_direct_CXX=no
  11459. hardcode_shlibpath_var_CXX=no
  11460. ;;
  11461. *)
  11462. hardcode_direct_CXX=yes
  11463. hardcode_direct_absolute_CXX=yes
  11464. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11465. # but as the default
  11466. # location of the library.
  11467. ;;
  11468. esac
  11469. case $cc_basename in
  11470. CC*)
  11471. # FIXME: insert proper C++ library support
  11472. ld_shlibs_CXX=no
  11473. ;;
  11474. aCC*)
  11475. case $host_cpu in
  11476. hppa*64*)
  11477. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11478. ;;
  11479. ia64*)
  11480. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11481. ;;
  11482. *)
  11483. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11484. ;;
  11485. esac
  11486. # Commands to make compiler produce verbose output that lists
  11487. # what "hidden" libraries, object files and flags are used when
  11488. # linking a shared library.
  11489. #
  11490. # There doesn't appear to be a way to prevent this compiler from
  11491. # explicitly linking system object files so we need to strip them
  11492. # from the output so that they don't get included in the library
  11493. # dependencies.
  11494. 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"'
  11495. ;;
  11496. *)
  11497. if test "$GXX" = yes; then
  11498. if test $with_gnu_ld = no; then
  11499. case $host_cpu in
  11500. hppa*64*)
  11501. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11502. ;;
  11503. ia64*)
  11504. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11505. ;;
  11506. *)
  11507. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11508. ;;
  11509. esac
  11510. fi
  11511. else
  11512. # FIXME: insert proper C++ library support
  11513. ld_shlibs_CXX=no
  11514. fi
  11515. ;;
  11516. esac
  11517. ;;
  11518. interix[3-9]*)
  11519. hardcode_direct_CXX=no
  11520. hardcode_shlibpath_var_CXX=no
  11521. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11522. export_dynamic_flag_spec_CXX='${wl}-E'
  11523. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  11524. # Instead, shared libraries are loaded at an image base (0x10000000 by
  11525. # default) and relocated if they conflict, which is a slow very memory
  11526. # consuming and fragmenting process. To avoid this, we pick a random,
  11527. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  11528. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  11529. 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'
  11530. 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'
  11531. ;;
  11532. irix5* | irix6*)
  11533. case $cc_basename in
  11534. CC*)
  11535. # SGI C++
  11536. 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'
  11537. # Archives containing C++ object files must be created using
  11538. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  11539. # necessary to make sure instantiated templates are included
  11540. # in the archive.
  11541. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  11542. ;;
  11543. *)
  11544. if test "$GXX" = yes; then
  11545. if test "$with_gnu_ld" = no; then
  11546. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  11547. else
  11548. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
  11549. fi
  11550. fi
  11551. link_all_deplibs_CXX=yes
  11552. ;;
  11553. esac
  11554. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11555. hardcode_libdir_separator_CXX=:
  11556. inherit_rpath_CXX=yes
  11557. ;;
  11558. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  11559. case $cc_basename in
  11560. KCC*)
  11561. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11562. # KCC will only create a shared library if the output file
  11563. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11564. # to its proper name (with version) after linking.
  11565. 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'
  11566. 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'
  11567. # Commands to make compiler produce verbose output that lists
  11568. # what "hidden" libraries, object files and flags are used when
  11569. # linking a shared library.
  11570. #
  11571. # There doesn't appear to be a way to prevent this compiler from
  11572. # explicitly linking system object files so we need to strip them
  11573. # from the output so that they don't get included in the library
  11574. # dependencies.
  11575. 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"'
  11576. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11577. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11578. # Archives containing C++ object files must be created using
  11579. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  11580. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  11581. ;;
  11582. icpc* | ecpc* )
  11583. # Intel C++
  11584. with_gnu_ld=yes
  11585. # version 8.0 and above of icpc choke on multiply defined symbols
  11586. # if we add $predep_objects and $postdep_objects, however 7.1 and
  11587. # earlier do not add the objects themselves.
  11588. case `$CC -V 2>&1` in
  11589. *"Version 7."*)
  11590. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11591. 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'
  11592. ;;
  11593. *) # Version 8.0 or newer
  11594. tmp_idyn=
  11595. case $host_cpu in
  11596. ia64*) tmp_idyn=' -i_dynamic';;
  11597. esac
  11598. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11599. 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'
  11600. ;;
  11601. esac
  11602. archive_cmds_need_lc_CXX=no
  11603. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11604. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11605. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11606. ;;
  11607. pgCC* | pgcpp*)
  11608. # Portland Group C++ compiler
  11609. case `$CC -V` in
  11610. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  11611. prelink_cmds_CXX='tpldir=Template.dir~
  11612. rm -rf $tpldir~
  11613. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  11614. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  11615. old_archive_cmds_CXX='tpldir=Template.dir~
  11616. rm -rf $tpldir~
  11617. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  11618. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  11619. $RANLIB $oldlib'
  11620. archive_cmds_CXX='tpldir=Template.dir~
  11621. rm -rf $tpldir~
  11622. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11623. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11624. archive_expsym_cmds_CXX='tpldir=Template.dir~
  11625. rm -rf $tpldir~
  11626. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11627. $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'
  11628. ;;
  11629. *) # Version 6 and above use weak symbols
  11630. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11631. 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'
  11632. ;;
  11633. esac
  11634. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  11635. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11636. 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'
  11637. ;;
  11638. cxx*)
  11639. # Compaq C++
  11640. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11641. 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'
  11642. runpath_var=LD_RUN_PATH
  11643. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11644. hardcode_libdir_separator_CXX=:
  11645. # Commands to make compiler produce verbose output that lists
  11646. # what "hidden" libraries, object files and flags are used when
  11647. # linking a shared library.
  11648. #
  11649. # There doesn't appear to be a way to prevent this compiler from
  11650. # explicitly linking system object files so we need to strip them
  11651. # from the output so that they don't get included in the library
  11652. # dependencies.
  11653. 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'
  11654. ;;
  11655. xl* | mpixl* | bgxl*)
  11656. # IBM XL 8.0 on PPC, with GNU ld
  11657. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11658. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11659. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11660. if test "x$supports_anon_versioning" = xyes; then
  11661. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  11662. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  11663. echo "local: *; };" >> $output_objdir/$libname.ver~
  11664. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  11665. fi
  11666. ;;
  11667. *)
  11668. case `$CC -V 2>&1 | sed 5q` in
  11669. *Sun\ C*)
  11670. # Sun C++ 5.9
  11671. no_undefined_flag_CXX=' -zdefs'
  11672. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11673. 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'
  11674. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11675. 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'
  11676. compiler_needs_object_CXX=yes
  11677. # Not sure whether something based on
  11678. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  11679. # would be better.
  11680. output_verbose_link_cmd='func_echo_all'
  11681. # Archives containing C++ object files must be created using
  11682. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11683. # necessary to make sure instantiated templates are included
  11684. # in the archive.
  11685. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11686. ;;
  11687. esac
  11688. ;;
  11689. esac
  11690. ;;
  11691. lynxos*)
  11692. # FIXME: insert proper C++ library support
  11693. ld_shlibs_CXX=no
  11694. ;;
  11695. m88k*)
  11696. # FIXME: insert proper C++ library support
  11697. ld_shlibs_CXX=no
  11698. ;;
  11699. mvs*)
  11700. case $cc_basename in
  11701. cxx*)
  11702. # FIXME: insert proper C++ library support
  11703. ld_shlibs_CXX=no
  11704. ;;
  11705. *)
  11706. # FIXME: insert proper C++ library support
  11707. ld_shlibs_CXX=no
  11708. ;;
  11709. esac
  11710. ;;
  11711. netbsd*)
  11712. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11713. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  11714. wlarc=
  11715. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11716. hardcode_direct_CXX=yes
  11717. hardcode_shlibpath_var_CXX=no
  11718. fi
  11719. # Workaround some broken pre-1.5 toolchains
  11720. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  11721. ;;
  11722. *nto* | *qnx*)
  11723. ld_shlibs_CXX=yes
  11724. ;;
  11725. openbsd2*)
  11726. # C++ shared libraries are fairly broken
  11727. ld_shlibs_CXX=no
  11728. ;;
  11729. openbsd*)
  11730. if test -f /usr/libexec/ld.so; then
  11731. hardcode_direct_CXX=yes
  11732. hardcode_shlibpath_var_CXX=no
  11733. hardcode_direct_absolute_CXX=yes
  11734. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11735. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11736. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11737. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  11738. export_dynamic_flag_spec_CXX='${wl}-E'
  11739. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11740. fi
  11741. output_verbose_link_cmd=func_echo_all
  11742. else
  11743. ld_shlibs_CXX=no
  11744. fi
  11745. ;;
  11746. osf3* | osf4* | osf5*)
  11747. case $cc_basename in
  11748. KCC*)
  11749. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11750. # KCC will only create a shared library if the output file
  11751. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11752. # to its proper name (with version) after linking.
  11753. 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'
  11754. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11755. hardcode_libdir_separator_CXX=:
  11756. # Archives containing C++ object files must be created using
  11757. # the KAI C++ compiler.
  11758. case $host in
  11759. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  11760. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  11761. esac
  11762. ;;
  11763. RCC*)
  11764. # Rational C++ 2.4.1
  11765. # FIXME: insert proper C++ library support
  11766. ld_shlibs_CXX=no
  11767. ;;
  11768. cxx*)
  11769. case $host in
  11770. osf3*)
  11771. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11772. 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'
  11773. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11774. ;;
  11775. *)
  11776. allow_undefined_flag_CXX=' -expect_unresolved \*'
  11777. 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'
  11778. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  11779. echo "-hidden">> $lib.exp~
  11780. $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~
  11781. $RM $lib.exp'
  11782. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11783. ;;
  11784. esac
  11785. hardcode_libdir_separator_CXX=:
  11786. # Commands to make compiler produce verbose output that lists
  11787. # what "hidden" libraries, object files and flags are used when
  11788. # linking a shared library.
  11789. #
  11790. # There doesn't appear to be a way to prevent this compiler from
  11791. # explicitly linking system object files so we need to strip them
  11792. # from the output so that they don't get included in the library
  11793. # dependencies.
  11794. 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"'
  11795. ;;
  11796. *)
  11797. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11798. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11799. case $host in
  11800. osf3*)
  11801. 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'
  11802. ;;
  11803. *)
  11804. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  11805. ;;
  11806. esac
  11807. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11808. hardcode_libdir_separator_CXX=:
  11809. # Commands to make compiler produce verbose output that lists
  11810. # what "hidden" libraries, object files and flags are used when
  11811. # linking a shared library.
  11812. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11813. else
  11814. # FIXME: insert proper C++ library support
  11815. ld_shlibs_CXX=no
  11816. fi
  11817. ;;
  11818. esac
  11819. ;;
  11820. psos*)
  11821. # FIXME: insert proper C++ library support
  11822. ld_shlibs_CXX=no
  11823. ;;
  11824. sunos4*)
  11825. case $cc_basename in
  11826. CC*)
  11827. # Sun C++ 4.x
  11828. # FIXME: insert proper C++ library support
  11829. ld_shlibs_CXX=no
  11830. ;;
  11831. lcc*)
  11832. # Lucid
  11833. # FIXME: insert proper C++ library support
  11834. ld_shlibs_CXX=no
  11835. ;;
  11836. *)
  11837. # FIXME: insert proper C++ library support
  11838. ld_shlibs_CXX=no
  11839. ;;
  11840. esac
  11841. ;;
  11842. solaris*)
  11843. case $cc_basename in
  11844. CC* | sunCC*)
  11845. # Sun C++ 4.2, 5.x and Centerline C++
  11846. archive_cmds_need_lc_CXX=yes
  11847. no_undefined_flag_CXX=' -zdefs'
  11848. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11849. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11850. $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'
  11851. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11852. hardcode_shlibpath_var_CXX=no
  11853. case $host_os in
  11854. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11855. *)
  11856. # The compiler driver will combine and reorder linker options,
  11857. # but understands `-z linker_flag'.
  11858. # Supported since Solaris 2.6 (maybe 2.5.1?)
  11859. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  11860. ;;
  11861. esac
  11862. link_all_deplibs_CXX=yes
  11863. output_verbose_link_cmd='func_echo_all'
  11864. # Archives containing C++ object files must be created using
  11865. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11866. # necessary to make sure instantiated templates are included
  11867. # in the archive.
  11868. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11869. ;;
  11870. gcx*)
  11871. # Green Hills C++ Compiler
  11872. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11873. # The C++ compiler must be used to create the archive.
  11874. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  11875. ;;
  11876. *)
  11877. # GNU C++ compiler with Solaris linker
  11878. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11879. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  11880. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  11881. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11882. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11883. $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11884. # Commands to make compiler produce verbose output that lists
  11885. # what "hidden" libraries, object files and flags are used when
  11886. # linking a shared library.
  11887. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11888. else
  11889. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  11890. # platform.
  11891. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11892. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11893. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11894. # Commands to make compiler produce verbose output that lists
  11895. # what "hidden" libraries, object files and flags are used when
  11896. # linking a shared library.
  11897. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11898. fi
  11899. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  11900. case $host_os in
  11901. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11902. *)
  11903. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  11904. ;;
  11905. esac
  11906. fi
  11907. ;;
  11908. esac
  11909. ;;
  11910. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  11911. no_undefined_flag_CXX='${wl}-z,text'
  11912. archive_cmds_need_lc_CXX=no
  11913. hardcode_shlibpath_var_CXX=no
  11914. runpath_var='LD_RUN_PATH'
  11915. case $cc_basename in
  11916. CC*)
  11917. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11918. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11919. ;;
  11920. *)
  11921. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11922. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11923. ;;
  11924. esac
  11925. ;;
  11926. sysv5* | sco3.2v5* | sco5v6*)
  11927. # Note: We can NOT use -z defs as we might desire, because we do not
  11928. # link with -lc, and that would cause any symbols used from libc to
  11929. # always be unresolved, which means just about no library would
  11930. # ever link correctly. If we're not using GNU ld we use -z text
  11931. # though, which does catch some bad symbols but isn't as heavy-handed
  11932. # as -z defs.
  11933. no_undefined_flag_CXX='${wl}-z,text'
  11934. allow_undefined_flag_CXX='${wl}-z,nodefs'
  11935. archive_cmds_need_lc_CXX=no
  11936. hardcode_shlibpath_var_CXX=no
  11937. hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  11938. hardcode_libdir_separator_CXX=':'
  11939. link_all_deplibs_CXX=yes
  11940. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  11941. runpath_var='LD_RUN_PATH'
  11942. case $cc_basename in
  11943. CC*)
  11944. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11945. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11946. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  11947. '"$old_archive_cmds_CXX"
  11948. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  11949. '"$reload_cmds_CXX"
  11950. ;;
  11951. *)
  11952. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11953. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11954. ;;
  11955. esac
  11956. ;;
  11957. tandem*)
  11958. case $cc_basename in
  11959. NCC*)
  11960. # NonStop-UX NCC 3.20
  11961. # FIXME: insert proper C++ library support
  11962. ld_shlibs_CXX=no
  11963. ;;
  11964. *)
  11965. # FIXME: insert proper C++ library support
  11966. ld_shlibs_CXX=no
  11967. ;;
  11968. esac
  11969. ;;
  11970. vxworks*)
  11971. # FIXME: insert proper C++ library support
  11972. ld_shlibs_CXX=no
  11973. ;;
  11974. *)
  11975. # FIXME: insert proper C++ library support
  11976. ld_shlibs_CXX=no
  11977. ;;
  11978. esac
  11979. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  11980. $as_echo "$ld_shlibs_CXX" >&6; }
  11981. test "$ld_shlibs_CXX" = no && can_build_shared=no
  11982. GCC_CXX="$GXX"
  11983. LD_CXX="$LD"
  11984. ## CAVEAT EMPTOR:
  11985. ## There is no encapsulation within the following macros, do not change
  11986. ## the running order or otherwise move them around unless you know exactly
  11987. ## what you are doing...
  11988. # Dependencies to place before and after the object being linked:
  11989. predep_objects_CXX=
  11990. postdep_objects_CXX=
  11991. predeps_CXX=
  11992. postdeps_CXX=
  11993. compiler_lib_search_path_CXX=
  11994. cat > conftest.$ac_ext <<_LT_EOF
  11995. class Foo
  11996. {
  11997. public:
  11998. Foo (void) { a = 0; }
  11999. private:
  12000. int a;
  12001. };
  12002. _LT_EOF
  12003. _lt_libdeps_save_CFLAGS=$CFLAGS
  12004. case "$CC $CFLAGS " in #(
  12005. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  12006. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  12007. esac
  12008. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12009. (eval $ac_compile) 2>&5
  12010. ac_status=$?
  12011. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12012. test $ac_status = 0; }; then
  12013. # Parse the compiler output and extract the necessary
  12014. # objects, libraries and library flags.
  12015. # Sentinel used to keep track of whether or not we are before
  12016. # the conftest object file.
  12017. pre_test_object_deps_done=no
  12018. for p in `eval "$output_verbose_link_cmd"`; do
  12019. case ${prev}${p} in
  12020. -L* | -R* | -l*)
  12021. # Some compilers place space between "-{L,R}" and the path.
  12022. # Remove the space.
  12023. if test $p = "-L" ||
  12024. test $p = "-R"; then
  12025. prev=$p
  12026. continue
  12027. fi
  12028. # Expand the sysroot to ease extracting the directories later.
  12029. if test -z "$prev"; then
  12030. case $p in
  12031. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  12032. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  12033. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  12034. esac
  12035. fi
  12036. case $p in
  12037. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  12038. esac
  12039. if test "$pre_test_object_deps_done" = no; then
  12040. case ${prev} in
  12041. -L | -R)
  12042. # Internal compiler library paths should come after those
  12043. # provided the user. The postdeps already come after the
  12044. # user supplied libs so there is no need to process them.
  12045. if test -z "$compiler_lib_search_path_CXX"; then
  12046. compiler_lib_search_path_CXX="${prev}${p}"
  12047. else
  12048. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  12049. fi
  12050. ;;
  12051. # The "-l" case would never come before the object being
  12052. # linked, so don't bother handling this case.
  12053. esac
  12054. else
  12055. if test -z "$postdeps_CXX"; then
  12056. postdeps_CXX="${prev}${p}"
  12057. else
  12058. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  12059. fi
  12060. fi
  12061. prev=
  12062. ;;
  12063. *.lto.$objext) ;; # Ignore GCC LTO objects
  12064. *.$objext)
  12065. # This assumes that the test object file only shows up
  12066. # once in the compiler output.
  12067. if test "$p" = "conftest.$objext"; then
  12068. pre_test_object_deps_done=yes
  12069. continue
  12070. fi
  12071. if test "$pre_test_object_deps_done" = no; then
  12072. if test -z "$predep_objects_CXX"; then
  12073. predep_objects_CXX="$p"
  12074. else
  12075. predep_objects_CXX="$predep_objects_CXX $p"
  12076. fi
  12077. else
  12078. if test -z "$postdep_objects_CXX"; then
  12079. postdep_objects_CXX="$p"
  12080. else
  12081. postdep_objects_CXX="$postdep_objects_CXX $p"
  12082. fi
  12083. fi
  12084. ;;
  12085. *) ;; # Ignore the rest.
  12086. esac
  12087. done
  12088. # Clean up.
  12089. rm -f a.out a.exe
  12090. else
  12091. echo "libtool.m4: error: problem compiling CXX test program"
  12092. fi
  12093. $RM -f confest.$objext
  12094. CFLAGS=$_lt_libdeps_save_CFLAGS
  12095. # PORTME: override above test on systems where it is broken
  12096. case $host_os in
  12097. interix[3-9]*)
  12098. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  12099. # hack all around it, let's just trust "g++" to DTRT.
  12100. predep_objects_CXX=
  12101. postdep_objects_CXX=
  12102. postdeps_CXX=
  12103. ;;
  12104. linux*)
  12105. case `$CC -V 2>&1 | sed 5q` in
  12106. *Sun\ C*)
  12107. # Sun C++ 5.9
  12108. # The more standards-conforming stlport4 library is
  12109. # incompatible with the Cstd library. Avoid specifying
  12110. # it if it's in CXXFLAGS. Ignore libCrun as
  12111. # -library=stlport4 depends on it.
  12112. case " $CXX $CXXFLAGS " in
  12113. *" -library=stlport4 "*)
  12114. solaris_use_stlport4=yes
  12115. ;;
  12116. esac
  12117. if test "$solaris_use_stlport4" != yes; then
  12118. postdeps_CXX='-library=Cstd -library=Crun'
  12119. fi
  12120. ;;
  12121. esac
  12122. ;;
  12123. solaris*)
  12124. case $cc_basename in
  12125. CC* | sunCC*)
  12126. # The more standards-conforming stlport4 library is
  12127. # incompatible with the Cstd library. Avoid specifying
  12128. # it if it's in CXXFLAGS. Ignore libCrun as
  12129. # -library=stlport4 depends on it.
  12130. case " $CXX $CXXFLAGS " in
  12131. *" -library=stlport4 "*)
  12132. solaris_use_stlport4=yes
  12133. ;;
  12134. esac
  12135. # Adding this requires a known-good setup of shared libraries for
  12136. # Sun compiler versions before 5.6, else PIC objects from an old
  12137. # archive will be linked into the output, leading to subtle bugs.
  12138. if test "$solaris_use_stlport4" != yes; then
  12139. postdeps_CXX='-library=Cstd -library=Crun'
  12140. fi
  12141. ;;
  12142. esac
  12143. ;;
  12144. esac
  12145. case " $postdeps_CXX " in
  12146. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  12147. esac
  12148. compiler_lib_search_dirs_CXX=
  12149. if test -n "${compiler_lib_search_path_CXX}"; then
  12150. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  12151. fi
  12152. lt_prog_compiler_wl_CXX=
  12153. lt_prog_compiler_pic_CXX=
  12154. lt_prog_compiler_static_CXX=
  12155. # C++ specific cases for pic, static, wl, etc.
  12156. if test "$GXX" = yes; then
  12157. lt_prog_compiler_wl_CXX='-Wl,'
  12158. lt_prog_compiler_static_CXX='-static'
  12159. case $host_os in
  12160. aix*)
  12161. # All AIX code is PIC.
  12162. if test "$host_cpu" = ia64; then
  12163. # AIX 5 now supports IA64 processor
  12164. lt_prog_compiler_static_CXX='-Bstatic'
  12165. fi
  12166. ;;
  12167. amigaos*)
  12168. case $host_cpu in
  12169. powerpc)
  12170. # see comment about AmigaOS4 .so support
  12171. lt_prog_compiler_pic_CXX='-fPIC'
  12172. ;;
  12173. m68k)
  12174. # FIXME: we need at least 68020 code to build shared libraries, but
  12175. # adding the `-m68020' flag to GCC prevents building anything better,
  12176. # like `-m68040'.
  12177. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  12178. ;;
  12179. esac
  12180. ;;
  12181. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  12182. # PIC is the default for these OSes.
  12183. ;;
  12184. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12185. # This hack is so that the source file can tell whether it is being
  12186. # built for inclusion in a dll (and should export symbols for example).
  12187. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  12188. # (--disable-auto-import) libraries
  12189. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12190. ;;
  12191. darwin* | rhapsody*)
  12192. # PIC is the default on this platform
  12193. # Common symbols not allowed in MH_DYLIB files
  12194. lt_prog_compiler_pic_CXX='-fno-common'
  12195. ;;
  12196. *djgpp*)
  12197. # DJGPP does not support shared libraries at all
  12198. lt_prog_compiler_pic_CXX=
  12199. ;;
  12200. haiku*)
  12201. # PIC is the default for Haiku.
  12202. # The "-static" flag exists, but is broken.
  12203. lt_prog_compiler_static_CXX=
  12204. ;;
  12205. interix[3-9]*)
  12206. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  12207. # Instead, we relocate shared libraries at runtime.
  12208. ;;
  12209. sysv4*MP*)
  12210. if test -d /usr/nec; then
  12211. lt_prog_compiler_pic_CXX=-Kconform_pic
  12212. fi
  12213. ;;
  12214. hpux*)
  12215. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  12216. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  12217. # sets the default TLS model and affects inlining.
  12218. case $host_cpu in
  12219. hppa*64*)
  12220. ;;
  12221. *)
  12222. lt_prog_compiler_pic_CXX='-fPIC'
  12223. ;;
  12224. esac
  12225. ;;
  12226. *qnx* | *nto*)
  12227. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12228. # it will coredump.
  12229. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12230. ;;
  12231. *)
  12232. lt_prog_compiler_pic_CXX='-fPIC'
  12233. ;;
  12234. esac
  12235. else
  12236. case $host_os in
  12237. aix[4-9]*)
  12238. # All AIX code is PIC.
  12239. if test "$host_cpu" = ia64; then
  12240. # AIX 5 now supports IA64 processor
  12241. lt_prog_compiler_static_CXX='-Bstatic'
  12242. else
  12243. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  12244. fi
  12245. ;;
  12246. chorus*)
  12247. case $cc_basename in
  12248. cxch68*)
  12249. # Green Hills C++ Compiler
  12250. # _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"
  12251. ;;
  12252. esac
  12253. ;;
  12254. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12255. # This hack is so that the source file can tell whether it is being
  12256. # built for inclusion in a dll (and should export symbols for example).
  12257. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12258. ;;
  12259. dgux*)
  12260. case $cc_basename in
  12261. ec++*)
  12262. lt_prog_compiler_pic_CXX='-KPIC'
  12263. ;;
  12264. ghcx*)
  12265. # Green Hills C++ Compiler
  12266. lt_prog_compiler_pic_CXX='-pic'
  12267. ;;
  12268. *)
  12269. ;;
  12270. esac
  12271. ;;
  12272. freebsd* | dragonfly*)
  12273. # FreeBSD uses GNU C++
  12274. ;;
  12275. hpux9* | hpux10* | hpux11*)
  12276. case $cc_basename in
  12277. CC*)
  12278. lt_prog_compiler_wl_CXX='-Wl,'
  12279. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12280. if test "$host_cpu" != ia64; then
  12281. lt_prog_compiler_pic_CXX='+Z'
  12282. fi
  12283. ;;
  12284. aCC*)
  12285. lt_prog_compiler_wl_CXX='-Wl,'
  12286. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12287. case $host_cpu in
  12288. hppa*64*|ia64*)
  12289. # +Z the default
  12290. ;;
  12291. *)
  12292. lt_prog_compiler_pic_CXX='+Z'
  12293. ;;
  12294. esac
  12295. ;;
  12296. *)
  12297. ;;
  12298. esac
  12299. ;;
  12300. interix*)
  12301. # This is c89, which is MS Visual C++ (no shared libs)
  12302. # Anyone wants to do a port?
  12303. ;;
  12304. irix5* | irix6* | nonstopux*)
  12305. case $cc_basename in
  12306. CC*)
  12307. lt_prog_compiler_wl_CXX='-Wl,'
  12308. lt_prog_compiler_static_CXX='-non_shared'
  12309. # CC pic flag -KPIC is the default.
  12310. ;;
  12311. *)
  12312. ;;
  12313. esac
  12314. ;;
  12315. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  12316. case $cc_basename in
  12317. KCC*)
  12318. # KAI C++ Compiler
  12319. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12320. lt_prog_compiler_pic_CXX='-fPIC'
  12321. ;;
  12322. ecpc* )
  12323. # old Intel C++ for x86_64 which still supported -KPIC.
  12324. lt_prog_compiler_wl_CXX='-Wl,'
  12325. lt_prog_compiler_pic_CXX='-KPIC'
  12326. lt_prog_compiler_static_CXX='-static'
  12327. ;;
  12328. icpc* )
  12329. # Intel C++, used to be incompatible with GCC.
  12330. # ICC 10 doesn't accept -KPIC any more.
  12331. lt_prog_compiler_wl_CXX='-Wl,'
  12332. lt_prog_compiler_pic_CXX='-fPIC'
  12333. lt_prog_compiler_static_CXX='-static'
  12334. ;;
  12335. pgCC* | pgcpp*)
  12336. # Portland Group C++ compiler
  12337. lt_prog_compiler_wl_CXX='-Wl,'
  12338. lt_prog_compiler_pic_CXX='-fpic'
  12339. lt_prog_compiler_static_CXX='-Bstatic'
  12340. ;;
  12341. cxx*)
  12342. # Compaq C++
  12343. # Make sure the PIC flag is empty. It appears that all Alpha
  12344. # Linux and Compaq Tru64 Unix objects are PIC.
  12345. lt_prog_compiler_pic_CXX=
  12346. lt_prog_compiler_static_CXX='-non_shared'
  12347. ;;
  12348. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  12349. # IBM XL 8.0, 9.0 on PPC and BlueGene
  12350. lt_prog_compiler_wl_CXX='-Wl,'
  12351. lt_prog_compiler_pic_CXX='-qpic'
  12352. lt_prog_compiler_static_CXX='-qstaticlink'
  12353. ;;
  12354. *)
  12355. case `$CC -V 2>&1 | sed 5q` in
  12356. *Sun\ C*)
  12357. # Sun C++ 5.9
  12358. lt_prog_compiler_pic_CXX='-KPIC'
  12359. lt_prog_compiler_static_CXX='-Bstatic'
  12360. lt_prog_compiler_wl_CXX='-Qoption ld '
  12361. ;;
  12362. esac
  12363. ;;
  12364. esac
  12365. ;;
  12366. lynxos*)
  12367. ;;
  12368. m88k*)
  12369. ;;
  12370. mvs*)
  12371. case $cc_basename in
  12372. cxx*)
  12373. lt_prog_compiler_pic_CXX='-W c,exportall'
  12374. ;;
  12375. *)
  12376. ;;
  12377. esac
  12378. ;;
  12379. netbsd*)
  12380. ;;
  12381. *qnx* | *nto*)
  12382. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12383. # it will coredump.
  12384. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12385. ;;
  12386. osf3* | osf4* | osf5*)
  12387. case $cc_basename in
  12388. KCC*)
  12389. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12390. ;;
  12391. RCC*)
  12392. # Rational C++ 2.4.1
  12393. lt_prog_compiler_pic_CXX='-pic'
  12394. ;;
  12395. cxx*)
  12396. # Digital/Compaq C++
  12397. lt_prog_compiler_wl_CXX='-Wl,'
  12398. # Make sure the PIC flag is empty. It appears that all Alpha
  12399. # Linux and Compaq Tru64 Unix objects are PIC.
  12400. lt_prog_compiler_pic_CXX=
  12401. lt_prog_compiler_static_CXX='-non_shared'
  12402. ;;
  12403. *)
  12404. ;;
  12405. esac
  12406. ;;
  12407. psos*)
  12408. ;;
  12409. solaris*)
  12410. case $cc_basename in
  12411. CC* | sunCC*)
  12412. # Sun C++ 4.2, 5.x and Centerline C++
  12413. lt_prog_compiler_pic_CXX='-KPIC'
  12414. lt_prog_compiler_static_CXX='-Bstatic'
  12415. lt_prog_compiler_wl_CXX='-Qoption ld '
  12416. ;;
  12417. gcx*)
  12418. # Green Hills C++ Compiler
  12419. lt_prog_compiler_pic_CXX='-PIC'
  12420. ;;
  12421. *)
  12422. ;;
  12423. esac
  12424. ;;
  12425. sunos4*)
  12426. case $cc_basename in
  12427. CC*)
  12428. # Sun C++ 4.x
  12429. lt_prog_compiler_pic_CXX='-pic'
  12430. lt_prog_compiler_static_CXX='-Bstatic'
  12431. ;;
  12432. lcc*)
  12433. # Lucid
  12434. lt_prog_compiler_pic_CXX='-pic'
  12435. ;;
  12436. *)
  12437. ;;
  12438. esac
  12439. ;;
  12440. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  12441. case $cc_basename in
  12442. CC*)
  12443. lt_prog_compiler_wl_CXX='-Wl,'
  12444. lt_prog_compiler_pic_CXX='-KPIC'
  12445. lt_prog_compiler_static_CXX='-Bstatic'
  12446. ;;
  12447. esac
  12448. ;;
  12449. tandem*)
  12450. case $cc_basename in
  12451. NCC*)
  12452. # NonStop-UX NCC 3.20
  12453. lt_prog_compiler_pic_CXX='-KPIC'
  12454. ;;
  12455. *)
  12456. ;;
  12457. esac
  12458. ;;
  12459. vxworks*)
  12460. ;;
  12461. *)
  12462. lt_prog_compiler_can_build_shared_CXX=no
  12463. ;;
  12464. esac
  12465. fi
  12466. case $host_os in
  12467. # For platforms which do not support PIC, -DPIC is meaningless:
  12468. *djgpp*)
  12469. lt_prog_compiler_pic_CXX=
  12470. ;;
  12471. *)
  12472. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  12473. ;;
  12474. esac
  12475. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  12476. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  12477. if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
  12478. $as_echo_n "(cached) " >&6
  12479. else
  12480. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  12481. fi
  12482. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  12483. $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
  12484. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  12485. #
  12486. # Check to make sure the PIC flag actually works.
  12487. #
  12488. if test -n "$lt_prog_compiler_pic_CXX"; then
  12489. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  12490. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  12491. if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  12492. $as_echo_n "(cached) " >&6
  12493. else
  12494. lt_cv_prog_compiler_pic_works_CXX=no
  12495. ac_outfile=conftest.$ac_objext
  12496. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12497. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  12498. # Insert the option either (1) after the last *FLAGS variable, or
  12499. # (2) before a word containing "conftest.", or (3) at the end.
  12500. # Note that $ac_compile itself does not contain backslashes and begins
  12501. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12502. # The option is referenced via a variable to avoid confusing sed.
  12503. lt_compile=`echo "$ac_compile" | $SED \
  12504. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12505. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12506. -e 's:$: $lt_compiler_flag:'`
  12507. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12508. (eval "$lt_compile" 2>conftest.err)
  12509. ac_status=$?
  12510. cat conftest.err >&5
  12511. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12512. if (exit $ac_status) && test -s "$ac_outfile"; then
  12513. # The compiler can only warn and ignore the option if not recognized
  12514. # So say no if there are warnings other than the usual output.
  12515. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  12516. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12517. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  12518. lt_cv_prog_compiler_pic_works_CXX=yes
  12519. fi
  12520. fi
  12521. $RM conftest*
  12522. fi
  12523. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  12524. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  12525. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  12526. case $lt_prog_compiler_pic_CXX in
  12527. "" | " "*) ;;
  12528. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  12529. esac
  12530. else
  12531. lt_prog_compiler_pic_CXX=
  12532. lt_prog_compiler_can_build_shared_CXX=no
  12533. fi
  12534. fi
  12535. #
  12536. # Check to make sure the static flag actually works.
  12537. #
  12538. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  12539. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  12540. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  12541. if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  12542. $as_echo_n "(cached) " >&6
  12543. else
  12544. lt_cv_prog_compiler_static_works_CXX=no
  12545. save_LDFLAGS="$LDFLAGS"
  12546. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  12547. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  12548. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  12549. # The linker can only warn and ignore the option if not recognized
  12550. # So say no if there are warnings
  12551. if test -s conftest.err; then
  12552. # Append any errors to the config.log.
  12553. cat conftest.err 1>&5
  12554. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  12555. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12556. if diff conftest.exp conftest.er2 >/dev/null; then
  12557. lt_cv_prog_compiler_static_works_CXX=yes
  12558. fi
  12559. else
  12560. lt_cv_prog_compiler_static_works_CXX=yes
  12561. fi
  12562. fi
  12563. $RM -r conftest*
  12564. LDFLAGS="$save_LDFLAGS"
  12565. fi
  12566. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  12567. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  12568. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  12569. :
  12570. else
  12571. lt_prog_compiler_static_CXX=
  12572. fi
  12573. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12574. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12575. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12576. $as_echo_n "(cached) " >&6
  12577. else
  12578. lt_cv_prog_compiler_c_o_CXX=no
  12579. $RM -r conftest 2>/dev/null
  12580. mkdir conftest
  12581. cd conftest
  12582. mkdir out
  12583. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12584. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12585. # Insert the option either (1) after the last *FLAGS variable, or
  12586. # (2) before a word containing "conftest.", or (3) at the end.
  12587. # Note that $ac_compile itself does not contain backslashes and begins
  12588. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12589. lt_compile=`echo "$ac_compile" | $SED \
  12590. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12591. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12592. -e 's:$: $lt_compiler_flag:'`
  12593. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12594. (eval "$lt_compile" 2>out/conftest.err)
  12595. ac_status=$?
  12596. cat out/conftest.err >&5
  12597. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12598. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12599. then
  12600. # The compiler can only warn and ignore the option if not recognized
  12601. # So say no if there are warnings
  12602. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12603. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12604. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12605. lt_cv_prog_compiler_c_o_CXX=yes
  12606. fi
  12607. fi
  12608. chmod u+w . 2>&5
  12609. $RM conftest*
  12610. # SGI C++ compiler will create directory out/ii_files/ for
  12611. # template instantiation
  12612. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12613. $RM out/* && rmdir out
  12614. cd ..
  12615. $RM -r conftest
  12616. $RM conftest*
  12617. fi
  12618. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12619. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12620. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12621. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12622. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12623. $as_echo_n "(cached) " >&6
  12624. else
  12625. lt_cv_prog_compiler_c_o_CXX=no
  12626. $RM -r conftest 2>/dev/null
  12627. mkdir conftest
  12628. cd conftest
  12629. mkdir out
  12630. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12631. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12632. # Insert the option either (1) after the last *FLAGS variable, or
  12633. # (2) before a word containing "conftest.", or (3) at the end.
  12634. # Note that $ac_compile itself does not contain backslashes and begins
  12635. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12636. lt_compile=`echo "$ac_compile" | $SED \
  12637. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12638. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12639. -e 's:$: $lt_compiler_flag:'`
  12640. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12641. (eval "$lt_compile" 2>out/conftest.err)
  12642. ac_status=$?
  12643. cat out/conftest.err >&5
  12644. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12645. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12646. then
  12647. # The compiler can only warn and ignore the option if not recognized
  12648. # So say no if there are warnings
  12649. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12650. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12651. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12652. lt_cv_prog_compiler_c_o_CXX=yes
  12653. fi
  12654. fi
  12655. chmod u+w . 2>&5
  12656. $RM conftest*
  12657. # SGI C++ compiler will create directory out/ii_files/ for
  12658. # template instantiation
  12659. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12660. $RM out/* && rmdir out
  12661. cd ..
  12662. $RM -r conftest
  12663. $RM conftest*
  12664. fi
  12665. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12666. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12667. hard_links="nottested"
  12668. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  12669. # do not overwrite the value of need_locks provided by the user
  12670. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  12671. $as_echo_n "checking if we can lock with hard links... " >&6; }
  12672. hard_links=yes
  12673. $RM conftest*
  12674. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12675. touch conftest.a
  12676. ln conftest.a conftest.b 2>&5 || hard_links=no
  12677. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12678. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  12679. $as_echo "$hard_links" >&6; }
  12680. if test "$hard_links" = no; then
  12681. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  12682. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  12683. need_locks=warn
  12684. fi
  12685. else
  12686. need_locks=no
  12687. fi
  12688. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12689. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12690. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12691. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  12692. case $host_os in
  12693. aix[4-9]*)
  12694. # If we're using GNU nm, then we don't want the "-C" option.
  12695. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  12696. # Also, AIX nm treats weak defined symbols like other global defined
  12697. # symbols, whereas GNU nm marks them as "W".
  12698. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  12699. 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'
  12700. else
  12701. 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'
  12702. fi
  12703. ;;
  12704. pw32*)
  12705. export_symbols_cmds_CXX="$ltdll_cmds"
  12706. ;;
  12707. cygwin* | mingw* | cegcc*)
  12708. case $cc_basename in
  12709. cl*) ;;
  12710. *)
  12711. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
  12712. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  12713. ;;
  12714. esac
  12715. ;;
  12716. *)
  12717. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12718. ;;
  12719. esac
  12720. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12721. $as_echo "$ld_shlibs_CXX" >&6; }
  12722. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12723. with_gnu_ld_CXX=$with_gnu_ld
  12724. #
  12725. # Do we need to explicitly link libc?
  12726. #
  12727. case "x$archive_cmds_need_lc_CXX" in
  12728. x|xyes)
  12729. # Assume -lc should be added
  12730. archive_cmds_need_lc_CXX=yes
  12731. if test "$enable_shared" = yes && test "$GCC" = yes; then
  12732. case $archive_cmds_CXX in
  12733. *'~'*)
  12734. # FIXME: we may have to deal with multi-command sequences.
  12735. ;;
  12736. '$CC '*)
  12737. # Test whether the compiler implicitly links with -lc since on some
  12738. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  12739. # to ld, don't add -lc before -lgcc.
  12740. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  12741. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  12742. if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  12743. $as_echo_n "(cached) " >&6
  12744. else
  12745. $RM conftest*
  12746. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12747. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12748. (eval $ac_compile) 2>&5
  12749. ac_status=$?
  12750. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12751. test $ac_status = 0; } 2>conftest.err; then
  12752. soname=conftest
  12753. lib=conftest
  12754. libobjs=conftest.$ac_objext
  12755. deplibs=
  12756. wl=$lt_prog_compiler_wl_CXX
  12757. pic_flag=$lt_prog_compiler_pic_CXX
  12758. compiler_flags=-v
  12759. linker_flags=-v
  12760. verstring=
  12761. output_objdir=.
  12762. libname=conftest
  12763. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  12764. allow_undefined_flag_CXX=
  12765. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  12766. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  12767. ac_status=$?
  12768. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12769. test $ac_status = 0; }
  12770. then
  12771. lt_cv_archive_cmds_need_lc_CXX=no
  12772. else
  12773. lt_cv_archive_cmds_need_lc_CXX=yes
  12774. fi
  12775. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  12776. else
  12777. cat conftest.err 1>&5
  12778. fi
  12779. $RM conftest*
  12780. fi
  12781. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  12782. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  12783. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  12784. ;;
  12785. esac
  12786. fi
  12787. ;;
  12788. esac
  12789. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  12790. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  12791. library_names_spec=
  12792. libname_spec='lib$name'
  12793. soname_spec=
  12794. shrext_cmds=".so"
  12795. postinstall_cmds=
  12796. postuninstall_cmds=
  12797. finish_cmds=
  12798. finish_eval=
  12799. shlibpath_var=
  12800. shlibpath_overrides_runpath=unknown
  12801. version_type=none
  12802. dynamic_linker="$host_os ld.so"
  12803. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  12804. need_lib_prefix=unknown
  12805. hardcode_into_libs=no
  12806. # when you set need_version to no, make sure it does not cause -set_version
  12807. # flags to be left without arguments
  12808. need_version=unknown
  12809. case $host_os in
  12810. aix3*)
  12811. version_type=linux
  12812. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  12813. shlibpath_var=LIBPATH
  12814. # AIX 3 has no versioning support, so we append a major version to the name.
  12815. soname_spec='${libname}${release}${shared_ext}$major'
  12816. ;;
  12817. aix[4-9]*)
  12818. version_type=linux
  12819. need_lib_prefix=no
  12820. need_version=no
  12821. hardcode_into_libs=yes
  12822. if test "$host_cpu" = ia64; then
  12823. # AIX 5 supports IA64
  12824. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  12825. shlibpath_var=LD_LIBRARY_PATH
  12826. else
  12827. # With GCC up to 2.95.x, collect2 would create an import file
  12828. # for dependence libraries. The import file would start with
  12829. # the line `#! .'. This would cause the generated library to
  12830. # depend on `.', always an invalid library. This was fixed in
  12831. # development snapshots of GCC prior to 3.0.
  12832. case $host_os in
  12833. aix4 | aix4.[01] | aix4.[01].*)
  12834. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  12835. echo ' yes '
  12836. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  12837. :
  12838. else
  12839. can_build_shared=no
  12840. fi
  12841. ;;
  12842. esac
  12843. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  12844. # soname into executable. Probably we can add versioning support to
  12845. # collect2, so additional links can be useful in future.
  12846. if test "$aix_use_runtimelinking" = yes; then
  12847. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  12848. # instead of lib<name>.a to let people know that these are not
  12849. # typical AIX shared libraries.
  12850. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12851. else
  12852. # We preserve .a as extension for shared libraries through AIX4.2
  12853. # and later when we are not doing run time linking.
  12854. library_names_spec='${libname}${release}.a $libname.a'
  12855. soname_spec='${libname}${release}${shared_ext}$major'
  12856. fi
  12857. shlibpath_var=LIBPATH
  12858. fi
  12859. ;;
  12860. amigaos*)
  12861. case $host_cpu in
  12862. powerpc)
  12863. # Since July 2007 AmigaOS4 officially supports .so libraries.
  12864. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  12865. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12866. ;;
  12867. m68k)
  12868. library_names_spec='$libname.ixlibrary $libname.a'
  12869. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  12870. 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'
  12871. ;;
  12872. esac
  12873. ;;
  12874. beos*)
  12875. library_names_spec='${libname}${shared_ext}'
  12876. dynamic_linker="$host_os ld.so"
  12877. shlibpath_var=LIBRARY_PATH
  12878. ;;
  12879. bsdi[45]*)
  12880. version_type=linux
  12881. need_version=no
  12882. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12883. soname_spec='${libname}${release}${shared_ext}$major'
  12884. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  12885. shlibpath_var=LD_LIBRARY_PATH
  12886. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  12887. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  12888. # the default ld.so.conf also contains /usr/contrib/lib and
  12889. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  12890. # libtool to hard-code these into programs
  12891. ;;
  12892. cygwin* | mingw* | pw32* | cegcc*)
  12893. version_type=windows
  12894. shrext_cmds=".dll"
  12895. need_version=no
  12896. need_lib_prefix=no
  12897. case $GCC,$cc_basename in
  12898. yes,*)
  12899. # gcc
  12900. library_names_spec='$libname.dll.a'
  12901. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12902. postinstall_cmds='base_file=`basename \${file}`~
  12903. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12904. dldir=$destdir/`dirname \$dlpath`~
  12905. test -d \$dldir || mkdir -p \$dldir~
  12906. $install_prog $dir/$dlname \$dldir/$dlname~
  12907. chmod a+x \$dldir/$dlname~
  12908. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  12909. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  12910. fi'
  12911. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12912. dlpath=$dir/\$dldll~
  12913. $RM \$dlpath'
  12914. shlibpath_overrides_runpath=yes
  12915. case $host_os in
  12916. cygwin*)
  12917. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  12918. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12919. ;;
  12920. mingw* | cegcc*)
  12921. # MinGW DLLs use traditional 'lib' prefix
  12922. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12923. ;;
  12924. pw32*)
  12925. # pw32 DLLs use 'pw' prefix rather than 'lib'
  12926. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12927. ;;
  12928. esac
  12929. dynamic_linker='Win32 ld.exe'
  12930. ;;
  12931. *,cl*)
  12932. # Native MSVC
  12933. libname_spec='$name'
  12934. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12935. library_names_spec='${libname}.dll.lib'
  12936. case $build_os in
  12937. mingw*)
  12938. sys_lib_search_path_spec=
  12939. lt_save_ifs=$IFS
  12940. IFS=';'
  12941. for lt_path in $LIB
  12942. do
  12943. IFS=$lt_save_ifs
  12944. # Let DOS variable expansion print the short 8.3 style file name.
  12945. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  12946. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  12947. done
  12948. IFS=$lt_save_ifs
  12949. # Convert to MSYS style.
  12950. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  12951. ;;
  12952. cygwin*)
  12953. # Convert to unix form, then to dos form, then back to unix form
  12954. # but this time dos style (no spaces!) so that the unix form looks
  12955. # like /cygdrive/c/PROGRA~1:/cygdr...
  12956. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  12957. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  12958. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12959. ;;
  12960. *)
  12961. sys_lib_search_path_spec="$LIB"
  12962. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  12963. # It is most probably a Windows format PATH.
  12964. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  12965. else
  12966. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12967. fi
  12968. # FIXME: find the short name or the path components, as spaces are
  12969. # common. (e.g. "Program Files" -> "PROGRA~1")
  12970. ;;
  12971. esac
  12972. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12973. postinstall_cmds='base_file=`basename \${file}`~
  12974. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12975. dldir=$destdir/`dirname \$dlpath`~
  12976. test -d \$dldir || mkdir -p \$dldir~
  12977. $install_prog $dir/$dlname \$dldir/$dlname'
  12978. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12979. dlpath=$dir/\$dldll~
  12980. $RM \$dlpath'
  12981. shlibpath_overrides_runpath=yes
  12982. dynamic_linker='Win32 link.exe'
  12983. ;;
  12984. *)
  12985. # Assume MSVC wrapper
  12986. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  12987. dynamic_linker='Win32 ld.exe'
  12988. ;;
  12989. esac
  12990. # FIXME: first we should search . and the directory the executable is in
  12991. shlibpath_var=PATH
  12992. ;;
  12993. darwin* | rhapsody*)
  12994. dynamic_linker="$host_os dyld"
  12995. version_type=darwin
  12996. need_lib_prefix=no
  12997. need_version=no
  12998. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  12999. soname_spec='${libname}${release}${major}$shared_ext'
  13000. shlibpath_overrides_runpath=yes
  13001. shlibpath_var=DYLD_LIBRARY_PATH
  13002. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  13003. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  13004. ;;
  13005. dgux*)
  13006. version_type=linux
  13007. need_lib_prefix=no
  13008. need_version=no
  13009. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  13010. soname_spec='${libname}${release}${shared_ext}$major'
  13011. shlibpath_var=LD_LIBRARY_PATH
  13012. ;;
  13013. freebsd1*)
  13014. dynamic_linker=no
  13015. ;;
  13016. freebsd* | dragonfly*)
  13017. # DragonFly does not have aout. When/if they implement a new
  13018. # versioning mechanism, adjust this.
  13019. if test -x /usr/bin/objformat; then
  13020. objformat=`/usr/bin/objformat`
  13021. else
  13022. case $host_os in
  13023. freebsd[123]*) objformat=aout ;;
  13024. *) objformat=elf ;;
  13025. esac
  13026. fi
  13027. version_type=freebsd-$objformat
  13028. case $version_type in
  13029. freebsd-elf*)
  13030. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13031. need_version=no
  13032. need_lib_prefix=no
  13033. ;;
  13034. freebsd-*)
  13035. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  13036. need_version=yes
  13037. ;;
  13038. esac
  13039. shlibpath_var=LD_LIBRARY_PATH
  13040. case $host_os in
  13041. freebsd2*)
  13042. shlibpath_overrides_runpath=yes
  13043. ;;
  13044. freebsd3.[01]* | freebsdelf3.[01]*)
  13045. shlibpath_overrides_runpath=yes
  13046. hardcode_into_libs=yes
  13047. ;;
  13048. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  13049. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  13050. shlibpath_overrides_runpath=no
  13051. hardcode_into_libs=yes
  13052. ;;
  13053. *) # from 4.6 on, and DragonFly
  13054. shlibpath_overrides_runpath=yes
  13055. hardcode_into_libs=yes
  13056. ;;
  13057. esac
  13058. ;;
  13059. gnu*)
  13060. version_type=linux
  13061. need_lib_prefix=no
  13062. need_version=no
  13063. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  13064. soname_spec='${libname}${release}${shared_ext}$major'
  13065. shlibpath_var=LD_LIBRARY_PATH
  13066. hardcode_into_libs=yes
  13067. ;;
  13068. haiku*)
  13069. version_type=linux
  13070. need_lib_prefix=no
  13071. need_version=no
  13072. dynamic_linker="$host_os runtime_loader"
  13073. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  13074. soname_spec='${libname}${release}${shared_ext}$major'
  13075. shlibpath_var=LIBRARY_PATH
  13076. shlibpath_overrides_runpath=yes
  13077. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  13078. hardcode_into_libs=yes
  13079. ;;
  13080. hpux9* | hpux10* | hpux11*)
  13081. # Give a soname corresponding to the major version so that dld.sl refuses to
  13082. # link against other versions.
  13083. version_type=sunos
  13084. need_lib_prefix=no
  13085. need_version=no
  13086. case $host_cpu in
  13087. ia64*)
  13088. shrext_cmds='.so'
  13089. hardcode_into_libs=yes
  13090. dynamic_linker="$host_os dld.so"
  13091. shlibpath_var=LD_LIBRARY_PATH
  13092. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13093. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13094. soname_spec='${libname}${release}${shared_ext}$major'
  13095. if test "X$HPUX_IA64_MODE" = X32; then
  13096. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  13097. else
  13098. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  13099. fi
  13100. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13101. ;;
  13102. hppa*64*)
  13103. shrext_cmds='.sl'
  13104. hardcode_into_libs=yes
  13105. dynamic_linker="$host_os dld.sl"
  13106. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  13107. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13108. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13109. soname_spec='${libname}${release}${shared_ext}$major'
  13110. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  13111. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13112. ;;
  13113. *)
  13114. shrext_cmds='.sl'
  13115. dynamic_linker="$host_os dld.sl"
  13116. shlibpath_var=SHLIB_PATH
  13117. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  13118. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13119. soname_spec='${libname}${release}${shared_ext}$major'
  13120. ;;
  13121. esac
  13122. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  13123. postinstall_cmds='chmod 555 $lib'
  13124. # or fails outright, so override atomically:
  13125. install_override_mode=555
  13126. ;;
  13127. interix[3-9]*)
  13128. version_type=linux
  13129. need_lib_prefix=no
  13130. need_version=no
  13131. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13132. soname_spec='${libname}${release}${shared_ext}$major'
  13133. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  13134. shlibpath_var=LD_LIBRARY_PATH
  13135. shlibpath_overrides_runpath=no
  13136. hardcode_into_libs=yes
  13137. ;;
  13138. irix5* | irix6* | nonstopux*)
  13139. case $host_os in
  13140. nonstopux*) version_type=nonstopux ;;
  13141. *)
  13142. if test "$lt_cv_prog_gnu_ld" = yes; then
  13143. version_type=linux
  13144. else
  13145. version_type=irix
  13146. fi ;;
  13147. esac
  13148. need_lib_prefix=no
  13149. need_version=no
  13150. soname_spec='${libname}${release}${shared_ext}$major'
  13151. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  13152. case $host_os in
  13153. irix5* | nonstopux*)
  13154. libsuff= shlibsuff=
  13155. ;;
  13156. *)
  13157. case $LD in # libtool.m4 will add one of these switches to LD
  13158. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  13159. libsuff= shlibsuff= libmagic=32-bit;;
  13160. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  13161. libsuff=32 shlibsuff=N32 libmagic=N32;;
  13162. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  13163. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  13164. *) libsuff= shlibsuff= libmagic=never-match;;
  13165. esac
  13166. ;;
  13167. esac
  13168. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  13169. shlibpath_overrides_runpath=no
  13170. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  13171. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  13172. hardcode_into_libs=yes
  13173. ;;
  13174. # No shared lib support for Linux oldld, aout, or coff.
  13175. linux*oldld* | linux*aout* | linux*coff*)
  13176. dynamic_linker=no
  13177. ;;
  13178. # This must be Linux ELF.
  13179. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  13180. version_type=linux
  13181. need_lib_prefix=no
  13182. need_version=no
  13183. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13184. soname_spec='${libname}${release}${shared_ext}$major'
  13185. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  13186. shlibpath_var=LD_LIBRARY_PATH
  13187. shlibpath_overrides_runpath=no
  13188. # Some binutils ld are patched to set DT_RUNPATH
  13189. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  13190. $as_echo_n "(cached) " >&6
  13191. else
  13192. lt_cv_shlibpath_overrides_runpath=no
  13193. save_LDFLAGS=$LDFLAGS
  13194. save_libdir=$libdir
  13195. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  13196. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  13197. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13198. /* end confdefs.h. */
  13199. int
  13200. main ()
  13201. {
  13202. ;
  13203. return 0;
  13204. }
  13205. _ACEOF
  13206. if ac_fn_cxx_try_link "$LINENO"; then :
  13207. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  13208. lt_cv_shlibpath_overrides_runpath=yes
  13209. fi
  13210. fi
  13211. rm -f core conftest.err conftest.$ac_objext \
  13212. conftest$ac_exeext conftest.$ac_ext
  13213. LDFLAGS=$save_LDFLAGS
  13214. libdir=$save_libdir
  13215. fi
  13216. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  13217. # This implies no fast_install, which is unacceptable.
  13218. # Some rework will be needed to allow for fast_install
  13219. # before this can be enabled.
  13220. hardcode_into_libs=yes
  13221. # Add ABI-specific directories to the system library path.
  13222. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  13223. # Append ld.so.conf contents to the search path
  13224. if test -f /etc/ld.so.conf; then
  13225. 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' ' '`
  13226. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  13227. fi
  13228. # We used to test for /lib/ld.so.1 and disable shared libraries on
  13229. # powerpc, because MkLinux only supported shared libraries with the
  13230. # GNU dynamic linker. Since this was broken with cross compilers,
  13231. # most powerpc-linux boxes support dynamic linking these days and
  13232. # people can always --disable-shared, the test was removed, and we
  13233. # assume the GNU/Linux dynamic linker is in use.
  13234. dynamic_linker='GNU/Linux ld.so'
  13235. ;;
  13236. netbsd*)
  13237. version_type=sunos
  13238. need_lib_prefix=no
  13239. need_version=no
  13240. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13241. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13242. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13243. dynamic_linker='NetBSD (a.out) ld.so'
  13244. else
  13245. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13246. soname_spec='${libname}${release}${shared_ext}$major'
  13247. dynamic_linker='NetBSD ld.elf_so'
  13248. fi
  13249. shlibpath_var=LD_LIBRARY_PATH
  13250. shlibpath_overrides_runpath=yes
  13251. hardcode_into_libs=yes
  13252. ;;
  13253. newsos6)
  13254. version_type=linux
  13255. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13256. shlibpath_var=LD_LIBRARY_PATH
  13257. shlibpath_overrides_runpath=yes
  13258. ;;
  13259. *nto* | *qnx*)
  13260. version_type=qnx
  13261. need_lib_prefix=no
  13262. need_version=no
  13263. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13264. soname_spec='${libname}${release}${shared_ext}$major'
  13265. shlibpath_var=LD_LIBRARY_PATH
  13266. shlibpath_overrides_runpath=no
  13267. hardcode_into_libs=yes
  13268. dynamic_linker='ldqnx.so'
  13269. ;;
  13270. openbsd*)
  13271. version_type=sunos
  13272. sys_lib_dlsearch_path_spec="/usr/lib"
  13273. need_lib_prefix=no
  13274. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  13275. case $host_os in
  13276. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  13277. *) need_version=no ;;
  13278. esac
  13279. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13280. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13281. shlibpath_var=LD_LIBRARY_PATH
  13282. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  13283. case $host_os in
  13284. openbsd2.[89] | openbsd2.[89].*)
  13285. shlibpath_overrides_runpath=no
  13286. ;;
  13287. *)
  13288. shlibpath_overrides_runpath=yes
  13289. ;;
  13290. esac
  13291. else
  13292. shlibpath_overrides_runpath=yes
  13293. fi
  13294. ;;
  13295. os2*)
  13296. libname_spec='$name'
  13297. shrext_cmds=".dll"
  13298. need_lib_prefix=no
  13299. library_names_spec='$libname${shared_ext} $libname.a'
  13300. dynamic_linker='OS/2 ld.exe'
  13301. shlibpath_var=LIBPATH
  13302. ;;
  13303. osf3* | osf4* | osf5*)
  13304. version_type=osf
  13305. need_lib_prefix=no
  13306. need_version=no
  13307. soname_spec='${libname}${release}${shared_ext}$major'
  13308. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13309. shlibpath_var=LD_LIBRARY_PATH
  13310. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  13311. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  13312. ;;
  13313. rdos*)
  13314. dynamic_linker=no
  13315. ;;
  13316. solaris*)
  13317. version_type=linux
  13318. need_lib_prefix=no
  13319. need_version=no
  13320. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13321. soname_spec='${libname}${release}${shared_ext}$major'
  13322. shlibpath_var=LD_LIBRARY_PATH
  13323. shlibpath_overrides_runpath=yes
  13324. hardcode_into_libs=yes
  13325. # ldd complains unless libraries are executable
  13326. postinstall_cmds='chmod +x $lib'
  13327. ;;
  13328. sunos4*)
  13329. version_type=sunos
  13330. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13331. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  13332. shlibpath_var=LD_LIBRARY_PATH
  13333. shlibpath_overrides_runpath=yes
  13334. if test "$with_gnu_ld" = yes; then
  13335. need_lib_prefix=no
  13336. fi
  13337. need_version=yes
  13338. ;;
  13339. sysv4 | sysv4.3*)
  13340. version_type=linux
  13341. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13342. soname_spec='${libname}${release}${shared_ext}$major'
  13343. shlibpath_var=LD_LIBRARY_PATH
  13344. case $host_vendor in
  13345. sni)
  13346. shlibpath_overrides_runpath=no
  13347. need_lib_prefix=no
  13348. runpath_var=LD_RUN_PATH
  13349. ;;
  13350. siemens)
  13351. need_lib_prefix=no
  13352. ;;
  13353. motorola)
  13354. need_lib_prefix=no
  13355. need_version=no
  13356. shlibpath_overrides_runpath=no
  13357. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  13358. ;;
  13359. esac
  13360. ;;
  13361. sysv4*MP*)
  13362. if test -d /usr/nec ;then
  13363. version_type=linux
  13364. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  13365. soname_spec='$libname${shared_ext}.$major'
  13366. shlibpath_var=LD_LIBRARY_PATH
  13367. fi
  13368. ;;
  13369. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  13370. version_type=freebsd-elf
  13371. need_lib_prefix=no
  13372. need_version=no
  13373. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13374. soname_spec='${libname}${release}${shared_ext}$major'
  13375. shlibpath_var=LD_LIBRARY_PATH
  13376. shlibpath_overrides_runpath=yes
  13377. hardcode_into_libs=yes
  13378. if test "$with_gnu_ld" = yes; then
  13379. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  13380. else
  13381. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  13382. case $host_os in
  13383. sco3.2v5*)
  13384. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  13385. ;;
  13386. esac
  13387. fi
  13388. sys_lib_dlsearch_path_spec='/usr/lib'
  13389. ;;
  13390. tpf*)
  13391. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  13392. version_type=linux
  13393. need_lib_prefix=no
  13394. need_version=no
  13395. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13396. shlibpath_var=LD_LIBRARY_PATH
  13397. shlibpath_overrides_runpath=no
  13398. hardcode_into_libs=yes
  13399. ;;
  13400. uts4*)
  13401. version_type=linux
  13402. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13403. soname_spec='${libname}${release}${shared_ext}$major'
  13404. shlibpath_var=LD_LIBRARY_PATH
  13405. ;;
  13406. *)
  13407. dynamic_linker=no
  13408. ;;
  13409. esac
  13410. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  13411. $as_echo "$dynamic_linker" >&6; }
  13412. test "$dynamic_linker" = no && can_build_shared=no
  13413. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  13414. if test "$GCC" = yes; then
  13415. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  13416. fi
  13417. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  13418. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  13419. fi
  13420. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  13421. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  13422. fi
  13423. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  13424. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  13425. hardcode_action_CXX=
  13426. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  13427. test -n "$runpath_var_CXX" ||
  13428. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  13429. # We can hardcode non-existent directories.
  13430. if test "$hardcode_direct_CXX" != no &&
  13431. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  13432. # have to relink, otherwise we might link with an installed library
  13433. # when we should be linking with a yet-to-be-installed one
  13434. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  13435. test "$hardcode_minus_L_CXX" != no; then
  13436. # Linking always hardcodes the temporary library directory.
  13437. hardcode_action_CXX=relink
  13438. else
  13439. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  13440. hardcode_action_CXX=immediate
  13441. fi
  13442. else
  13443. # We cannot hardcode anything, or else we can only hardcode existing
  13444. # directories.
  13445. hardcode_action_CXX=unsupported
  13446. fi
  13447. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  13448. $as_echo "$hardcode_action_CXX" >&6; }
  13449. if test "$hardcode_action_CXX" = relink ||
  13450. test "$inherit_rpath_CXX" = yes; then
  13451. # Fast installation is not supported
  13452. enable_fast_install=no
  13453. elif test "$shlibpath_overrides_runpath" = yes ||
  13454. test "$enable_shared" = no; then
  13455. # Fast installation is not necessary
  13456. enable_fast_install=needless
  13457. fi
  13458. fi # test -n "$compiler"
  13459. CC=$lt_save_CC
  13460. CFLAGS=$lt_save_CFLAGS
  13461. LDCXX=$LD
  13462. LD=$lt_save_LD
  13463. GCC=$lt_save_GCC
  13464. with_gnu_ld=$lt_save_with_gnu_ld
  13465. lt_cv_path_LDCXX=$lt_cv_path_LD
  13466. lt_cv_path_LD=$lt_save_path_LD
  13467. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  13468. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  13469. fi # test "$_lt_caught_CXX_error" != yes
  13470. ac_ext=c
  13471. ac_cpp='$CPP $CPPFLAGS'
  13472. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13473. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13474. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13475. ac_config_commands="$ac_config_commands libtool"
  13476. # Only expand once:
  13477. # Checks for header files.
  13478. ac_header_dirent=no
  13479. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  13480. as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  13481. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
  13482. $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
  13483. if eval \${$as_ac_Header+:} false; then :
  13484. $as_echo_n "(cached) " >&6
  13485. else
  13486. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13487. /* end confdefs.h. */
  13488. #include <sys/types.h>
  13489. #include <$ac_hdr>
  13490. int
  13491. main ()
  13492. {
  13493. if ((DIR *) 0)
  13494. return 0;
  13495. ;
  13496. return 0;
  13497. }
  13498. _ACEOF
  13499. if ac_fn_c_try_compile "$LINENO"; then :
  13500. eval "$as_ac_Header=yes"
  13501. else
  13502. eval "$as_ac_Header=no"
  13503. fi
  13504. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13505. fi
  13506. eval ac_res=\$$as_ac_Header
  13507. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  13508. $as_echo "$ac_res" >&6; }
  13509. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  13510. cat >>confdefs.h <<_ACEOF
  13511. #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  13512. _ACEOF
  13513. ac_header_dirent=$ac_hdr; break
  13514. fi
  13515. done
  13516. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  13517. if test $ac_header_dirent = dirent.h; then
  13518. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
  13519. $as_echo_n "checking for library containing opendir... " >&6; }
  13520. if ${ac_cv_search_opendir+:} false; then :
  13521. $as_echo_n "(cached) " >&6
  13522. else
  13523. ac_func_search_save_LIBS=$LIBS
  13524. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13525. /* end confdefs.h. */
  13526. /* Override any GCC internal prototype to avoid an error.
  13527. Use char because int might match the return type of a GCC
  13528. builtin and then its argument prototype would still apply. */
  13529. #ifdef __cplusplus
  13530. extern "C"
  13531. #endif
  13532. char opendir ();
  13533. int
  13534. main ()
  13535. {
  13536. return opendir ();
  13537. ;
  13538. return 0;
  13539. }
  13540. _ACEOF
  13541. for ac_lib in '' dir; do
  13542. if test -z "$ac_lib"; then
  13543. ac_res="none required"
  13544. else
  13545. ac_res=-l$ac_lib
  13546. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  13547. fi
  13548. if ac_fn_c_try_link "$LINENO"; then :
  13549. ac_cv_search_opendir=$ac_res
  13550. fi
  13551. rm -f core conftest.err conftest.$ac_objext \
  13552. conftest$ac_exeext
  13553. if ${ac_cv_search_opendir+:} false; then :
  13554. break
  13555. fi
  13556. done
  13557. if ${ac_cv_search_opendir+:} false; then :
  13558. else
  13559. ac_cv_search_opendir=no
  13560. fi
  13561. rm conftest.$ac_ext
  13562. LIBS=$ac_func_search_save_LIBS
  13563. fi
  13564. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
  13565. $as_echo "$ac_cv_search_opendir" >&6; }
  13566. ac_res=$ac_cv_search_opendir
  13567. if test "$ac_res" != no; then :
  13568. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  13569. fi
  13570. else
  13571. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
  13572. $as_echo_n "checking for library containing opendir... " >&6; }
  13573. if ${ac_cv_search_opendir+:} false; then :
  13574. $as_echo_n "(cached) " >&6
  13575. else
  13576. ac_func_search_save_LIBS=$LIBS
  13577. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13578. /* end confdefs.h. */
  13579. /* Override any GCC internal prototype to avoid an error.
  13580. Use char because int might match the return type of a GCC
  13581. builtin and then its argument prototype would still apply. */
  13582. #ifdef __cplusplus
  13583. extern "C"
  13584. #endif
  13585. char opendir ();
  13586. int
  13587. main ()
  13588. {
  13589. return opendir ();
  13590. ;
  13591. return 0;
  13592. }
  13593. _ACEOF
  13594. for ac_lib in '' x; do
  13595. if test -z "$ac_lib"; then
  13596. ac_res="none required"
  13597. else
  13598. ac_res=-l$ac_lib
  13599. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  13600. fi
  13601. if ac_fn_c_try_link "$LINENO"; then :
  13602. ac_cv_search_opendir=$ac_res
  13603. fi
  13604. rm -f core conftest.err conftest.$ac_objext \
  13605. conftest$ac_exeext
  13606. if ${ac_cv_search_opendir+:} false; then :
  13607. break
  13608. fi
  13609. done
  13610. if ${ac_cv_search_opendir+:} false; then :
  13611. else
  13612. ac_cv_search_opendir=no
  13613. fi
  13614. rm conftest.$ac_ext
  13615. LIBS=$ac_func_search_save_LIBS
  13616. fi
  13617. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
  13618. $as_echo "$ac_cv_search_opendir" >&6; }
  13619. ac_res=$ac_cv_search_opendir
  13620. if test "$ac_res" != no; then :
  13621. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  13622. fi
  13623. fi
  13624. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  13625. $as_echo_n "checking for ANSI C header files... " >&6; }
  13626. if ${ac_cv_header_stdc+:} false; then :
  13627. $as_echo_n "(cached) " >&6
  13628. else
  13629. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13630. /* end confdefs.h. */
  13631. #include <stdlib.h>
  13632. #include <stdarg.h>
  13633. #include <string.h>
  13634. #include <float.h>
  13635. int
  13636. main ()
  13637. {
  13638. ;
  13639. return 0;
  13640. }
  13641. _ACEOF
  13642. if ac_fn_c_try_compile "$LINENO"; then :
  13643. ac_cv_header_stdc=yes
  13644. else
  13645. ac_cv_header_stdc=no
  13646. fi
  13647. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13648. if test $ac_cv_header_stdc = yes; then
  13649. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  13650. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13651. /* end confdefs.h. */
  13652. #include <string.h>
  13653. _ACEOF
  13654. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13655. $EGREP "memchr" >/dev/null 2>&1; then :
  13656. else
  13657. ac_cv_header_stdc=no
  13658. fi
  13659. rm -f conftest*
  13660. fi
  13661. if test $ac_cv_header_stdc = yes; then
  13662. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  13663. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13664. /* end confdefs.h. */
  13665. #include <stdlib.h>
  13666. _ACEOF
  13667. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13668. $EGREP "free" >/dev/null 2>&1; then :
  13669. else
  13670. ac_cv_header_stdc=no
  13671. fi
  13672. rm -f conftest*
  13673. fi
  13674. if test $ac_cv_header_stdc = yes; then
  13675. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  13676. if test "$cross_compiling" = yes; then :
  13677. :
  13678. else
  13679. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13680. /* end confdefs.h. */
  13681. #include <ctype.h>
  13682. #include <stdlib.h>
  13683. #if ((' ' & 0x0FF) == 0x020)
  13684. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  13685. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  13686. #else
  13687. # define ISLOWER(c) \
  13688. (('a' <= (c) && (c) <= 'i') \
  13689. || ('j' <= (c) && (c) <= 'r') \
  13690. || ('s' <= (c) && (c) <= 'z'))
  13691. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  13692. #endif
  13693. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  13694. int
  13695. main ()
  13696. {
  13697. int i;
  13698. for (i = 0; i < 256; i++)
  13699. if (XOR (islower (i), ISLOWER (i))
  13700. || toupper (i) != TOUPPER (i))
  13701. return 2;
  13702. return 0;
  13703. }
  13704. _ACEOF
  13705. if ac_fn_c_try_run "$LINENO"; then :
  13706. else
  13707. ac_cv_header_stdc=no
  13708. fi
  13709. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13710. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13711. fi
  13712. fi
  13713. fi
  13714. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  13715. $as_echo "$ac_cv_header_stdc" >&6; }
  13716. if test $ac_cv_header_stdc = yes; then
  13717. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  13718. fi
  13719. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
  13720. $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
  13721. if ${ac_cv_header_sys_wait_h+:} false; then :
  13722. $as_echo_n "(cached) " >&6
  13723. else
  13724. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13725. /* end confdefs.h. */
  13726. #include <sys/types.h>
  13727. #include <sys/wait.h>
  13728. #ifndef WEXITSTATUS
  13729. # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
  13730. #endif
  13731. #ifndef WIFEXITED
  13732. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  13733. #endif
  13734. int
  13735. main ()
  13736. {
  13737. int s;
  13738. wait (&s);
  13739. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  13740. ;
  13741. return 0;
  13742. }
  13743. _ACEOF
  13744. if ac_fn_c_try_compile "$LINENO"; then :
  13745. ac_cv_header_sys_wait_h=yes
  13746. else
  13747. ac_cv_header_sys_wait_h=no
  13748. fi
  13749. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13750. fi
  13751. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
  13752. $as_echo "$ac_cv_header_sys_wait_h" >&6; }
  13753. if test $ac_cv_header_sys_wait_h = yes; then
  13754. $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
  13755. fi
  13756. 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
  13757. do :
  13758. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  13759. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  13760. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  13761. cat >>confdefs.h <<_ACEOF
  13762. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  13763. _ACEOF
  13764. fi
  13765. done
  13766. # Checks for typedefs, structures, and compiler characteristics.
  13767. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
  13768. $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
  13769. if ${ac_cv_header_stat_broken+:} false; then :
  13770. $as_echo_n "(cached) " >&6
  13771. else
  13772. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13773. /* end confdefs.h. */
  13774. #include <sys/types.h>
  13775. #include <sys/stat.h>
  13776. #if defined S_ISBLK && defined S_IFDIR
  13777. extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
  13778. #endif
  13779. #if defined S_ISBLK && defined S_IFCHR
  13780. extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
  13781. #endif
  13782. #if defined S_ISLNK && defined S_IFREG
  13783. extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
  13784. #endif
  13785. #if defined S_ISSOCK && defined S_IFREG
  13786. extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
  13787. #endif
  13788. _ACEOF
  13789. if ac_fn_c_try_compile "$LINENO"; then :
  13790. ac_cv_header_stat_broken=no
  13791. else
  13792. ac_cv_header_stat_broken=yes
  13793. fi
  13794. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13795. fi
  13796. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
  13797. $as_echo "$ac_cv_header_stat_broken" >&6; }
  13798. if test $ac_cv_header_stat_broken = yes; then
  13799. $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
  13800. fi
  13801. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  13802. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  13803. if ${ac_cv_c_const+:} false; then :
  13804. $as_echo_n "(cached) " >&6
  13805. else
  13806. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13807. /* end confdefs.h. */
  13808. int
  13809. main ()
  13810. {
  13811. /* FIXME: Include the comments suggested by Paul. */
  13812. #ifndef __cplusplus
  13813. /* Ultrix mips cc rejects this. */
  13814. typedef int charset[2];
  13815. const charset cs;
  13816. /* SunOS 4.1.1 cc rejects this. */
  13817. char const *const *pcpcc;
  13818. char **ppc;
  13819. /* NEC SVR4.0.2 mips cc rejects this. */
  13820. struct point {int x, y;};
  13821. static struct point const zero = {0,0};
  13822. /* AIX XL C 1.02.0.0 rejects this.
  13823. It does not let you subtract one const X* pointer from another in
  13824. an arm of an if-expression whose if-part is not a constant
  13825. expression */
  13826. const char *g = "string";
  13827. pcpcc = &g + (g ? g-g : 0);
  13828. /* HPUX 7.0 cc rejects these. */
  13829. ++pcpcc;
  13830. ppc = (char**) pcpcc;
  13831. pcpcc = (char const *const *) ppc;
  13832. { /* SCO 3.2v4 cc rejects this. */
  13833. char *t;
  13834. char const *s = 0 ? (char *) 0 : (char const *) 0;
  13835. *t++ = 0;
  13836. if (s) return 0;
  13837. }
  13838. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  13839. int x[] = {25, 17};
  13840. const int *foo = &x[0];
  13841. ++foo;
  13842. }
  13843. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  13844. typedef const int *iptr;
  13845. iptr p = 0;
  13846. ++p;
  13847. }
  13848. { /* AIX XL C 1.02.0.0 rejects this saying
  13849. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  13850. struct s { int j; const int *ap[3]; };
  13851. struct s *b; b->j = 5;
  13852. }
  13853. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  13854. const int foo = 10;
  13855. if (!foo) return 0;
  13856. }
  13857. return !cs[0] && !zero.x;
  13858. #endif
  13859. ;
  13860. return 0;
  13861. }
  13862. _ACEOF
  13863. if ac_fn_c_try_compile "$LINENO"; then :
  13864. ac_cv_c_const=yes
  13865. else
  13866. ac_cv_c_const=no
  13867. fi
  13868. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13869. fi
  13870. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  13871. $as_echo "$ac_cv_c_const" >&6; }
  13872. if test $ac_cv_c_const = no; then
  13873. $as_echo "#define const /**/" >>confdefs.h
  13874. fi
  13875. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
  13876. $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
  13877. if ${ac_cv_header_stdbool_h+:} false; then :
  13878. $as_echo_n "(cached) " >&6
  13879. else
  13880. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13881. /* end confdefs.h. */
  13882. #include <stdbool.h>
  13883. #ifndef bool
  13884. "error: bool is not defined"
  13885. #endif
  13886. #ifndef false
  13887. "error: false is not defined"
  13888. #endif
  13889. #if false
  13890. "error: false is not 0"
  13891. #endif
  13892. #ifndef true
  13893. "error: true is not defined"
  13894. #endif
  13895. #if true != 1
  13896. "error: true is not 1"
  13897. #endif
  13898. #ifndef __bool_true_false_are_defined
  13899. "error: __bool_true_false_are_defined is not defined"
  13900. #endif
  13901. struct s { _Bool s: 1; _Bool t; } s;
  13902. char a[true == 1 ? 1 : -1];
  13903. char b[false == 0 ? 1 : -1];
  13904. char c[__bool_true_false_are_defined == 1 ? 1 : -1];
  13905. char d[(bool) 0.5 == true ? 1 : -1];
  13906. /* See body of main program for 'e'. */
  13907. char f[(_Bool) 0.0 == false ? 1 : -1];
  13908. char g[true];
  13909. char h[sizeof (_Bool)];
  13910. char i[sizeof s.t];
  13911. enum { j = false, k = true, l = false * true, m = true * 256 };
  13912. /* The following fails for
  13913. HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
  13914. _Bool n[m];
  13915. char o[sizeof n == m * sizeof n[0] ? 1 : -1];
  13916. char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
  13917. /* Catch a bug in an HP-UX C compiler. See
  13918. http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
  13919. http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
  13920. */
  13921. _Bool q = true;
  13922. _Bool *pq = &q;
  13923. int
  13924. main ()
  13925. {
  13926. bool e = &s;
  13927. *pq |= q;
  13928. *pq |= ! q;
  13929. /* Refer to every declared value, to avoid compiler optimizations. */
  13930. return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
  13931. + !m + !n + !o + !p + !q + !pq);
  13932. ;
  13933. return 0;
  13934. }
  13935. _ACEOF
  13936. if ac_fn_c_try_compile "$LINENO"; then :
  13937. ac_cv_header_stdbool_h=yes
  13938. else
  13939. ac_cv_header_stdbool_h=no
  13940. fi
  13941. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13942. fi
  13943. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
  13944. $as_echo "$ac_cv_header_stdbool_h" >&6; }
  13945. ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
  13946. if test "x$ac_cv_type__Bool" = xyes; then :
  13947. cat >>confdefs.h <<_ACEOF
  13948. #define HAVE__BOOL 1
  13949. _ACEOF
  13950. fi
  13951. if test $ac_cv_header_stdbool_h = yes; then
  13952. $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
  13953. fi
  13954. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
  13955. $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
  13956. if ${ac_cv_type_uid_t+:} false; then :
  13957. $as_echo_n "(cached) " >&6
  13958. else
  13959. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13960. /* end confdefs.h. */
  13961. #include <sys/types.h>
  13962. _ACEOF
  13963. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13964. $EGREP "uid_t" >/dev/null 2>&1; then :
  13965. ac_cv_type_uid_t=yes
  13966. else
  13967. ac_cv_type_uid_t=no
  13968. fi
  13969. rm -f conftest*
  13970. fi
  13971. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
  13972. $as_echo "$ac_cv_type_uid_t" >&6; }
  13973. if test $ac_cv_type_uid_t = no; then
  13974. $as_echo "#define uid_t int" >>confdefs.h
  13975. $as_echo "#define gid_t int" >>confdefs.h
  13976. fi
  13977. ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
  13978. if test "x$ac_cv_type_pid_t" = xyes; then :
  13979. else
  13980. cat >>confdefs.h <<_ACEOF
  13981. #define pid_t int
  13982. _ACEOF
  13983. fi
  13984. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  13985. if test "x$ac_cv_type_size_t" = xyes; then :
  13986. else
  13987. cat >>confdefs.h <<_ACEOF
  13988. #define size_t unsigned int
  13989. _ACEOF
  13990. fi
  13991. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
  13992. $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
  13993. if ${ac_cv_header_time+:} false; then :
  13994. $as_echo_n "(cached) " >&6
  13995. else
  13996. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13997. /* end confdefs.h. */
  13998. #include <sys/types.h>
  13999. #include <sys/time.h>
  14000. #include <time.h>
  14001. int
  14002. main ()
  14003. {
  14004. if ((struct tm *) 0)
  14005. return 0;
  14006. ;
  14007. return 0;
  14008. }
  14009. _ACEOF
  14010. if ac_fn_c_try_compile "$LINENO"; then :
  14011. ac_cv_header_time=yes
  14012. else
  14013. ac_cv_header_time=no
  14014. fi
  14015. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14016. fi
  14017. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
  14018. $as_echo "$ac_cv_header_time" >&6; }
  14019. if test $ac_cv_header_time = yes; then
  14020. $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
  14021. fi
  14022. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
  14023. $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
  14024. if ${ac_cv_struct_tm+:} false; then :
  14025. $as_echo_n "(cached) " >&6
  14026. else
  14027. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14028. /* end confdefs.h. */
  14029. #include <sys/types.h>
  14030. #include <time.h>
  14031. int
  14032. main ()
  14033. {
  14034. struct tm tm;
  14035. int *p = &tm.tm_sec;
  14036. return !p;
  14037. ;
  14038. return 0;
  14039. }
  14040. _ACEOF
  14041. if ac_fn_c_try_compile "$LINENO"; then :
  14042. ac_cv_struct_tm=time.h
  14043. else
  14044. ac_cv_struct_tm=sys/time.h
  14045. fi
  14046. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14047. fi
  14048. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
  14049. $as_echo "$ac_cv_struct_tm" >&6; }
  14050. if test $ac_cv_struct_tm = sys/time.h; then
  14051. $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
  14052. fi
  14053. # Checks for library functions.
  14054. for ac_header in unistd.h
  14055. do :
  14056. ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
  14057. if test "x$ac_cv_header_unistd_h" = xyes; then :
  14058. cat >>confdefs.h <<_ACEOF
  14059. #define HAVE_UNISTD_H 1
  14060. _ACEOF
  14061. fi
  14062. done
  14063. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5
  14064. $as_echo_n "checking for working chown... " >&6; }
  14065. if ${ac_cv_func_chown_works+:} false; then :
  14066. $as_echo_n "(cached) " >&6
  14067. else
  14068. if test "$cross_compiling" = yes; then :
  14069. ac_cv_func_chown_works=no
  14070. else
  14071. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14072. /* end confdefs.h. */
  14073. $ac_includes_default
  14074. #include <fcntl.h>
  14075. int
  14076. main ()
  14077. {
  14078. char *f = "conftest.chown";
  14079. struct stat before, after;
  14080. if (creat (f, 0600) < 0)
  14081. return 1;
  14082. if (stat (f, &before) < 0)
  14083. return 1;
  14084. if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
  14085. return 1;
  14086. if (stat (f, &after) < 0)
  14087. return 1;
  14088. return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
  14089. ;
  14090. return 0;
  14091. }
  14092. _ACEOF
  14093. if ac_fn_c_try_run "$LINENO"; then :
  14094. ac_cv_func_chown_works=yes
  14095. else
  14096. ac_cv_func_chown_works=no
  14097. fi
  14098. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14099. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14100. fi
  14101. rm -f conftest.chown
  14102. fi
  14103. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5
  14104. $as_echo "$ac_cv_func_chown_works" >&6; }
  14105. if test $ac_cv_func_chown_works = yes; then
  14106. $as_echo "#define HAVE_CHOWN 1" >>confdefs.h
  14107. fi
  14108. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
  14109. $as_echo_n "checking whether closedir returns void... " >&6; }
  14110. if ${ac_cv_func_closedir_void+:} false; then :
  14111. $as_echo_n "(cached) " >&6
  14112. else
  14113. if test "$cross_compiling" = yes; then :
  14114. ac_cv_func_closedir_void=yes
  14115. else
  14116. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14117. /* end confdefs.h. */
  14118. $ac_includes_default
  14119. #include <$ac_header_dirent>
  14120. #ifndef __cplusplus
  14121. int closedir ();
  14122. #endif
  14123. int
  14124. main ()
  14125. {
  14126. return closedir (opendir (".")) != 0;
  14127. ;
  14128. return 0;
  14129. }
  14130. _ACEOF
  14131. if ac_fn_c_try_run "$LINENO"; then :
  14132. ac_cv_func_closedir_void=no
  14133. else
  14134. ac_cv_func_closedir_void=yes
  14135. fi
  14136. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14137. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14138. fi
  14139. fi
  14140. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
  14141. $as_echo "$ac_cv_func_closedir_void" >&6; }
  14142. if test $ac_cv_func_closedir_void = yes; then
  14143. $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
  14144. fi
  14145. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
  14146. $as_echo_n "checking for error_at_line... " >&6; }
  14147. if ${ac_cv_lib_error_at_line+:} false; then :
  14148. $as_echo_n "(cached) " >&6
  14149. else
  14150. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14151. /* end confdefs.h. */
  14152. #include <error.h>
  14153. int
  14154. main ()
  14155. {
  14156. error_at_line (0, 0, "", 0, "an error occurred");
  14157. ;
  14158. return 0;
  14159. }
  14160. _ACEOF
  14161. if ac_fn_c_try_link "$LINENO"; then :
  14162. ac_cv_lib_error_at_line=yes
  14163. else
  14164. ac_cv_lib_error_at_line=no
  14165. fi
  14166. rm -f core conftest.err conftest.$ac_objext \
  14167. conftest$ac_exeext conftest.$ac_ext
  14168. fi
  14169. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
  14170. $as_echo "$ac_cv_lib_error_at_line" >&6; }
  14171. if test $ac_cv_lib_error_at_line = no; then
  14172. case " $LIBOBJS " in
  14173. *" error.$ac_objext "* ) ;;
  14174. *) LIBOBJS="$LIBOBJS error.$ac_objext"
  14175. ;;
  14176. esac
  14177. fi
  14178. for ac_header in vfork.h
  14179. do :
  14180. ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
  14181. if test "x$ac_cv_header_vfork_h" = xyes; then :
  14182. cat >>confdefs.h <<_ACEOF
  14183. #define HAVE_VFORK_H 1
  14184. _ACEOF
  14185. fi
  14186. done
  14187. for ac_func in fork vfork
  14188. do :
  14189. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14190. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14191. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14192. cat >>confdefs.h <<_ACEOF
  14193. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14194. _ACEOF
  14195. fi
  14196. done
  14197. if test "x$ac_cv_func_fork" = xyes; then
  14198. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
  14199. $as_echo_n "checking for working fork... " >&6; }
  14200. if ${ac_cv_func_fork_works+:} false; then :
  14201. $as_echo_n "(cached) " >&6
  14202. else
  14203. if test "$cross_compiling" = yes; then :
  14204. ac_cv_func_fork_works=cross
  14205. else
  14206. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14207. /* end confdefs.h. */
  14208. $ac_includes_default
  14209. int
  14210. main ()
  14211. {
  14212. /* By Ruediger Kuhlmann. */
  14213. return fork () < 0;
  14214. ;
  14215. return 0;
  14216. }
  14217. _ACEOF
  14218. if ac_fn_c_try_run "$LINENO"; then :
  14219. ac_cv_func_fork_works=yes
  14220. else
  14221. ac_cv_func_fork_works=no
  14222. fi
  14223. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14224. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14225. fi
  14226. fi
  14227. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
  14228. $as_echo "$ac_cv_func_fork_works" >&6; }
  14229. else
  14230. ac_cv_func_fork_works=$ac_cv_func_fork
  14231. fi
  14232. if test "x$ac_cv_func_fork_works" = xcross; then
  14233. case $host in
  14234. *-*-amigaos* | *-*-msdosdjgpp*)
  14235. # Override, as these systems have only a dummy fork() stub
  14236. ac_cv_func_fork_works=no
  14237. ;;
  14238. *)
  14239. ac_cv_func_fork_works=yes
  14240. ;;
  14241. esac
  14242. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  14243. $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  14244. fi
  14245. ac_cv_func_vfork_works=$ac_cv_func_vfork
  14246. if test "x$ac_cv_func_vfork" = xyes; then
  14247. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
  14248. $as_echo_n "checking for working vfork... " >&6; }
  14249. if ${ac_cv_func_vfork_works+:} false; then :
  14250. $as_echo_n "(cached) " >&6
  14251. else
  14252. if test "$cross_compiling" = yes; then :
  14253. ac_cv_func_vfork_works=cross
  14254. else
  14255. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14256. /* end confdefs.h. */
  14257. /* Thanks to Paul Eggert for this test. */
  14258. $ac_includes_default
  14259. #include <sys/wait.h>
  14260. #ifdef HAVE_VFORK_H
  14261. # include <vfork.h>
  14262. #endif
  14263. /* On some sparc systems, changes by the child to local and incoming
  14264. argument registers are propagated back to the parent. The compiler
  14265. is told about this with #include <vfork.h>, but some compilers
  14266. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  14267. static variable whose address is put into a register that is
  14268. clobbered by the vfork. */
  14269. static void
  14270. #ifdef __cplusplus
  14271. sparc_address_test (int arg)
  14272. # else
  14273. sparc_address_test (arg) int arg;
  14274. #endif
  14275. {
  14276. static pid_t child;
  14277. if (!child) {
  14278. child = vfork ();
  14279. if (child < 0) {
  14280. perror ("vfork");
  14281. _exit(2);
  14282. }
  14283. if (!child) {
  14284. arg = getpid();
  14285. write(-1, "", 0);
  14286. _exit (arg);
  14287. }
  14288. }
  14289. }
  14290. int
  14291. main ()
  14292. {
  14293. pid_t parent = getpid ();
  14294. pid_t child;
  14295. sparc_address_test (0);
  14296. child = vfork ();
  14297. if (child == 0) {
  14298. /* Here is another test for sparc vfork register problems. This
  14299. test uses lots of local variables, at least as many local
  14300. variables as main has allocated so far including compiler
  14301. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  14302. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  14303. reuse the register of parent for one of the local variables,
  14304. since it will think that parent can't possibly be used any more
  14305. in this routine. Assigning to the local variable will thus
  14306. munge parent in the parent process. */
  14307. pid_t
  14308. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  14309. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  14310. /* Convince the compiler that p..p7 are live; otherwise, it might
  14311. use the same hardware register for all 8 local variables. */
  14312. if (p != p1 || p != p2 || p != p3 || p != p4
  14313. || p != p5 || p != p6 || p != p7)
  14314. _exit(1);
  14315. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  14316. from child file descriptors. If the child closes a descriptor
  14317. before it execs or exits, this munges the parent's descriptor
  14318. as well. Test for this by closing stdout in the child. */
  14319. _exit(close(fileno(stdout)) != 0);
  14320. } else {
  14321. int status;
  14322. struct stat st;
  14323. while (wait(&status) != child)
  14324. ;
  14325. return (
  14326. /* Was there some problem with vforking? */
  14327. child < 0
  14328. /* Did the child fail? (This shouldn't happen.) */
  14329. || status
  14330. /* Did the vfork/compiler bug occur? */
  14331. || parent != getpid()
  14332. /* Did the file descriptor bug occur? */
  14333. || fstat(fileno(stdout), &st) != 0
  14334. );
  14335. }
  14336. }
  14337. _ACEOF
  14338. if ac_fn_c_try_run "$LINENO"; then :
  14339. ac_cv_func_vfork_works=yes
  14340. else
  14341. ac_cv_func_vfork_works=no
  14342. fi
  14343. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14344. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14345. fi
  14346. fi
  14347. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
  14348. $as_echo "$ac_cv_func_vfork_works" >&6; }
  14349. fi;
  14350. if test "x$ac_cv_func_fork_works" = xcross; then
  14351. ac_cv_func_vfork_works=$ac_cv_func_vfork
  14352. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  14353. $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  14354. fi
  14355. if test "x$ac_cv_func_vfork_works" = xyes; then
  14356. $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
  14357. else
  14358. $as_echo "#define vfork fork" >>confdefs.h
  14359. fi
  14360. if test "x$ac_cv_func_fork_works" = xyes; then
  14361. $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
  14362. fi
  14363. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
  14364. $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
  14365. if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
  14366. $as_echo_n "(cached) " >&6
  14367. else
  14368. rm -f conftest.sym conftest.file
  14369. echo >conftest.file
  14370. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  14371. if test "$cross_compiling" = yes; then :
  14372. ac_cv_func_lstat_dereferences_slashed_symlink=no
  14373. else
  14374. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14375. /* end confdefs.h. */
  14376. $ac_includes_default
  14377. int
  14378. main ()
  14379. {
  14380. struct stat sbuf;
  14381. /* Linux will dereference the symlink and fail, as required by POSIX.
  14382. That is better in the sense that it means we will not
  14383. have to compile and use the lstat wrapper. */
  14384. return lstat ("conftest.sym/", &sbuf) == 0;
  14385. ;
  14386. return 0;
  14387. }
  14388. _ACEOF
  14389. if ac_fn_c_try_run "$LINENO"; then :
  14390. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  14391. else
  14392. ac_cv_func_lstat_dereferences_slashed_symlink=no
  14393. fi
  14394. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14395. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14396. fi
  14397. else
  14398. # If the `ln -s' command failed, then we probably don't even
  14399. # have an lstat function.
  14400. ac_cv_func_lstat_dereferences_slashed_symlink=no
  14401. fi
  14402. rm -f conftest.sym conftest.file
  14403. fi
  14404. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  14405. $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  14406. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  14407. cat >>confdefs.h <<_ACEOF
  14408. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  14409. _ACEOF
  14410. if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
  14411. case " $LIBOBJS " in
  14412. *" lstat.$ac_objext "* ) ;;
  14413. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  14414. ;;
  14415. esac
  14416. fi
  14417. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat accepts an empty string" >&5
  14418. $as_echo_n "checking whether lstat accepts an empty string... " >&6; }
  14419. if ${ac_cv_func_lstat_empty_string_bug+:} false; then :
  14420. $as_echo_n "(cached) " >&6
  14421. else
  14422. if test "$cross_compiling" = yes; then :
  14423. ac_cv_func_lstat_empty_string_bug=yes
  14424. else
  14425. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14426. /* end confdefs.h. */
  14427. $ac_includes_default
  14428. int
  14429. main ()
  14430. {
  14431. struct stat sbuf;
  14432. return lstat ("", &sbuf) == 0;
  14433. ;
  14434. return 0;
  14435. }
  14436. _ACEOF
  14437. if ac_fn_c_try_run "$LINENO"; then :
  14438. ac_cv_func_lstat_empty_string_bug=no
  14439. else
  14440. ac_cv_func_lstat_empty_string_bug=yes
  14441. fi
  14442. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14443. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14444. fi
  14445. fi
  14446. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_empty_string_bug" >&5
  14447. $as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
  14448. if test $ac_cv_func_lstat_empty_string_bug = yes; then
  14449. case " $LIBOBJS " in
  14450. *" lstat.$ac_objext "* ) ;;
  14451. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  14452. ;;
  14453. esac
  14454. cat >>confdefs.h <<_ACEOF
  14455. #define HAVE_LSTAT_EMPTY_STRING_BUG 1
  14456. _ACEOF
  14457. fi
  14458. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
  14459. $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
  14460. if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
  14461. $as_echo_n "(cached) " >&6
  14462. else
  14463. rm -f conftest.sym conftest.file
  14464. echo >conftest.file
  14465. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  14466. if test "$cross_compiling" = yes; then :
  14467. ac_cv_func_lstat_dereferences_slashed_symlink=no
  14468. else
  14469. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14470. /* end confdefs.h. */
  14471. $ac_includes_default
  14472. int
  14473. main ()
  14474. {
  14475. struct stat sbuf;
  14476. /* Linux will dereference the symlink and fail, as required by POSIX.
  14477. That is better in the sense that it means we will not
  14478. have to compile and use the lstat wrapper. */
  14479. return lstat ("conftest.sym/", &sbuf) == 0;
  14480. ;
  14481. return 0;
  14482. }
  14483. _ACEOF
  14484. if ac_fn_c_try_run "$LINENO"; then :
  14485. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  14486. else
  14487. ac_cv_func_lstat_dereferences_slashed_symlink=no
  14488. fi
  14489. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14490. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14491. fi
  14492. else
  14493. # If the `ln -s' command failed, then we probably don't even
  14494. # have an lstat function.
  14495. ac_cv_func_lstat_dereferences_slashed_symlink=no
  14496. fi
  14497. rm -f conftest.sym conftest.file
  14498. fi
  14499. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  14500. $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  14501. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  14502. cat >>confdefs.h <<_ACEOF
  14503. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  14504. _ACEOF
  14505. if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
  14506. case " $LIBOBJS " in
  14507. *" lstat.$ac_objext "* ) ;;
  14508. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  14509. ;;
  14510. esac
  14511. fi
  14512. for ac_header in stdlib.h
  14513. do :
  14514. ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
  14515. if test "x$ac_cv_header_stdlib_h" = xyes; then :
  14516. cat >>confdefs.h <<_ACEOF
  14517. #define HAVE_STDLIB_H 1
  14518. _ACEOF
  14519. fi
  14520. done
  14521. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
  14522. $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
  14523. if ${ac_cv_func_malloc_0_nonnull+:} false; then :
  14524. $as_echo_n "(cached) " >&6
  14525. else
  14526. if test "$cross_compiling" = yes; then :
  14527. ac_cv_func_malloc_0_nonnull=no
  14528. else
  14529. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14530. /* end confdefs.h. */
  14531. #if defined STDC_HEADERS || defined HAVE_STDLIB_H
  14532. # include <stdlib.h>
  14533. #else
  14534. char *malloc ();
  14535. #endif
  14536. int
  14537. main ()
  14538. {
  14539. return ! malloc (0);
  14540. ;
  14541. return 0;
  14542. }
  14543. _ACEOF
  14544. if ac_fn_c_try_run "$LINENO"; then :
  14545. ac_cv_func_malloc_0_nonnull=yes
  14546. else
  14547. ac_cv_func_malloc_0_nonnull=no
  14548. fi
  14549. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14550. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14551. fi
  14552. fi
  14553. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
  14554. $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
  14555. if test $ac_cv_func_malloc_0_nonnull = yes; then :
  14556. $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
  14557. else
  14558. $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
  14559. case " $LIBOBJS " in
  14560. *" malloc.$ac_objext "* ) ;;
  14561. *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
  14562. ;;
  14563. esac
  14564. $as_echo "#define malloc rpl_malloc" >>confdefs.h
  14565. fi
  14566. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
  14567. $as_echo_n "checking for working memcmp... " >&6; }
  14568. if ${ac_cv_func_memcmp_working+:} false; then :
  14569. $as_echo_n "(cached) " >&6
  14570. else
  14571. if test "$cross_compiling" = yes; then :
  14572. ac_cv_func_memcmp_working=no
  14573. else
  14574. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14575. /* end confdefs.h. */
  14576. $ac_includes_default
  14577. int
  14578. main ()
  14579. {
  14580. /* Some versions of memcmp are not 8-bit clean. */
  14581. char c0 = '\100', c1 = '\200', c2 = '\201';
  14582. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  14583. return 1;
  14584. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  14585. or more and with at least one buffer not starting on a 4-byte boundary.
  14586. William Lewis provided this test program. */
  14587. {
  14588. char foo[21];
  14589. char bar[21];
  14590. int i;
  14591. for (i = 0; i < 4; i++)
  14592. {
  14593. char *a = foo + i;
  14594. char *b = bar + i;
  14595. strcpy (a, "--------01111111");
  14596. strcpy (b, "--------10000000");
  14597. if (memcmp (a, b, 16) >= 0)
  14598. return 1;
  14599. }
  14600. return 0;
  14601. }
  14602. ;
  14603. return 0;
  14604. }
  14605. _ACEOF
  14606. if ac_fn_c_try_run "$LINENO"; then :
  14607. ac_cv_func_memcmp_working=yes
  14608. else
  14609. ac_cv_func_memcmp_working=no
  14610. fi
  14611. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14612. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14613. fi
  14614. fi
  14615. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
  14616. $as_echo "$ac_cv_func_memcmp_working" >&6; }
  14617. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  14618. *" memcmp.$ac_objext "* ) ;;
  14619. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  14620. ;;
  14621. esac
  14622. for ac_header in $ac_header_list
  14623. do :
  14624. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  14625. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  14626. "
  14627. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  14628. cat >>confdefs.h <<_ACEOF
  14629. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  14630. _ACEOF
  14631. fi
  14632. done
  14633. for ac_func in getpagesize
  14634. do :
  14635. ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
  14636. if test "x$ac_cv_func_getpagesize" = xyes; then :
  14637. cat >>confdefs.h <<_ACEOF
  14638. #define HAVE_GETPAGESIZE 1
  14639. _ACEOF
  14640. fi
  14641. done
  14642. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
  14643. $as_echo_n "checking for working mmap... " >&6; }
  14644. if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
  14645. $as_echo_n "(cached) " >&6
  14646. else
  14647. if test "$cross_compiling" = yes; then :
  14648. ac_cv_func_mmap_fixed_mapped=no
  14649. else
  14650. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14651. /* end confdefs.h. */
  14652. $ac_includes_default
  14653. /* malloc might have been renamed as rpl_malloc. */
  14654. #undef malloc
  14655. /* Thanks to Mike Haertel and Jim Avera for this test.
  14656. Here is a matrix of mmap possibilities:
  14657. mmap private not fixed
  14658. mmap private fixed at somewhere currently unmapped
  14659. mmap private fixed at somewhere already mapped
  14660. mmap shared not fixed
  14661. mmap shared fixed at somewhere currently unmapped
  14662. mmap shared fixed at somewhere already mapped
  14663. For private mappings, we should verify that changes cannot be read()
  14664. back from the file, nor mmap's back from the file at a different
  14665. address. (There have been systems where private was not correctly
  14666. implemented like the infamous i386 svr4.0, and systems where the
  14667. VM page cache was not coherent with the file system buffer cache
  14668. like early versions of FreeBSD and possibly contemporary NetBSD.)
  14669. For shared mappings, we should conversely verify that changes get
  14670. propagated back to all the places they're supposed to be.
  14671. Grep wants private fixed already mapped.
  14672. The main things grep needs to know about mmap are:
  14673. * does it exist and is it safe to write into the mmap'd area
  14674. * how to use it (BSD variants) */
  14675. #include <fcntl.h>
  14676. #include <sys/mman.h>
  14677. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  14678. char *malloc ();
  14679. #endif
  14680. /* This mess was copied from the GNU getpagesize.h. */
  14681. #ifndef HAVE_GETPAGESIZE
  14682. # ifdef _SC_PAGESIZE
  14683. # define getpagesize() sysconf(_SC_PAGESIZE)
  14684. # else /* no _SC_PAGESIZE */
  14685. # ifdef HAVE_SYS_PARAM_H
  14686. # include <sys/param.h>
  14687. # ifdef EXEC_PAGESIZE
  14688. # define getpagesize() EXEC_PAGESIZE
  14689. # else /* no EXEC_PAGESIZE */
  14690. # ifdef NBPG
  14691. # define getpagesize() NBPG * CLSIZE
  14692. # ifndef CLSIZE
  14693. # define CLSIZE 1
  14694. # endif /* no CLSIZE */
  14695. # else /* no NBPG */
  14696. # ifdef NBPC
  14697. # define getpagesize() NBPC
  14698. # else /* no NBPC */
  14699. # ifdef PAGESIZE
  14700. # define getpagesize() PAGESIZE
  14701. # endif /* PAGESIZE */
  14702. # endif /* no NBPC */
  14703. # endif /* no NBPG */
  14704. # endif /* no EXEC_PAGESIZE */
  14705. # else /* no HAVE_SYS_PARAM_H */
  14706. # define getpagesize() 8192 /* punt totally */
  14707. # endif /* no HAVE_SYS_PARAM_H */
  14708. # endif /* no _SC_PAGESIZE */
  14709. #endif /* no HAVE_GETPAGESIZE */
  14710. int
  14711. main ()
  14712. {
  14713. char *data, *data2, *data3;
  14714. const char *cdata2;
  14715. int i, pagesize;
  14716. int fd, fd2;
  14717. pagesize = getpagesize ();
  14718. /* First, make a file with some known garbage in it. */
  14719. data = (char *) malloc (pagesize);
  14720. if (!data)
  14721. return 1;
  14722. for (i = 0; i < pagesize; ++i)
  14723. *(data + i) = rand ();
  14724. umask (0);
  14725. fd = creat ("conftest.mmap", 0600);
  14726. if (fd < 0)
  14727. return 2;
  14728. if (write (fd, data, pagesize) != pagesize)
  14729. return 3;
  14730. close (fd);
  14731. /* Next, check that the tail of a page is zero-filled. File must have
  14732. non-zero length, otherwise we risk SIGBUS for entire page. */
  14733. fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
  14734. if (fd2 < 0)
  14735. return 4;
  14736. cdata2 = "";
  14737. if (write (fd2, cdata2, 1) != 1)
  14738. return 5;
  14739. data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
  14740. if (data2 == MAP_FAILED)
  14741. return 6;
  14742. for (i = 0; i < pagesize; ++i)
  14743. if (*(data2 + i))
  14744. return 7;
  14745. close (fd2);
  14746. if (munmap (data2, pagesize))
  14747. return 8;
  14748. /* Next, try to mmap the file at a fixed address which already has
  14749. something else allocated at it. If we can, also make sure that
  14750. we see the same garbage. */
  14751. fd = open ("conftest.mmap", O_RDWR);
  14752. if (fd < 0)
  14753. return 9;
  14754. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  14755. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  14756. return 10;
  14757. for (i = 0; i < pagesize; ++i)
  14758. if (*(data + i) != *(data2 + i))
  14759. return 11;
  14760. /* Finally, make sure that changes to the mapped area do not
  14761. percolate back to the file as seen by read(). (This is a bug on
  14762. some variants of i386 svr4.0.) */
  14763. for (i = 0; i < pagesize; ++i)
  14764. *(data2 + i) = *(data2 + i) + 1;
  14765. data3 = (char *) malloc (pagesize);
  14766. if (!data3)
  14767. return 12;
  14768. if (read (fd, data3, pagesize) != pagesize)
  14769. return 13;
  14770. for (i = 0; i < pagesize; ++i)
  14771. if (*(data + i) != *(data3 + i))
  14772. return 14;
  14773. close (fd);
  14774. return 0;
  14775. }
  14776. _ACEOF
  14777. if ac_fn_c_try_run "$LINENO"; then :
  14778. ac_cv_func_mmap_fixed_mapped=yes
  14779. else
  14780. ac_cv_func_mmap_fixed_mapped=no
  14781. fi
  14782. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14783. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14784. fi
  14785. fi
  14786. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
  14787. $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
  14788. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  14789. $as_echo "#define HAVE_MMAP 1" >>confdefs.h
  14790. fi
  14791. rm -f conftest.mmap conftest.txt
  14792. { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
  14793. $as_echo_n "checking return type of signal handlers... " >&6; }
  14794. if ${ac_cv_type_signal+:} false; then :
  14795. $as_echo_n "(cached) " >&6
  14796. else
  14797. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14798. /* end confdefs.h. */
  14799. #include <sys/types.h>
  14800. #include <signal.h>
  14801. int
  14802. main ()
  14803. {
  14804. return *(signal (0, 0)) (0) == 1;
  14805. ;
  14806. return 0;
  14807. }
  14808. _ACEOF
  14809. if ac_fn_c_try_compile "$LINENO"; then :
  14810. ac_cv_type_signal=int
  14811. else
  14812. ac_cv_type_signal=void
  14813. fi
  14814. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14815. fi
  14816. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
  14817. $as_echo "$ac_cv_type_signal" >&6; }
  14818. cat >>confdefs.h <<_ACEOF
  14819. #define RETSIGTYPE $ac_cv_type_signal
  14820. _ACEOF
  14821. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
  14822. $as_echo_n "checking whether stat accepts an empty string... " >&6; }
  14823. if ${ac_cv_func_stat_empty_string_bug+:} false; then :
  14824. $as_echo_n "(cached) " >&6
  14825. else
  14826. if test "$cross_compiling" = yes; then :
  14827. ac_cv_func_stat_empty_string_bug=yes
  14828. else
  14829. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14830. /* end confdefs.h. */
  14831. $ac_includes_default
  14832. int
  14833. main ()
  14834. {
  14835. struct stat sbuf;
  14836. return stat ("", &sbuf) == 0;
  14837. ;
  14838. return 0;
  14839. }
  14840. _ACEOF
  14841. if ac_fn_c_try_run "$LINENO"; then :
  14842. ac_cv_func_stat_empty_string_bug=no
  14843. else
  14844. ac_cv_func_stat_empty_string_bug=yes
  14845. fi
  14846. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14847. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14848. fi
  14849. fi
  14850. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
  14851. $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
  14852. if test $ac_cv_func_stat_empty_string_bug = yes; then
  14853. case " $LIBOBJS " in
  14854. *" stat.$ac_objext "* ) ;;
  14855. *) LIBOBJS="$LIBOBJS stat.$ac_objext"
  14856. ;;
  14857. esac
  14858. cat >>confdefs.h <<_ACEOF
  14859. #define HAVE_STAT_EMPTY_STRING_BUG 1
  14860. _ACEOF
  14861. fi
  14862. ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
  14863. if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
  14864. ac_have_decl=1
  14865. else
  14866. ac_have_decl=0
  14867. fi
  14868. cat >>confdefs.h <<_ACEOF
  14869. #define HAVE_DECL_STRERROR_R $ac_have_decl
  14870. _ACEOF
  14871. for ac_func in strerror_r
  14872. do :
  14873. ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
  14874. if test "x$ac_cv_func_strerror_r" = xyes; then :
  14875. cat >>confdefs.h <<_ACEOF
  14876. #define HAVE_STRERROR_R 1
  14877. _ACEOF
  14878. fi
  14879. done
  14880. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
  14881. $as_echo_n "checking whether strerror_r returns char *... " >&6; }
  14882. if ${ac_cv_func_strerror_r_char_p+:} false; then :
  14883. $as_echo_n "(cached) " >&6
  14884. else
  14885. ac_cv_func_strerror_r_char_p=no
  14886. if test $ac_cv_have_decl_strerror_r = yes; then
  14887. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14888. /* end confdefs.h. */
  14889. $ac_includes_default
  14890. int
  14891. main ()
  14892. {
  14893. char buf[100];
  14894. char x = *strerror_r (0, buf, sizeof buf);
  14895. char *p = strerror_r (0, buf, sizeof buf);
  14896. return !p || x;
  14897. ;
  14898. return 0;
  14899. }
  14900. _ACEOF
  14901. if ac_fn_c_try_compile "$LINENO"; then :
  14902. ac_cv_func_strerror_r_char_p=yes
  14903. fi
  14904. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14905. else
  14906. # strerror_r is not declared. Choose between
  14907. # systems that have relatively inaccessible declarations for the
  14908. # function. BeOS and DEC UNIX 4.0 fall in this category, but the
  14909. # former has a strerror_r that returns char*, while the latter
  14910. # has a strerror_r that returns `int'.
  14911. # This test should segfault on the DEC system.
  14912. if test "$cross_compiling" = yes; then :
  14913. :
  14914. else
  14915. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14916. /* end confdefs.h. */
  14917. $ac_includes_default
  14918. extern char *strerror_r ();
  14919. int
  14920. main ()
  14921. {
  14922. char buf[100];
  14923. char x = *strerror_r (0, buf, sizeof buf);
  14924. return ! isalpha (x);
  14925. ;
  14926. return 0;
  14927. }
  14928. _ACEOF
  14929. if ac_fn_c_try_run "$LINENO"; then :
  14930. ac_cv_func_strerror_r_char_p=yes
  14931. fi
  14932. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14933. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14934. fi
  14935. fi
  14936. fi
  14937. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
  14938. $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
  14939. if test $ac_cv_func_strerror_r_char_p = yes; then
  14940. $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
  14941. fi
  14942. for ac_func in strftime
  14943. do :
  14944. ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
  14945. if test "x$ac_cv_func_strftime" = xyes; then :
  14946. cat >>confdefs.h <<_ACEOF
  14947. #define HAVE_STRFTIME 1
  14948. _ACEOF
  14949. else
  14950. # strftime is in -lintl on SCO UNIX.
  14951. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
  14952. $as_echo_n "checking for strftime in -lintl... " >&6; }
  14953. if ${ac_cv_lib_intl_strftime+:} false; then :
  14954. $as_echo_n "(cached) " >&6
  14955. else
  14956. ac_check_lib_save_LIBS=$LIBS
  14957. LIBS="-lintl $LIBS"
  14958. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14959. /* end confdefs.h. */
  14960. /* Override any GCC internal prototype to avoid an error.
  14961. Use char because int might match the return type of a GCC
  14962. builtin and then its argument prototype would still apply. */
  14963. #ifdef __cplusplus
  14964. extern "C"
  14965. #endif
  14966. char strftime ();
  14967. int
  14968. main ()
  14969. {
  14970. return strftime ();
  14971. ;
  14972. return 0;
  14973. }
  14974. _ACEOF
  14975. if ac_fn_c_try_link "$LINENO"; then :
  14976. ac_cv_lib_intl_strftime=yes
  14977. else
  14978. ac_cv_lib_intl_strftime=no
  14979. fi
  14980. rm -f core conftest.err conftest.$ac_objext \
  14981. conftest$ac_exeext conftest.$ac_ext
  14982. LIBS=$ac_check_lib_save_LIBS
  14983. fi
  14984. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
  14985. $as_echo "$ac_cv_lib_intl_strftime" >&6; }
  14986. if test "x$ac_cv_lib_intl_strftime" = xyes; then :
  14987. $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
  14988. LIBS="-lintl $LIBS"
  14989. fi
  14990. fi
  14991. done
  14992. for ac_func in vprintf
  14993. do :
  14994. ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
  14995. if test "x$ac_cv_func_vprintf" = xyes; then :
  14996. cat >>confdefs.h <<_ACEOF
  14997. #define HAVE_VPRINTF 1
  14998. _ACEOF
  14999. ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
  15000. if test "x$ac_cv_func__doprnt" = xyes; then :
  15001. $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
  15002. fi
  15003. fi
  15004. done
  15005. 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
  15006. do :
  15007. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  15008. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  15009. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  15010. cat >>confdefs.h <<_ACEOF
  15011. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  15012. _ACEOF
  15013. fi
  15014. done
  15015. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-debug" >&5
  15016. $as_echo_n "checking for --enable-debug... " >&6; }
  15017. # Check whether --enable-debug was given.
  15018. if test "${enable_debug+set}" = set; then :
  15019. enableval=$enable_debug;
  15020. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15021. $as_echo "yes" >&6; }
  15022. debug_defs="-DDEBUG -DMCC_DEBUG"
  15023. else
  15024. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15025. $as_echo "no" >&6; }
  15026. debug_defs=""
  15027. fi
  15028. # Used for legacy style packaging where we bundle all of the dependencies.
  15029. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-bundle" >&5
  15030. $as_echo_n "checking for --enable-bundle... " >&6; }
  15031. # Check whether --enable-bundle was given.
  15032. if test "${enable_bundle+set}" = set; then :
  15033. enableval=$enable_bundle;
  15034. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15035. $as_echo "yes" >&6; }
  15036. bundle="1";
  15037. else
  15038. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15039. $as_echo "no" >&6; }
  15040. bundle="";
  15041. fi
  15042. if test "$bundle" = "1"; then
  15043. BUNDLE_TRUE=
  15044. BUNDLE_FALSE='#'
  15045. else
  15046. BUNDLE_TRUE='#'
  15047. BUNDLE_FALSE=
  15048. fi
  15049. # these enables are for optional or experimental features
  15050. if test -z "$enable_pam_passthru" ; then
  15051. enable_pam_passthru=yes # if not set on cmdline, set default
  15052. fi
  15053. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-pam-passthru" >&5
  15054. $as_echo_n "checking for --enable-pam-passthru... " >&6; }
  15055. # Check whether --enable-pam-passthru was given.
  15056. if test "${enable_pam_passthru+set}" = set; then :
  15057. enableval=$enable_pam_passthru;
  15058. fi
  15059. if test "$enable_pam_passthru" = yes ; then
  15060. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15061. $as_echo "yes" >&6; }
  15062. $as_echo "#define ENABLE_PAM_PASSTHRU 1" >>confdefs.h
  15063. else
  15064. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15065. $as_echo "no" >&6; }
  15066. fi
  15067. if test "$enable_pam_passthru" = "yes"; then
  15068. enable_pam_passthru_TRUE=
  15069. enable_pam_passthru_FALSE='#'
  15070. else
  15071. enable_pam_passthru_TRUE='#'
  15072. enable_pam_passthru_FALSE=
  15073. fi
  15074. if test -z "$enable_dna" ; then
  15075. enable_dna=yes # if not set on cmdline, set default
  15076. fi
  15077. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-dna" >&5
  15078. $as_echo_n "checking for --enable-dna... " >&6; }
  15079. # Check whether --enable-dna was given.
  15080. if test "${enable_dna+set}" = set; then :
  15081. enableval=$enable_dna;
  15082. fi
  15083. if test "$enable_dna" = yes ; then
  15084. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15085. $as_echo "yes" >&6; }
  15086. $as_echo "#define ENABLE_DNA 1" >>confdefs.h
  15087. else
  15088. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15089. $as_echo "no" >&6; }
  15090. fi
  15091. if test "$enable_dna" = "yes"; then
  15092. enable_dna_TRUE=
  15093. enable_dna_FALSE='#'
  15094. else
  15095. enable_dna_TRUE='#'
  15096. enable_dna_FALSE=
  15097. fi
  15098. if test -z "$enable_ldapi" ; then
  15099. enable_ldapi=yes # if not set on cmdline, set default
  15100. fi
  15101. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-ldapi" >&5
  15102. $as_echo_n "checking for --enable-ldapi... " >&6; }
  15103. # Check whether --enable-ldapi was given.
  15104. if test "${enable_ldapi+set}" = set; then :
  15105. enableval=$enable_ldapi;
  15106. fi
  15107. if test "$enable_ldapi" = yes ; then
  15108. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15109. $as_echo "yes" >&6; }
  15110. $as_echo "#define ENABLE_LDAPI 1" >>confdefs.h
  15111. else
  15112. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15113. $as_echo "no" >&6; }
  15114. fi
  15115. if test "$enable_ldapi" = "yes"; then
  15116. enable_ldapi_TRUE=
  15117. enable_ldapi_FALSE='#'
  15118. else
  15119. enable_ldapi_TRUE='#'
  15120. enable_ldapi_FALSE=
  15121. fi
  15122. if test -z "$enable_autobind" ; then
  15123. enable_autobind=no # if not set on cmdline, set default
  15124. fi
  15125. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-autobind" >&5
  15126. $as_echo_n "checking for --enable-autobind... " >&6; }
  15127. # Check whether --enable-autobind was given.
  15128. if test "${enable_autobind+set}" = set; then :
  15129. enableval=$enable_autobind;
  15130. fi
  15131. if test "$enable_ldapi" = yes -a "$enable_autobind" = yes ; then
  15132. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15133. $as_echo "yes" >&6; }
  15134. $as_echo "#define ENABLE_AUTOBIND 1" >>confdefs.h
  15135. else
  15136. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15137. $as_echo "no" >&6; }
  15138. fi
  15139. if test "$enable_autobind" = "yes"; then
  15140. enable_autobind_TRUE=
  15141. enable_autobind_FALSE='#'
  15142. else
  15143. enable_autobind_TRUE='#'
  15144. enable_autobind_FALSE=
  15145. fi
  15146. if test -z "$enable_auto_dn_suffix" ; then
  15147. enable_auto_dn_suffix=no # if not set on cmdline, set default
  15148. fi
  15149. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-auto-dn-suffix" >&5
  15150. $as_echo_n "checking for --enable-auto-dn-suffix... " >&6; }
  15151. # Check whether --enable-autobind was given.
  15152. if test "${enable_autobind+set}" = set; then :
  15153. enableval=$enable_autobind;
  15154. fi
  15155. if test "$enable_ldapi" = yes -a "$enable_autobind" = yes -a "$enable_auto_dn_suffix" = "yes"; then
  15156. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15157. $as_echo "yes" >&6; }
  15158. $as_echo "#define ENABLE_AUTO_DN_SUFFIX 1" >>confdefs.h
  15159. else
  15160. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15161. $as_echo "no" >&6; }
  15162. fi
  15163. if test "$enable_auto_dn_suffix" = "yes"; then
  15164. enable_auto_dn_suffix_TRUE=
  15165. enable_auto_dn_suffix_FALSE='#'
  15166. else
  15167. enable_auto_dn_suffix_TRUE='#'
  15168. enable_auto_dn_suffix_FALSE=
  15169. fi
  15170. if test -z "$enable_bitwise" ; then
  15171. enable_bitwise=yes # if not set on cmdline, set default
  15172. fi
  15173. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-bitwise" >&5
  15174. $as_echo_n "checking for --enable-bitwise... " >&6; }
  15175. # Check whether --enable-bitwise was given.
  15176. if test "${enable_bitwise+set}" = set; then :
  15177. enableval=$enable_bitwise;
  15178. fi
  15179. if test "$enable_bitwise" = yes ; then
  15180. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15181. $as_echo "yes" >&6; }
  15182. $as_echo "#define ENABLE_BITWISE 1" >>confdefs.h
  15183. else
  15184. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15185. $as_echo "no" >&6; }
  15186. fi
  15187. if test "$enable_bitwise" = "yes"; then
  15188. enable_bitwise_TRUE=
  15189. enable_bitwise_FALSE='#'
  15190. else
  15191. enable_bitwise_TRUE='#'
  15192. enable_bitwise_FALSE=
  15193. fi
  15194. if test -z "$enable_presence" ; then
  15195. enable_presence=no # if not set on cmdline, set default
  15196. fi
  15197. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-presence" >&5
  15198. $as_echo_n "checking for --enable-presence... " >&6; }
  15199. # Check whether --enable-presence was given.
  15200. if test "${enable_presence+set}" = set; then :
  15201. enableval=$enable_presence;
  15202. fi
  15203. if test "$enable_presence" = yes ; then
  15204. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15205. $as_echo "yes" >&6; }
  15206. $as_echo "#define ENABLE_PRESENCE 1" >>confdefs.h
  15207. else
  15208. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15209. $as_echo "no" >&6; }
  15210. fi
  15211. if test "$enable_presence" = "yes"; then
  15212. enable_presence_TRUE=
  15213. enable_presence_FALSE='#'
  15214. else
  15215. enable_presence_TRUE='#'
  15216. enable_presence_FALSE=
  15217. fi
  15218. if test -z "$enable_acctpolicy" ; then
  15219. enable_acctpolicy=yes # if not set on cmdline, set default
  15220. fi
  15221. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-acctpolicy" >&5
  15222. $as_echo_n "checking for --enable-acctpolicy... " >&6; }
  15223. # Check whether --enable-acctpolicy was given.
  15224. if test "${enable_acctpolicy+set}" = set; then :
  15225. enableval=$enable_acctpolicy;
  15226. fi
  15227. if test "$enable_acctpolicy" = yes ; then
  15228. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15229. $as_echo "yes" >&6; }
  15230. $as_echo "#define ENABLE_ACCTPOLICY 1" >>confdefs.h
  15231. else
  15232. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15233. $as_echo "no" >&6; }
  15234. fi
  15235. if test "$enable_acctpolicy" = "yes"; then
  15236. enable_acctpolicy_TRUE=
  15237. enable_acctpolicy_FALSE='#'
  15238. else
  15239. enable_acctpolicy_TRUE='#'
  15240. enable_acctpolicy_FALSE=
  15241. fi
  15242. # the default prefix - override with --prefix or --with-fhs
  15243. # BEGIN COPYRIGHT BLOCK
  15244. # Copyright (C) 2006 Red Hat, Inc.
  15245. # All rights reserved.
  15246. #
  15247. # This program is free software; you can redistribute it and/or
  15248. # modify it under the terms of the GNU General Public License
  15249. # as published by the Free Software Foundation; either version 2
  15250. # of the License, or (at your option) any later version.
  15251. #
  15252. # This program is distributed in the hope that it will be useful,
  15253. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  15254. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15255. # GNU General Public License for more details.
  15256. #
  15257. # You should have received a copy of the GNU General Public License
  15258. # along with this program; if not, write to the Free Software
  15259. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  15260. #
  15261. # END COPYRIGHT BLOCK
  15262. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FHS..." >&5
  15263. $as_echo "$as_me: checking for FHS..." >&6;}
  15264. # check for --with-fhs
  15265. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-fhs" >&5
  15266. $as_echo_n "checking for --with-fhs... " >&6; }
  15267. # Check whether --with-fhs was given.
  15268. if test "${with_fhs+set}" = set; then :
  15269. withval=$with_fhs;
  15270. with_fhs=yes
  15271. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15272. $as_echo "yes" >&6; }
  15273. else
  15274. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15275. $as_echo "no" >&6; }
  15276. fi
  15277. if test "$with_fhs" = "yes"; then
  15278. $as_echo "#define IS_FHS 1" >>confdefs.h
  15279. fi
  15280. # check for --with-fhs-opt
  15281. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-fhs-opt" >&5
  15282. $as_echo_n "checking for --with-fhs-opt... " >&6; }
  15283. # Check whether --with-fhs-opt was given.
  15284. if test "${with_fhs_opt+set}" = set; then :
  15285. withval=$with_fhs_opt;
  15286. with_fhs_opt=yes
  15287. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15288. $as_echo "yes" >&6; }
  15289. else
  15290. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15291. $as_echo "no" >&6; }
  15292. fi
  15293. if test "$with_fhs_opt" = "yes"; then
  15294. $as_echo "#define IS_FHS_OPT 1" >>confdefs.h
  15295. fi
  15296. if test "$with_fhs" = "yes" -a "$with_fhs_opt" = "yes"; then
  15297. as_fn_error $? "Can't set both --with-fhs and --with-fhs-opt. Please only use one of these options." "$LINENO" 5
  15298. fi
  15299. # installation paths - by default, we store everything
  15300. # under the prefix. The with-fhs option will use /usr,
  15301. # /etc, and /var. The with-fhs-opt option will use the
  15302. # prefix, but it's sysconfdir and localstatedir will be
  15303. # /etc/opt, and /var/opt.
  15304. if test "$with_fhs_opt" = "yes"; then
  15305. # Override sysconfdir and localstatedir if FHS optional
  15306. # package was requested.
  15307. sysconfdir='/etc/opt'
  15308. localstatedir='/var/opt'
  15309. # relative to datadir
  15310. sampledatadir=/data
  15311. # relative to datadir
  15312. scripttemplatedir=/script-templates
  15313. # relative to datadir
  15314. updatedir=/updates
  15315. # relative to libdir
  15316. serverdir=
  15317. # relative to includedir
  15318. serverincdir=
  15319. # relative to libdir
  15320. serverplugindir=/plugins
  15321. # relative to datadir
  15322. infdir=/inf
  15323. # relative to datadir
  15324. mibdir=/mibs
  15325. # location of property/resource files, relative to datadir
  15326. propertydir=/properties
  15327. # relative to libdir
  15328. perldir=/perl
  15329. else
  15330. if test "$with_fhs" = "yes"; then
  15331. ac_default_prefix=/usr
  15332. prefix=$ac_default_prefix
  15333. exec_prefix=$prefix
  15334. sysconfdir='/etc'
  15335. localstatedir='/var'
  15336. fi
  15337. # relative to datadir
  15338. sampledatadir=/$PACKAGE_NAME/data
  15339. # relative to datadir
  15340. scripttemplatedir=/$PACKAGE_NAME/script-templates
  15341. # relative to datadir
  15342. updatedir=/$PACKAGE_NAME/updates
  15343. # relative to libdir
  15344. serverdir=/$PACKAGE_NAME
  15345. # relative to includedir
  15346. serverincdir=/$PACKAGE_NAME
  15347. # relative to libdir
  15348. serverplugindir=/$PACKAGE_NAME/plugins
  15349. # relative to datadir
  15350. infdir=/$PACKAGE_NAME/inf
  15351. # relative to datadir
  15352. mibdir=/$PACKAGE_NAME/mibs
  15353. # location of property/resource files, relative to datadir
  15354. propertydir=/$PACKAGE_NAME/properties
  15355. # relative to libdir
  15356. perldir=/$PACKAGE_NAME/perl
  15357. fi
  15358. # if mandir is the default value, override it
  15359. # otherwise, the user must have set it - just use it
  15360. if test X"$mandir" = X'${prefix}/man' ; then
  15361. mandir='$(datadir)/man'
  15362. fi
  15363. # Shared paths for all layouts
  15364. # relative to sysconfdir
  15365. configdir=/$PACKAGE_NAME/config
  15366. # relative to sysconfdir
  15367. schemadir=/$PACKAGE_NAME/schema
  15368. # default user, group
  15369. defaultuser=nobody
  15370. defaultgroup=nobody
  15371. if test -z "$with_tmpfiles_d" ; then
  15372. if test -d $sysconfdir/tmpfiles.d ; then
  15373. with_tmpfiles_d='$(sysconfdir)/tmpfiles.d'
  15374. fi
  15375. fi
  15376. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-tmpfiles-d" >&5
  15377. $as_echo_n "checking for --with-tmpfiles-d... " >&6; }
  15378. # Check whether --with-tmpfiles-d was given.
  15379. if test "${with_tmpfiles_d+set}" = set; then :
  15380. withval=$with_tmpfiles_d;
  15381. fi
  15382. if test "$with_tmpfiles_d" = yes ; then
  15383. as_fn_error $? "You must specify --with-tmpfiles-d=/full/path/to/tmpfiles.d directory" "$LINENO" 5
  15384. elif test "$with_tmpfiles_d" = no ; then
  15385. with_tmpfiles_d=
  15386. else
  15387. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tmpfiles_d" >&5
  15388. $as_echo "$with_tmpfiles_d" >&6; }
  15389. fi
  15390. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  15391. if test -n "$ac_tool_prefix"; then
  15392. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  15393. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  15394. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15395. $as_echo_n "checking for $ac_word... " >&6; }
  15396. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  15397. $as_echo_n "(cached) " >&6
  15398. else
  15399. case $PKG_CONFIG in
  15400. [\\/]* | ?:[\\/]*)
  15401. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  15402. ;;
  15403. *)
  15404. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15405. for as_dir in $PATH
  15406. do
  15407. IFS=$as_save_IFS
  15408. test -z "$as_dir" && as_dir=.
  15409. for ac_exec_ext in '' $ac_executable_extensions; do
  15410. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  15411. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  15412. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15413. break 2
  15414. fi
  15415. done
  15416. done
  15417. IFS=$as_save_IFS
  15418. ;;
  15419. esac
  15420. fi
  15421. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  15422. if test -n "$PKG_CONFIG"; then
  15423. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  15424. $as_echo "$PKG_CONFIG" >&6; }
  15425. else
  15426. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15427. $as_echo "no" >&6; }
  15428. fi
  15429. fi
  15430. if test -z "$ac_cv_path_PKG_CONFIG"; then
  15431. ac_pt_PKG_CONFIG=$PKG_CONFIG
  15432. # Extract the first word of "pkg-config", so it can be a program name with args.
  15433. set dummy pkg-config; ac_word=$2
  15434. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15435. $as_echo_n "checking for $ac_word... " >&6; }
  15436. if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
  15437. $as_echo_n "(cached) " >&6
  15438. else
  15439. case $ac_pt_PKG_CONFIG in
  15440. [\\/]* | ?:[\\/]*)
  15441. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  15442. ;;
  15443. *)
  15444. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15445. for as_dir in $PATH
  15446. do
  15447. IFS=$as_save_IFS
  15448. test -z "$as_dir" && as_dir=.
  15449. for ac_exec_ext in '' $ac_executable_extensions; do
  15450. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  15451. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  15452. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15453. break 2
  15454. fi
  15455. done
  15456. done
  15457. IFS=$as_save_IFS
  15458. ;;
  15459. esac
  15460. fi
  15461. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  15462. if test -n "$ac_pt_PKG_CONFIG"; then
  15463. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  15464. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  15465. else
  15466. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15467. $as_echo "no" >&6; }
  15468. fi
  15469. if test "x$ac_pt_PKG_CONFIG" = x; then
  15470. PKG_CONFIG=""
  15471. else
  15472. case $cross_compiling:$ac_tool_warned in
  15473. yes:)
  15474. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  15475. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  15476. ac_tool_warned=yes ;;
  15477. esac
  15478. PKG_CONFIG=$ac_pt_PKG_CONFIG
  15479. fi
  15480. else
  15481. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  15482. fi
  15483. fi
  15484. if test -n "$PKG_CONFIG"; then
  15485. _pkg_min_version=0.9.0
  15486. { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  15487. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  15488. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  15489. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15490. $as_echo "yes" >&6; }
  15491. else
  15492. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15493. $as_echo "no" >&6; }
  15494. PKG_CONFIG=""
  15495. fi
  15496. fi
  15497. if test -n "$PKG_CONFIG" ; then
  15498. default_systemdsystemunitdir=`$PKG_CONFIG --variable=systemdsystemunitdir systemd`
  15499. default_systemdsystemconfdir=`$PKG_CONFIG --variable=systemdsystemconfdir systemd`
  15500. fi
  15501. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-systemdsystemunitdir" >&5
  15502. $as_echo_n "checking for --with-systemdsystemunitdir... " >&6; }
  15503. # Check whether --with-systemdsystemunitdir was given.
  15504. if test "${with_systemdsystemunitdir+set}" = set; then :
  15505. withval=$with_systemdsystemunitdir;
  15506. fi
  15507. if test "$with_systemdsystemunitdir" = yes ; then
  15508. if test -n "$default_systemdsystemunitdir" ; then
  15509. with_systemdsystemunitdir=$default_systemdsystemunitdir
  15510. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_systemdsystemunitdir" >&5
  15511. $as_echo "$with_systemdsystemunitdir" >&6; }
  15512. else
  15513. as_fn_error $? "You must specify --with-systemdsystemconfdir=/full/path/to/systemd/system directory" "$LINENO" 5
  15514. fi
  15515. elif test "$with_systemdsystemunitdir" = no ; then
  15516. with_systemdsystemunitdir=
  15517. else
  15518. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_systemdsystemunitdir" >&5
  15519. $as_echo "$with_systemdsystemunitdir" >&6; }
  15520. fi
  15521. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-systemdsystemconfdir" >&5
  15522. $as_echo_n "checking for --with-systemdsystemconfdir... " >&6; }
  15523. # Check whether --with-systemdsystemconfdir was given.
  15524. if test "${with_systemdsystemconfdir+set}" = set; then :
  15525. withval=$with_systemdsystemconfdir;
  15526. fi
  15527. if test "$with_systemdsystemconfdir" = yes ; then
  15528. if test -n "$default_systemdsystemconfdir" ; then
  15529. with_systemdsystemconfdir=$default_systemdsystemconfdir
  15530. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_systemdsystemconfdir" >&5
  15531. $as_echo "$with_systemdsystemconfdir" >&6; }
  15532. else
  15533. as_fn_error $? "You must specify --with-systemdsystemconfdir=/full/path/to/systemd/system directory" "$LINENO" 5
  15534. fi
  15535. elif test "$with_systemdsystemconfdir" = no ; then
  15536. with_systemdsystemconfdir=
  15537. else
  15538. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_systemdsystemconfdir" >&5
  15539. $as_echo "$with_systemdsystemconfdir" >&6; }
  15540. fi
  15541. if test -n "$with_systemdsystemunitdir" -o -n "$with_systemdsystemconfdir" ; then
  15542. if test -z "$with_systemdgroupname" ; then
  15543. with_systemdgroupname=$PACKAGE_NAME.target
  15544. fi
  15545. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-systemdgroupname" >&5
  15546. $as_echo_n "checking for --with-systemdgroupname... " >&6; }
  15547. # Check whether --with-systemdgroupname was given.
  15548. if test "${with_systemdgroupname+set}" = set; then :
  15549. withval=$with_systemdgroupname;
  15550. fi
  15551. if test "$with_systemdgroupname" = yes ; then
  15552. as_fn_error $? "You must specify --with-systemdgroupname=name.of.group" "$LINENO" 5
  15553. elif test "$with_systemdgroupname" = no ; then
  15554. as_fn_error $? "You must specify --with-systemdgroupname=name.of.group" "$LINENO" 5
  15555. else
  15556. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_systemdgroupname" >&5
  15557. $as_echo "$with_systemdgroupname" >&6; }
  15558. fi
  15559. fi
  15560. # check for --with-instconfigdir
  15561. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-instconfigdir" >&5
  15562. $as_echo_n "checking for --with-instconfigdir... " >&6; }
  15563. # Check whether --with-instconfigdir was given.
  15564. if test "${with_instconfigdir+set}" = set; then :
  15565. withval=$with_instconfigdir;
  15566. if test $withval = yes ; then
  15567. as_fn_error $? "Please specify a full path with --with-instconfigdir" "$LINENO" 5
  15568. fi
  15569. instconfigdir="$withval"
  15570. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
  15571. $as_echo "$withval" >&6; }
  15572. else
  15573. instconfigdir='$(sysconfdir)/$(PACKAGE_NAME)'
  15574. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15575. $as_echo "no" >&6; }
  15576. fi
  15577. # WINNT should be true if building on Windows system not using
  15578. # cygnus, mingw, or the like and using cmd.exe as the shell
  15579. if false; then
  15580. WINNT_TRUE=
  15581. WINNT_FALSE='#'
  15582. else
  15583. WINNT_TRUE='#'
  15584. WINNT_FALSE=
  15585. fi
  15586. # Deal with platform dependent defines
  15587. # initdir is the location for the SysV init scripts - very heavily platform
  15588. # dependent and not specified in fhs or lsb
  15589. # and not used if systemd is used
  15590. initdir='$(sysconfdir)/rc.d'
  15591. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-initddir" >&5
  15592. $as_echo_n "checking for --with-initddir... " >&6; }
  15593. # Check whether --with-initddir was given.
  15594. if test "${with_initddir+set}" = set; then :
  15595. withval=$with_initddir;
  15596. if test "$withval" = yes -o "$withval" = no ; then
  15597. as_fn_error $? "Please specify a full path with --with-initddir" "$LINENO" 5
  15598. fi
  15599. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
  15600. $as_echo "$withval" >&6; }
  15601. else
  15602. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15603. $as_echo "no" >&6; }
  15604. fi
  15605. # on most platforms, we will just use perl from PATH
  15606. # On some platforms, we cannot. Why not just use any old
  15607. # perl? Because of perldap. We use a perldap that is
  15608. # compiled to either 32bit or 64bit, so we must use a native
  15609. # perl binary compiled with the same bitsize. On Solaris
  15610. # and HP-UX, /usr/bin/perl is 32 bit, so we cannot use
  15611. # those with our 64 bit compiled product.
  15612. perlexec='/usr/bin/env perl'
  15613. # we use stty in perl scripts to disable password echo
  15614. # this doesn't work unless the full absolute path of the
  15615. # stty command is used e.g. system("stty -echo") does not
  15616. # work but system("/bin/stty -echo") does work
  15617. # since the path of stty may not be the same on all
  15618. # platforms, we set the default here to /bin/stty and
  15619. # allow that value to be overridden in the platform
  15620. # specific section below
  15621. sttyexec=/bin/stty
  15622. case $host in
  15623. *-*-linux*)
  15624. $as_echo "#define XP_UNIX 1" >>confdefs.h
  15625. $as_echo "#define Linux 1" >>confdefs.h
  15626. $as_echo "#define LINUX 1" >>confdefs.h
  15627. $as_echo "#define LINUX2_0 1" >>confdefs.h
  15628. $as_echo "#define LINUX2_2 1" >>confdefs.h
  15629. $as_echo "#define LINUX2_4 1" >>confdefs.h
  15630. $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
  15631. platform="linux"
  15632. initdir='$(sysconfdir)/rc.d/init.d'
  15633. # do arch specific linux stuff here
  15634. case $host in
  15635. i*86-*-linux*)
  15636. $as_echo "#define CPU_x86 /**/" >>confdefs.h
  15637. $as_echo "#define ATOMIC_64BIT_OPERATIONS 1" >>confdefs.h
  15638. ;;
  15639. x86_64-*-linux*)
  15640. $as_echo "#define CPU_x86_64 /**/" >>confdefs.h
  15641. $as_echo "#define ATOMIC_64BIT_OPERATIONS 1" >>confdefs.h
  15642. ;;
  15643. esac
  15644. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC provided 64-bit atomic bool cas function ..." >&5
  15645. $as_echo_n "checking for GCC provided 64-bit atomic bool cas function ...... " >&6; }
  15646. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15647. /* end confdefs.h. */
  15648. int
  15649. main ()
  15650. {
  15651. long long ptrval = 0, val = 0, newval = 1; (void)__sync_bool_compare_and_swap_8(&ptrval, val, newval);
  15652. ;
  15653. return 0;
  15654. }
  15655. _ACEOF
  15656. if ac_fn_c_try_link "$LINENO"; then :
  15657. $as_echo "#define HAVE_64BIT_ATOMIC_CAS_FUNC 1" >>confdefs.h
  15658. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15659. $as_echo "yes" >&6; }
  15660. else
  15661. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15662. $as_echo "no" >&6; }
  15663. fi
  15664. rm -f core conftest.err conftest.$ac_objext \
  15665. conftest$ac_exeext conftest.$ac_ext
  15666. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC provided 64-bit atomic ops functions ..." >&5
  15667. $as_echo_n "checking for GCC provided 64-bit atomic ops functions ...... " >&6; }
  15668. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15669. /* end confdefs.h. */
  15670. int
  15671. main ()
  15672. {
  15673. long long ptrval = 0, val = 0; (void)__sync_add_and_fetch_8(&ptrval, val);
  15674. ;
  15675. return 0;
  15676. }
  15677. _ACEOF
  15678. if ac_fn_c_try_link "$LINENO"; then :
  15679. $as_echo "#define HAVE_64BIT_ATOMIC_OP_FUNCS 1" >>confdefs.h
  15680. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15681. $as_echo "yes" >&6; }
  15682. else
  15683. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15684. $as_echo "no" >&6; }
  15685. fi
  15686. rm -f core conftest.err conftest.$ac_objext \
  15687. conftest$ac_exeext conftest.$ac_ext
  15688. # some programs use the native thread library directly
  15689. THREADLIB=-lpthread
  15690. THREADLIB=$THREADLIB
  15691. LIBCRYPT=-lcrypt
  15692. LIBCRYPT=$LIBCRYPT
  15693. $as_echo "#define USE_POSIX_RWLOCKS 1" >>confdefs.h
  15694. ;;
  15695. ia64-hp-hpux*)
  15696. $as_echo "#define XP_UNIX 1" >>confdefs.h
  15697. $as_echo "#define hpux 1" >>confdefs.h
  15698. $as_echo "#define HPUX 1" >>confdefs.h
  15699. $as_echo "#define HPUX11 1" >>confdefs.h
  15700. $as_echo "#define HPUX11_23 1" >>confdefs.h
  15701. $as_echo "#define CPU_ia64 /**/" >>confdefs.h
  15702. $as_echo "#define OS_hpux 1" >>confdefs.h
  15703. $as_echo "#define _POSIX_C_SOURCE 199506L" >>confdefs.h
  15704. $as_echo "#define _HPUX_SOURCE 1" >>confdefs.h
  15705. $as_echo "#define _INCLUDE_STDC__SOURCE_199901 1" >>confdefs.h
  15706. # assume 64 bit
  15707. perlexec='/opt/perl_64/bin/perl'
  15708. platform="hpux"
  15709. initconfigdir="/$PACKAGE_NAME/config"
  15710. # HPUX doesn't use /etc for this
  15711. initdir=/init.d
  15712. ;;
  15713. hppa*-hp-hpux*)
  15714. $as_echo "#define XP_UNIX 1" >>confdefs.h
  15715. $as_echo "#define hpux 1" >>confdefs.h
  15716. $as_echo "#define HPUX 1" >>confdefs.h
  15717. $as_echo "#define HPUX11 1" >>confdefs.h
  15718. $as_echo "#define HPUX11_11 1" >>confdefs.h
  15719. $as_echo "#define CPU_hppa /**/" >>confdefs.h
  15720. $as_echo "#define OS_hpux 1" >>confdefs.h
  15721. $as_echo "#define _POSIX_C_SOURCE 199506L" >>confdefs.h
  15722. $as_echo "#define _HPUX_SOURCE 1" >>confdefs.h
  15723. $as_echo "#define _INCLUDE_STDC__SOURCE_199901 1" >>confdefs.h
  15724. $as_echo "#define ATOMIC_64BIT_OPERATIONS 1" >>confdefs.h
  15725. # assume 64 bit
  15726. initconfigdir="/$PACKAGE_NAME/config"
  15727. perlexec='/opt/perl_64/bin/perl'
  15728. platform="hpux"
  15729. # HPUX doesn't use /etc for this
  15730. initdir=/init.d
  15731. ;;
  15732. sparc-sun-solaris*)
  15733. $as_echo "#define XP_UNIX 1" >>confdefs.h
  15734. $as_echo "#define SVR4 1" >>confdefs.h
  15735. $as_echo "#define __svr4 1" >>confdefs.h
  15736. $as_echo "#define __svr4__ 1" >>confdefs.h
  15737. $as_echo "#define _SVID_GETTOD 1" >>confdefs.h
  15738. $as_echo "#define SOLARIS 1" >>confdefs.h
  15739. $as_echo "#define CPU_sparc /**/" >>confdefs.h
  15740. $as_echo "#define OS_solaris 1" >>confdefs.h
  15741. $as_echo "#define sunos5 1" >>confdefs.h
  15742. $as_echo "#define OSVERSION 509" >>confdefs.h
  15743. $as_echo "#define _REENTRANT 1" >>confdefs.h
  15744. $as_echo "#define NO_DOMAINNAME 1" >>confdefs.h
  15745. $as_echo "#define ATOMIC_64BIT_OPERATIONS 1" >>confdefs.h
  15746. LIBSOCKET=-lsocket
  15747. LIBSOCKET=$LIBSOCKET
  15748. LIBNSL=-lnsl
  15749. LIBNSL=$LIBNSL
  15750. LIBDL=-ldl
  15751. LIBDL=$LIBDL
  15752. LIBCSTD=-lCstd
  15753. LIBCSTD=$LIBCSTD
  15754. LIBCRUN=-lCrun
  15755. LIBCRUN=$LIBCRUN
  15756. platform="solaris"
  15757. # assume 64 bit
  15758. perlexec='/usr/lib/sparcv9/dirsec/perl5x/bin/perl'
  15759. initdir='$(sysconfdir)/init.d'
  15760. ;;
  15761. *)
  15762. platform=""
  15763. ;;
  15764. esac
  15765. # cmd line overrides default setting above
  15766. if test -n "$with_initddir" ; then
  15767. initdir="$with_initddir"
  15768. fi
  15769. # sysv init scripts not used when systemd is used
  15770. # set default initconfigdir if not already set
  15771. # value will be set so as to be relative to $(sysconfdir)
  15772. if test -z "$initconfigdir" ; then
  15773. if test -d /etc/sysconfig ; then
  15774. initconfigdir=/sysconfig
  15775. elif test -d /etc/default ; then
  15776. initconfigdir=/default
  15777. else
  15778. initconfigdir="/$PACKAGE_NAME/config"
  15779. fi
  15780. fi
  15781. if test "$platform" = "hpux"; then
  15782. HPUX_TRUE=
  15783. HPUX_FALSE='#'
  15784. else
  15785. HPUX_TRUE='#'
  15786. HPUX_FALSE=
  15787. fi
  15788. if test "$platform" = "solaris"; then
  15789. SOLARIS_TRUE=
  15790. SOLARIS_FALSE='#'
  15791. else
  15792. SOLARIS_TRUE='#'
  15793. SOLARIS_FALSE=
  15794. fi
  15795. if test -n "$with_systemdsystemunitdir" -o -n "$with_systemdsystemconfdir"; then
  15796. SYSTEMD_TRUE=
  15797. SYSTEMD_FALSE='#'
  15798. else
  15799. SYSTEMD_TRUE='#'
  15800. SYSTEMD_FALSE=
  15801. fi
  15802. # Check for library dependencies
  15803. # BEGIN COPYRIGHT BLOCK
  15804. # Copyright (C) 2007 Red Hat, Inc.
  15805. # All rights reserved.
  15806. #
  15807. # This program is free software; you can redistribute it and/or
  15808. # modify it under the terms of the GNU General Public License
  15809. # as published by the Free Software Foundation; either version 2
  15810. # of the License, or (at your option) any later version.
  15811. #
  15812. # This program is distributed in the hope that it will be useful,
  15813. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  15814. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15815. # GNU General Public License for more details.
  15816. #
  15817. # You should have received a copy of the GNU General Public License
  15818. # along with this program; if not, write to the Free Software
  15819. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  15820. #
  15821. # END COPYRIGHT BLOCK
  15822. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NSPR..." >&5
  15823. $as_echo "$as_me: checking for NSPR..." >&6;}
  15824. # check for --with-nspr
  15825. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-nspr" >&5
  15826. $as_echo_n "checking for --with-nspr... " >&6; }
  15827. # Check whether --with-nspr was given.
  15828. if test "${with_nspr+set}" = set; then :
  15829. withval=$with_nspr;
  15830. if test "$withval" = "yes"
  15831. then
  15832. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15833. $as_echo "yes" >&6; }
  15834. elif test "$withval" = "no"
  15835. then
  15836. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15837. $as_echo "no" >&6; }
  15838. as_fn_error $? "NSPR is required." "$LINENO" 5
  15839. elif test -e "$withval"/include/nspr.h -a -d "$withval"/lib
  15840. then
  15841. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  15842. $as_echo "using $withval" >&6; }
  15843. NSPRDIR=$withval
  15844. nspr_inc="-I$NSPRDIR/include"
  15845. nspr_lib="-L$NSPRDIR/lib"
  15846. nspr_libdir="$NSPRDIR/lib"
  15847. else
  15848. echo
  15849. as_fn_error $? "$withval not found" "$LINENO" 5
  15850. fi
  15851. else
  15852. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15853. $as_echo "yes" >&6; }
  15854. fi
  15855. # check for --with-nspr-inc
  15856. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-nspr-inc" >&5
  15857. $as_echo_n "checking for --with-nspr-inc... " >&6; }
  15858. # Check whether --with-nspr-inc was given.
  15859. if test "${with_nspr_inc+set}" = set; then :
  15860. withval=$with_nspr_inc;
  15861. if test -e "$withval"/nspr.h
  15862. then
  15863. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  15864. $as_echo "using $withval" >&6; }
  15865. nspr_inc="-I$withval"
  15866. else
  15867. echo
  15868. as_fn_error $? "$withval not found" "$LINENO" 5
  15869. fi
  15870. else
  15871. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15872. $as_echo "no" >&6; }
  15873. fi
  15874. # check for --with-nspr-lib
  15875. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-nspr-lib" >&5
  15876. $as_echo_n "checking for --with-nspr-lib... " >&6; }
  15877. # Check whether --with-nspr-lib was given.
  15878. if test "${with_nspr_lib+set}" = set; then :
  15879. withval=$with_nspr_lib;
  15880. if test -d "$withval"
  15881. then
  15882. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  15883. $as_echo "using $withval" >&6; }
  15884. nspr_lib="-L$withval"
  15885. nspr_libdir="$withval"
  15886. else
  15887. echo
  15888. as_fn_error $? "$withval not found" "$LINENO" 5
  15889. fi
  15890. else
  15891. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15892. $as_echo "no" >&6; }
  15893. fi
  15894. # if NSPR is not found yet, try pkg-config
  15895. # last resort
  15896. if test -z "$nspr_inc" -o -z "$nspr_lib" -o -z "$nspr_libdir"; then
  15897. # Extract the first word of "pkg-config", so it can be a program name with args.
  15898. set dummy pkg-config; ac_word=$2
  15899. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15900. $as_echo_n "checking for $ac_word... " >&6; }
  15901. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  15902. $as_echo_n "(cached) " >&6
  15903. else
  15904. case $PKG_CONFIG in
  15905. [\\/]* | ?:[\\/]*)
  15906. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  15907. ;;
  15908. *)
  15909. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15910. for as_dir in $PATH
  15911. do
  15912. IFS=$as_save_IFS
  15913. test -z "$as_dir" && as_dir=.
  15914. for ac_exec_ext in '' $ac_executable_extensions; do
  15915. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  15916. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  15917. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15918. break 2
  15919. fi
  15920. done
  15921. done
  15922. IFS=$as_save_IFS
  15923. ;;
  15924. esac
  15925. fi
  15926. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  15927. if test -n "$PKG_CONFIG"; then
  15928. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  15929. $as_echo "$PKG_CONFIG" >&6; }
  15930. else
  15931. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15932. $as_echo "no" >&6; }
  15933. fi
  15934. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nspr with pkg-config" >&5
  15935. $as_echo_n "checking for nspr with pkg-config... " >&6; }
  15936. if test -n "$PKG_CONFIG"; then
  15937. if $PKG_CONFIG --exists nspr; then
  15938. nspr_inc=`$PKG_CONFIG --cflags-only-I nspr`
  15939. nspr_lib=`$PKG_CONFIG --libs-only-L nspr`
  15940. nspr_libdir=`$PKG_CONFIG --libs-only-L nspr | sed -e s/-L// | sed -e s/\ .*$//`
  15941. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using system NSPR" >&5
  15942. $as_echo "using system NSPR" >&6; }
  15943. elif $PKG_CONFIG --exists dirsec-nspr; then
  15944. nspr_inc=`$PKG_CONFIG --cflags-only-I dirsec-nspr`
  15945. nspr_lib=`$PKG_CONFIG --libs-only-L dirsec-nspr`
  15946. nspr_libdir=`$PKG_CONFIG --libs-only-L dirsec-nspr | sed -e s/-L// | sed -e s/\ .*$//`
  15947. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using system dirsec NSPR" >&5
  15948. $as_echo "using system dirsec NSPR" >&6; }
  15949. else
  15950. as_fn_error $? "NSPR not found, specify with --with-nspr." "$LINENO" 5
  15951. fi
  15952. fi
  15953. fi
  15954. # BEGIN COPYRIGHT BLOCK
  15955. # Copyright (C) 2007 Red Hat, Inc.
  15956. # All rights reserved.
  15957. #
  15958. # This program is free software; you can redistribute it and/or
  15959. # modify it under the terms of the GNU General Public License
  15960. # as published by the Free Software Foundation; either version 2
  15961. # of the License, or (at your option) any later version.
  15962. #
  15963. # This program is distributed in the hope that it will be useful,
  15964. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  15965. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15966. # GNU General Public License for more details.
  15967. #
  15968. # You should have received a copy of the GNU General Public License
  15969. # along with this program; if not, write to the Free Software
  15970. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  15971. #
  15972. # END COPYRIGHT BLOCK
  15973. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NSS..." >&5
  15974. $as_echo "$as_me: checking for NSS..." >&6;}
  15975. # check for --with-nss
  15976. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-nss" >&5
  15977. $as_echo_n "checking for --with-nss... " >&6; }
  15978. # Check whether --with-nss was given.
  15979. if test "${with_nss+set}" = set; then :
  15980. withval=$with_nss;
  15981. if test "$withval" = "yes"
  15982. then
  15983. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15984. $as_echo "yes" >&6; }
  15985. elif test "$withval" = "no"
  15986. then
  15987. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15988. $as_echo "no" >&6; }
  15989. as_fn_error $? "NSS is required." "$LINENO" 5
  15990. elif test -e "$withval"/include/nss.h -a -d "$withval"/lib
  15991. then
  15992. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  15993. $as_echo "using $withval" >&6; }
  15994. NSSDIR=$withval
  15995. nss_inc="-I$NSSDIR/include"
  15996. nss_lib="-L$NSSDIR/lib"
  15997. nss_libdir="$NSSDIR/lib"
  15998. else
  15999. echo
  16000. as_fn_error $? "$withval not found" "$LINENO" 5
  16001. fi
  16002. else
  16003. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16004. $as_echo "yes" >&6; }
  16005. fi
  16006. # check for --with-nss-inc
  16007. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-nss-inc" >&5
  16008. $as_echo_n "checking for --with-nss-inc... " >&6; }
  16009. # Check whether --with-nss-inc was given.
  16010. if test "${with_nss_inc+set}" = set; then :
  16011. withval=$with_nss_inc;
  16012. if test -e "$withval"/nss.h
  16013. then
  16014. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16015. $as_echo "using $withval" >&6; }
  16016. nss_inc="-I$withval"
  16017. else
  16018. echo
  16019. as_fn_error $? "$withval not found" "$LINENO" 5
  16020. fi
  16021. else
  16022. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16023. $as_echo "no" >&6; }
  16024. fi
  16025. # check for --with-nss-lib
  16026. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-nss-lib" >&5
  16027. $as_echo_n "checking for --with-nss-lib... " >&6; }
  16028. # Check whether --with-nss-lib was given.
  16029. if test "${with_nss_lib+set}" = set; then :
  16030. withval=$with_nss_lib;
  16031. if test -d "$withval"
  16032. then
  16033. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16034. $as_echo "using $withval" >&6; }
  16035. nss_lib="-L$withval"
  16036. nss_libdir="$withval"
  16037. else
  16038. echo
  16039. as_fn_error $? "$withval not found" "$LINENO" 5
  16040. fi
  16041. else
  16042. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16043. $as_echo "no" >&6; }
  16044. fi
  16045. # if NSS is not found yet, try pkg-config
  16046. # last resort
  16047. if test -z "$nss_inc" -o -z "$nss_lib" -o -z "$nss_libdir"; then
  16048. # Extract the first word of "pkg-config", so it can be a program name with args.
  16049. set dummy pkg-config; ac_word=$2
  16050. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16051. $as_echo_n "checking for $ac_word... " >&6; }
  16052. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  16053. $as_echo_n "(cached) " >&6
  16054. else
  16055. case $PKG_CONFIG in
  16056. [\\/]* | ?:[\\/]*)
  16057. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  16058. ;;
  16059. *)
  16060. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16061. for as_dir in $PATH
  16062. do
  16063. IFS=$as_save_IFS
  16064. test -z "$as_dir" && as_dir=.
  16065. for ac_exec_ext in '' $ac_executable_extensions; do
  16066. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  16067. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  16068. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16069. break 2
  16070. fi
  16071. done
  16072. done
  16073. IFS=$as_save_IFS
  16074. ;;
  16075. esac
  16076. fi
  16077. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  16078. if test -n "$PKG_CONFIG"; then
  16079. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  16080. $as_echo "$PKG_CONFIG" >&6; }
  16081. else
  16082. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16083. $as_echo "no" >&6; }
  16084. fi
  16085. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nss with pkg-config" >&5
  16086. $as_echo_n "checking for nss with pkg-config... " >&6; }
  16087. if test -n "$PKG_CONFIG"; then
  16088. if $PKG_CONFIG --exists nss; then
  16089. nss_inc=`$PKG_CONFIG --cflags-only-I nss`
  16090. nss_lib=`$PKG_CONFIG --libs-only-L nss`
  16091. nss_libdir=`$PKG_CONFIG --libs-only-L nss | sed -e s/-L// | sed -e s/\ .*$//`
  16092. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using system NSS" >&5
  16093. $as_echo "using system NSS" >&6; }
  16094. elif $PKG_CONFIG --exists dirsec-nss; then
  16095. nss_inc=`$PKG_CONFIG --cflags-only-I dirsec-nss`
  16096. nss_lib=`$PKG_CONFIG --libs-only-L dirsec-nss`
  16097. nss_libdir=`$PKG_CONFIG --libs-only-L dirsec-nss | sed -e s/-L// | sed -e s/\ .*$//`
  16098. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using system dirsec NSS" >&5
  16099. $as_echo "using system dirsec NSS" >&6; }
  16100. else
  16101. as_fn_error $? "NSS not found, specify with --with-nss." "$LINENO" 5
  16102. fi
  16103. fi
  16104. fi
  16105. # BEGIN COPYRIGHT BLOCK
  16106. # Copyright (C) 2009 Red Hat, Inc.
  16107. # All rights reserved.
  16108. #
  16109. # This program is free software; you can redistribute it and/or
  16110. # modify it under the terms of the GNU General Public License
  16111. # as published by the Free Software Foundation; either version 2
  16112. # of the License, or (at your option) any later version.
  16113. #
  16114. # This program is distributed in the hope that it will be useful,
  16115. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  16116. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16117. # GNU General Public License for more details.
  16118. #
  16119. # You should have received a copy of the GNU General Public License
  16120. # along with this program; if not, write to the Free Software
  16121. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  16122. #
  16123. # END COPYRIGHT BLOCK
  16124. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenLDAP..." >&5
  16125. $as_echo "$as_me: checking for OpenLDAP..." >&6;}
  16126. # check for --with-openldap
  16127. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-openldap" >&5
  16128. $as_echo_n "checking for --with-openldap... " >&6; }
  16129. # Check whether --with-openldap was given.
  16130. if test "${with_openldap+set}" = set; then :
  16131. withval=$with_openldap;
  16132. if test "$withval" = yes
  16133. then
  16134. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using system OpenLDAP" >&5
  16135. $as_echo "using system OpenLDAP" >&6; }
  16136. elif test "$withval" = no
  16137. then
  16138. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16139. $as_echo "no" >&6; }
  16140. elif test -e "$withval"/include/ldap.h -a -d "$withval"/lib
  16141. then
  16142. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16143. $as_echo "using $withval" >&6; }
  16144. OPENLDAPDIR=$withval
  16145. openldap_incdir="$OPENLDAPDIR/include"
  16146. openldap_inc="-I$openldap_incdir"
  16147. openldap_lib="-L$OPENLDAPDIR/lib"
  16148. openldap_libdir="$OPENLDAPDIR/lib"
  16149. openldap_bindir="$OPENLDAPDIR/bin"
  16150. with_openldap=yes
  16151. else
  16152. echo
  16153. as_fn_error $? "$withval not found" "$LINENO" 5
  16154. fi
  16155. else
  16156. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16157. $as_echo "no" >&6; }
  16158. fi
  16159. # check for --with-openldap-inc
  16160. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-openldap-inc" >&5
  16161. $as_echo_n "checking for --with-openldap-inc... " >&6; }
  16162. # Check whether --with-openldap-inc was given.
  16163. if test "${with_openldap_inc+set}" = set; then :
  16164. withval=$with_openldap_inc;
  16165. if test -e "$withval"/ldap.h
  16166. then
  16167. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16168. $as_echo "using $withval" >&6; }
  16169. openldap_incdir="$withval"
  16170. openldap_inc="-I$withval"
  16171. with_openldap=yes
  16172. else
  16173. echo
  16174. as_fn_error $? "$withval not found" "$LINENO" 5
  16175. fi
  16176. else
  16177. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16178. $as_echo "no" >&6; }
  16179. fi
  16180. # check for --with-openldap-lib
  16181. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-openldap-lib" >&5
  16182. $as_echo_n "checking for --with-openldap-lib... " >&6; }
  16183. # Check whether --with-openldap-lib was given.
  16184. if test "${with_openldap_lib+set}" = set; then :
  16185. withval=$with_openldap_lib;
  16186. if test -d "$withval"
  16187. then
  16188. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16189. $as_echo "using $withval" >&6; }
  16190. openldap_lib="-L$withval"
  16191. openldap_libdir="$withval"
  16192. with_openldap=yes
  16193. else
  16194. echo
  16195. as_fn_error $? "$withval not found" "$LINENO" 5
  16196. fi
  16197. else
  16198. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16199. $as_echo "no" >&6; }
  16200. fi
  16201. # check for --with-openldap-bin
  16202. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-openldap-bin" >&5
  16203. $as_echo_n "checking for --with-openldap-bin... " >&6; }
  16204. # Check whether --with-openldap-bin was given.
  16205. if test "${with_openldap_bin+set}" = set; then :
  16206. withval=$with_openldap_bin;
  16207. if test -d "$withval"
  16208. then
  16209. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16210. $as_echo "using $withval" >&6; }
  16211. openldap_bindir="$withval"
  16212. with_openldap=yes
  16213. else
  16214. echo
  16215. as_fn_error $? "$withval not found" "$LINENO" 5
  16216. fi
  16217. else
  16218. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16219. $as_echo "no" >&6; }
  16220. fi
  16221. # if OPENLDAP is not found yet, try pkg-config
  16222. if test "$with_openldap" = yes ; then # user wants to use openldap, but didn't specify paths
  16223. if test -z "$openldap_inc" -o -z "$openldap_lib" -o -z "$openldap_libdir" -o -z "$openldap_bindir"; then
  16224. # Extract the first word of "pkg-config", so it can be a program name with args.
  16225. set dummy pkg-config; ac_word=$2
  16226. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16227. $as_echo_n "checking for $ac_word... " >&6; }
  16228. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  16229. $as_echo_n "(cached) " >&6
  16230. else
  16231. case $PKG_CONFIG in
  16232. [\\/]* | ?:[\\/]*)
  16233. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  16234. ;;
  16235. *)
  16236. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16237. for as_dir in $PATH
  16238. do
  16239. IFS=$as_save_IFS
  16240. test -z "$as_dir" && as_dir=.
  16241. for ac_exec_ext in '' $ac_executable_extensions; do
  16242. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  16243. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  16244. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16245. break 2
  16246. fi
  16247. done
  16248. done
  16249. IFS=$as_save_IFS
  16250. ;;
  16251. esac
  16252. fi
  16253. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  16254. if test -n "$PKG_CONFIG"; then
  16255. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  16256. $as_echo "$PKG_CONFIG" >&6; }
  16257. else
  16258. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16259. $as_echo "no" >&6; }
  16260. fi
  16261. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenLDAP with pkg-config" >&5
  16262. $as_echo_n "checking for OpenLDAP with pkg-config... " >&6; }
  16263. if test -n "$PKG_CONFIG" && $PKG_CONFIG --exists openldap; then
  16264. openldap_inc=`$PKG_CONFIG --cflags-only-I openldap`
  16265. openldap_lib=`$PKG_CONFIG --libs-only-L openldap`
  16266. openldap_libdir=`$PKG_CONFIG --libs-only-L openldap | sed -e s/-L// | sed -e s/\ .*$//`
  16267. openldap_bindir=`$PKG_CONFIG --variable=bindir openldap`
  16268. openldap_incdir=`$PKG_CONFIG --variable=includedir openldap`
  16269. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using system OpenLDAP from pkg-config" >&5
  16270. $as_echo "using system OpenLDAP from pkg-config" >&6; }
  16271. else
  16272. openldap_incdir="/usr/include"
  16273. openldap_inc="-I$openldap_incdir"
  16274. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no OpenLDAP pkg-config files" >&5
  16275. $as_echo "no OpenLDAP pkg-config files" >&6; }
  16276. fi
  16277. fi
  16278. fi
  16279. if test "$with_openldap" = yes ; then
  16280. save_cppflags="$CPPFLAGS"
  16281. CPPFLAGS="$openldap_inc $nss_inc $nspr_inc"
  16282. ac_fn_c_check_header_mongrel "$LINENO" "ldap_features.h" "ac_cv_header_ldap_features_h" "$ac_includes_default"
  16283. if test "x$ac_cv_header_ldap_features_h" = xyes; then :
  16284. else
  16285. as_fn_error $? "specified with-openldap but ldap_features.h not found" "$LINENO" 5
  16286. fi
  16287. ol_ver_maj=`grep LDAP_VENDOR_VERSION_MAJOR $openldap_incdir/ldap_features.h | awk '{print $3}'`
  16288. ol_ver_min=`grep LDAP_VENDOR_VERSION_MINOR $openldap_incdir/ldap_features.h | awk '{print $3}'`
  16289. ol_ver_pat=`grep LDAP_VENDOR_VERSION_PATCH $openldap_incdir/ldap_features.h | awk '{print $3}'`
  16290. ol_libver="-${ol_ver_maj}.${ol_ver_min}"
  16291. save_ldflags="$LDFLAGS"
  16292. LDFLAGS="$openldap_lib $LDFLAGS"
  16293. as_ac_Lib=`$as_echo "ac_cv_lib_ldap$ol_libver''_ldap_initialize" | $as_tr_sh`
  16294. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_initialize in -lldap$ol_libver" >&5
  16295. $as_echo_n "checking for ldap_initialize in -lldap$ol_libver... " >&6; }
  16296. if eval \${$as_ac_Lib+:} false; then :
  16297. $as_echo_n "(cached) " >&6
  16298. else
  16299. ac_check_lib_save_LIBS=$LIBS
  16300. LIBS="-lldap$ol_libver $LIBS"
  16301. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16302. /* end confdefs.h. */
  16303. /* Override any GCC internal prototype to avoid an error.
  16304. Use char because int might match the return type of a GCC
  16305. builtin and then its argument prototype would still apply. */
  16306. #ifdef __cplusplus
  16307. extern "C"
  16308. #endif
  16309. char ldap_initialize ();
  16310. int
  16311. main ()
  16312. {
  16313. return ldap_initialize ();
  16314. ;
  16315. return 0;
  16316. }
  16317. _ACEOF
  16318. if ac_fn_c_try_link "$LINENO"; then :
  16319. eval "$as_ac_Lib=yes"
  16320. else
  16321. eval "$as_ac_Lib=no"
  16322. fi
  16323. rm -f core conftest.err conftest.$ac_objext \
  16324. conftest$ac_exeext conftest.$ac_ext
  16325. LIBS=$ac_check_lib_save_LIBS
  16326. fi
  16327. eval ac_res=\$$as_ac_Lib
  16328. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  16329. $as_echo "$ac_res" >&6; }
  16330. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  16331. have_ldap_lib=1
  16332. fi
  16333. if test -z "$have_ldap_lib" ; then
  16334. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_initialize in -lldap" >&5
  16335. $as_echo_n "checking for ldap_initialize in -lldap... " >&6; }
  16336. if ${ac_cv_lib_ldap_ldap_initialize+:} false; then :
  16337. $as_echo_n "(cached) " >&6
  16338. else
  16339. ac_check_lib_save_LIBS=$LIBS
  16340. LIBS="-lldap $LIBS"
  16341. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16342. /* end confdefs.h. */
  16343. /* Override any GCC internal prototype to avoid an error.
  16344. Use char because int might match the return type of a GCC
  16345. builtin and then its argument prototype would still apply. */
  16346. #ifdef __cplusplus
  16347. extern "C"
  16348. #endif
  16349. char ldap_initialize ();
  16350. int
  16351. main ()
  16352. {
  16353. return ldap_initialize ();
  16354. ;
  16355. return 0;
  16356. }
  16357. _ACEOF
  16358. if ac_fn_c_try_link "$LINENO"; then :
  16359. ac_cv_lib_ldap_ldap_initialize=yes
  16360. else
  16361. ac_cv_lib_ldap_ldap_initialize=no
  16362. fi
  16363. rm -f core conftest.err conftest.$ac_objext \
  16364. conftest$ac_exeext conftest.$ac_ext
  16365. LIBS=$ac_check_lib_save_LIBS
  16366. fi
  16367. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_ldap_initialize" >&5
  16368. $as_echo "$ac_cv_lib_ldap_ldap_initialize" >&6; }
  16369. if test "x$ac_cv_lib_ldap_ldap_initialize" = xyes; then :
  16370. unset ol_libver
  16371. else
  16372. as_fn_error $? "specified with-openldap but libldap not found" "$LINENO" 5
  16373. fi
  16374. fi
  16375. as_ac_Lib=`$as_echo "ac_cv_lib_ldap$ol_libver''_ldap_url_parse_ext" | $as_tr_sh`
  16376. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_url_parse_ext in -lldap$ol_libver" >&5
  16377. $as_echo_n "checking for ldap_url_parse_ext in -lldap$ol_libver... " >&6; }
  16378. if eval \${$as_ac_Lib+:} false; then :
  16379. $as_echo_n "(cached) " >&6
  16380. else
  16381. ac_check_lib_save_LIBS=$LIBS
  16382. LIBS="-lldap$ol_libver $LIBS"
  16383. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16384. /* end confdefs.h. */
  16385. /* Override any GCC internal prototype to avoid an error.
  16386. Use char because int might match the return type of a GCC
  16387. builtin and then its argument prototype would still apply. */
  16388. #ifdef __cplusplus
  16389. extern "C"
  16390. #endif
  16391. char ldap_url_parse_ext ();
  16392. int
  16393. main ()
  16394. {
  16395. return ldap_url_parse_ext ();
  16396. ;
  16397. return 0;
  16398. }
  16399. _ACEOF
  16400. if ac_fn_c_try_link "$LINENO"; then :
  16401. eval "$as_ac_Lib=yes"
  16402. else
  16403. eval "$as_ac_Lib=no"
  16404. fi
  16405. rm -f core conftest.err conftest.$ac_objext \
  16406. conftest$ac_exeext conftest.$ac_ext
  16407. LIBS=$ac_check_lib_save_LIBS
  16408. fi
  16409. eval ac_res=\$$as_ac_Lib
  16410. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  16411. $as_echo "$ac_res" >&6; }
  16412. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  16413. $as_echo "#define HAVE_LDAP_URL_PARSE_EXT 1" >>confdefs.h
  16414. fi
  16415. ldap_lib_ldif=""
  16416. LDFLAGS="$LDFLAGS"
  16417. as_ac_Lib=`$as_echo "ac_cv_lib_ldap$ol_libver''_ldif_open" | $as_tr_sh`
  16418. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldif_open in -lldap$ol_libver" >&5
  16419. $as_echo_n "checking for ldif_open in -lldap$ol_libver... " >&6; }
  16420. if eval \${$as_ac_Lib+:} false; then :
  16421. $as_echo_n "(cached) " >&6
  16422. else
  16423. ac_check_lib_save_LIBS=$LIBS
  16424. LIBS="-lldap$ol_libver $LIBS"
  16425. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16426. /* end confdefs.h. */
  16427. /* Override any GCC internal prototype to avoid an error.
  16428. Use char because int might match the return type of a GCC
  16429. builtin and then its argument prototype would still apply. */
  16430. #ifdef __cplusplus
  16431. extern "C"
  16432. #endif
  16433. char ldif_open ();
  16434. int
  16435. main ()
  16436. {
  16437. return ldif_open ();
  16438. ;
  16439. return 0;
  16440. }
  16441. _ACEOF
  16442. if ac_fn_c_try_link "$LINENO"; then :
  16443. eval "$as_ac_Lib=yes"
  16444. else
  16445. eval "$as_ac_Lib=no"
  16446. fi
  16447. rm -f core conftest.err conftest.$ac_objext \
  16448. conftest$ac_exeext conftest.$ac_ext
  16449. LIBS=$ac_check_lib_save_LIBS
  16450. fi
  16451. eval ac_res=\$$as_ac_Lib
  16452. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  16453. $as_echo "$ac_res" >&6; }
  16454. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  16455. ldap_lib_ldif=
  16456. else
  16457. ldap_lib_ldif=-lldif$ol_libver
  16458. fi
  16459. LDFLAGS="$save_ldflags"
  16460. CPPFLAGS="$save_cppflags"
  16461. $as_echo "#define USE_OPENLDAP 1" >>confdefs.h
  16462. # where to find ldapsearch, et. al.
  16463. ldaptool_bindir=$openldap_bindir
  16464. # default options to pass to the tools
  16465. # use -x because all of our scripts use simple bind
  16466. ldaptool_opts=-x
  16467. # get plain output from ldapsearch - no version, no comments
  16468. plainldif_opts=-LLL
  16469. fi
  16470. # BEGIN COPYRIGHT BLOCK
  16471. # Copyright (C) 2007 Red Hat, Inc.
  16472. # All rights reserved.
  16473. #
  16474. # This program is free software; you can redistribute it and/or
  16475. # modify it under the terms of the GNU General Public License
  16476. # as published by the Free Software Foundation; either version 2
  16477. # of the License, or (at your option) any later version.
  16478. #
  16479. # This program is distributed in the hope that it will be useful,
  16480. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  16481. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16482. # GNU General Public License for more details.
  16483. #
  16484. # You should have received a copy of the GNU General Public License
  16485. # along with this program; if not, write to the Free Software
  16486. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  16487. #
  16488. # END COPYRIGHT BLOCK
  16489. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mozilla LDAPSDK..." >&5
  16490. $as_echo "$as_me: checking for Mozilla LDAPSDK..." >&6;}
  16491. # check for --with-ldapsdk
  16492. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-ldapsdk" >&5
  16493. $as_echo_n "checking for --with-ldapsdk... " >&6; }
  16494. # Check whether --with-ldapsdk was given.
  16495. if test "${with_ldapsdk+set}" = set; then :
  16496. withval=$with_ldapsdk;
  16497. if test "$withval" = yes
  16498. then
  16499. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16500. $as_echo "yes" >&6; }
  16501. elif test "$withval" = no
  16502. then
  16503. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16504. $as_echo "no" >&6; }
  16505. elif test -e "$withval"/include/ldap.h -a -d "$withval"/lib
  16506. then
  16507. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16508. $as_echo "using $withval" >&6; }
  16509. LDAPSDKDIR=$withval
  16510. ldapsdk_inc="-I$LDAPSDKDIR/include"
  16511. ldapsdk_lib="-L$LDAPSDKDIR/lib"
  16512. ldapsdk_libdir="$LDAPSDKDIR/lib"
  16513. ldapsdk_bindir="$LDAPSDKDIR/bin"
  16514. with_ldapsdk=yes
  16515. else
  16516. echo
  16517. as_fn_error $? "$withval not found" "$LINENO" 5
  16518. fi
  16519. if test "$with_ldapsdk" = yes -a "$with_openldap" = yes
  16520. then
  16521. as_fn_error $? "Cannot use both LDAPSDK and OpenLDAP." "$LINENO" 5
  16522. fi
  16523. if test "$with_ldapsdk" != yes -a "$with_openldap" != yes
  16524. then
  16525. as_fn_error $? "Either LDAPSDK or OpenLDAP must be used." "$LINENO" 5
  16526. fi
  16527. else
  16528. if test "$with_openldap" = yes
  16529. then
  16530. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16531. $as_echo "no" >&6; }
  16532. else
  16533. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16534. $as_echo "yes" >&6; }
  16535. with_ldapsdk=yes
  16536. fi
  16537. fi
  16538. # check for --with-ldapsdk-inc
  16539. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-ldapsdk-inc" >&5
  16540. $as_echo_n "checking for --with-ldapsdk-inc... " >&6; }
  16541. # Check whether --with-ldapsdk-inc was given.
  16542. if test "${with_ldapsdk_inc+set}" = set; then :
  16543. withval=$with_ldapsdk_inc;
  16544. if test -e "$withval"/ldap.h
  16545. then
  16546. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16547. $as_echo "using $withval" >&6; }
  16548. ldapsdk_inc="-I$withval"
  16549. with_ldapsdk=yes
  16550. else
  16551. echo
  16552. as_fn_error $? "$withval not found" "$LINENO" 5
  16553. fi
  16554. else
  16555. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16556. $as_echo "no" >&6; }
  16557. fi
  16558. # check for --with-ldapsdk-lib
  16559. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-ldapsdk-lib" >&5
  16560. $as_echo_n "checking for --with-ldapsdk-lib... " >&6; }
  16561. # Check whether --with-ldapsdk-lib was given.
  16562. if test "${with_ldapsdk_lib+set}" = set; then :
  16563. withval=$with_ldapsdk_lib;
  16564. if test -d "$withval"
  16565. then
  16566. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16567. $as_echo "using $withval" >&6; }
  16568. ldapsdk_lib="-L$withval"
  16569. ldapsdk_libdir="$withval"
  16570. with_ldapsdk=yes
  16571. else
  16572. echo
  16573. as_fn_error $? "$withval not found" "$LINENO" 5
  16574. fi
  16575. else
  16576. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16577. $as_echo "no" >&6; }
  16578. fi
  16579. # check for --with-ldapsdk-bin
  16580. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-ldapsdk-bin" >&5
  16581. $as_echo_n "checking for --with-ldapsdk-bin... " >&6; }
  16582. # Check whether --with-ldapsdk-bin was given.
  16583. if test "${with_ldapsdk_bin+set}" = set; then :
  16584. withval=$with_ldapsdk_bin;
  16585. if test -d "$withval"
  16586. then
  16587. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16588. $as_echo "using $withval" >&6; }
  16589. ldapsdk_bindir="$withval"
  16590. with_ldapsdk=yes
  16591. else
  16592. echo
  16593. as_fn_error $? "$withval not found" "$LINENO" 5
  16594. fi
  16595. else
  16596. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16597. $as_echo "no" >&6; }
  16598. fi
  16599. # if LDAPSDK is not found yet, try pkg-config
  16600. # last resort
  16601. if test "$with_ldapsdk" = yes ; then
  16602. if test -z "$ldapsdk_inc" -o -z "$ldapsdk_lib" -o -z "$ldapsdk_libdir" -o -z "$ldapsdk_bindir"; then
  16603. # Extract the first word of "pkg-config", so it can be a program name with args.
  16604. set dummy pkg-config; ac_word=$2
  16605. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16606. $as_echo_n "checking for $ac_word... " >&6; }
  16607. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  16608. $as_echo_n "(cached) " >&6
  16609. else
  16610. case $PKG_CONFIG in
  16611. [\\/]* | ?:[\\/]*)
  16612. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  16613. ;;
  16614. *)
  16615. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16616. for as_dir in $PATH
  16617. do
  16618. IFS=$as_save_IFS
  16619. test -z "$as_dir" && as_dir=.
  16620. for ac_exec_ext in '' $ac_executable_extensions; do
  16621. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  16622. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  16623. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16624. break 2
  16625. fi
  16626. done
  16627. done
  16628. IFS=$as_save_IFS
  16629. ;;
  16630. esac
  16631. fi
  16632. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  16633. if test -n "$PKG_CONFIG"; then
  16634. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  16635. $as_echo "$PKG_CONFIG" >&6; }
  16636. else
  16637. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16638. $as_echo "no" >&6; }
  16639. fi
  16640. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mozldap with pkg-config" >&5
  16641. $as_echo_n "checking for mozldap with pkg-config... " >&6; }
  16642. if test -n "$PKG_CONFIG"; then
  16643. if $PKG_CONFIG --exists mozldap6; then
  16644. mozldappkg=mozldap6
  16645. elif $PKG_CONFIG --exists mozldap; then
  16646. mozldappkg=mozldap
  16647. else
  16648. as_fn_error $? "LDAPSDK not found, specify with --with-ldapsdk-inc|-lib|-bin." "$LINENO" 5
  16649. fi
  16650. ldapsdk_inc=`$PKG_CONFIG --cflags-only-I $mozldappkg`
  16651. ldapsdk_lib=`$PKG_CONFIG --libs-only-L $mozldappkg`
  16652. ldapsdk_libdir=`$PKG_CONFIG --libs-only-L $mozldappkg | sed -e s/-L// | sed -e s/\ .*$//`
  16653. ldapsdk_bindir=`$PKG_CONFIG --variable=bindir $mozldappkg`
  16654. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using system $mozldappkg" >&5
  16655. $as_echo "using system $mozldappkg" >&6; }
  16656. fi
  16657. fi
  16658. fi
  16659. if test "$with_ldapsdk" = yes ; then
  16660. if test -z "$ldapsdk_inc" -o -z "$ldapsdk_lib"; then
  16661. as_fn_error $? "LDAPSDK not found, specify with --with-ldapsdk-inc|-lib|-bin." "$LINENO" 5
  16662. fi
  16663. if test -z "$ldapsdk_bindir" ; then
  16664. if -d $libdir/mozldap6 ; then
  16665. ldapsdk_bindir=$libdir/mozldap6
  16666. else
  16667. ldapsdk_bindir=$libdir/mozldap
  16668. fi
  16669. fi
  16670. save_cppflags="$CPPFLAGS"
  16671. CPPFLAGS="$ldapsdk_inc $nss_inc $nspr_inc"
  16672. ac_fn_c_check_header_compile "$LINENO" "ldap.h" "ac_cv_header_ldap_h" "#include <ldap-standard.h>
  16673. #if LDAP_VENDOR_VERSION < 600
  16674. #error The LDAP C SDK version is not supported
  16675. #endif
  16676. "
  16677. if test "x$ac_cv_header_ldap_h" = xyes; then :
  16678. isversion6=1
  16679. else
  16680. isversion6=
  16681. fi
  16682. CPPFLAGS="$save_cppflags"
  16683. if test -z "$isversion6" ; then
  16684. as_fn_error $? "The LDAPSDK version in $ldapsdk_inc/ldap-standard.h is not supported" "$LINENO" 5
  16685. fi
  16686. $as_echo "#define USE_MOZLDAP 1" >>confdefs.h
  16687. $as_echo "#define HAVE_LDAP_URL_PARSE_NO_DEFAULTS 1" >>confdefs.h
  16688. # where to find ldapsearch, et. al.
  16689. ldaptool_bindir=$ldapsdk_bindir
  16690. # default options to pass to the tools
  16691. ldaptool_opts=
  16692. # get plain output from ldapsearch - no version
  16693. plainldif_opts=-1
  16694. fi
  16695. # BEGIN COPYRIGHT BLOCK
  16696. # Copyright (C) 2007 Red Hat, Inc.
  16697. # All rights reserved.
  16698. #
  16699. # This program is free software; you can redistribute it and/or
  16700. # modify it under the terms of the GNU General Public License
  16701. # as published by the Free Software Foundation; either version 2
  16702. # of the License, or (at your option) any later version.
  16703. #
  16704. # This program is distributed in the hope that it will be useful,
  16705. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  16706. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16707. # GNU General Public License for more details.
  16708. #
  16709. # You should have received a copy of the GNU General Public License
  16710. # along with this program; if not, write to the Free Software
  16711. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  16712. #
  16713. # END COPYRIGHT BLOCK
  16714. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for db..." >&5
  16715. $as_echo "$as_me: checking for db..." >&6;}
  16716. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-db" >&5
  16717. $as_echo_n "checking for --with-db... " >&6; }
  16718. # Check whether --with-db was given.
  16719. if test "${with_db+set}" = set; then :
  16720. withval=$with_db;
  16721. if test "$withval" = "yes"; then
  16722. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16723. $as_echo "yes" >&6; }
  16724. elif test "$withval" = "no"; then
  16725. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16726. $as_echo "no" >&6; }
  16727. as_fn_error $? "db is required." "$LINENO" 5
  16728. elif test -d "$withval"/include -a -d "$withval"/lib; then
  16729. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16730. $as_echo "using $withval" >&6; }
  16731. DBDIR=$withval
  16732. db_lib="-L$DBDIR/lib"
  16733. db_libdir="$DBDIR/lib"
  16734. db_incdir="$DBDIR/include"
  16735. if ! test -e "$db_incdir/db.h" ; then
  16736. as_fn_error $? "$withval include dir not found" "$LINENO" 5
  16737. fi
  16738. db_inc="-I$db_incdir"
  16739. else
  16740. echo
  16741. as_fn_error $? "$withval not found" "$LINENO" 5
  16742. fi
  16743. else
  16744. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16745. $as_echo "yes" >&6; }
  16746. fi
  16747. # check for --with-db-inc
  16748. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-db-inc" >&5
  16749. $as_echo_n "checking for --with-db-inc... " >&6; }
  16750. # Check whether --with-db-inc was given.
  16751. if test "${with_db_inc+set}" = set; then :
  16752. withval=$with_db_inc;
  16753. if test -e "$withval"/db.h
  16754. then
  16755. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16756. $as_echo "using $withval" >&6; }
  16757. db_incdir="$withval"
  16758. db_inc="-I$withval"
  16759. else
  16760. echo
  16761. as_fn_error $? "$withval not found" "$LINENO" 5
  16762. fi
  16763. else
  16764. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16765. $as_echo "no" >&6; }
  16766. fi
  16767. # check for --with-db-lib
  16768. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-db-lib" >&5
  16769. $as_echo_n "checking for --with-db-lib... " >&6; }
  16770. # Check whether --with-db-lib was given.
  16771. if test "${with_db_lib+set}" = set; then :
  16772. withval=$with_db_lib;
  16773. if test -d "$withval"
  16774. then
  16775. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16776. $as_echo "using $withval" >&6; }
  16777. db_lib="-L$withval"
  16778. db_libdir="$withval"
  16779. else
  16780. echo
  16781. as_fn_error $? "$withval not found" "$LINENO" 5
  16782. fi
  16783. else
  16784. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16785. $as_echo "no" >&6; }
  16786. fi
  16787. if test -z "$db_inc"; then
  16788. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for db.h" >&5
  16789. $as_echo_n "checking for db.h... " >&6; }
  16790. if test -f "/usr/include/db4/db.h"; then
  16791. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using /usr/include/db4/db.h" >&5
  16792. $as_echo "using /usr/include/db4/db.h" >&6; }
  16793. db_incdir="/usr/include/db4"
  16794. db_inc="-I/usr/include/db4"
  16795. db_lib='-L$(libdir)'
  16796. db_libdir='$(libdir)'
  16797. elif test -f "/usr/include/db.h"; then
  16798. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using /usr/include/db.h" >&5
  16799. $as_echo "using /usr/include/db.h" >&6; }
  16800. db_incdir="/usr/include"
  16801. db_inc="-I/usr/include"
  16802. db_lib='-L$(libdir)'
  16803. db_libdir='$(libdir)'
  16804. else
  16805. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16806. $as_echo "no" >&6; }
  16807. as_fn_error $? "db not found, specify with --with-db." "$LINENO" 5
  16808. fi
  16809. fi
  16810. db_ver_maj=`grep DB_VERSION_MAJOR $db_incdir/db.h | awk '{print $3}'`
  16811. db_ver_min=`grep DB_VERSION_MINOR $db_incdir/db.h | awk '{print $3}'`
  16812. db_ver_pat=`grep DB_VERSION_PATCH $db_incdir/db.h | awk '{print $3}'`
  16813. db_libver=${db_ver_maj}.${db_ver_min}
  16814. save_ldflags="$LDFLAGS"
  16815. LDFLAGS="$db_lib $LDFLAGS"
  16816. as_ac_Lib=`$as_echo "ac_cv_lib_db-$db_libver''_db_create" | $as_tr_sh`
  16817. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for db_create in -ldb-$db_libver" >&5
  16818. $as_echo_n "checking for db_create in -ldb-$db_libver... " >&6; }
  16819. if eval \${$as_ac_Lib+:} false; then :
  16820. $as_echo_n "(cached) " >&6
  16821. else
  16822. ac_check_lib_save_LIBS=$LIBS
  16823. LIBS="-ldb-$db_libver $LIBNSL $LIBS"
  16824. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16825. /* end confdefs.h. */
  16826. /* Override any GCC internal prototype to avoid an error.
  16827. Use char because int might match the return type of a GCC
  16828. builtin and then its argument prototype would still apply. */
  16829. #ifdef __cplusplus
  16830. extern "C"
  16831. #endif
  16832. char db_create ();
  16833. int
  16834. main ()
  16835. {
  16836. return db_create ();
  16837. ;
  16838. return 0;
  16839. }
  16840. _ACEOF
  16841. if ac_fn_c_try_link "$LINENO"; then :
  16842. eval "$as_ac_Lib=yes"
  16843. else
  16844. eval "$as_ac_Lib=no"
  16845. fi
  16846. rm -f core conftest.err conftest.$ac_objext \
  16847. conftest$ac_exeext conftest.$ac_ext
  16848. LIBS=$ac_check_lib_save_LIBS
  16849. fi
  16850. eval ac_res=\$$as_ac_Lib
  16851. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  16852. $as_echo "$ac_res" >&6; }
  16853. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  16854. true
  16855. else
  16856. as_fn_error $? "$db_incdir/db.h is version $db_libver but libdb-$db_libver not found" "$LINENO" 5
  16857. fi
  16858. LDFLAGS="$save_ldflags"
  16859. # if DB is not found yet, try pkg-config
  16860. # last resort
  16861. # Although the other db_* variables are correctly assigned at this point,
  16862. # db_bindir needs to be set by pkg-config if possible (e.g., on 64-bit Solaris)
  16863. if test -n "$PKG_CONFIG"; then
  16864. if $PKG_CONFIG --exists db; then
  16865. db_bindir=`$PKG_CONFIG --variable=bindir db`
  16866. else
  16867. db_bindir=/usr/bin
  16868. fi
  16869. else
  16870. db_bindir=/usr/bin
  16871. fi
  16872. # BEGIN COPYRIGHT BLOCK
  16873. # Copyright (C) 2007 Red Hat, Inc.
  16874. # All rights reserved.
  16875. #
  16876. # This program is free software; you can redistribute it and/or
  16877. # modify it under the terms of the GNU General Public License
  16878. # as published by the Free Software Foundation; either version 2
  16879. # of the License, or (at your option) any later version.
  16880. #
  16881. # This program is distributed in the hope that it will be useful,
  16882. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  16883. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16884. # GNU General Public License for more details.
  16885. #
  16886. # You should have received a copy of the GNU General Public License
  16887. # along with this program; if not, write to the Free Software
  16888. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  16889. #
  16890. # END COPYRIGHT BLOCK
  16891. # -*- tab-width: 4; -*-
  16892. # Configure paths for SASL
  16893. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SASL..." >&5
  16894. $as_echo "$as_me: checking for SASL..." >&6;}
  16895. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-sasl" >&5
  16896. $as_echo_n "checking for --with-sasl... " >&6; }
  16897. # Check whether --with-sasl was given.
  16898. if test "${with_sasl+set}" = set; then :
  16899. withval=$with_sasl;
  16900. if test "$withval" = "yes"; then
  16901. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16902. $as_echo "yes" >&6; }
  16903. elif test "$withval" = "no"; then
  16904. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16905. $as_echo "no" >&6; }
  16906. as_fn_error $? "SASL is required." "$LINENO" 5
  16907. elif test -d "$withval" -a -d "$withval/lib" -a -d "$withval/include" ; then
  16908. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16909. $as_echo "using $withval" >&6; }
  16910. if test -f "$withval/include/sasl/sasl.h"; then
  16911. sasl_inc="-I$withval/include/sasl"
  16912. elif test -f "$withval/include/sasl.h"; then
  16913. sasl_inc="-I$withval/include"
  16914. else
  16915. as_fn_error $? "sasl.h not found" "$LINENO" 5
  16916. fi
  16917. sasl_lib="-L$withval/lib"
  16918. sasl_libdir="$withval/lib"
  16919. else
  16920. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16921. $as_echo "yes" >&6; }
  16922. as_fn_error $? "SASL not found in $withval" "$LINENO" 5
  16923. fi
  16924. else
  16925. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16926. $as_echo "yes" >&6; }
  16927. fi
  16928. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-sasl-inc" >&5
  16929. $as_echo_n "checking for --with-sasl-inc... " >&6; }
  16930. # Check whether --with-sasl-inc was given.
  16931. if test "${with_sasl_inc+set}" = set; then :
  16932. withval=$with_sasl_inc;
  16933. if test -f "$withval"/sasl.h; then
  16934. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16935. $as_echo "using $withval" >&6; }
  16936. sasl_inc="-I$withval"
  16937. else
  16938. echo
  16939. as_fn_error $? "$withval/sasl.h not found" "$LINENO" 5
  16940. fi
  16941. else
  16942. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16943. $as_echo "no" >&6; }
  16944. fi
  16945. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-sasl-lib" >&5
  16946. $as_echo_n "checking for --with-sasl-lib... " >&6; }
  16947. # Check whether --with-sasl-lib was given.
  16948. if test "${with_sasl_lib+set}" = set; then :
  16949. withval=$with_sasl_lib;
  16950. if test -d "$withval"; then
  16951. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16952. $as_echo "using $withval" >&6; }
  16953. sasl_lib="-L$withval"
  16954. sasl_libdir="$withval"
  16955. else
  16956. echo
  16957. as_fn_error $? "$withval not found" "$LINENO" 5
  16958. fi
  16959. else
  16960. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16961. $as_echo "no" >&6; }
  16962. fi
  16963. if test -z "$sasl_inc"; then
  16964. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sasl.h" >&5
  16965. $as_echo_n "checking for sasl.h... " >&6; }
  16966. if test -f /usr/include/sasl/sasl.h; then
  16967. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using /usr/include/sasl/sasl.h" >&5
  16968. $as_echo "using /usr/include/sasl/sasl.h" >&6; }
  16969. sasl_inc="-I/usr/include/sasl"
  16970. elif test -f /usr/include/sasl.h; then
  16971. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using /usr/include/sasl.h" >&5
  16972. $as_echo "using /usr/include/sasl.h" >&6; }
  16973. sasl_inc="-I/usr/include"
  16974. else
  16975. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16976. $as_echo "no" >&6; }
  16977. as_fn_error $? "SASL not found, specify with --with-sasl." "$LINENO" 5
  16978. fi
  16979. fi
  16980. # BEGIN COPYRIGHT BLOCK
  16981. # Copyright (C) 2007 Red Hat, Inc.
  16982. # All rights reserved.
  16983. #
  16984. # This program is free software; you can redistribute it and/or
  16985. # modify it under the terms of the GNU General Public License
  16986. # as published by the Free Software Foundation; either version 2
  16987. # of the License, or (at your option) any later version.
  16988. #
  16989. # This program is distributed in the hope that it will be useful,
  16990. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  16991. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16992. # GNU General Public License for more details.
  16993. #
  16994. # You should have received a copy of the GNU General Public License
  16995. # along with this program; if not, write to the Free Software
  16996. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  16997. #
  16998. # END COPYRIGHT BLOCK
  16999. #
  17000. # Configure paths for SVRCORE
  17001. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SVRCORE..." >&5
  17002. $as_echo "$as_me: checking for SVRCORE..." >&6;}
  17003. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-svrcore" >&5
  17004. $as_echo_n "checking for --with-svrcore... " >&6; }
  17005. # Check whether --with-svrcore was given.
  17006. if test "${with_svrcore+set}" = set; then :
  17007. withval=$with_svrcore;
  17008. if test "$withval" = "yes"; then
  17009. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17010. $as_echo "yes" >&6; }
  17011. elif test "$withval" = "no"; then
  17012. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17013. $as_echo "no" >&6; }
  17014. as_fn_error $? "SVRCORE is required." "$LINENO" 5
  17015. elif test -d "$withval" -a -d "$withval/lib" -a -d "$withval/include" ; then
  17016. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17017. $as_echo "using $withval" >&6; }
  17018. if test -f "$withval/include/svrcore.h"; then
  17019. svrcore_inc="-I$withval/include"
  17020. else
  17021. as_fn_error $? "svrcore.h not found" "$LINENO" 5
  17022. fi
  17023. svrcore_lib="-L$withval/lib"
  17024. else
  17025. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17026. $as_echo "yes" >&6; }
  17027. as_fn_error $? "SVRCORE not found in $withval" "$LINENO" 5
  17028. fi
  17029. else
  17030. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17031. $as_echo "yes" >&6; }
  17032. fi
  17033. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-svrcore-inc" >&5
  17034. $as_echo_n "checking for --with-svrcore-inc... " >&6; }
  17035. # Check whether --with-svrcore-inc was given.
  17036. if test "${with_svrcore_inc+set}" = set; then :
  17037. withval=$with_svrcore_inc;
  17038. if test -f "$withval"/svrcore.h; then
  17039. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17040. $as_echo "using $withval" >&6; }
  17041. svrcore_inc="-I$withval"
  17042. else
  17043. echo
  17044. as_fn_error $? "$withval/svrcore.h not found" "$LINENO" 5
  17045. fi
  17046. else
  17047. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17048. $as_echo "no" >&6; }
  17049. fi
  17050. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-svrcore-lib" >&5
  17051. $as_echo_n "checking for --with-svrcore-lib... " >&6; }
  17052. # Check whether --with-svrcore-lib was given.
  17053. if test "${with_svrcore_lib+set}" = set; then :
  17054. withval=$with_svrcore_lib;
  17055. if test -d "$withval"; then
  17056. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17057. $as_echo "using $withval" >&6; }
  17058. svrcore_lib="-L$withval"
  17059. else
  17060. echo
  17061. as_fn_error $? "$withval not found" "$LINENO" 5
  17062. fi
  17063. else
  17064. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17065. $as_echo "no" >&6; }
  17066. fi
  17067. if test -z "$svrcore_inc" -o -z "$svrcore_lib"; then
  17068. # Extract the first word of "pkg-config", so it can be a program name with args.
  17069. set dummy pkg-config; ac_word=$2
  17070. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17071. $as_echo_n "checking for $ac_word... " >&6; }
  17072. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  17073. $as_echo_n "(cached) " >&6
  17074. else
  17075. case $PKG_CONFIG in
  17076. [\\/]* | ?:[\\/]*)
  17077. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  17078. ;;
  17079. *)
  17080. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17081. for as_dir in $PATH
  17082. do
  17083. IFS=$as_save_IFS
  17084. test -z "$as_dir" && as_dir=.
  17085. for ac_exec_ext in '' $ac_executable_extensions; do
  17086. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  17087. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  17088. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17089. break 2
  17090. fi
  17091. done
  17092. done
  17093. IFS=$as_save_IFS
  17094. ;;
  17095. esac
  17096. fi
  17097. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  17098. if test -n "$PKG_CONFIG"; then
  17099. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  17100. $as_echo "$PKG_CONFIG" >&6; }
  17101. else
  17102. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17103. $as_echo "no" >&6; }
  17104. fi
  17105. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SVRCORE with pkg-config" >&5
  17106. $as_echo_n "checking for SVRCORE with pkg-config... " >&6; }
  17107. if test -n "$PKG_CONFIG"; then
  17108. if $PKG_CONFIG --exists svrcore; then
  17109. svrcore_inc=`$PKG_CONFIG --cflags-only-I svrcore`
  17110. svrcore_lib=`$PKG_CONFIG --libs-only-L svrcore`
  17111. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using system svrcore" >&5
  17112. $as_echo "using system svrcore" >&6; }
  17113. fi
  17114. fi
  17115. fi
  17116. if test -z "$svrcore_inc" -o -z "$svrcore_lib"; then
  17117. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SVRCORE_GetRegisteredPinObj in -lsvrcore" >&5
  17118. $as_echo_n "checking for SVRCORE_GetRegisteredPinObj in -lsvrcore... " >&6; }
  17119. if ${ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj+:} false; then :
  17120. $as_echo_n "(cached) " >&6
  17121. else
  17122. ac_check_lib_save_LIBS=$LIBS
  17123. LIBS="-lsvrcore $nss_inc $nspr_inc $nss_lib -lnss3 -lsoftokn3 $nspr_lib -lplds4 -lplc4 -lnspr4 $LIBS"
  17124. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17125. /* end confdefs.h. */
  17126. /* Override any GCC internal prototype to avoid an error.
  17127. Use char because int might match the return type of a GCC
  17128. builtin and then its argument prototype would still apply. */
  17129. #ifdef __cplusplus
  17130. extern "C"
  17131. #endif
  17132. char SVRCORE_GetRegisteredPinObj ();
  17133. int
  17134. main ()
  17135. {
  17136. return SVRCORE_GetRegisteredPinObj ();
  17137. ;
  17138. return 0;
  17139. }
  17140. _ACEOF
  17141. if ac_fn_c_try_link "$LINENO"; then :
  17142. ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj=yes
  17143. else
  17144. ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj=no
  17145. fi
  17146. rm -f core conftest.err conftest.$ac_objext \
  17147. conftest$ac_exeext conftest.$ac_ext
  17148. LIBS=$ac_check_lib_save_LIBS
  17149. fi
  17150. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj" >&5
  17151. $as_echo "$ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj" >&6; }
  17152. if test "x$ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj" = xyes; then :
  17153. havesvrcore=1
  17154. fi
  17155. if test -n "$havesvrcore" ; then
  17156. save_cppflags="$CPPFLAGS"
  17157. CPPFLAGS="$nss_inc $nspr_inc"
  17158. ac_fn_c_check_header_mongrel "$LINENO" "svrcore.h" "ac_cv_header_svrcore_h" "$ac_includes_default"
  17159. if test "x$ac_cv_header_svrcore_h" = xyes; then :
  17160. havesvrcore=1
  17161. else
  17162. havesvrcore=
  17163. fi
  17164. CPPFLAGS="$save_cppflags"
  17165. fi
  17166. if test -z "$havesvrcore" ; then
  17167. as_fn_error $? "SVRCORE not found, specify with --with-svrcore." "$LINENO" 5
  17168. fi
  17169. fi
  17170. if test -z "$svrcore_inc" -o -z "$svrcore_lib"; then
  17171. if test -f /usr/include/svrcore.h; then
  17172. svrcore_inc="-I/usr/include"
  17173. svrcore_lib="-L/usr/lib"
  17174. else
  17175. as_fn_error $? "SVRCORE not found, specify with --with-svrcore." "$LINENO" 5
  17176. fi
  17177. fi
  17178. # BEGIN COPYRIGHT BLOCK
  17179. # Copyright (C) 2006 Red Hat, Inc.
  17180. # All rights reserved.
  17181. #
  17182. # This program is free software; you can redistribute it and/or
  17183. # modify it under the terms of the GNU General Public License
  17184. # as published by the Free Software Foundation; either version 2
  17185. # of the License, or (at your option) any later version.
  17186. #
  17187. # This program is distributed in the hope that it will be useful,
  17188. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  17189. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17190. # GNU General Public License for more details.
  17191. #
  17192. # You should have received a copy of the GNU General Public License
  17193. # along with this program; if not, write to the Free Software
  17194. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  17195. #
  17196. # END COPYRIGHT BLOCK
  17197. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBICU..." >&5
  17198. $as_echo "$as_me: checking for LIBICU..." >&6;}
  17199. # check for --with-icu
  17200. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-icu" >&5
  17201. $as_echo_n "checking for --with-icu... " >&6; }
  17202. # Check whether --with-icu was given.
  17203. if test "${with_icu+set}" = set; then :
  17204. withval=$with_icu;
  17205. if test "$withval" = "yes"
  17206. then
  17207. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17208. $as_echo "yes" >&6; }
  17209. elif test "$withval" = "no"
  17210. then
  17211. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17212. $as_echo "no" >&6; }
  17213. as_fn_error $? "ICU is required." "$LINENO" 5
  17214. elif test -d "$withval"/lib
  17215. then
  17216. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17217. $as_echo "using $withval" >&6; }
  17218. ICUDIR=$withval
  17219. icu_lib="-L$ICUDIR/lib"
  17220. icu_inc="-I$withval/include"
  17221. icu_bin="$withval/bin"
  17222. else
  17223. echo
  17224. as_fn_error $? "$withval not found" "$LINENO" 5
  17225. fi
  17226. else
  17227. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17228. $as_echo "yes" >&6; }
  17229. fi
  17230. # check for --with-icu-inc
  17231. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-icu-inc" >&5
  17232. $as_echo_n "checking for --with-icu-inc... " >&6; }
  17233. # Check whether --with-icu-inc was given.
  17234. if test "${with_icu_inc+set}" = set; then :
  17235. withval=$with_icu_inc;
  17236. if test -d "$withval"
  17237. then
  17238. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17239. $as_echo "using $withval" >&6; }
  17240. icu_inc="-I$withval"
  17241. else
  17242. echo
  17243. as_fn_error $? "$withval not found" "$LINENO" 5
  17244. fi
  17245. else
  17246. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17247. $as_echo "no" >&6; }
  17248. fi
  17249. # check for --with-icu-lib
  17250. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-icu-lib" >&5
  17251. $as_echo_n "checking for --with-icu-lib... " >&6; }
  17252. # Check whether --with-icu-lib was given.
  17253. if test "${with_icu_lib+set}" = set; then :
  17254. withval=$with_icu_lib;
  17255. if test -d "$withval"
  17256. then
  17257. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17258. $as_echo "using $withval" >&6; }
  17259. icu_lib="-L$withval"
  17260. else
  17261. echo
  17262. as_fn_error $? "$withval not found" "$LINENO" 5
  17263. fi
  17264. else
  17265. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17266. $as_echo "no" >&6; }
  17267. fi
  17268. # check for --with-icu-bin
  17269. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-icu-bin" >&5
  17270. $as_echo_n "checking for --with-icu-bin... " >&6; }
  17271. # Check whether --with-icu-bin was given.
  17272. if test "${with_icu_bin+set}" = set; then :
  17273. withval=$with_icu_bin;
  17274. if test -d "$withval"
  17275. then
  17276. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17277. $as_echo "using $withval" >&6; }
  17278. icu_bin="$withval"
  17279. else
  17280. echo
  17281. as_fn_error $? "$withval not found" "$LINENO" 5
  17282. fi
  17283. else
  17284. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17285. $as_echo "no" >&6; }
  17286. fi
  17287. # if ICU is not found yet, try pkg-config
  17288. # last resort
  17289. if test -z "$icu_lib"; then
  17290. # Extract the first word of "icu-config", so it can be a program name with args.
  17291. set dummy icu-config; ac_word=$2
  17292. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17293. $as_echo_n "checking for $ac_word... " >&6; }
  17294. if ${ac_cv_path_ICU_CONFIG+:} false; then :
  17295. $as_echo_n "(cached) " >&6
  17296. else
  17297. case $ICU_CONFIG in
  17298. [\\/]* | ?:[\\/]*)
  17299. ac_cv_path_ICU_CONFIG="$ICU_CONFIG" # Let the user override the test with a path.
  17300. ;;
  17301. *)
  17302. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17303. for as_dir in $PATH
  17304. do
  17305. IFS=$as_save_IFS
  17306. test -z "$as_dir" && as_dir=.
  17307. for ac_exec_ext in '' $ac_executable_extensions; do
  17308. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  17309. ac_cv_path_ICU_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  17310. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17311. break 2
  17312. fi
  17313. done
  17314. done
  17315. IFS=$as_save_IFS
  17316. ;;
  17317. esac
  17318. fi
  17319. ICU_CONFIG=$ac_cv_path_ICU_CONFIG
  17320. if test -n "$ICU_CONFIG"; then
  17321. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICU_CONFIG" >&5
  17322. $as_echo "$ICU_CONFIG" >&6; }
  17323. else
  17324. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17325. $as_echo "no" >&6; }
  17326. fi
  17327. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for icu with icu-config" >&5
  17328. $as_echo_n "checking for icu with icu-config... " >&6; }
  17329. if test -n "$ICU_CONFIG"; then
  17330. icu_lib=`$ICU_CONFIG --ldflags-searchpath`
  17331. icu_inc=`$ICU_CONFIG --cppflags-searchpath`
  17332. icu_bin=`$ICU_CONFIG --bindir`
  17333. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using system ICU" >&5
  17334. $as_echo "using system ICU" >&6; }
  17335. else
  17336. as_fn_error $? "ICU not found, specify with --with-icu." "$LINENO" 5
  17337. fi
  17338. fi
  17339. # BEGIN COPYRIGHT BLOCK
  17340. # Copyright (C) 2006 Red Hat, Inc.
  17341. # All rights reserved.
  17342. #
  17343. # This program is free software; you can redistribute it and/or
  17344. # modify it under the terms of the GNU General Public License
  17345. # as published by the Free Software Foundation; either version 2
  17346. # of the License, or (at your option) any later version.
  17347. #
  17348. # This program is distributed in the hope that it will be useful,
  17349. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  17350. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17351. # GNU General Public License for more details.
  17352. #
  17353. # You should have received a copy of the GNU General Public License
  17354. # along with this program; if not, write to the Free Software
  17355. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  17356. #
  17357. # END COPYRIGHT BLOCK
  17358. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Net-SNMP..." >&5
  17359. $as_echo "$as_me: checking for Net-SNMP..." >&6;}
  17360. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-netsnmp" >&5
  17361. $as_echo_n "checking for --with-netsnmp... " >&6; }
  17362. # Check whether --with-netsnmp was given.
  17363. if test "${with_netsnmp+set}" = set; then :
  17364. withval=$with_netsnmp;
  17365. if test "$withval" = "yes"; then
  17366. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17367. $as_echo "yes" >&6; }
  17368. elif test "$withval" = "no"; then
  17369. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17370. $as_echo "no" >&6; }
  17371. as_fn_error $? "Net-SNMP is required." "$LINENO" 5
  17372. elif test -d "$withval" -a -d "$withval/lib" -a -d "$withval/include"; then
  17373. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17374. $as_echo "using $withval" >&6; }
  17375. NETSNMPDIR=$withval
  17376. if test -f "$withval/include/net-snmp/net-snmp-includes.h"; then
  17377. netsnmp_inc="-I$withval/include"
  17378. else
  17379. as_fn_error $? "net-snmp-config.h not found" "$LINENO" 5
  17380. fi
  17381. netsnmp_lib="-L$withval/lib"
  17382. netsnmp_libdir="$withval/lib"
  17383. else
  17384. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17385. $as_echo "yes" >&6; }
  17386. as_fn_error $? "$withval not found" "$LINENO" 5
  17387. fi
  17388. else
  17389. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17390. $as_echo "yes" >&6; }
  17391. fi
  17392. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-netsnmp-inc" >&5
  17393. $as_echo_n "checking for --with-netsnmp-inc... " >&6; }
  17394. # Check whether --with-netsnmp-inc was given.
  17395. if test "${with_netsnmp_inc+set}" = set; then :
  17396. withval=$with_netsnmp_inc;
  17397. if test -f "$withval/net-snmp/net-snmp-includes.h"; then
  17398. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17399. $as_echo "using $withval" >&6; }
  17400. netsnmp_inc="-I$withval"
  17401. else
  17402. echo
  17403. as_fn_error $? "$withval/net-snmp/net-snmp-includes.h not found" "$LINENO" 5
  17404. fi
  17405. else
  17406. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17407. $as_echo "no" >&6; }
  17408. fi
  17409. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-netsnmp-lib" >&5
  17410. $as_echo_n "checking for --with-netsnmp-lib... " >&6; }
  17411. # Check whether --with-netsnmp-lib was given.
  17412. if test "${with_netsnmp_lib+set}" = set; then :
  17413. withval=$with_netsnmp_lib;
  17414. if test -d "$withval"
  17415. then
  17416. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17417. $as_echo "using $withval" >&6; }
  17418. netsnmp_lib="-L$withval"
  17419. netsnmp_libdir="$withval"
  17420. else
  17421. echo
  17422. as_fn_error $? "$withval not found" "$LINENO" 5
  17423. fi
  17424. else
  17425. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17426. $as_echo "no" >&6; }
  17427. fi
  17428. if test -z "$netsnmp_inc" -o -z "$netsnmp_lib"; then
  17429. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for net-snmp-includes.h" >&5
  17430. $as_echo_n "checking for net-snmp-includes.h... " >&6; }
  17431. if test -f /usr/include/net-snmp/net-snmp-includes.h; then
  17432. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using /usr/include/net-snmp/net-snmp-includes.h" >&5
  17433. $as_echo "using /usr/include/net-snmp/net-snmp-includes.h" >&6; }
  17434. netsnmp_inc="-I/usr/include"
  17435. else
  17436. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17437. $as_echo "no" >&6; }
  17438. as_fn_error $? "net-snmp not found, specify with --with-netsnmp." "$LINENO" 5
  17439. fi
  17440. fi
  17441. if test -n "$netsnmp_inc"; then
  17442. if test -x "$NETSNMPDIR/bin/net-snmp-config"; then
  17443. NETSNMP_CONFIG=$NETSNMPDIR/bin/net-snmp-config
  17444. else
  17445. # Extract the first word of "net-snmp-config", so it can be a program name with args.
  17446. set dummy net-snmp-config; ac_word=$2
  17447. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17448. $as_echo_n "checking for $ac_word... " >&6; }
  17449. if ${ac_cv_path_NETSNMP_CONFIG+:} false; then :
  17450. $as_echo_n "(cached) " >&6
  17451. else
  17452. case $NETSNMP_CONFIG in
  17453. [\\/]* | ?:[\\/]*)
  17454. ac_cv_path_NETSNMP_CONFIG="$NETSNMP_CONFIG" # Let the user override the test with a path.
  17455. ;;
  17456. *)
  17457. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17458. for as_dir in $PATH
  17459. do
  17460. IFS=$as_save_IFS
  17461. test -z "$as_dir" && as_dir=.
  17462. for ac_exec_ext in '' $ac_executable_extensions; do
  17463. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  17464. ac_cv_path_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  17465. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17466. break 2
  17467. fi
  17468. done
  17469. done
  17470. IFS=$as_save_IFS
  17471. ;;
  17472. esac
  17473. fi
  17474. NETSNMP_CONFIG=$ac_cv_path_NETSNMP_CONFIG
  17475. if test -n "$NETSNMP_CONFIG"; then
  17476. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NETSNMP_CONFIG" >&5
  17477. $as_echo "$NETSNMP_CONFIG" >&6; }
  17478. else
  17479. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17480. $as_echo "no" >&6; }
  17481. fi
  17482. fi
  17483. if test -n "$NETSNMP_CONFIG"; then
  17484. netsnmp_link=`$NETSNMP_CONFIG --agent-libs`
  17485. else
  17486. as_fn_error $? "net-snmp-config not found, specify with --with-netsnmp." "$LINENO" 5
  17487. fi
  17488. else
  17489. as_fn_error $? "Net-SNMP not found, specify with --with-netsnmp." "$LINENO" 5
  17490. fi
  17491. # BEGIN COPYRIGHT BLOCK
  17492. # Copyright (C) 2008 Red Hat, Inc.
  17493. # All rights reserved.
  17494. #
  17495. # This program is free software; you can redistribute it and/or
  17496. # modify it under the terms of the GNU General Public License
  17497. # as published by the Free Software Foundation; either version 2
  17498. # of the License, or (at your option) any later version.
  17499. #
  17500. # This program is distributed in the hope that it will be useful,
  17501. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  17502. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17503. # GNU General Public License for more details.
  17504. #
  17505. # You should have received a copy of the GNU General Public License
  17506. # along with this program; if not, write to the Free Software
  17507. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  17508. #
  17509. # END COPYRIGHT BLOCK
  17510. # -*- tab-width: 4; -*-
  17511. # Configure paths for Kerberos
  17512. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Kerberos..." >&5
  17513. $as_echo "$as_me: checking for Kerberos..." >&6;}
  17514. if test -z "$with_kerberos" ; then
  17515. with_kerberos=yes # if not set on cmdline, set default
  17516. fi
  17517. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-kerberos" >&5
  17518. $as_echo_n "checking for --with-kerberos... " >&6; }
  17519. # Check whether --with-kerberos was given.
  17520. if test "${with_kerberos+set}" = set; then :
  17521. withval=$with_kerberos;
  17522. if test "x$withval" = "xyes"; then
  17523. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17524. $as_echo "yes" >&6; }
  17525. elif test "x$withval" = "xno"; then
  17526. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17527. $as_echo "no" >&6; }
  17528. with_kerberos=
  17529. elif test -d "$withval" -a -d "$withval/lib" -a -d "$withval/include" ; then
  17530. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17531. $as_echo "using $withval" >&6; }
  17532. kerberos_incdir="$withval/include"
  17533. kerberos_libdir="$withval/lib"
  17534. else
  17535. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17536. $as_echo "yes" >&6; }
  17537. as_fn_error $? "kerberos not found in $withval" "$LINENO" 5
  17538. fi
  17539. else
  17540. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17541. $as_echo "no" >&6; }
  17542. with_kerberos=
  17543. fi
  17544. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-kerberos-inc" >&5
  17545. $as_echo_n "checking for --with-kerberos-inc... " >&6; }
  17546. # Check whether --with-kerberos-inc was given.
  17547. if test "${with_kerberos_inc+set}" = set; then :
  17548. withval=$with_kerberos_inc;
  17549. if test -f "$withval"/krb5.h; then
  17550. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17551. $as_echo "using $withval" >&6; }
  17552. kerberos_incdir="$withval"
  17553. with_kerberos=yes # implies use of kerberos
  17554. else
  17555. echo
  17556. as_fn_error $? "$withval/krb5.h not found" "$LINENO" 5
  17557. fi
  17558. else
  17559. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17560. $as_echo "no" >&6; }
  17561. fi
  17562. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-kerberos-lib" >&5
  17563. $as_echo_n "checking for --with-kerberos-lib... " >&6; }
  17564. # Check whether --with-kerberos-lib was given.
  17565. if test "${with_kerberos_lib+set}" = set; then :
  17566. withval=$with_kerberos_lib;
  17567. if test -d "$withval"; then
  17568. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17569. $as_echo "using $withval" >&6; }
  17570. kerberos_libdir="$withval"
  17571. with_kerberos=yes # implies use of kerberos
  17572. else
  17573. echo
  17574. as_fn_error $? "$withval not found" "$LINENO" 5
  17575. fi
  17576. else
  17577. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17578. $as_echo "no" >&6; }
  17579. fi
  17580. if test -n "$with_kerberos" ; then
  17581. if test -z "$kerberos_incdir" -o -z "$kerberos_libdir" ; then
  17582. if test -z "$KRB5_CONFIG_BIN" ; then
  17583. # Extract the first word of "krb5-config", so it can be a program name with args.
  17584. set dummy krb5-config; ac_word=$2
  17585. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17586. $as_echo_n "checking for $ac_word... " >&6; }
  17587. if ${ac_cv_path_KRB5_CONFIG_BIN+:} false; then :
  17588. $as_echo_n "(cached) " >&6
  17589. else
  17590. case $KRB5_CONFIG_BIN in
  17591. [\\/]* | ?:[\\/]*)
  17592. ac_cv_path_KRB5_CONFIG_BIN="$KRB5_CONFIG_BIN" # Let the user override the test with a path.
  17593. ;;
  17594. *)
  17595. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17596. for as_dir in $PATH
  17597. do
  17598. IFS=$as_save_IFS
  17599. test -z "$as_dir" && as_dir=.
  17600. for ac_exec_ext in '' $ac_executable_extensions; do
  17601. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  17602. ac_cv_path_KRB5_CONFIG_BIN="$as_dir/$ac_word$ac_exec_ext"
  17603. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17604. break 2
  17605. fi
  17606. done
  17607. done
  17608. IFS=$as_save_IFS
  17609. ;;
  17610. esac
  17611. fi
  17612. KRB5_CONFIG_BIN=$ac_cv_path_KRB5_CONFIG_BIN
  17613. if test -n "$KRB5_CONFIG_BIN"; then
  17614. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KRB5_CONFIG_BIN" >&5
  17615. $as_echo "$KRB5_CONFIG_BIN" >&6; }
  17616. else
  17617. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17618. $as_echo "no" >&6; }
  17619. fi
  17620. fi
  17621. if test -n "$KRB5_CONFIG_BIN" ; then
  17622. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kerberos with $KRB5_CONFIG_BIN" >&5
  17623. $as_echo_n "checking for kerberos with $KRB5_CONFIG_BIN... " >&6; }
  17624. if test -z "$kerberos_libdir" ; then
  17625. kerberos_lib=`$KRB5_CONFIG_BIN --libs krb5`
  17626. fi
  17627. if test -z "$kerberos_incdir" ; then
  17628. kerberos_inc=`$KRB5_CONFIG_BIN --cflags krb5`
  17629. fi
  17630. if test -n "$kerberos_lib" ; then
  17631. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using kerberos found with $KRB5_CONFIG_BIN" >&5
  17632. $as_echo "using kerberos found with $KRB5_CONFIG_BIN" >&6; }
  17633. have_krb5=yes
  17634. fi
  17635. fi
  17636. fi
  17637. fi
  17638. if test -n "$with_kerberos" -a -z "$kerberos_lib" ; then
  17639. # save these in order to set them to use the check macros below
  17640. # like AC_CHECK_HEADERS, AC_CHECK_LIB, and AC_CHECK_FUNCS
  17641. save_CPPFLAGS="$CPPFLAGS"
  17642. if test -n "$kerberos_incdir" ; then
  17643. CPPFLAGS="-I$kerberos_incdir $CPPFLAGS"
  17644. fi
  17645. save_LDFLAGS="$LDFLAGS"
  17646. if test -n "$kerberos_libdir" ; then
  17647. LDFLAGS="-L$kerberos_libdir $LDFLAGS"
  17648. fi
  17649. krb5_impl=mit
  17650. for ac_header in heim_err.h
  17651. do :
  17652. ac_fn_c_check_header_mongrel "$LINENO" "heim_err.h" "ac_cv_header_heim_err_h" "$ac_includes_default"
  17653. if test "x$ac_cv_header_heim_err_h" = xyes; then :
  17654. cat >>confdefs.h <<_ACEOF
  17655. #define HAVE_HEIM_ERR_H 1
  17656. _ACEOF
  17657. fi
  17658. done
  17659. if test $ac_cv_header_heim_err_h = yes ; then
  17660. krb5_impl=heimdal
  17661. fi
  17662. if test "x$krb5_impl" = "xmit"; then
  17663. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lk5crypto" >&5
  17664. $as_echo_n "checking for main in -lk5crypto... " >&6; }
  17665. if ${ac_cv_lib_k5crypto_main+:} false; then :
  17666. $as_echo_n "(cached) " >&6
  17667. else
  17668. ac_check_lib_save_LIBS=$LIBS
  17669. LIBS="-lk5crypto $LIBS"
  17670. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17671. /* end confdefs.h. */
  17672. int
  17673. main ()
  17674. {
  17675. return main ();
  17676. ;
  17677. return 0;
  17678. }
  17679. _ACEOF
  17680. if ac_fn_c_try_link "$LINENO"; then :
  17681. ac_cv_lib_k5crypto_main=yes
  17682. else
  17683. ac_cv_lib_k5crypto_main=no
  17684. fi
  17685. rm -f core conftest.err conftest.$ac_objext \
  17686. conftest$ac_exeext conftest.$ac_ext
  17687. LIBS=$ac_check_lib_save_LIBS
  17688. fi
  17689. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_main" >&5
  17690. $as_echo "$ac_cv_lib_k5crypto_main" >&6; }
  17691. if test "x$ac_cv_lib_k5crypto_main" = xyes; then :
  17692. krb5crypto=k5crypto
  17693. else
  17694. krb5crypto=crypto
  17695. fi
  17696. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lkrb5" >&5
  17697. $as_echo_n "checking for main in -lkrb5... " >&6; }
  17698. if ${ac_cv_lib_krb5_main+:} false; then :
  17699. $as_echo_n "(cached) " >&6
  17700. else
  17701. ac_check_lib_save_LIBS=$LIBS
  17702. LIBS="-lkrb5 -l$krb5crypto -lcom_err $LIBS"
  17703. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17704. /* end confdefs.h. */
  17705. int
  17706. main ()
  17707. {
  17708. return main ();
  17709. ;
  17710. return 0;
  17711. }
  17712. _ACEOF
  17713. if ac_fn_c_try_link "$LINENO"; then :
  17714. ac_cv_lib_krb5_main=yes
  17715. else
  17716. ac_cv_lib_krb5_main=no
  17717. fi
  17718. rm -f core conftest.err conftest.$ac_objext \
  17719. conftest$ac_exeext conftest.$ac_ext
  17720. LIBS=$ac_check_lib_save_LIBS
  17721. fi
  17722. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_main" >&5
  17723. $as_echo "$ac_cv_lib_krb5_main" >&6; }
  17724. if test "x$ac_cv_lib_krb5_main" = xyes; then :
  17725. have_krb5=yes
  17726. kerberos_lib="-lkrb5 -l$krb5crypto -lcom_err"
  17727. else
  17728. have_krb5=no
  17729. fi
  17730. elif test "x$krb5_impl" = "xheimdal"; then
  17731. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ldes" >&5
  17732. $as_echo_n "checking for main in -ldes... " >&6; }
  17733. if ${ac_cv_lib_des_main+:} false; then :
  17734. $as_echo_n "(cached) " >&6
  17735. else
  17736. ac_check_lib_save_LIBS=$LIBS
  17737. LIBS="-ldes $LIBS"
  17738. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17739. /* end confdefs.h. */
  17740. int
  17741. main ()
  17742. {
  17743. return main ();
  17744. ;
  17745. return 0;
  17746. }
  17747. _ACEOF
  17748. if ac_fn_c_try_link "$LINENO"; then :
  17749. ac_cv_lib_des_main=yes
  17750. else
  17751. ac_cv_lib_des_main=no
  17752. fi
  17753. rm -f core conftest.err conftest.$ac_objext \
  17754. conftest$ac_exeext conftest.$ac_ext
  17755. LIBS=$ac_check_lib_save_LIBS
  17756. fi
  17757. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_main" >&5
  17758. $as_echo "$ac_cv_lib_des_main" >&6; }
  17759. if test "x$ac_cv_lib_des_main" = xyes; then :
  17760. krb5crypto=des
  17761. else
  17762. krb5crypto=crypto
  17763. fi
  17764. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lkrb5" >&5
  17765. $as_echo_n "checking for main in -lkrb5... " >&6; }
  17766. if ${ac_cv_lib_krb5_main+:} false; then :
  17767. $as_echo_n "(cached) " >&6
  17768. else
  17769. ac_check_lib_save_LIBS=$LIBS
  17770. LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
  17771. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17772. /* end confdefs.h. */
  17773. int
  17774. main ()
  17775. {
  17776. return main ();
  17777. ;
  17778. return 0;
  17779. }
  17780. _ACEOF
  17781. if ac_fn_c_try_link "$LINENO"; then :
  17782. ac_cv_lib_krb5_main=yes
  17783. else
  17784. ac_cv_lib_krb5_main=no
  17785. fi
  17786. rm -f core conftest.err conftest.$ac_objext \
  17787. conftest$ac_exeext conftest.$ac_ext
  17788. LIBS=$ac_check_lib_save_LIBS
  17789. fi
  17790. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_main" >&5
  17791. $as_echo "$ac_cv_lib_krb5_main" >&6; }
  17792. if test "x$ac_cv_lib_krb5_main" = xyes; then :
  17793. have_krb5=yes
  17794. kerberos_lib="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err"
  17795. else
  17796. have_krb5=no
  17797. fi
  17798. $as_echo "#define HAVE_HEIMDAL_KERBEROS 1" >>confdefs.h
  17799. else
  17800. have_krb5=no
  17801. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unrecognized Kerberos5 Implementation" >&5
  17802. $as_echo "$as_me: WARNING: Unrecognized Kerberos5 Implementation" >&2;}
  17803. fi
  17804. # reset to original values
  17805. CPPFLAGS="$save_CPPFLAGS"
  17806. LDFLAGS="$save_LDFLAGS"
  17807. if test -n "$kerberos_incdir" ; then
  17808. kerberos_inc="-I$kerberos_incdir"
  17809. fi
  17810. if test -n "$kerberos_libdir" ; then
  17811. kerberos_lib="-L$kerberos_libdir $kerberos_lib"
  17812. fi
  17813. fi
  17814. if test -n "$with_kerberos" ; then
  17815. if test "x$have_krb5" = "xyes" ; then
  17816. $as_echo "#define HAVE_KRB5 1" >>confdefs.h
  17817. else
  17818. as_fn_error $? "Required Kerberos 5 support not available" "$LINENO" 5
  17819. fi
  17820. save_LIBS="$LIBS"
  17821. LIBS="$kerberos_lib"
  17822. save_CPPFLAGS="$CPPFLAGS"
  17823. CPPFLAGS="$kerberos_inc $CPPFLAGS"
  17824. for ac_func in krb5_cc_new_unique
  17825. do :
  17826. ac_fn_c_check_func "$LINENO" "krb5_cc_new_unique" "ac_cv_func_krb5_cc_new_unique"
  17827. if test "x$ac_cv_func_krb5_cc_new_unique" = xyes; then :
  17828. cat >>confdefs.h <<_ACEOF
  17829. #define HAVE_KRB5_CC_NEW_UNIQUE 1
  17830. _ACEOF
  17831. fi
  17832. done
  17833. LIBS="$save_LIBS"
  17834. CPPFLAGS="$save_CPPFLAGS"
  17835. fi
  17836. # BEGIN COPYRIGHT BLOCK
  17837. # Copyright (C) 2007 Red Hat, Inc.
  17838. # All rights reserved.
  17839. #
  17840. # This program is free software; you can redistribute it and/or
  17841. # modify it under the terms of the GNU General Public License
  17842. # as published by the Free Software Foundation; either version 2
  17843. # of the License, or (at your option) any later version.
  17844. #
  17845. # This program is distributed in the hope that it will be useful,
  17846. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  17847. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17848. # GNU General Public License for more details.
  17849. #
  17850. # You should have received a copy of the GNU General Public License
  17851. # along with this program; if not, write to the Free Software
  17852. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  17853. #
  17854. # END COPYRIGHT BLOCK
  17855. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCRE..." >&5
  17856. $as_echo "$as_me: checking for PCRE..." >&6;}
  17857. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pcre" >&5
  17858. $as_echo_n "checking for --with-pcre... " >&6; }
  17859. # Check whether --with-pcre was given.
  17860. if test "${with_pcre+set}" = set; then :
  17861. withval=$with_pcre;
  17862. if test "$withval" = "yes"; then
  17863. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17864. $as_echo "yes" >&6; }
  17865. elif test "$withval" = "no"; then
  17866. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17867. $as_echo "no" >&6; }
  17868. as_fn_error $? "PCRE is required." "$LINENO" 5
  17869. elif test -d "$withval"/include -a -d "$withval"/lib; then
  17870. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17871. $as_echo "using $withval" >&6; }
  17872. PCREDIR=$withval
  17873. pcre_lib="-L$PCREDIR/lib"
  17874. pcre_libdir="$PCREDIR/lib"
  17875. pcre_incdir="$PCREDIR/include"
  17876. if ! test -e "$pcre_incdir/pcre.h" ; then
  17877. as_fn_error $? "$withval include dir not found" "$LINENO" 5
  17878. fi
  17879. pcre_inc="-I$pcre_incdir"
  17880. else
  17881. echo
  17882. as_fn_error $? "$withval not found" "$LINENO" 5
  17883. fi
  17884. else
  17885. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17886. $as_echo "yes" >&6; }
  17887. fi
  17888. #
  17889. # if PCRE is not found yet, try pkg-config
  17890. if test -z "$pcre_inc" -o -z "$pcre_lib" -o -z "$pcre_libdir"; then
  17891. # Extract the first word of "pkg-config", so it can be a program name with args.
  17892. set dummy pkg-config; ac_word=$2
  17893. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17894. $as_echo_n "checking for $ac_word... " >&6; }
  17895. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  17896. $as_echo_n "(cached) " >&6
  17897. else
  17898. case $PKG_CONFIG in
  17899. [\\/]* | ?:[\\/]*)
  17900. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  17901. ;;
  17902. *)
  17903. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17904. for as_dir in $PATH
  17905. do
  17906. IFS=$as_save_IFS
  17907. test -z "$as_dir" && as_dir=.
  17908. for ac_exec_ext in '' $ac_executable_extensions; do
  17909. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  17910. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  17911. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17912. break 2
  17913. fi
  17914. done
  17915. done
  17916. IFS=$as_save_IFS
  17917. ;;
  17918. esac
  17919. fi
  17920. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  17921. if test -n "$PKG_CONFIG"; then
  17922. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  17923. $as_echo "$PKG_CONFIG" >&6; }
  17924. else
  17925. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17926. $as_echo "no" >&6; }
  17927. fi
  17928. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcre with pkg-config" >&5
  17929. $as_echo_n "checking for pcre with pkg-config... " >&6; }
  17930. if test -n "$PKG_CONFIG"; then
  17931. if $PKG_CONFIG --exists pcre; then
  17932. pcre_inc=`$PKG_CONFIG --cflags-only-I pcre`
  17933. pcre_lib=`$PKG_CONFIG --libs-only-L pcre`
  17934. pcre_libdir=`$PKG_CONFIG --libs-only-L pcre | sed -e s/-L// | sed -e s/\ .*$//`
  17935. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using system PCRE" >&5
  17936. $as_echo "using system PCRE" >&6; }
  17937. elif $PKG_CONFIG --exists libpcre; then
  17938. pcre_inc=`$PKG_CONFIG --cflags-only-I libpcre`
  17939. pcre_lib=`$PKG_CONFIG --libs-only-L libpcre`
  17940. pcre_libdir=`$PKG_CONFIG --libs-only-L libpcre | sed -e s/-L// | sed -e s/\ .*$//`
  17941. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using system PCRE" >&5
  17942. $as_echo "using system PCRE" >&6; }
  17943. else
  17944. as_fn_error $? "PCRE not found, specify with --with-pcre." "$LINENO" 5
  17945. fi
  17946. fi
  17947. fi
  17948. if test -z "$pcre_inc"; then
  17949. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcre.h" >&5
  17950. $as_echo_n "checking for pcre.h... " >&6; }
  17951. if test -f "/usr/include/pcre/pcre.h"; then
  17952. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using /usr/include/pcre/pcre.h" >&5
  17953. $as_echo "using /usr/include/pcre/pcre.h" >&6; }
  17954. pcre_incdir="/usr/include/pcre"
  17955. pcre_inc="-I/usr/include/pcre"
  17956. pcre_lib='-L$(libdir)'
  17957. pcre_libdir='$(libdir)'
  17958. elif test -f "/usr/include/pcre.h"; then
  17959. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using /usr/include/pcre.h" >&5
  17960. $as_echo "using /usr/include/pcre.h" >&6; }
  17961. pcre_incdir="/usr/include"
  17962. pcre_inc="-I/usr/include"
  17963. pcre_lib='-L$(libdir)'
  17964. pcre_libdir='$(libdir)'
  17965. else
  17966. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17967. $as_echo "no" >&6; }
  17968. as_fn_error $? "PCRE not found, specify with --with-pcre." "$LINENO" 5
  17969. fi
  17970. fi
  17971. # BEGIN COPYRIGHT BLOCK
  17972. # Copyright (C) 2009 Red Hat, Inc.
  17973. # All rights reserved.
  17974. #
  17975. # This program is free software; you can redistribute it and/or
  17976. # modify it under the terms of the GNU General Public License
  17977. # as published by the Free Software Foundation; either version 2
  17978. # of the License, or (at your option) any later version.
  17979. #
  17980. # This program is distributed in the hope that it will be useful,
  17981. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  17982. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17983. # GNU General Public License for more details.
  17984. #
  17985. # You should have received a copy of the GNU General Public License
  17986. # along with this program; if not, write to the Free Software
  17987. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  17988. #
  17989. # END COPYRIGHT BLOCK
  17990. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SELinux..." >&5
  17991. $as_echo "$as_me: checking for SELinux..." >&6;}
  17992. # check for --with-selinux
  17993. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-selinux" >&5
  17994. $as_echo_n "checking for --with-selinux... " >&6; }
  17995. # Check whether --with-selinux was given.
  17996. if test "${with_selinux+set}" = set; then :
  17997. withval=$with_selinux;
  17998. if test "$withval" = "no"; then
  17999. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18000. $as_echo "no" >&6; }
  18001. else
  18002. with_selinux=yes
  18003. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18004. $as_echo "yes" >&6; }
  18005. fi
  18006. else
  18007. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18008. $as_echo "no" >&6; }
  18009. fi
  18010. PACKAGE_BASE_VERSION=`echo $PACKAGE_VERSION | awk -F\. '{print $1"."$2}'`
  18011. # set sasl_path for wrapper scripts
  18012. if test -z "$sasl_libdir" ; then
  18013. sasl_path="$libdir/sasl2"
  18014. else
  18015. sasl_path="$sasl_libdir/sasl2"
  18016. fi
  18017. if test "$with_selinux" = "yes"; then
  18018. SELINUX_TRUE=
  18019. SELINUX_FALSE='#'
  18020. else
  18021. SELINUX_TRUE='#'
  18022. SELINUX_FALSE=
  18023. fi
  18024. if test "$with_openldap" = "yes"; then
  18025. OPENLDAP_TRUE=
  18026. OPENLDAP_FALSE='#'
  18027. else
  18028. OPENLDAP_TRUE='#'
  18029. OPENLDAP_FALSE=
  18030. fi
  18031. # write out paths for binary components
  18032. $as_echo "#define LDAP_DEBUG 1" >>confdefs.h
  18033. $as_echo "#define LDAP_DONT_USE_SMARTHEAP 1" >>confdefs.h
  18034. # libtool on fedora/rhel contains some gcc-isms which cause problems
  18035. # if not using gcc (e.g. Forte on Solaris, aCC on HP-UX)
  18036. # we remove them here
  18037. if test "$GCC" != yes ; then
  18038. { $as_echo "$as_me:${as_lineno-$LINENO}: Not using gcc - fixing libtool to remove gcc-isms . . ." >&5
  18039. $as_echo "$as_me: Not using gcc - fixing libtool to remove gcc-isms . . ." >&6;}
  18040. cp -p libtool libtool.orig
  18041. cp -p libtool libtool.tmp
  18042. # dnl note the special chars [ and ] - since m4 treats [ and ] specially,
  18043. # we have to use the quadrigraph [ for [ and ] for ] - and you thought
  18044. # perl produced write-only code . . .
  18045. sed -e '/^gcc_dir/ d' \
  18046. -e '/^gcc_ver/ d' \
  18047. -e 's/^predep_objects=.*echo \("[^"]*"\).*$/predep_objects=\1/' \
  18048. -e 's/^postdep_objects=.*echo \("[^"]*"\).*$/postdep_objects=\1/' \
  18049. -e 's/^compiler_lib_search_path=.*echo \("[^"]*"\).*$/compiler_lib_search_path=\1/' \
  18050. -e 's/^sys_lib_search_path_spec=.*echo \("[^"]*"\).*$/sys_lib_search_path_spec=\1/' \
  18051. libtool > libtool.tmp
  18052. cp -p libtool.tmp libtool
  18053. rm -f libtool.tmp
  18054. fi
  18055. ac_config_files="$ac_config_files Makefile"
  18056. cat >confcache <<\_ACEOF
  18057. # This file is a shell script that caches the results of configure
  18058. # tests run on this system so they can be shared between configure
  18059. # scripts and configure runs, see configure's option --config-cache.
  18060. # It is not useful on other systems. If it contains results you don't
  18061. # want to keep, you may remove or edit it.
  18062. #
  18063. # config.status only pays attention to the cache file if you give it
  18064. # the --recheck option to rerun configure.
  18065. #
  18066. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  18067. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  18068. # following values.
  18069. _ACEOF
  18070. # The following way of writing the cache mishandles newlines in values,
  18071. # but we know of no workaround that is simple, portable, and efficient.
  18072. # So, we kill variables containing newlines.
  18073. # Ultrix sh set writes to stderr and can't be redirected directly,
  18074. # and sets the high bit in the cache file unless we assign to the vars.
  18075. (
  18076. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  18077. eval ac_val=\$$ac_var
  18078. case $ac_val in #(
  18079. *${as_nl}*)
  18080. case $ac_var in #(
  18081. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  18082. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  18083. esac
  18084. case $ac_var in #(
  18085. _ | IFS | as_nl) ;; #(
  18086. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  18087. *) { eval $ac_var=; unset $ac_var;} ;;
  18088. esac ;;
  18089. esac
  18090. done
  18091. (set) 2>&1 |
  18092. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  18093. *${as_nl}ac_space=\ *)
  18094. # `set' does not quote correctly, so add quotes: double-quote
  18095. # substitution turns \\\\ into \\, and sed turns \\ into \.
  18096. sed -n \
  18097. "s/'/'\\\\''/g;
  18098. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  18099. ;; #(
  18100. *)
  18101. # `set' quotes correctly as required by POSIX, so do not add quotes.
  18102. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  18103. ;;
  18104. esac |
  18105. sort
  18106. ) |
  18107. sed '
  18108. /^ac_cv_env_/b end
  18109. t clear
  18110. :clear
  18111. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  18112. t end
  18113. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  18114. :end' >>confcache
  18115. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  18116. if test -w "$cache_file"; then
  18117. if test "x$cache_file" != "x/dev/null"; then
  18118. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  18119. $as_echo "$as_me: updating cache $cache_file" >&6;}
  18120. if test ! -f "$cache_file" || test -h "$cache_file"; then
  18121. cat confcache >"$cache_file"
  18122. else
  18123. case $cache_file in #(
  18124. */* | ?:*)
  18125. mv -f confcache "$cache_file"$$ &&
  18126. mv -f "$cache_file"$$ "$cache_file" ;; #(
  18127. *)
  18128. mv -f confcache "$cache_file" ;;
  18129. esac
  18130. fi
  18131. fi
  18132. else
  18133. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  18134. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  18135. fi
  18136. fi
  18137. rm -f confcache
  18138. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  18139. # Let make expand exec_prefix.
  18140. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  18141. DEFS=-DHAVE_CONFIG_H
  18142. ac_libobjs=
  18143. ac_ltlibobjs=
  18144. U=
  18145. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  18146. # 1. Remove the extension, and $U if already installed.
  18147. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  18148. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  18149. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  18150. # will be set to the directory where LIBOBJS objects are built.
  18151. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  18152. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  18153. done
  18154. LIBOBJS=$ac_libobjs
  18155. LTLIBOBJS=$ac_ltlibobjs
  18156. if test -n "$EXEEXT"; then
  18157. am__EXEEXT_TRUE=
  18158. am__EXEEXT_FALSE='#'
  18159. else
  18160. am__EXEEXT_TRUE='#'
  18161. am__EXEEXT_FALSE=
  18162. fi
  18163. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  18164. as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
  18165. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18166. fi
  18167. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  18168. as_fn_error $? "conditional \"AMDEP\" was never defined.
  18169. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18170. fi
  18171. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  18172. as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
  18173. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18174. fi
  18175. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  18176. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  18177. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18178. fi
  18179. if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
  18180. as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
  18181. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18182. fi
  18183. if test -z "${BUNDLE_TRUE}" && test -z "${BUNDLE_FALSE}"; then
  18184. as_fn_error $? "conditional \"BUNDLE\" was never defined.
  18185. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18186. fi
  18187. if test -z "${enable_pam_passthru_TRUE}" && test -z "${enable_pam_passthru_FALSE}"; then
  18188. as_fn_error $? "conditional \"enable_pam_passthru\" was never defined.
  18189. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18190. fi
  18191. if test -z "${enable_dna_TRUE}" && test -z "${enable_dna_FALSE}"; then
  18192. as_fn_error $? "conditional \"enable_dna\" was never defined.
  18193. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18194. fi
  18195. if test -z "${enable_ldapi_TRUE}" && test -z "${enable_ldapi_FALSE}"; then
  18196. as_fn_error $? "conditional \"enable_ldapi\" was never defined.
  18197. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18198. fi
  18199. if test -z "${enable_autobind_TRUE}" && test -z "${enable_autobind_FALSE}"; then
  18200. as_fn_error $? "conditional \"enable_autobind\" was never defined.
  18201. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18202. fi
  18203. if test -z "${enable_auto_dn_suffix_TRUE}" && test -z "${enable_auto_dn_suffix_FALSE}"; then
  18204. as_fn_error $? "conditional \"enable_auto_dn_suffix\" was never defined.
  18205. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18206. fi
  18207. if test -z "${enable_bitwise_TRUE}" && test -z "${enable_bitwise_FALSE}"; then
  18208. as_fn_error $? "conditional \"enable_bitwise\" was never defined.
  18209. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18210. fi
  18211. if test -z "${enable_presence_TRUE}" && test -z "${enable_presence_FALSE}"; then
  18212. as_fn_error $? "conditional \"enable_presence\" was never defined.
  18213. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18214. fi
  18215. if test -z "${enable_acctpolicy_TRUE}" && test -z "${enable_acctpolicy_FALSE}"; then
  18216. as_fn_error $? "conditional \"enable_acctpolicy\" was never defined.
  18217. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18218. fi
  18219. if test -z "${WINNT_TRUE}" && test -z "${WINNT_FALSE}"; then
  18220. as_fn_error $? "conditional \"WINNT\" was never defined.
  18221. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18222. fi
  18223. if test -z "${HPUX_TRUE}" && test -z "${HPUX_FALSE}"; then
  18224. as_fn_error $? "conditional \"HPUX\" was never defined.
  18225. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18226. fi
  18227. if test -z "${SOLARIS_TRUE}" && test -z "${SOLARIS_FALSE}"; then
  18228. as_fn_error $? "conditional \"SOLARIS\" was never defined.
  18229. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18230. fi
  18231. if test -z "${SYSTEMD_TRUE}" && test -z "${SYSTEMD_FALSE}"; then
  18232. as_fn_error $? "conditional \"SYSTEMD\" was never defined.
  18233. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18234. fi
  18235. if test -z "${SELINUX_TRUE}" && test -z "${SELINUX_FALSE}"; then
  18236. as_fn_error $? "conditional \"SELINUX\" was never defined.
  18237. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18238. fi
  18239. if test -z "${OPENLDAP_TRUE}" && test -z "${OPENLDAP_FALSE}"; then
  18240. as_fn_error $? "conditional \"OPENLDAP\" was never defined.
  18241. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18242. fi
  18243. : "${CONFIG_STATUS=./config.status}"
  18244. ac_write_fail=0
  18245. ac_clean_files_save=$ac_clean_files
  18246. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  18247. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  18248. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  18249. as_write_fail=0
  18250. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  18251. #! $SHELL
  18252. # Generated by $as_me.
  18253. # Run this file to recreate the current configuration.
  18254. # Compiler output produced by configure, useful for debugging
  18255. # configure, is in config.log if it exists.
  18256. debug=false
  18257. ac_cs_recheck=false
  18258. ac_cs_silent=false
  18259. SHELL=\${CONFIG_SHELL-$SHELL}
  18260. export SHELL
  18261. _ASEOF
  18262. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  18263. ## -------------------- ##
  18264. ## M4sh Initialization. ##
  18265. ## -------------------- ##
  18266. # Be more Bourne compatible
  18267. DUALCASE=1; export DUALCASE # for MKS sh
  18268. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  18269. emulate sh
  18270. NULLCMD=:
  18271. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  18272. # is contrary to our usage. Disable this feature.
  18273. alias -g '${1+"$@"}'='"$@"'
  18274. setopt NO_GLOB_SUBST
  18275. else
  18276. case `(set -o) 2>/dev/null` in #(
  18277. *posix*) :
  18278. set -o posix ;; #(
  18279. *) :
  18280. ;;
  18281. esac
  18282. fi
  18283. as_nl='
  18284. '
  18285. export as_nl
  18286. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  18287. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  18288. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  18289. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  18290. # Prefer a ksh shell builtin over an external printf program on Solaris,
  18291. # but without wasting forks for bash or zsh.
  18292. if test -z "$BASH_VERSION$ZSH_VERSION" \
  18293. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  18294. as_echo='print -r --'
  18295. as_echo_n='print -rn --'
  18296. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  18297. as_echo='printf %s\n'
  18298. as_echo_n='printf %s'
  18299. else
  18300. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  18301. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  18302. as_echo_n='/usr/ucb/echo -n'
  18303. else
  18304. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  18305. as_echo_n_body='eval
  18306. arg=$1;
  18307. case $arg in #(
  18308. *"$as_nl"*)
  18309. expr "X$arg" : "X\\(.*\\)$as_nl";
  18310. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  18311. esac;
  18312. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  18313. '
  18314. export as_echo_n_body
  18315. as_echo_n='sh -c $as_echo_n_body as_echo'
  18316. fi
  18317. export as_echo_body
  18318. as_echo='sh -c $as_echo_body as_echo'
  18319. fi
  18320. # The user is always right.
  18321. if test "${PATH_SEPARATOR+set}" != set; then
  18322. PATH_SEPARATOR=:
  18323. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  18324. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  18325. PATH_SEPARATOR=';'
  18326. }
  18327. fi
  18328. # IFS
  18329. # We need space, tab and new line, in precisely that order. Quoting is
  18330. # there to prevent editors from complaining about space-tab.
  18331. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  18332. # splitting by setting IFS to empty value.)
  18333. IFS=" "" $as_nl"
  18334. # Find who we are. Look in the path if we contain no directory separator.
  18335. as_myself=
  18336. case $0 in #((
  18337. *[\\/]* ) as_myself=$0 ;;
  18338. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18339. for as_dir in $PATH
  18340. do
  18341. IFS=$as_save_IFS
  18342. test -z "$as_dir" && as_dir=.
  18343. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  18344. done
  18345. IFS=$as_save_IFS
  18346. ;;
  18347. esac
  18348. # We did not find ourselves, most probably we were run as `sh COMMAND'
  18349. # in which case we are not to be found in the path.
  18350. if test "x$as_myself" = x; then
  18351. as_myself=$0
  18352. fi
  18353. if test ! -f "$as_myself"; then
  18354. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  18355. exit 1
  18356. fi
  18357. # Unset variables that we do not need and which cause bugs (e.g. in
  18358. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  18359. # suppresses any "Segmentation fault" message there. '((' could
  18360. # trigger a bug in pdksh 5.2.14.
  18361. for as_var in BASH_ENV ENV MAIL MAILPATH
  18362. do eval test x\${$as_var+set} = xset \
  18363. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  18364. done
  18365. PS1='$ '
  18366. PS2='> '
  18367. PS4='+ '
  18368. # NLS nuisances.
  18369. LC_ALL=C
  18370. export LC_ALL
  18371. LANGUAGE=C
  18372. export LANGUAGE
  18373. # CDPATH.
  18374. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  18375. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  18376. # ----------------------------------------
  18377. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  18378. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  18379. # script with STATUS, using 1 if that was 0.
  18380. as_fn_error ()
  18381. {
  18382. as_status=$1; test $as_status -eq 0 && as_status=1
  18383. if test "$4"; then
  18384. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  18385. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  18386. fi
  18387. $as_echo "$as_me: error: $2" >&2
  18388. as_fn_exit $as_status
  18389. } # as_fn_error
  18390. # as_fn_set_status STATUS
  18391. # -----------------------
  18392. # Set $? to STATUS, without forking.
  18393. as_fn_set_status ()
  18394. {
  18395. return $1
  18396. } # as_fn_set_status
  18397. # as_fn_exit STATUS
  18398. # -----------------
  18399. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  18400. as_fn_exit ()
  18401. {
  18402. set +e
  18403. as_fn_set_status $1
  18404. exit $1
  18405. } # as_fn_exit
  18406. # as_fn_unset VAR
  18407. # ---------------
  18408. # Portably unset VAR.
  18409. as_fn_unset ()
  18410. {
  18411. { eval $1=; unset $1;}
  18412. }
  18413. as_unset=as_fn_unset
  18414. # as_fn_append VAR VALUE
  18415. # ----------------------
  18416. # Append the text in VALUE to the end of the definition contained in VAR. Take
  18417. # advantage of any shell optimizations that allow amortized linear growth over
  18418. # repeated appends, instead of the typical quadratic growth present in naive
  18419. # implementations.
  18420. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  18421. eval 'as_fn_append ()
  18422. {
  18423. eval $1+=\$2
  18424. }'
  18425. else
  18426. as_fn_append ()
  18427. {
  18428. eval $1=\$$1\$2
  18429. }
  18430. fi # as_fn_append
  18431. # as_fn_arith ARG...
  18432. # ------------------
  18433. # Perform arithmetic evaluation on the ARGs, and store the result in the
  18434. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  18435. # must be portable across $(()) and expr.
  18436. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  18437. eval 'as_fn_arith ()
  18438. {
  18439. as_val=$(( $* ))
  18440. }'
  18441. else
  18442. as_fn_arith ()
  18443. {
  18444. as_val=`expr "$@" || test $? -eq 1`
  18445. }
  18446. fi # as_fn_arith
  18447. if expr a : '\(a\)' >/dev/null 2>&1 &&
  18448. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  18449. as_expr=expr
  18450. else
  18451. as_expr=false
  18452. fi
  18453. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  18454. as_basename=basename
  18455. else
  18456. as_basename=false
  18457. fi
  18458. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  18459. as_dirname=dirname
  18460. else
  18461. as_dirname=false
  18462. fi
  18463. as_me=`$as_basename -- "$0" ||
  18464. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  18465. X"$0" : 'X\(//\)$' \| \
  18466. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  18467. $as_echo X/"$0" |
  18468. sed '/^.*\/\([^/][^/]*\)\/*$/{
  18469. s//\1/
  18470. q
  18471. }
  18472. /^X\/\(\/\/\)$/{
  18473. s//\1/
  18474. q
  18475. }
  18476. /^X\/\(\/\).*/{
  18477. s//\1/
  18478. q
  18479. }
  18480. s/.*/./; q'`
  18481. # Avoid depending upon Character Ranges.
  18482. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  18483. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  18484. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  18485. as_cr_digits='0123456789'
  18486. as_cr_alnum=$as_cr_Letters$as_cr_digits
  18487. ECHO_C= ECHO_N= ECHO_T=
  18488. case `echo -n x` in #(((((
  18489. -n*)
  18490. case `echo 'xy\c'` in
  18491. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  18492. xy) ECHO_C='\c';;
  18493. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  18494. ECHO_T=' ';;
  18495. esac;;
  18496. *)
  18497. ECHO_N='-n';;
  18498. esac
  18499. rm -f conf$$ conf$$.exe conf$$.file
  18500. if test -d conf$$.dir; then
  18501. rm -f conf$$.dir/conf$$.file
  18502. else
  18503. rm -f conf$$.dir
  18504. mkdir conf$$.dir 2>/dev/null
  18505. fi
  18506. if (echo >conf$$.file) 2>/dev/null; then
  18507. if ln -s conf$$.file conf$$ 2>/dev/null; then
  18508. as_ln_s='ln -s'
  18509. # ... but there are two gotchas:
  18510. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  18511. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  18512. # In both cases, we have to default to `cp -p'.
  18513. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  18514. as_ln_s='cp -p'
  18515. elif ln conf$$.file conf$$ 2>/dev/null; then
  18516. as_ln_s=ln
  18517. else
  18518. as_ln_s='cp -p'
  18519. fi
  18520. else
  18521. as_ln_s='cp -p'
  18522. fi
  18523. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  18524. rmdir conf$$.dir 2>/dev/null
  18525. # as_fn_mkdir_p
  18526. # -------------
  18527. # Create "$as_dir" as a directory, including parents if necessary.
  18528. as_fn_mkdir_p ()
  18529. {
  18530. case $as_dir in #(
  18531. -*) as_dir=./$as_dir;;
  18532. esac
  18533. test -d "$as_dir" || eval $as_mkdir_p || {
  18534. as_dirs=
  18535. while :; do
  18536. case $as_dir in #(
  18537. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  18538. *) as_qdir=$as_dir;;
  18539. esac
  18540. as_dirs="'$as_qdir' $as_dirs"
  18541. as_dir=`$as_dirname -- "$as_dir" ||
  18542. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  18543. X"$as_dir" : 'X\(//\)[^/]' \| \
  18544. X"$as_dir" : 'X\(//\)$' \| \
  18545. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  18546. $as_echo X"$as_dir" |
  18547. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  18548. s//\1/
  18549. q
  18550. }
  18551. /^X\(\/\/\)[^/].*/{
  18552. s//\1/
  18553. q
  18554. }
  18555. /^X\(\/\/\)$/{
  18556. s//\1/
  18557. q
  18558. }
  18559. /^X\(\/\).*/{
  18560. s//\1/
  18561. q
  18562. }
  18563. s/.*/./; q'`
  18564. test -d "$as_dir" && break
  18565. done
  18566. test -z "$as_dirs" || eval "mkdir $as_dirs"
  18567. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  18568. } # as_fn_mkdir_p
  18569. if mkdir -p . 2>/dev/null; then
  18570. as_mkdir_p='mkdir -p "$as_dir"'
  18571. else
  18572. test -d ./-p && rmdir ./-p
  18573. as_mkdir_p=false
  18574. fi
  18575. if test -x / >/dev/null 2>&1; then
  18576. as_test_x='test -x'
  18577. else
  18578. if ls -dL / >/dev/null 2>&1; then
  18579. as_ls_L_option=L
  18580. else
  18581. as_ls_L_option=
  18582. fi
  18583. as_test_x='
  18584. eval sh -c '\''
  18585. if test -d "$1"; then
  18586. test -d "$1/.";
  18587. else
  18588. case $1 in #(
  18589. -*)set "./$1";;
  18590. esac;
  18591. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  18592. ???[sx]*):;;*)false;;esac;fi
  18593. '\'' sh
  18594. '
  18595. fi
  18596. as_executable_p=$as_test_x
  18597. # Sed expression to map a string onto a valid CPP name.
  18598. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  18599. # Sed expression to map a string onto a valid variable name.
  18600. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  18601. exec 6>&1
  18602. ## ----------------------------------- ##
  18603. ## Main body of $CONFIG_STATUS script. ##
  18604. ## ----------------------------------- ##
  18605. _ASEOF
  18606. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  18607. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18608. # Save the log message, to keep $0 and so on meaningful, and to
  18609. # report actual input values of CONFIG_FILES etc. instead of their
  18610. # values after options handling.
  18611. ac_log="
  18612. This file was extended by dirsrv $as_me 1.0, which was
  18613. generated by GNU Autoconf 2.68. Invocation command line was
  18614. CONFIG_FILES = $CONFIG_FILES
  18615. CONFIG_HEADERS = $CONFIG_HEADERS
  18616. CONFIG_LINKS = $CONFIG_LINKS
  18617. CONFIG_COMMANDS = $CONFIG_COMMANDS
  18618. $ $0 $@
  18619. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  18620. "
  18621. _ACEOF
  18622. case $ac_config_files in *"
  18623. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  18624. esac
  18625. case $ac_config_headers in *"
  18626. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  18627. esac
  18628. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  18629. # Files that config.status was made for.
  18630. config_files="$ac_config_files"
  18631. config_headers="$ac_config_headers"
  18632. config_commands="$ac_config_commands"
  18633. _ACEOF
  18634. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18635. ac_cs_usage="\
  18636. \`$as_me' instantiates files and other configuration actions
  18637. from templates according to the current configuration. Unless the files
  18638. and actions are specified as TAGs, all are instantiated by default.
  18639. Usage: $0 [OPTION]... [TAG]...
  18640. -h, --help print this help, then exit
  18641. -V, --version print version number and configuration settings, then exit
  18642. --config print configuration, then exit
  18643. -q, --quiet, --silent
  18644. do not print progress messages
  18645. -d, --debug don't remove temporary files
  18646. --recheck update $as_me by reconfiguring in the same conditions
  18647. --file=FILE[:TEMPLATE]
  18648. instantiate the configuration file FILE
  18649. --header=FILE[:TEMPLATE]
  18650. instantiate the configuration header FILE
  18651. Configuration files:
  18652. $config_files
  18653. Configuration headers:
  18654. $config_headers
  18655. Configuration commands:
  18656. $config_commands
  18657. Report bugs to <http://bugzilla.redhat.com/>."
  18658. _ACEOF
  18659. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  18660. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  18661. ac_cs_version="\\
  18662. dirsrv config.status 1.0
  18663. configured by $0, generated by GNU Autoconf 2.68,
  18664. with options \\"\$ac_cs_config\\"
  18665. Copyright (C) 2010 Free Software Foundation, Inc.
  18666. This config.status script is free software; the Free Software Foundation
  18667. gives unlimited permission to copy, distribute and modify it."
  18668. ac_pwd='$ac_pwd'
  18669. srcdir='$srcdir'
  18670. INSTALL='$INSTALL'
  18671. MKDIR_P='$MKDIR_P'
  18672. AWK='$AWK'
  18673. test -n "\$AWK" || AWK=awk
  18674. _ACEOF
  18675. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18676. # The default lists apply if the user does not specify any file.
  18677. ac_need_defaults=:
  18678. while test $# != 0
  18679. do
  18680. case $1 in
  18681. --*=?*)
  18682. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  18683. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  18684. ac_shift=:
  18685. ;;
  18686. --*=)
  18687. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  18688. ac_optarg=
  18689. ac_shift=:
  18690. ;;
  18691. *)
  18692. ac_option=$1
  18693. ac_optarg=$2
  18694. ac_shift=shift
  18695. ;;
  18696. esac
  18697. case $ac_option in
  18698. # Handling of the options.
  18699. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  18700. ac_cs_recheck=: ;;
  18701. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  18702. $as_echo "$ac_cs_version"; exit ;;
  18703. --config | --confi | --conf | --con | --co | --c )
  18704. $as_echo "$ac_cs_config"; exit ;;
  18705. --debug | --debu | --deb | --de | --d | -d )
  18706. debug=: ;;
  18707. --file | --fil | --fi | --f )
  18708. $ac_shift
  18709. case $ac_optarg in
  18710. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  18711. '') as_fn_error $? "missing file argument" ;;
  18712. esac
  18713. as_fn_append CONFIG_FILES " '$ac_optarg'"
  18714. ac_need_defaults=false;;
  18715. --header | --heade | --head | --hea )
  18716. $ac_shift
  18717. case $ac_optarg in
  18718. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  18719. esac
  18720. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  18721. ac_need_defaults=false;;
  18722. --he | --h)
  18723. # Conflict between --help and --header
  18724. as_fn_error $? "ambiguous option: \`$1'
  18725. Try \`$0 --help' for more information.";;
  18726. --help | --hel | -h )
  18727. $as_echo "$ac_cs_usage"; exit ;;
  18728. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  18729. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  18730. ac_cs_silent=: ;;
  18731. # This is an error.
  18732. -*) as_fn_error $? "unrecognized option: \`$1'
  18733. Try \`$0 --help' for more information." ;;
  18734. *) as_fn_append ac_config_targets " $1"
  18735. ac_need_defaults=false ;;
  18736. esac
  18737. shift
  18738. done
  18739. ac_configure_extra_args=
  18740. if $ac_cs_silent; then
  18741. exec 6>/dev/null
  18742. ac_configure_extra_args="$ac_configure_extra_args --silent"
  18743. fi
  18744. _ACEOF
  18745. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  18746. if \$ac_cs_recheck; then
  18747. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  18748. shift
  18749. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  18750. CONFIG_SHELL='$SHELL'
  18751. export CONFIG_SHELL
  18752. exec "\$@"
  18753. fi
  18754. _ACEOF
  18755. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18756. exec 5>>config.log
  18757. {
  18758. echo
  18759. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  18760. ## Running $as_me. ##
  18761. _ASBOX
  18762. $as_echo "$ac_log"
  18763. } >&5
  18764. _ACEOF
  18765. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  18766. #
  18767. # INIT-COMMANDS
  18768. #
  18769. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  18770. # The HP-UX ksh and POSIX shell print the target directory to stdout
  18771. # if CDPATH is set.
  18772. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  18773. sed_quote_subst='$sed_quote_subst'
  18774. double_quote_subst='$double_quote_subst'
  18775. delay_variable_subst='$delay_variable_subst'
  18776. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  18777. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  18778. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  18779. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  18780. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  18781. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  18782. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  18783. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  18784. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  18785. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  18786. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  18787. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  18788. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  18789. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  18790. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  18791. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  18792. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  18793. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  18794. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  18795. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  18796. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  18797. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  18798. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  18799. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  18800. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  18801. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  18802. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  18803. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  18804. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  18805. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  18806. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  18807. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  18808. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  18809. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  18810. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  18811. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  18812. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  18813. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  18814. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  18815. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  18816. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  18817. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  18818. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  18819. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  18820. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  18821. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  18822. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  18823. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  18824. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  18825. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  18826. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  18827. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  18828. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  18829. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  18830. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  18831. 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"`'
  18832. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  18833. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  18834. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  18835. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  18836. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  18837. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  18838. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  18839. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  18840. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  18841. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  18842. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  18843. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  18844. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  18845. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  18846. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  18847. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  18848. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  18849. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  18850. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  18851. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  18852. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  18853. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  18854. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  18855. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  18856. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  18857. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  18858. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  18859. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  18860. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  18861. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  18862. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  18863. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  18864. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  18865. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  18866. hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
  18867. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  18868. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  18869. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  18870. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  18871. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  18872. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  18873. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  18874. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  18875. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  18876. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  18877. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  18878. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  18879. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  18880. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  18881. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  18882. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  18883. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  18884. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  18885. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  18886. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  18887. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  18888. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  18889. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  18890. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  18891. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  18892. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  18893. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  18894. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  18895. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  18896. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  18897. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  18898. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  18899. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  18900. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  18901. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  18902. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  18903. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  18904. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  18905. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  18906. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  18907. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  18908. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  18909. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  18910. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  18911. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  18912. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  18913. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  18914. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  18915. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  18916. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  18917. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  18918. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  18919. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  18920. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  18921. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  18922. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  18923. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  18924. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  18925. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  18926. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  18927. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  18928. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  18929. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  18930. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  18931. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  18932. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  18933. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  18934. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  18935. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  18936. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  18937. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  18938. hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
  18939. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  18940. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  18941. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  18942. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  18943. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  18944. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  18945. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  18946. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  18947. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  18948. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  18949. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  18950. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  18951. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  18952. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  18953. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  18954. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  18955. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  18956. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  18957. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  18958. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  18959. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  18960. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  18961. LTCC='$LTCC'
  18962. LTCFLAGS='$LTCFLAGS'
  18963. compiler='$compiler_DEFAULT'
  18964. # A function that is used when there is no print builtin or printf.
  18965. func_fallback_echo ()
  18966. {
  18967. eval 'cat <<_LTECHO_EOF
  18968. \$1
  18969. _LTECHO_EOF'
  18970. }
  18971. # Quote evaled strings.
  18972. for var in SHELL \
  18973. ECHO \
  18974. SED \
  18975. GREP \
  18976. EGREP \
  18977. FGREP \
  18978. LD \
  18979. NM \
  18980. LN_S \
  18981. lt_SP2NL \
  18982. lt_NL2SP \
  18983. reload_flag \
  18984. OBJDUMP \
  18985. deplibs_check_method \
  18986. file_magic_cmd \
  18987. file_magic_glob \
  18988. want_nocaseglob \
  18989. DLLTOOL \
  18990. sharedlib_from_linklib_cmd \
  18991. AR \
  18992. AR_FLAGS \
  18993. archiver_list_spec \
  18994. STRIP \
  18995. RANLIB \
  18996. CC \
  18997. CFLAGS \
  18998. compiler \
  18999. lt_cv_sys_global_symbol_pipe \
  19000. lt_cv_sys_global_symbol_to_cdecl \
  19001. lt_cv_sys_global_symbol_to_c_name_address \
  19002. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  19003. nm_file_list_spec \
  19004. lt_prog_compiler_no_builtin_flag \
  19005. lt_prog_compiler_pic \
  19006. lt_prog_compiler_wl \
  19007. lt_prog_compiler_static \
  19008. lt_cv_prog_compiler_c_o \
  19009. need_locks \
  19010. MANIFEST_TOOL \
  19011. DSYMUTIL \
  19012. NMEDIT \
  19013. LIPO \
  19014. OTOOL \
  19015. OTOOL64 \
  19016. shrext_cmds \
  19017. export_dynamic_flag_spec \
  19018. whole_archive_flag_spec \
  19019. compiler_needs_object \
  19020. with_gnu_ld \
  19021. allow_undefined_flag \
  19022. no_undefined_flag \
  19023. hardcode_libdir_flag_spec \
  19024. hardcode_libdir_flag_spec_ld \
  19025. hardcode_libdir_separator \
  19026. exclude_expsyms \
  19027. include_expsyms \
  19028. file_list_spec \
  19029. variables_saved_for_relink \
  19030. libname_spec \
  19031. library_names_spec \
  19032. soname_spec \
  19033. install_override_mode \
  19034. finish_eval \
  19035. old_striplib \
  19036. striplib \
  19037. compiler_lib_search_dirs \
  19038. predep_objects \
  19039. postdep_objects \
  19040. predeps \
  19041. postdeps \
  19042. compiler_lib_search_path \
  19043. LD_CXX \
  19044. reload_flag_CXX \
  19045. compiler_CXX \
  19046. lt_prog_compiler_no_builtin_flag_CXX \
  19047. lt_prog_compiler_pic_CXX \
  19048. lt_prog_compiler_wl_CXX \
  19049. lt_prog_compiler_static_CXX \
  19050. lt_cv_prog_compiler_c_o_CXX \
  19051. export_dynamic_flag_spec_CXX \
  19052. whole_archive_flag_spec_CXX \
  19053. compiler_needs_object_CXX \
  19054. with_gnu_ld_CXX \
  19055. allow_undefined_flag_CXX \
  19056. no_undefined_flag_CXX \
  19057. hardcode_libdir_flag_spec_CXX \
  19058. hardcode_libdir_flag_spec_ld_CXX \
  19059. hardcode_libdir_separator_CXX \
  19060. exclude_expsyms_CXX \
  19061. include_expsyms_CXX \
  19062. file_list_spec_CXX \
  19063. compiler_lib_search_dirs_CXX \
  19064. predep_objects_CXX \
  19065. postdep_objects_CXX \
  19066. predeps_CXX \
  19067. postdeps_CXX \
  19068. compiler_lib_search_path_CXX; do
  19069. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  19070. *[\\\\\\\`\\"\\\$]*)
  19071. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  19072. ;;
  19073. *)
  19074. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  19075. ;;
  19076. esac
  19077. done
  19078. # Double-quote double-evaled strings.
  19079. for var in reload_cmds \
  19080. old_postinstall_cmds \
  19081. old_postuninstall_cmds \
  19082. old_archive_cmds \
  19083. extract_expsyms_cmds \
  19084. old_archive_from_new_cmds \
  19085. old_archive_from_expsyms_cmds \
  19086. archive_cmds \
  19087. archive_expsym_cmds \
  19088. module_cmds \
  19089. module_expsym_cmds \
  19090. export_symbols_cmds \
  19091. prelink_cmds \
  19092. postlink_cmds \
  19093. postinstall_cmds \
  19094. postuninstall_cmds \
  19095. finish_cmds \
  19096. sys_lib_search_path_spec \
  19097. sys_lib_dlsearch_path_spec \
  19098. reload_cmds_CXX \
  19099. old_archive_cmds_CXX \
  19100. old_archive_from_new_cmds_CXX \
  19101. old_archive_from_expsyms_cmds_CXX \
  19102. archive_cmds_CXX \
  19103. archive_expsym_cmds_CXX \
  19104. module_cmds_CXX \
  19105. module_expsym_cmds_CXX \
  19106. export_symbols_cmds_CXX \
  19107. prelink_cmds_CXX \
  19108. postlink_cmds_CXX; do
  19109. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  19110. *[\\\\\\\`\\"\\\$]*)
  19111. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  19112. ;;
  19113. *)
  19114. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  19115. ;;
  19116. esac
  19117. done
  19118. ac_aux_dir='$ac_aux_dir'
  19119. xsi_shell='$xsi_shell'
  19120. lt_shell_append='$lt_shell_append'
  19121. # See if we are running on zsh, and set the options which allow our
  19122. # commands through without removal of \ escapes INIT.
  19123. if test -n "\${ZSH_VERSION+set}" ; then
  19124. setopt NO_GLOB_SUBST
  19125. fi
  19126. PACKAGE='$PACKAGE'
  19127. VERSION='$VERSION'
  19128. TIMESTAMP='$TIMESTAMP'
  19129. RM='$RM'
  19130. ofile='$ofile'
  19131. _ACEOF
  19132. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19133. # Handling of arguments.
  19134. for ac_config_target in $ac_config_targets
  19135. do
  19136. case $ac_config_target in
  19137. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  19138. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  19139. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  19140. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  19141. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  19142. esac
  19143. done
  19144. # If the user did not use the arguments to specify the items to instantiate,
  19145. # then the envvar interface is used. Set only those that are not.
  19146. # We use the long form for the default assignment because of an extremely
  19147. # bizarre bug on SunOS 4.1.3.
  19148. if $ac_need_defaults; then
  19149. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  19150. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  19151. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  19152. fi
  19153. # Have a temporary directory for convenience. Make it in the build tree
  19154. # simply because there is no reason against having it here, and in addition,
  19155. # creating and moving files from /tmp can sometimes cause problems.
  19156. # Hook for its removal unless debugging.
  19157. # Note that there is a small window in which the directory will not be cleaned:
  19158. # after its creation but before its name has been assigned to `$tmp'.
  19159. $debug ||
  19160. {
  19161. tmp= ac_tmp=
  19162. trap 'exit_status=$?
  19163. : "${ac_tmp:=$tmp}"
  19164. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  19165. ' 0
  19166. trap 'as_fn_exit 1' 1 2 13 15
  19167. }
  19168. # Create a (secure) tmp directory for tmp files.
  19169. {
  19170. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  19171. test -d "$tmp"
  19172. } ||
  19173. {
  19174. tmp=./conf$$-$RANDOM
  19175. (umask 077 && mkdir "$tmp")
  19176. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  19177. ac_tmp=$tmp
  19178. # Set up the scripts for CONFIG_FILES section.
  19179. # No need to generate them if there are no CONFIG_FILES.
  19180. # This happens for instance with `./config.status config.h'.
  19181. if test -n "$CONFIG_FILES"; then
  19182. ac_cr=`echo X | tr X '\015'`
  19183. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  19184. # But we know of no other shell where ac_cr would be empty at this
  19185. # point, so we can use a bashism as a fallback.
  19186. if test "x$ac_cr" = x; then
  19187. eval ac_cr=\$\'\\r\'
  19188. fi
  19189. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  19190. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  19191. ac_cs_awk_cr='\\r'
  19192. else
  19193. ac_cs_awk_cr=$ac_cr
  19194. fi
  19195. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  19196. _ACEOF
  19197. {
  19198. echo "cat >conf$$subs.awk <<_ACEOF" &&
  19199. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  19200. echo "_ACEOF"
  19201. } >conf$$subs.sh ||
  19202. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  19203. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  19204. ac_delim='%!_!# '
  19205. for ac_last_try in false false false false false :; do
  19206. . ./conf$$subs.sh ||
  19207. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  19208. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  19209. if test $ac_delim_n = $ac_delim_num; then
  19210. break
  19211. elif $ac_last_try; then
  19212. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  19213. else
  19214. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  19215. fi
  19216. done
  19217. rm -f conf$$subs.sh
  19218. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19219. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  19220. _ACEOF
  19221. sed -n '
  19222. h
  19223. s/^/S["/; s/!.*/"]=/
  19224. p
  19225. g
  19226. s/^[^!]*!//
  19227. :repl
  19228. t repl
  19229. s/'"$ac_delim"'$//
  19230. t delim
  19231. :nl
  19232. h
  19233. s/\(.\{148\}\)..*/\1/
  19234. t more1
  19235. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  19236. p
  19237. n
  19238. b repl
  19239. :more1
  19240. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  19241. p
  19242. g
  19243. s/.\{148\}//
  19244. t nl
  19245. :delim
  19246. h
  19247. s/\(.\{148\}\)..*/\1/
  19248. t more2
  19249. s/["\\]/\\&/g; s/^/"/; s/$/"/
  19250. p
  19251. b
  19252. :more2
  19253. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  19254. p
  19255. g
  19256. s/.\{148\}//
  19257. t delim
  19258. ' <conf$$subs.awk | sed '
  19259. /^[^""]/{
  19260. N
  19261. s/\n//
  19262. }
  19263. ' >>$CONFIG_STATUS || ac_write_fail=1
  19264. rm -f conf$$subs.awk
  19265. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19266. _ACAWK
  19267. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  19268. for (key in S) S_is_set[key] = 1
  19269. FS = ""
  19270. }
  19271. {
  19272. line = $ 0
  19273. nfields = split(line, field, "@")
  19274. substed = 0
  19275. len = length(field[1])
  19276. for (i = 2; i < nfields; i++) {
  19277. key = field[i]
  19278. keylen = length(key)
  19279. if (S_is_set[key]) {
  19280. value = S[key]
  19281. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  19282. len += length(value) + length(field[++i])
  19283. substed = 1
  19284. } else
  19285. len += 1 + keylen
  19286. }
  19287. print line
  19288. }
  19289. _ACAWK
  19290. _ACEOF
  19291. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19292. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  19293. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  19294. else
  19295. cat
  19296. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  19297. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  19298. _ACEOF
  19299. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  19300. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  19301. # trailing colons and then remove the whole line if VPATH becomes empty
  19302. # (actually we leave an empty line to preserve line numbers).
  19303. if test "x$srcdir" = x.; then
  19304. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  19305. h
  19306. s///
  19307. s/^/:/
  19308. s/[ ]*$/:/
  19309. s/:\$(srcdir):/:/g
  19310. s/:\${srcdir}:/:/g
  19311. s/:@srcdir@:/:/g
  19312. s/^:*//
  19313. s/:*$//
  19314. x
  19315. s/\(=[ ]*\).*/\1/
  19316. G
  19317. s/\n//
  19318. s/^[^=]*=[ ]*$//
  19319. }'
  19320. fi
  19321. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19322. fi # test -n "$CONFIG_FILES"
  19323. # Set up the scripts for CONFIG_HEADERS section.
  19324. # No need to generate them if there are no CONFIG_HEADERS.
  19325. # This happens for instance with `./config.status Makefile'.
  19326. if test -n "$CONFIG_HEADERS"; then
  19327. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  19328. BEGIN {
  19329. _ACEOF
  19330. # Transform confdefs.h into an awk script `defines.awk', embedded as
  19331. # here-document in config.status, that substitutes the proper values into
  19332. # config.h.in to produce config.h.
  19333. # Create a delimiter string that does not exist in confdefs.h, to ease
  19334. # handling of long lines.
  19335. ac_delim='%!_!# '
  19336. for ac_last_try in false false :; do
  19337. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  19338. if test -z "$ac_tt"; then
  19339. break
  19340. elif $ac_last_try; then
  19341. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  19342. else
  19343. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  19344. fi
  19345. done
  19346. # For the awk script, D is an array of macro values keyed by name,
  19347. # likewise P contains macro parameters if any. Preserve backslash
  19348. # newline sequences.
  19349. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  19350. sed -n '
  19351. s/.\{148\}/&'"$ac_delim"'/g
  19352. t rset
  19353. :rset
  19354. s/^[ ]*#[ ]*define[ ][ ]*/ /
  19355. t def
  19356. d
  19357. :def
  19358. s/\\$//
  19359. t bsnl
  19360. s/["\\]/\\&/g
  19361. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  19362. D["\1"]=" \3"/p
  19363. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  19364. d
  19365. :bsnl
  19366. s/["\\]/\\&/g
  19367. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  19368. D["\1"]=" \3\\\\\\n"\\/p
  19369. t cont
  19370. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  19371. t cont
  19372. d
  19373. :cont
  19374. n
  19375. s/.\{148\}/&'"$ac_delim"'/g
  19376. t clear
  19377. :clear
  19378. s/\\$//
  19379. t bsnlc
  19380. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  19381. d
  19382. :bsnlc
  19383. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  19384. b cont
  19385. ' <confdefs.h | sed '
  19386. s/'"$ac_delim"'/"\\\
  19387. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  19388. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19389. for (key in D) D_is_set[key] = 1
  19390. FS = ""
  19391. }
  19392. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  19393. line = \$ 0
  19394. split(line, arg, " ")
  19395. if (arg[1] == "#") {
  19396. defundef = arg[2]
  19397. mac1 = arg[3]
  19398. } else {
  19399. defundef = substr(arg[1], 2)
  19400. mac1 = arg[2]
  19401. }
  19402. split(mac1, mac2, "(") #)
  19403. macro = mac2[1]
  19404. prefix = substr(line, 1, index(line, defundef) - 1)
  19405. if (D_is_set[macro]) {
  19406. # Preserve the white space surrounding the "#".
  19407. print prefix "define", macro P[macro] D[macro]
  19408. next
  19409. } else {
  19410. # Replace #undef with comments. This is necessary, for example,
  19411. # in the case of _POSIX_SOURCE, which is predefined and required
  19412. # on some systems where configure will not decide to define it.
  19413. if (defundef == "undef") {
  19414. print "/*", prefix defundef, macro, "*/"
  19415. next
  19416. }
  19417. }
  19418. }
  19419. { print }
  19420. _ACAWK
  19421. _ACEOF
  19422. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19423. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  19424. fi # test -n "$CONFIG_HEADERS"
  19425. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  19426. shift
  19427. for ac_tag
  19428. do
  19429. case $ac_tag in
  19430. :[FHLC]) ac_mode=$ac_tag; continue;;
  19431. esac
  19432. case $ac_mode$ac_tag in
  19433. :[FHL]*:*);;
  19434. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  19435. :[FH]-) ac_tag=-:-;;
  19436. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  19437. esac
  19438. ac_save_IFS=$IFS
  19439. IFS=:
  19440. set x $ac_tag
  19441. IFS=$ac_save_IFS
  19442. shift
  19443. ac_file=$1
  19444. shift
  19445. case $ac_mode in
  19446. :L) ac_source=$1;;
  19447. :[FH])
  19448. ac_file_inputs=
  19449. for ac_f
  19450. do
  19451. case $ac_f in
  19452. -) ac_f="$ac_tmp/stdin";;
  19453. *) # Look for the file first in the build tree, then in the source tree
  19454. # (if the path is not absolute). The absolute path cannot be DOS-style,
  19455. # because $ac_f cannot contain `:'.
  19456. test -f "$ac_f" ||
  19457. case $ac_f in
  19458. [\\/$]*) false;;
  19459. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  19460. esac ||
  19461. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  19462. esac
  19463. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  19464. as_fn_append ac_file_inputs " '$ac_f'"
  19465. done
  19466. # Let's still pretend it is `configure' which instantiates (i.e., don't
  19467. # use $as_me), people would be surprised to read:
  19468. # /* config.h. Generated by config.status. */
  19469. configure_input='Generated from '`
  19470. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  19471. `' by configure.'
  19472. if test x"$ac_file" != x-; then
  19473. configure_input="$ac_file. $configure_input"
  19474. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  19475. $as_echo "$as_me: creating $ac_file" >&6;}
  19476. fi
  19477. # Neutralize special characters interpreted by sed in replacement strings.
  19478. case $configure_input in #(
  19479. *\&* | *\|* | *\\* )
  19480. ac_sed_conf_input=`$as_echo "$configure_input" |
  19481. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  19482. *) ac_sed_conf_input=$configure_input;;
  19483. esac
  19484. case $ac_tag in
  19485. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  19486. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  19487. esac
  19488. ;;
  19489. esac
  19490. ac_dir=`$as_dirname -- "$ac_file" ||
  19491. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  19492. X"$ac_file" : 'X\(//\)[^/]' \| \
  19493. X"$ac_file" : 'X\(//\)$' \| \
  19494. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  19495. $as_echo X"$ac_file" |
  19496. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  19497. s//\1/
  19498. q
  19499. }
  19500. /^X\(\/\/\)[^/].*/{
  19501. s//\1/
  19502. q
  19503. }
  19504. /^X\(\/\/\)$/{
  19505. s//\1/
  19506. q
  19507. }
  19508. /^X\(\/\).*/{
  19509. s//\1/
  19510. q
  19511. }
  19512. s/.*/./; q'`
  19513. as_dir="$ac_dir"; as_fn_mkdir_p
  19514. ac_builddir=.
  19515. case "$ac_dir" in
  19516. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  19517. *)
  19518. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  19519. # A ".." for each directory in $ac_dir_suffix.
  19520. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  19521. case $ac_top_builddir_sub in
  19522. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  19523. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  19524. esac ;;
  19525. esac
  19526. ac_abs_top_builddir=$ac_pwd
  19527. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  19528. # for backward compatibility:
  19529. ac_top_builddir=$ac_top_build_prefix
  19530. case $srcdir in
  19531. .) # We are building in place.
  19532. ac_srcdir=.
  19533. ac_top_srcdir=$ac_top_builddir_sub
  19534. ac_abs_top_srcdir=$ac_pwd ;;
  19535. [\\/]* | ?:[\\/]* ) # Absolute name.
  19536. ac_srcdir=$srcdir$ac_dir_suffix;
  19537. ac_top_srcdir=$srcdir
  19538. ac_abs_top_srcdir=$srcdir ;;
  19539. *) # Relative name.
  19540. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  19541. ac_top_srcdir=$ac_top_build_prefix$srcdir
  19542. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  19543. esac
  19544. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  19545. case $ac_mode in
  19546. :F)
  19547. #
  19548. # CONFIG_FILE
  19549. #
  19550. case $INSTALL in
  19551. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  19552. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  19553. esac
  19554. ac_MKDIR_P=$MKDIR_P
  19555. case $MKDIR_P in
  19556. [\\/$]* | ?:[\\/]* ) ;;
  19557. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  19558. esac
  19559. _ACEOF
  19560. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19561. # If the template does not know about datarootdir, expand it.
  19562. # FIXME: This hack should be removed a few years after 2.60.
  19563. ac_datarootdir_hack=; ac_datarootdir_seen=
  19564. ac_sed_dataroot='
  19565. /datarootdir/ {
  19566. p
  19567. q
  19568. }
  19569. /@datadir@/p
  19570. /@docdir@/p
  19571. /@infodir@/p
  19572. /@localedir@/p
  19573. /@mandir@/p'
  19574. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  19575. *datarootdir*) ac_datarootdir_seen=yes;;
  19576. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  19577. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  19578. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  19579. _ACEOF
  19580. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19581. ac_datarootdir_hack='
  19582. s&@datadir@&$datadir&g
  19583. s&@docdir@&$docdir&g
  19584. s&@infodir@&$infodir&g
  19585. s&@localedir@&$localedir&g
  19586. s&@mandir@&$mandir&g
  19587. s&\\\${datarootdir}&$datarootdir&g' ;;
  19588. esac
  19589. _ACEOF
  19590. # Neutralize VPATH when `$srcdir' = `.'.
  19591. # Shell code in configure.ac might set extrasub.
  19592. # FIXME: do we really want to maintain this feature?
  19593. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19594. ac_sed_extra="$ac_vpsub
  19595. $extrasub
  19596. _ACEOF
  19597. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19598. :t
  19599. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  19600. s|@configure_input@|$ac_sed_conf_input|;t t
  19601. s&@top_builddir@&$ac_top_builddir_sub&;t t
  19602. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  19603. s&@srcdir@&$ac_srcdir&;t t
  19604. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  19605. s&@top_srcdir@&$ac_top_srcdir&;t t
  19606. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  19607. s&@builddir@&$ac_builddir&;t t
  19608. s&@abs_builddir@&$ac_abs_builddir&;t t
  19609. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  19610. s&@INSTALL@&$ac_INSTALL&;t t
  19611. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  19612. $ac_datarootdir_hack
  19613. "
  19614. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  19615. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  19616. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  19617. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  19618. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  19619. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  19620. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  19621. which seems to be undefined. Please make sure it is defined" >&5
  19622. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  19623. which seems to be undefined. Please make sure it is defined" >&2;}
  19624. rm -f "$ac_tmp/stdin"
  19625. case $ac_file in
  19626. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  19627. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  19628. esac \
  19629. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  19630. ;;
  19631. :H)
  19632. #
  19633. # CONFIG_HEADER
  19634. #
  19635. if test x"$ac_file" != x-; then
  19636. {
  19637. $as_echo "/* $configure_input */" \
  19638. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  19639. } >"$ac_tmp/config.h" \
  19640. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  19641. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  19642. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  19643. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  19644. else
  19645. rm -f "$ac_file"
  19646. mv "$ac_tmp/config.h" "$ac_file" \
  19647. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  19648. fi
  19649. else
  19650. $as_echo "/* $configure_input */" \
  19651. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  19652. || as_fn_error $? "could not create -" "$LINENO" 5
  19653. fi
  19654. # Compute "$ac_file"'s index in $config_headers.
  19655. _am_arg="$ac_file"
  19656. _am_stamp_count=1
  19657. for _am_header in $config_headers :; do
  19658. case $_am_header in
  19659. $_am_arg | $_am_arg:* )
  19660. break ;;
  19661. * )
  19662. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  19663. esac
  19664. done
  19665. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  19666. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  19667. X"$_am_arg" : 'X\(//\)[^/]' \| \
  19668. X"$_am_arg" : 'X\(//\)$' \| \
  19669. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  19670. $as_echo X"$_am_arg" |
  19671. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  19672. s//\1/
  19673. q
  19674. }
  19675. /^X\(\/\/\)[^/].*/{
  19676. s//\1/
  19677. q
  19678. }
  19679. /^X\(\/\/\)$/{
  19680. s//\1/
  19681. q
  19682. }
  19683. /^X\(\/\).*/{
  19684. s//\1/
  19685. q
  19686. }
  19687. s/.*/./; q'`/stamp-h$_am_stamp_count
  19688. ;;
  19689. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  19690. $as_echo "$as_me: executing $ac_file commands" >&6;}
  19691. ;;
  19692. esac
  19693. case $ac_file$ac_mode in
  19694. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  19695. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  19696. # are listed without --file. Let's play safe and only enable the eval
  19697. # if we detect the quoting.
  19698. case $CONFIG_FILES in
  19699. *\'*) eval set x "$CONFIG_FILES" ;;
  19700. *) set x $CONFIG_FILES ;;
  19701. esac
  19702. shift
  19703. for mf
  19704. do
  19705. # Strip MF so we end up with the name of the file.
  19706. mf=`echo "$mf" | sed -e 's/:.*$//'`
  19707. # Check whether this is an Automake generated Makefile or not.
  19708. # We used to match only the files named `Makefile.in', but
  19709. # some people rename them; so instead we look at the file content.
  19710. # Grep'ing the first line is not enough: some people post-process
  19711. # each Makefile.in and add a new line on top of each file to say so.
  19712. # Grep'ing the whole file is not good either: AIX grep has a line
  19713. # limit of 2048, but all sed's we know have understand at least 4000.
  19714. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  19715. dirpart=`$as_dirname -- "$mf" ||
  19716. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  19717. X"$mf" : 'X\(//\)[^/]' \| \
  19718. X"$mf" : 'X\(//\)$' \| \
  19719. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  19720. $as_echo X"$mf" |
  19721. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  19722. s//\1/
  19723. q
  19724. }
  19725. /^X\(\/\/\)[^/].*/{
  19726. s//\1/
  19727. q
  19728. }
  19729. /^X\(\/\/\)$/{
  19730. s//\1/
  19731. q
  19732. }
  19733. /^X\(\/\).*/{
  19734. s//\1/
  19735. q
  19736. }
  19737. s/.*/./; q'`
  19738. else
  19739. continue
  19740. fi
  19741. # Extract the definition of DEPDIR, am__include, and am__quote
  19742. # from the Makefile without running `make'.
  19743. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  19744. test -z "$DEPDIR" && continue
  19745. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  19746. test -z "am__include" && continue
  19747. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  19748. # When using ansi2knr, U may be empty or an underscore; expand it
  19749. U=`sed -n 's/^U = //p' < "$mf"`
  19750. # Find all dependency output files, they are included files with
  19751. # $(DEPDIR) in their names. We invoke sed twice because it is the
  19752. # simplest approach to changing $(DEPDIR) to its actual value in the
  19753. # expansion.
  19754. for file in `sed -n "
  19755. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  19756. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  19757. # Make sure the directory exists.
  19758. test -f "$dirpart/$file" && continue
  19759. fdir=`$as_dirname -- "$file" ||
  19760. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  19761. X"$file" : 'X\(//\)[^/]' \| \
  19762. X"$file" : 'X\(//\)$' \| \
  19763. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  19764. $as_echo X"$file" |
  19765. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  19766. s//\1/
  19767. q
  19768. }
  19769. /^X\(\/\/\)[^/].*/{
  19770. s//\1/
  19771. q
  19772. }
  19773. /^X\(\/\/\)$/{
  19774. s//\1/
  19775. q
  19776. }
  19777. /^X\(\/\).*/{
  19778. s//\1/
  19779. q
  19780. }
  19781. s/.*/./; q'`
  19782. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  19783. # echo "creating $dirpart/$file"
  19784. echo '# dummy' > "$dirpart/$file"
  19785. done
  19786. done
  19787. }
  19788. ;;
  19789. "libtool":C)
  19790. # See if we are running on zsh, and set the options which allow our
  19791. # commands through without removal of \ escapes.
  19792. if test -n "${ZSH_VERSION+set}" ; then
  19793. setopt NO_GLOB_SUBST
  19794. fi
  19795. cfgfile="${ofile}T"
  19796. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  19797. $RM "$cfgfile"
  19798. cat <<_LT_EOF >> "$cfgfile"
  19799. #! $SHELL
  19800. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  19801. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  19802. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  19803. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  19804. #
  19805. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  19806. # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
  19807. # Inc.
  19808. # Written by Gordon Matzigkeit, 1996
  19809. #
  19810. # This file is part of GNU Libtool.
  19811. #
  19812. # GNU Libtool is free software; you can redistribute it and/or
  19813. # modify it under the terms of the GNU General Public License as
  19814. # published by the Free Software Foundation; either version 2 of
  19815. # the License, or (at your option) any later version.
  19816. #
  19817. # As a special exception to the GNU General Public License,
  19818. # if you distribute this file as part of a program or library that
  19819. # is built using GNU Libtool, you may include this file under the
  19820. # same distribution terms that you use for the rest of that program.
  19821. #
  19822. # GNU Libtool is distributed in the hope that it will be useful,
  19823. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  19824. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  19825. # GNU General Public License for more details.
  19826. #
  19827. # You should have received a copy of the GNU General Public License
  19828. # along with GNU Libtool; see the file COPYING. If not, a copy
  19829. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  19830. # obtained by writing to the Free Software Foundation, Inc.,
  19831. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  19832. # The names of the tagged configurations supported by this script.
  19833. available_tags="CXX "
  19834. # ### BEGIN LIBTOOL CONFIG
  19835. # Whether or not to build static libraries.
  19836. build_old_libs=$enable_static
  19837. # Which release of libtool.m4 was used?
  19838. macro_version=$macro_version
  19839. macro_revision=$macro_revision
  19840. # Whether or not to build shared libraries.
  19841. build_libtool_libs=$enable_shared
  19842. # What type of objects to build.
  19843. pic_mode=$pic_mode
  19844. # Whether or not to optimize for fast installation.
  19845. fast_install=$enable_fast_install
  19846. # Shell to use when invoking shell scripts.
  19847. SHELL=$lt_SHELL
  19848. # An echo program that protects backslashes.
  19849. ECHO=$lt_ECHO
  19850. # The host system.
  19851. host_alias=$host_alias
  19852. host=$host
  19853. host_os=$host_os
  19854. # The build system.
  19855. build_alias=$build_alias
  19856. build=$build
  19857. build_os=$build_os
  19858. # A sed program that does not truncate output.
  19859. SED=$lt_SED
  19860. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  19861. Xsed="\$SED -e 1s/^X//"
  19862. # A grep program that handles long lines.
  19863. GREP=$lt_GREP
  19864. # An ERE matcher.
  19865. EGREP=$lt_EGREP
  19866. # A literal string matcher.
  19867. FGREP=$lt_FGREP
  19868. # A BSD- or MS-compatible name lister.
  19869. NM=$lt_NM
  19870. # Whether we need soft or hard links.
  19871. LN_S=$lt_LN_S
  19872. # What is the maximum length of a command?
  19873. max_cmd_len=$max_cmd_len
  19874. # Object file suffix (normally "o").
  19875. objext=$ac_objext
  19876. # Executable file suffix (normally "").
  19877. exeext=$exeext
  19878. # whether the shell understands "unset".
  19879. lt_unset=$lt_unset
  19880. # turn spaces into newlines.
  19881. SP2NL=$lt_lt_SP2NL
  19882. # turn newlines into spaces.
  19883. NL2SP=$lt_lt_NL2SP
  19884. # convert \$build file names to \$host format.
  19885. to_host_file_cmd=$lt_cv_to_host_file_cmd
  19886. # convert \$build files to toolchain format.
  19887. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  19888. # An object symbol dumper.
  19889. OBJDUMP=$lt_OBJDUMP
  19890. # Method to check whether dependent libraries are shared objects.
  19891. deplibs_check_method=$lt_deplibs_check_method
  19892. # Command to use when deplibs_check_method = "file_magic".
  19893. file_magic_cmd=$lt_file_magic_cmd
  19894. # How to find potential files when deplibs_check_method = "file_magic".
  19895. file_magic_glob=$lt_file_magic_glob
  19896. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  19897. want_nocaseglob=$lt_want_nocaseglob
  19898. # DLL creation program.
  19899. DLLTOOL=$lt_DLLTOOL
  19900. # Command to associate shared and link libraries.
  19901. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  19902. # The archiver.
  19903. AR=$lt_AR
  19904. # Flags to create an archive.
  19905. AR_FLAGS=$lt_AR_FLAGS
  19906. # How to feed a file listing to the archiver.
  19907. archiver_list_spec=$lt_archiver_list_spec
  19908. # A symbol stripping program.
  19909. STRIP=$lt_STRIP
  19910. # Commands used to install an old-style archive.
  19911. RANLIB=$lt_RANLIB
  19912. old_postinstall_cmds=$lt_old_postinstall_cmds
  19913. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  19914. # Whether to use a lock for old archive extraction.
  19915. lock_old_archive_extraction=$lock_old_archive_extraction
  19916. # A C compiler.
  19917. LTCC=$lt_CC
  19918. # LTCC compiler flags.
  19919. LTCFLAGS=$lt_CFLAGS
  19920. # Take the output of nm and produce a listing of raw symbols and C names.
  19921. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  19922. # Transform the output of nm in a proper C declaration.
  19923. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  19924. # Transform the output of nm in a C name address pair.
  19925. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  19926. # Transform the output of nm in a C name address pair when lib prefix is needed.
  19927. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  19928. # Specify filename containing input files for \$NM.
  19929. nm_file_list_spec=$lt_nm_file_list_spec
  19930. # The root where to search for dependent libraries,and in which our libraries should be installed.
  19931. lt_sysroot=$lt_sysroot
  19932. # The name of the directory that contains temporary libtool files.
  19933. objdir=$objdir
  19934. # Used to examine libraries when file_magic_cmd begins with "file".
  19935. MAGIC_CMD=$MAGIC_CMD
  19936. # Must we lock files when doing compilation?
  19937. need_locks=$lt_need_locks
  19938. # Manifest tool.
  19939. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  19940. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  19941. DSYMUTIL=$lt_DSYMUTIL
  19942. # Tool to change global to local symbols on Mac OS X.
  19943. NMEDIT=$lt_NMEDIT
  19944. # Tool to manipulate fat objects and archives on Mac OS X.
  19945. LIPO=$lt_LIPO
  19946. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  19947. OTOOL=$lt_OTOOL
  19948. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  19949. OTOOL64=$lt_OTOOL64
  19950. # Old archive suffix (normally "a").
  19951. libext=$libext
  19952. # Shared library suffix (normally ".so").
  19953. shrext_cmds=$lt_shrext_cmds
  19954. # The commands to extract the exported symbol list from a shared archive.
  19955. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  19956. # Variables whose values should be saved in libtool wrapper scripts and
  19957. # restored at link time.
  19958. variables_saved_for_relink=$lt_variables_saved_for_relink
  19959. # Do we need the "lib" prefix for modules?
  19960. need_lib_prefix=$need_lib_prefix
  19961. # Do we need a version for libraries?
  19962. need_version=$need_version
  19963. # Library versioning type.
  19964. version_type=$version_type
  19965. # Shared library runtime path variable.
  19966. runpath_var=$runpath_var
  19967. # Shared library path variable.
  19968. shlibpath_var=$shlibpath_var
  19969. # Is shlibpath searched before the hard-coded library search path?
  19970. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  19971. # Format of library name prefix.
  19972. libname_spec=$lt_libname_spec
  19973. # List of archive names. First name is the real one, the rest are links.
  19974. # The last name is the one that the linker finds with -lNAME
  19975. library_names_spec=$lt_library_names_spec
  19976. # The coded name of the library, if different from the real name.
  19977. soname_spec=$lt_soname_spec
  19978. # Permission mode override for installation of shared libraries.
  19979. install_override_mode=$lt_install_override_mode
  19980. # Command to use after installation of a shared archive.
  19981. postinstall_cmds=$lt_postinstall_cmds
  19982. # Command to use after uninstallation of a shared archive.
  19983. postuninstall_cmds=$lt_postuninstall_cmds
  19984. # Commands used to finish a libtool library installation in a directory.
  19985. finish_cmds=$lt_finish_cmds
  19986. # As "finish_cmds", except a single script fragment to be evaled but
  19987. # not shown.
  19988. finish_eval=$lt_finish_eval
  19989. # Whether we should hardcode library paths into libraries.
  19990. hardcode_into_libs=$hardcode_into_libs
  19991. # Compile-time system search path for libraries.
  19992. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  19993. # Run-time system search path for libraries.
  19994. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  19995. # Whether dlopen is supported.
  19996. dlopen_support=$enable_dlopen
  19997. # Whether dlopen of programs is supported.
  19998. dlopen_self=$enable_dlopen_self
  19999. # Whether dlopen of statically linked programs is supported.
  20000. dlopen_self_static=$enable_dlopen_self_static
  20001. # Commands to strip libraries.
  20002. old_striplib=$lt_old_striplib
  20003. striplib=$lt_striplib
  20004. # The linker used to build libraries.
  20005. LD=$lt_LD
  20006. # How to create reloadable object files.
  20007. reload_flag=$lt_reload_flag
  20008. reload_cmds=$lt_reload_cmds
  20009. # Commands used to build an old-style archive.
  20010. old_archive_cmds=$lt_old_archive_cmds
  20011. # A language specific compiler.
  20012. CC=$lt_compiler
  20013. # Is the compiler the GNU compiler?
  20014. with_gcc=$GCC
  20015. # Compiler flag to turn off builtin functions.
  20016. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  20017. # Additional compiler flags for building library objects.
  20018. pic_flag=$lt_lt_prog_compiler_pic
  20019. # How to pass a linker flag through the compiler.
  20020. wl=$lt_lt_prog_compiler_wl
  20021. # Compiler flag to prevent dynamic linking.
  20022. link_static_flag=$lt_lt_prog_compiler_static
  20023. # Does compiler simultaneously support -c and -o options?
  20024. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  20025. # Whether or not to add -lc for building shared libraries.
  20026. build_libtool_need_lc=$archive_cmds_need_lc
  20027. # Whether or not to disallow shared libs when runtime libs are static.
  20028. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  20029. # Compiler flag to allow reflexive dlopens.
  20030. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  20031. # Compiler flag to generate shared objects directly from archives.
  20032. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  20033. # Whether the compiler copes with passing no objects directly.
  20034. compiler_needs_object=$lt_compiler_needs_object
  20035. # Create an old-style archive from a shared archive.
  20036. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  20037. # Create a temporary old-style archive to link instead of a shared archive.
  20038. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  20039. # Commands used to build a shared archive.
  20040. archive_cmds=$lt_archive_cmds
  20041. archive_expsym_cmds=$lt_archive_expsym_cmds
  20042. # Commands used to build a loadable module if different from building
  20043. # a shared archive.
  20044. module_cmds=$lt_module_cmds
  20045. module_expsym_cmds=$lt_module_expsym_cmds
  20046. # Whether we are building with GNU ld or not.
  20047. with_gnu_ld=$lt_with_gnu_ld
  20048. # Flag that allows shared libraries with undefined symbols to be built.
  20049. allow_undefined_flag=$lt_allow_undefined_flag
  20050. # Flag that enforces no undefined symbols.
  20051. no_undefined_flag=$lt_no_undefined_flag
  20052. # Flag to hardcode \$libdir into a binary during linking.
  20053. # This must work even if \$libdir does not exist
  20054. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  20055. # If ld is used when linking, flag to hardcode \$libdir into a binary
  20056. # during linking. This must work even if \$libdir does not exist.
  20057. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  20058. # Whether we need a single "-rpath" flag with a separated argument.
  20059. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  20060. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  20061. # DIR into the resulting binary.
  20062. hardcode_direct=$hardcode_direct
  20063. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  20064. # DIR into the resulting binary and the resulting library dependency is
  20065. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  20066. # library is relocated.
  20067. hardcode_direct_absolute=$hardcode_direct_absolute
  20068. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  20069. # into the resulting binary.
  20070. hardcode_minus_L=$hardcode_minus_L
  20071. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  20072. # into the resulting binary.
  20073. hardcode_shlibpath_var=$hardcode_shlibpath_var
  20074. # Set to "yes" if building a shared library automatically hardcodes DIR
  20075. # into the library and all subsequent libraries and executables linked
  20076. # against it.
  20077. hardcode_automatic=$hardcode_automatic
  20078. # Set to yes if linker adds runtime paths of dependent libraries
  20079. # to runtime path list.
  20080. inherit_rpath=$inherit_rpath
  20081. # Whether libtool must link a program against all its dependency libraries.
  20082. link_all_deplibs=$link_all_deplibs
  20083. # Set to "yes" if exported symbols are required.
  20084. always_export_symbols=$always_export_symbols
  20085. # The commands to list exported symbols.
  20086. export_symbols_cmds=$lt_export_symbols_cmds
  20087. # Symbols that should not be listed in the preloaded symbols.
  20088. exclude_expsyms=$lt_exclude_expsyms
  20089. # Symbols that must always be exported.
  20090. include_expsyms=$lt_include_expsyms
  20091. # Commands necessary for linking programs (against libraries) with templates.
  20092. prelink_cmds=$lt_prelink_cmds
  20093. # Commands necessary for finishing linking programs.
  20094. postlink_cmds=$lt_postlink_cmds
  20095. # Specify filename containing input files.
  20096. file_list_spec=$lt_file_list_spec
  20097. # How to hardcode a shared library path into an executable.
  20098. hardcode_action=$hardcode_action
  20099. # The directories searched by this compiler when creating a shared library.
  20100. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  20101. # Dependencies to place before and after the objects being linked to
  20102. # create a shared library.
  20103. predep_objects=$lt_predep_objects
  20104. postdep_objects=$lt_postdep_objects
  20105. predeps=$lt_predeps
  20106. postdeps=$lt_postdeps
  20107. # The library search path used internally by the compiler when linking
  20108. # a shared library.
  20109. compiler_lib_search_path=$lt_compiler_lib_search_path
  20110. # ### END LIBTOOL CONFIG
  20111. _LT_EOF
  20112. case $host_os in
  20113. aix3*)
  20114. cat <<\_LT_EOF >> "$cfgfile"
  20115. # AIX sometimes has problems with the GCC collect2 program. For some
  20116. # reason, if we set the COLLECT_NAMES environment variable, the problems
  20117. # vanish in a puff of smoke.
  20118. if test "X${COLLECT_NAMES+set}" != Xset; then
  20119. COLLECT_NAMES=
  20120. export COLLECT_NAMES
  20121. fi
  20122. _LT_EOF
  20123. ;;
  20124. esac
  20125. ltmain="$ac_aux_dir/ltmain.sh"
  20126. # We use sed instead of cat because bash on DJGPP gets confused if
  20127. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  20128. # text mode, it properly converts lines to CR/LF. This bash problem
  20129. # is reportedly fixed, but why not run on old versions too?
  20130. sed '$q' "$ltmain" >> "$cfgfile" \
  20131. || (rm -f "$cfgfile"; exit 1)
  20132. if test x"$xsi_shell" = xyes; then
  20133. sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
  20134. func_dirname ()\
  20135. {\
  20136. \ case ${1} in\
  20137. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  20138. \ * ) func_dirname_result="${3}" ;;\
  20139. \ esac\
  20140. } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
  20141. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20142. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20143. test 0 -eq $? || _lt_function_replace_fail=:
  20144. sed -e '/^func_basename ()$/,/^} # func_basename /c\
  20145. func_basename ()\
  20146. {\
  20147. \ func_basename_result="${1##*/}"\
  20148. } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
  20149. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20150. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20151. test 0 -eq $? || _lt_function_replace_fail=:
  20152. sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
  20153. func_dirname_and_basename ()\
  20154. {\
  20155. \ case ${1} in\
  20156. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  20157. \ * ) func_dirname_result="${3}" ;;\
  20158. \ esac\
  20159. \ func_basename_result="${1##*/}"\
  20160. } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
  20161. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20162. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20163. test 0 -eq $? || _lt_function_replace_fail=:
  20164. sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
  20165. func_stripname ()\
  20166. {\
  20167. \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
  20168. \ # positional parameters, so assign one to ordinary parameter first.\
  20169. \ func_stripname_result=${3}\
  20170. \ func_stripname_result=${func_stripname_result#"${1}"}\
  20171. \ func_stripname_result=${func_stripname_result%"${2}"}\
  20172. } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
  20173. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20174. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20175. test 0 -eq $? || _lt_function_replace_fail=:
  20176. sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
  20177. func_split_long_opt ()\
  20178. {\
  20179. \ func_split_long_opt_name=${1%%=*}\
  20180. \ func_split_long_opt_arg=${1#*=}\
  20181. } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
  20182. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20183. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20184. test 0 -eq $? || _lt_function_replace_fail=:
  20185. sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
  20186. func_split_short_opt ()\
  20187. {\
  20188. \ func_split_short_opt_arg=${1#??}\
  20189. \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
  20190. } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
  20191. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20192. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20193. test 0 -eq $? || _lt_function_replace_fail=:
  20194. sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
  20195. func_lo2o ()\
  20196. {\
  20197. \ case ${1} in\
  20198. \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
  20199. \ *) func_lo2o_result=${1} ;;\
  20200. \ esac\
  20201. } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
  20202. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20203. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20204. test 0 -eq $? || _lt_function_replace_fail=:
  20205. sed -e '/^func_xform ()$/,/^} # func_xform /c\
  20206. func_xform ()\
  20207. {\
  20208. func_xform_result=${1%.*}.lo\
  20209. } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
  20210. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20211. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20212. test 0 -eq $? || _lt_function_replace_fail=:
  20213. sed -e '/^func_arith ()$/,/^} # func_arith /c\
  20214. func_arith ()\
  20215. {\
  20216. func_arith_result=$(( $* ))\
  20217. } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
  20218. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20219. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20220. test 0 -eq $? || _lt_function_replace_fail=:
  20221. sed -e '/^func_len ()$/,/^} # func_len /c\
  20222. func_len ()\
  20223. {\
  20224. func_len_result=${#1}\
  20225. } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
  20226. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20227. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20228. test 0 -eq $? || _lt_function_replace_fail=:
  20229. fi
  20230. if test x"$lt_shell_append" = xyes; then
  20231. sed -e '/^func_append ()$/,/^} # func_append /c\
  20232. func_append ()\
  20233. {\
  20234. eval "${1}+=\\${2}"\
  20235. } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
  20236. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20237. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20238. test 0 -eq $? || _lt_function_replace_fail=:
  20239. sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
  20240. func_append_quoted ()\
  20241. {\
  20242. \ func_quote_for_eval "${2}"\
  20243. \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
  20244. } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
  20245. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20246. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20247. test 0 -eq $? || _lt_function_replace_fail=:
  20248. # Save a `func_append' function call where possible by direct use of '+='
  20249. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
  20250. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20251. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20252. test 0 -eq $? || _lt_function_replace_fail=:
  20253. else
  20254. # Save a `func_append' function call even when '+=' is not available
  20255. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  20256. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20257. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20258. test 0 -eq $? || _lt_function_replace_fail=:
  20259. fi
  20260. if test x"$_lt_function_replace_fail" = x":"; then
  20261. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
  20262. $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
  20263. fi
  20264. mv -f "$cfgfile" "$ofile" ||
  20265. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  20266. chmod +x "$ofile"
  20267. cat <<_LT_EOF >> "$ofile"
  20268. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  20269. # The linker used to build libraries.
  20270. LD=$lt_LD_CXX
  20271. # How to create reloadable object files.
  20272. reload_flag=$lt_reload_flag_CXX
  20273. reload_cmds=$lt_reload_cmds_CXX
  20274. # Commands used to build an old-style archive.
  20275. old_archive_cmds=$lt_old_archive_cmds_CXX
  20276. # A language specific compiler.
  20277. CC=$lt_compiler_CXX
  20278. # Is the compiler the GNU compiler?
  20279. with_gcc=$GCC_CXX
  20280. # Compiler flag to turn off builtin functions.
  20281. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  20282. # Additional compiler flags for building library objects.
  20283. pic_flag=$lt_lt_prog_compiler_pic_CXX
  20284. # How to pass a linker flag through the compiler.
  20285. wl=$lt_lt_prog_compiler_wl_CXX
  20286. # Compiler flag to prevent dynamic linking.
  20287. link_static_flag=$lt_lt_prog_compiler_static_CXX
  20288. # Does compiler simultaneously support -c and -o options?
  20289. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  20290. # Whether or not to add -lc for building shared libraries.
  20291. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  20292. # Whether or not to disallow shared libs when runtime libs are static.
  20293. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  20294. # Compiler flag to allow reflexive dlopens.
  20295. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  20296. # Compiler flag to generate shared objects directly from archives.
  20297. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  20298. # Whether the compiler copes with passing no objects directly.
  20299. compiler_needs_object=$lt_compiler_needs_object_CXX
  20300. # Create an old-style archive from a shared archive.
  20301. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  20302. # Create a temporary old-style archive to link instead of a shared archive.
  20303. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  20304. # Commands used to build a shared archive.
  20305. archive_cmds=$lt_archive_cmds_CXX
  20306. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  20307. # Commands used to build a loadable module if different from building
  20308. # a shared archive.
  20309. module_cmds=$lt_module_cmds_CXX
  20310. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  20311. # Whether we are building with GNU ld or not.
  20312. with_gnu_ld=$lt_with_gnu_ld_CXX
  20313. # Flag that allows shared libraries with undefined symbols to be built.
  20314. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  20315. # Flag that enforces no undefined symbols.
  20316. no_undefined_flag=$lt_no_undefined_flag_CXX
  20317. # Flag to hardcode \$libdir into a binary during linking.
  20318. # This must work even if \$libdir does not exist
  20319. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  20320. # If ld is used when linking, flag to hardcode \$libdir into a binary
  20321. # during linking. This must work even if \$libdir does not exist.
  20322. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
  20323. # Whether we need a single "-rpath" flag with a separated argument.
  20324. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  20325. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  20326. # DIR into the resulting binary.
  20327. hardcode_direct=$hardcode_direct_CXX
  20328. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  20329. # DIR into the resulting binary and the resulting library dependency is
  20330. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  20331. # library is relocated.
  20332. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  20333. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  20334. # into the resulting binary.
  20335. hardcode_minus_L=$hardcode_minus_L_CXX
  20336. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  20337. # into the resulting binary.
  20338. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  20339. # Set to "yes" if building a shared library automatically hardcodes DIR
  20340. # into the library and all subsequent libraries and executables linked
  20341. # against it.
  20342. hardcode_automatic=$hardcode_automatic_CXX
  20343. # Set to yes if linker adds runtime paths of dependent libraries
  20344. # to runtime path list.
  20345. inherit_rpath=$inherit_rpath_CXX
  20346. # Whether libtool must link a program against all its dependency libraries.
  20347. link_all_deplibs=$link_all_deplibs_CXX
  20348. # Set to "yes" if exported symbols are required.
  20349. always_export_symbols=$always_export_symbols_CXX
  20350. # The commands to list exported symbols.
  20351. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  20352. # Symbols that should not be listed in the preloaded symbols.
  20353. exclude_expsyms=$lt_exclude_expsyms_CXX
  20354. # Symbols that must always be exported.
  20355. include_expsyms=$lt_include_expsyms_CXX
  20356. # Commands necessary for linking programs (against libraries) with templates.
  20357. prelink_cmds=$lt_prelink_cmds_CXX
  20358. # Commands necessary for finishing linking programs.
  20359. postlink_cmds=$lt_postlink_cmds_CXX
  20360. # Specify filename containing input files.
  20361. file_list_spec=$lt_file_list_spec_CXX
  20362. # How to hardcode a shared library path into an executable.
  20363. hardcode_action=$hardcode_action_CXX
  20364. # The directories searched by this compiler when creating a shared library.
  20365. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  20366. # Dependencies to place before and after the objects being linked to
  20367. # create a shared library.
  20368. predep_objects=$lt_predep_objects_CXX
  20369. postdep_objects=$lt_postdep_objects_CXX
  20370. predeps=$lt_predeps_CXX
  20371. postdeps=$lt_postdeps_CXX
  20372. # The library search path used internally by the compiler when linking
  20373. # a shared library.
  20374. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  20375. # ### END LIBTOOL TAG CONFIG: CXX
  20376. _LT_EOF
  20377. ;;
  20378. esac
  20379. done # for ac_tag
  20380. as_fn_exit 0
  20381. _ACEOF
  20382. ac_clean_files=$ac_clean_files_save
  20383. test $ac_write_fail = 0 ||
  20384. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  20385. # configure is writing to config.log, and then calls config.status.
  20386. # config.status does its own redirection, appending to config.log.
  20387. # Unfortunately, on DOS this fails, as config.log is still kept open
  20388. # by configure, so config.status won't be able to write to it; its
  20389. # output is simply discarded. So we exec the FD to /dev/null,
  20390. # effectively closing config.log, so it can be properly (re)opened and
  20391. # appended to by config.status. When coming back to configure, we
  20392. # need to make the FD available again.
  20393. if test "$no_create" != yes; then
  20394. ac_cs_success=:
  20395. ac_config_status_args=
  20396. test "$silent" = yes &&
  20397. ac_config_status_args="$ac_config_status_args --quiet"
  20398. exec 5>/dev/null
  20399. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  20400. exec 5>>config.log
  20401. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  20402. # would make configure fail if this is the last instruction.
  20403. $ac_cs_success || as_fn_exit 1
  20404. fi
  20405. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  20406. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  20407. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  20408. fi